Jump to content

Boot failover


jam183

Recommended Posts

I customized my Armbian install with 2 operating systems on two partitions.

In armbianEnv.txt I use rootdev to specify the default partition. 

 

I would like to set it so that if booting from the default rootdev fails (triggering panic or root-wait, etc.),

it will instead try to boot with rootdev/root set to the other partition.  

 

Is that possible?

 

Link to comment
Share on other sites

You can try enabling ext4 write support in u-boot (depends on your device), then create an empty file in u-boot script and removing this file after successful boot up. Then you can check in u-boot script if this file exists, it should be a good indication of a failed boot.

 

Oh, interesting. Uboot checks for file, if present load failover, else write file, load kernel, OS deletes file on boot. That works!

 

My board is the Orange Pi Zero. I will try to implement this, thanks.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines