nand: one layout, the kernel inside the root filesystem - #581
Conversation
The NAND page described three layouts. Two of them set flash aside for a kernel, and the u-boot-xmedia SoCs have since moved to one layout without it: - one UBI device from 1 MiB; - a UBIFS rootfs with the kernel inside as /boot/fitImage; - both volumes sized by their images. The page now covers: - that layout; - how sysupgrade upgrades it: settings copied out, volumes rebuilt around the new image, settings restored, or the run stops with nothing written; - installing it from U-Boot with `nand erase.part ubi` and `nand write.trimffs`; - what the bootloader does with an environment saved by an earlier one; - the layouts it retires, and which SoCs no longer get NAND builds. The section on building a NAND package stays, with its table updated and the 24 MiB limit on these SoCs.
PR Summary by QodoDocument the unified NAND layout with the kernel in rootfs
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. NAND installation can leave no image to boot
|
… empties the settings Review on #581: the NAND page called `sysupgrade -r -n` an upgrade without the settings, while sysupgrade.md said -n writes no firmware. Both are true. -n on its own only empties the overlay; added to an upgrade, it upgrades and the new firmware starts with an empty overlay. Both pages now say which case they mean.
…org do Also stops claiming that loading the bootloader into RAM changes nothing. It keeps the camera's boot command, but it may still save the small env fixes it makes (bootm_size, verify, a missing ubi partition).
Rewrites
en/nand-rootfs-layouts.mdfor the NAND layout the u-boot-xmedia SoCs now use: GK7205V500/V510/V530, Hi3516EV200/EV300/DV200 and Hi3518EV300. The table-of-contents entry becomes "NAND flash layouts".The layout
/boot/fitImage, hashed and checked by U-Boot.rootfs_datafor the settings.What the page covers
-r -nupgrades without the settings;nand erase.part ubi, so any chip size is erased fully;nand write.trimffs, and why (#2519).Matches OpenIPC/u-boot-xmedia#11 and #12, OpenIPC/firmware#2537, OpenIPC/website#392 and #393, and OpenIPC/defib#147.