Going back to stock
Hako never touches the unit's boot menu, so the stock firmware can always be put back:
- Switch the unit on holding OSCILLATOR and choose USB MSC: the disk appears on the computer.
- With Hako's tools:
hako uninstall. It copies Sonicware'sELZ_1.binfromSTOCK/back to the root. By hand: copySTOCK/ELZ_1.bin(or a fresh download from Sonicware's website, theELZ_1.binin its zip) to the root of the disk, replacing Hako'sELZ_1.BIN. - Eject, and choose SYSTEM UPDATE. The unit flashes it and starts as it came from Sonicware.
The apps' folders stay on the disk, harmless; delete them if you like. To come back to Hako, run
hako setup the same way (or copy Hako's ELZ_1.BIN to the root) and SYSTEM UPDATE again.
STOCK/
Your downloaded ELZ_1.bin in STOCK/ on the disk lets the launcher's STOCK app start the stock
instrument without flashing (Install, step 3), and keeps the file at hand for
going back. Nothing of Sonicware's is in Hako: the folder is for your own download.
How STOCK does it: the update file isn't signed, encrypted or compressed. Its SYSTEM part is a handful of sections, each with a load address, and an entry point. STOCK checks the file's CRCs, copies the sections into memory as the bootloader would, and jumps. Three things differ from a real power-on, and STOCK sees to each: the stock start-up briefly drops the power-hold line, counting on the power button still being held (a tiny program on the chip's PRU, which the stock firmware doesn't use, holds it for the first seconds); the stock firmware never sets the screen's drawing window (STOCK leaves it full-screen); and it expects the screen, USB and audio controllers as at power-on (STOCK resets them).