Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

RockpiS/partitions

< RockpiS
Revision as of 07:55, 31 December 2019 by Stephen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK Pi S >  Partitions

The official ROCK Pi S image uses GPT partition table for Linux.

Official Linux image partitions

ROCK Pi S system image, which is generated Before December 18, 2019, includes five partitions.

| Part Number | Offset | Name    | Description                |
| ----------- | ------ | ------- | -------------------------- |
| 1           | 32KB   | loader1 | First stage loader         |
| 2           | 8MB    | loader2 | U-boot image               |
| 3           | 12MB   | trust   | ATF                        |
| 4           | 16MB   | boot    | Kernel partition, bootable |
| 5           | 128MB  | rootfs  | Rootfs                     |

ROCK Pi S system image, which is generated after December 18, 2019, includes two partitions.

| Part Number | Offset | Name    | Description                |
| ----------- | ------ | ------- | -------------------------- |
|             | 32KB   | loader1 | First stage loader         |
|             | 8MB    | loader2 | U-boot image               |
|             | 12MB   | trust   | ATF                        |
| 1           | 16MB   | boot    | Kernel partition, bootable |
| 2           | 128MB  | rootfs  | Rootfs                     |

Offset when writing using dd

   dd if=idbloader.img   of=/dev/sdx seek=64
   dd if=uboot.img       of=/dev/sdx seek=16384 
   dd if=trust.img       of=/dev/sdx seek=24576 
   dd if=boot.img        of=/dev/sdx seek=32768 
   dd if=rootfs.img      of=/dev/sdx seek=262144

Take u-boot update as an example.

 dd if=uboot.img of=/dev/mmcblk0 bs=512 seek=16384