Quantcast
Viewing all articles
Browse latest Browse all 5425

Advanced users • Ext boot partition with u-boot

Hi,

I'm trying to make the CM4 work with u-boot and an ext4 boot partition instead of the regular vfat. This is necessary for an OTA update to happen also for the boot partition with a tool called RAUC. What is the advised u-boot script to handle the ext4 boot partition?

My current boot.cmd.in for vfat boot partition is as below

Code:

fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargsfatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@if test ! -e mmc 0:1 uboot.env; then saveenv; fi;@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr}
The boot partition is the first one on the image, created with wic tool. I've found out that ext4load command should make it possible to load things from the ext4 /boot, however swapping fatload to ext4load does not work. The board does not boot. The other thing enabled are kernel config options CONFIG_CMD_EXT4 and CONFIG_CMD_EXT4_WRITE.

All the advice is appreciated, let's say I'm very stuck.

Statistics: Posted by rockerr — Tue May 07, 2024 12:24 pm



Viewing all articles
Browse latest Browse all 5425

Trending Articles