Correction, first 7 partitions..

This was written before the mmc greater then 8 partitions layer came out


echo Checking for: /boot/uEnv.txt ...;" \
+ "for i in 1 2 3 4 5 6 7 ; do " \
+ "setenv mmcpart ${i};" \
+ "setenv bootpart ${mmcdev}:${mmcpart};" \
+ "if test -e ${devtype} ${bootpart} /boot/uEnv.txt; then " \



I think a better way is extlinux.conf and grub efi, but that'll take some
work to implement, vs my quick hack today.

On Fri, Sep 18, 2020, 12:01 PM John Allwine <j...@pocketnc.com> wrote:

> 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 <j...@pocketnc.com> 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 <jo...@pocketnc.com>
>>> 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 beagleboard+unsubscr...@googlegroups.com.
>> 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 beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAPEK9qafMH2HPHuxq%2BUETxaTR4bmD8TACDnn0zdrTTsGYekmNQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/beagleboard/CAPEK9qafMH2HPHuxq%2BUETxaTR4bmD8TACDnn0zdrTTsGYekmNQ%40mail.gmail.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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhr95NXomDMOFc3Pw9FZmSVdbdtXSSLvudtEy-6Ufvrkw%40mail.gmail.com.

Reply via email to