1) Find a single large client with a steady stream of work. Quit your job to contract with this client, use new freedom to solicit additional clients. Avoid becoming entirely dependent on this single client, though.
2) Establish enough savings that you can reasonably coast for 12 months while building up the business. Make acquiring new clients your #1 priority.
The biggest challenge with consulting is not doing the work. It's getting the clients. It's an entirely different skillset than engineering, which is why so many freelancers fail. You should start networking and building relationships with potential clients long before you quit your job.