Create secondary Bootpartition on emmc


I added a secondary Partition to the flash_l4t_t186.xml File and split the Storage between mmcblk0p1 and my new partition mmcblk0p33. I created a new ext4 Filesystem on it and copied the content of mmcblk0p1 onto it preserving the userrights. The result looks like this:

ubuntu@localhost:~$ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT
mmcblk0 29.1G
├─mmcblk0p1 ext4 13G /
├─mmcblk0p2 4M
├─mmcblk0p3 4M
├─mmcblk0p4 512K
├─mmcblk0p5 512K
├─mmcblk0p6 512K
├─mmcblk0p7 512K
├─mmcblk0p8 3M
├─mmcblk0p9 3M
├─mmcblk0p10 2M
├─mmcblk0p11 4M
├─mmcblk0p12 4M
├─mmcblk0p13 604K
├─mmcblk0p14 604K
├─mmcblk0p15 1M
├─mmcblk0p16 1M
├─mmcblk0p17 2M
├─mmcblk0p18 2M
├─mmcblk0p19 6M
├─mmcblk0p20 6M
├─mmcblk0p21 2M
├─mmcblk0p22 128M
├─mmcblk0p23 128M
├─mmcblk0p24 63M
├─mmcblk0p25 512K
├─mmcblk0p26 256K
├─mmcblk0p27 256K
├─mmcblk0p28 80M
├─mmcblk0p29 80M
├─mmcblk0p30 512K
├─mmcblk0p31 512K
├─mmcblk0p32 300M
├─mmcblk0p33 ext4 13G /media/ubuntu/e62bd846-9ca4-4028-8354-b869b0e4ad7e
├─mmcblk0p34 1G
└─mmcblk0p35 1.3G
mmcblk0boot0 4M
mmcblk0boot1 4M
mmcblk0rpmb 4M
zram0 654.3M [SWAP]
zram1 654.3M [SWAP]
zram2 654.3M [SWAP]
zram3 654.3M [SWAP]
zram4 654.3M [SWAP]
zram5 654.3M [SWAP]

I followed the bootprocess in uboot which called

sysboot {devtype} {devnum}:{distro_bootpart} any {scriptaddr} ${prefix}extlinux/extlinux.conf

with the values

sysboot mmc 0:1 any 82600000 /boot/extlinux/extlinux.conf

That started the kernel successfully. After that I tried to call

sysboot mmc 0:33 any 82600000 /boot/extlinux/extlinux.conf

But the result was this:

sysboot mmc 0:33 any 82600000 /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
** Invalid partition 51 **
Error reading config file

What does the error Invalid partition 51 mean ?
Are there more steps required to make a partition beside mmcblk0p1 bootable?


hello Jens.Rademacher,

here’s an external page for your reference, Boot From External Device.

thank you for the link, but thats not what I am trying to do. I dont have a second storage device.
I just want uboot to load the files from another partition of the internal emmc, so that if the data on mmcblk0p1 is corrupted, I still can boot to my other partition.

hello Jens.Rademacher,

it seems you would like to have implementation to enable A/B redundancy for root file system.
please refer to Topic 81097 for the steps.