The ultimate goal here would be to be able to essentially flash a board, but always be able to revert to a previously installed firmware. So rather than always flash the eMMC, leverage a much larger microSD card that could have several different images and instead of ever overwriting them, allocate spare space to a new partition and change whatever setting is necessary to default to booting to that partition (and provide some interface for reverting to any previous one).
On Fri, Sep 18, 2020 at 10:50 AM John Allwine <[email protected]> wrote: > Thanks Robert! I'll give it a try. It sounds like 4 different images would > be the limit using that strategy? Let's say I had a 256GB microSD card with > 10 different partitions. Any idea on what I would have to change to be able > to select one besides one of the first 4? > > On Friday, September 18, 2020 at 8:55:48 AM UTC-6 RobertCNelson wrote: > >> On Fri, Sep 18, 2020 at 9:47 AM John Allwine <[email protected]> wrote: >> > >> > Has anyone partitioned a microSD card such that it can be booted into >> different partitions on a Beaglebone Black or AI? How would I go about >> doing something like that? I'd like to avoid needing to physically take out >> the microSD card and potentially add bootable partitions over time. Would >> that be doable from the Beaglebone itself? >> >> We use "/boot/uEnv.txt" as a trigger file.. >> >> Take an existing partition, shrink it to half, (dont' touch the 4mb >> hole), then clone that partition to the empy space (and update it's >> /etc/fstab).. >> >> On startup, u-boot will search the first 4 partitions for >> "/boot/uEnv.txt" so either rename the one on the first partition to >> the boot the second/etc.. >> >> There's probably a better way, but this will just work with the >> existing setup with the fewest mod's.. >> >> Regards, >> >> -- >> Robert Nelson >> https://rcn-ee.com/ >> > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/15487b80-ad54-40df-9079-e12f60368419n%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/15487b80-ad54-40df-9079-e12f60368419n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAPEK9qafMH2HPHuxq%2BUETxaTR4bmD8TACDnn0zdrTTsGYekmNQ%40mail.gmail.com.
