Difference between revisions of "RockpiS/partitions"
< RockpiS
(Created page with "{{rockpiS_header}} {{Languages|rockpiS/partitions}} ROCK Pi S > Partitions The official ROCK Pi S image uses GPT partition table f...") |
|||
Line 7: | Line 7: | ||
=== Official Linux image partitions === | === Official Linux image partitions === | ||
+ | |||
+ | ROCK Pi S system image, which is generated Before December 18, 2019, includes five partitions. | ||
<pre> | <pre> | ||
Line 18: | Line 20: | ||
</pre> | </pre> | ||
+ | ROCK Pi S system image, which is generated after December 18, 2019, includes two partitions. | ||
+ | |||
+ | <pre> | ||
+ | | 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 | | ||
+ | </pre> | ||
Offset when writing using '''dd''' | Offset when writing using '''dd''' | ||
Line 26: | Line 39: | ||
dd if=boot.img of=/dev/sdx seek=32768 | dd if=boot.img of=/dev/sdx seek=32768 | ||
dd if=rootfs.img of=/dev/sdx seek=262144 | 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 |
Latest revision as of 07:55, 31 December 2019
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