Sorry for the noob question, I am just trying to learn a little more about this subject. I am asking this question specifically for NanoPi devices (which I own and I am using with OpenWrt), but I believe it would be applicable to all Rockchip devices.
Looking at the SD card from a NanoPi (in this case an R6S with OpenWrt 24.10.1 official, custom build, squashfs), I am seeing two partitions:
mmcblk0 179:96 0 29.7G 0 disk
├─mmcblk0p1 179:97 0 16M 0 part
└─mmcblk0p2 179:98 0 512M 0 part /rom
Executing a cat /proc/mtd
returns nothing (I assume as expected, since the NanoPi is not an mtd device).
Looking at OpenWrt "NOR flash partitioning" wiki, I understand that potentially the two partitions in the SD card would map to (at Layer 1 level):
- mmcblk0p1: u-boot
- mmcblk0p2: OpenWrt firmware image (which would include kernel, rootfs and rootfs_data, but I am not sure/don't know).
However, reading manufacturer's documentation (such as for the NanoPi R3S), it mentions these devices use GPT partitioning schema.
Below is the partition list for an R4S OEM FriednlyWrt image just as an example:
mmcblk1 179:0 0 29.7G 0 disk
├─mmcblk1p1 179:1 0 4M 0 part # u-boot?
├─mmcblk1p2 179:2 0 4M 0 part # trust?
├─mmcblk1p3 179:3 0 4M 0 part # misc?
├─mmcblk1p4 179:4 0 4M 0 part # dtbo?
├─mmcblk1p5 179:5 0 16M 0 part # resource?
├─mmcblk1p6 179:6 0 40M 0 part # kernel?
├─mmcblk1p7 179:7 0 48M 0 part # boot?
├─mmcblk1p8 179:8 0 1G 0 part # rootfs?
├─mmcblk1p9 179:9 0 1G 0 part # userdata?
└─mmcblk1p10 179:10 0 685M 0 part # ???
Questions:
- Does OpenWrt use GPT partition schema for Rockchip devices (within
mmcblk0p2
)? - Is there any documentation about the partition schema of the OpenWrt NanoPi Rockchip images? If not, maybe wiki "The OpenWrt Flash Layout" could be updated to include flash layout for Rockchip images (and also perhaps for RaspberryPi and x86 images)
- Is there any build script or similar I can read to better understand how the OpenWrt NanoPi Rockchip images are created?
Thanks.