This shows you the differences between two versions of the page.
|
ass:labs-2025:04:tasks:03 [2026/07/16 14:39] florin.stancu created |
ass:labs-2025:04:tasks:03 [2026/07/16 15:34] (current) florin.stancu |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| But in order to run it, recursively copy the entire RAUC utils directory from host to somewhere inside the debian rootfs (e.g., ''/root/rauc-utils/'') and run it using ''chroot-enter.sh'' (as you've done in the prev. task). | But in order to run it, recursively copy the entire RAUC utils directory from host to somewhere inside the debian rootfs (e.g., ''/root/rauc-utils/'') and run it using ''chroot-enter.sh'' (as you've done in the prev. task). | ||
| - | === Generate the disk image === | + | === [Re]Generate the disk image === |
| We can now run ''mk-disk-image2.sh''. The ''disk.img'' will be updated with 4 partitions (boot, A, B + data), Debian will be copied to the first 2 EXT4 partitions and the bootloader will be installed at 32KB offset (the SoC's BL1/BOOTROM wants it there). | We can now run ''mk-disk-image2.sh''. The ''disk.img'' will be updated with 4 partitions (boot, A, B + data), Debian will be copied to the first 2 EXT4 partitions and the bootloader will be installed at 32KB offset (the SoC's BL1/BOOTROM wants it there). | ||
| + | |||
| + | === Custom u-boot script === | ||
| + | |||
| + | ๐ In order to have the A-B partitioning scheme, we'll need to add this script: ''rauc-utils/boot.cmd.in'' to our u-boot default environment. Feel free to study it (highly recommended)! | ||
| + | |||
| + | Use the ''rauc-utils/uboot-modify-bootcmd.sh'' script to just to this! | ||
| + | |||
| + | Then rebuild uboot (you must delete ''u-boot/.config'' and ''u-boot/flash.bin'' for our Makefile to trigger the recompilation of UBoot). | ||
| === Flashing the board === | === Flashing the board === | ||