This shows you the differences between two versions of the page.
ass:labs-2025:04:tasks:01 [2025/08/07 12:37] florin.stancu |
ass:labs-2025:04:tasks:01 [2025/08/07 20:54] (current) florin.stancu |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== 01. Preparations ==== | ==== 01. Preparations ==== | ||
- | Download here (WIP) the starter archive containing skeleton files + scripts. | + | {{:ass:labs-2025:04:rauc-lab-skel.tar.gz|Download here the starter archive}} containing skeleton files + scripts. |
- | Extract it somewhere in your working directory (it already contains a parent directory named ''rauc-lab'', so you can do this directly in your home!). | + | Extract it somewhere in a new directory (e.g., create ''rauc-lab''). |
The code structure will become (mostly is, but some are TODO) as follows: | The code structure will become (mostly is, but some are TODO) as follows: | ||
Line 11: | Line 11: | ||
├── artifacts/ # <-- you'll create this | ├── artifacts/ # <-- you'll create this | ||
│ ├── flash_spl.bin # A working flash.bin image you already have | │ ├── flash_spl.bin # A working flash.bin image you already have | ||
+ | │ ├── flash_emmc.bin # Your new flash.bin (see tasks) | ||
│ ├── linux.itb # A kernel image (after removing the initrd) | │ ├── linux.itb # A kernel image (after removing the initrd) | ||
│ ├── uboot.env # U-Boot environment variables (just the var file) | │ ├── uboot.env # U-Boot environment variables (just the var file) | ||
Line 18: | Line 19: | ||
│ ├── system.conf | │ ├── system.conf | ||
│ └── fstab # Optional custom fstab | │ └── fstab # Optional custom fstab | ||
- | ├── scripts/ # <-- you're main job to finish those! | + | ├── scripts/ # <-- your main job to finish those! |
- | │ ├── 00-create-base-disk.sh | + | │ ├── 05-debootstrap.sh |
- | │ ├── 01-populate-base-disk.sh | + | │ ├── 10-create-base-disk.sh |
- | │ ├── 05-modify-bootcmd.sh | + | │ ├── 11-populate-disk-image.sh |
- | │ ├── 10-install-kernel-env.sh | + | │ ├── 20-modify-bootcmd.sh |
- | │ └── 15-install-rauc.sh | + | │ ├── 21-install-boot.sh |
+ | │ └── 30-install-rauc.sh | ||
├── run-all.sh # Will run all scripts in order | ├── run-all.sh # Will run all scripts in order | ||
</code> | </code> | ||
Line 52: | Line 54: | ||
For Arch Linux users: check out [[https://wiki.archlinux.org/title/QEMU#Chrooting_into_arm/arm64_environment_from_x86_64|this guide for installable dependencies]]! | For Arch Linux users: check out [[https://wiki.archlinux.org/title/QEMU#Chrooting_into_arm/arm64_environment_from_x86_64|this guide for installable dependencies]]! | ||
- | = | + |