Joined
·
71 Posts
Hi all,
Not sure if anyone has done this but I was curious if there was a way to enable the failsafe boot when you are booted into the main filesystem (root). I've seen the write-up on how to do it "physically", see here: forcing invocation of Mazda Connect failsafe mode. I figured this could be used as a nuclear option if you screw up your tweaks so badly that you can't figure out how to undo them. It really requires you to have the watchdog disabled which most of us have done already.
I was going to write a script for it but then I figured there might be a script on the CMU that already does it. After looking through the CMU files, I found a script called configure_flash.sh that is used for flashing the CMU from scratch. Buried in the script is a function called switch_ibc which is what I wanted. The function configures the boot-select block of the flash. Passing 1 sets normal boot (main filesystem) while 2 (or anything else) sets the block to boot from the failsafe. Booting into the failsafe will prompt for a USB containing an upgrade file, as shown in the write-up linked above. I modified the script to only set the failsafe boot. I have yet to test it (I kind of don't want to if I don't have to) but I am pretty confident that it will work. I am attaching the modified script and the original if anyone is interested.
EDIT: Doing a search AFTER I posted this (doh), I see there was a discussion about the script I used. They don't talk about it from the perspective of a nuclear option but the post contains a lot of great information about how the boot process works. Link here: http://mazda3revolution.com/forums/1394714-post2265.html
Not sure if anyone has done this but I was curious if there was a way to enable the failsafe boot when you are booted into the main filesystem (root). I've seen the write-up on how to do it "physically", see here: forcing invocation of Mazda Connect failsafe mode. I figured this could be used as a nuclear option if you screw up your tweaks so badly that you can't figure out how to undo them. It really requires you to have the watchdog disabled which most of us have done already.
I was going to write a script for it but then I figured there might be a script on the CMU that already does it. After looking through the CMU files, I found a script called configure_flash.sh that is used for flashing the CMU from scratch. Buried in the script is a function called switch_ibc which is what I wanted. The function configures the boot-select block of the flash. Passing 1 sets normal boot (main filesystem) while 2 (or anything else) sets the block to boot from the failsafe. Booting into the failsafe will prompt for a USB containing an upgrade file, as shown in the write-up linked above. I modified the script to only set the failsafe boot. I have yet to test it (I kind of don't want to if I don't have to) but I am pretty confident that it will work. I am attaching the modified script and the original if anyone is interested.
EDIT: Doing a search AFTER I posted this (doh), I see there was a discussion about the script I used. They don't talk about it from the perspective of a nuclear option but the post contains a lot of great information about how the boot process works. Link here: http://mazda3revolution.com/forums/1394714-post2265.html
Attachments
-
8.7 KB Views: 399