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

Difference between revisions of "Rockpi4/partitions"

(Created page with "{{rockpi4_header}} {{Languages|rockpi4/partitions}} ROCK Pi 4 > Partitions")
 
 
Line 3: Line 3:
  
 
     [[rockpi4 | ROCK Pi 4]] > [[rockpi4/partitions | Partitions]]
 
     [[rockpi4 | ROCK Pi 4]] > [[rockpi4/partitions | Partitions]]
 +
 +
The official ROCK Pi 4 image uses GPT partition table for both Android and Linux.
 +
 +
=== Official Linux image partitions ===
 +
 +
<pre>
 +
| 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                    |
 +
</pre>
 +
 +
 +
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

Latest revision as of 03:58, 22 May 2019

    ROCK Pi 4 >  Partitions

The official ROCK Pi 4 image uses GPT partition table for both Android and Linux.

Official Linux image 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                     |


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