[yocto] [meta-rockchip][PATCH v2 2/4] rockchip.wks: add all Rockchip partitions
Rockchip defines the expected layout/map of the default storage device. Fill out the wks description so it matches. https://opensource.rock-chips.com/wiki_Partitions Note: in the Rockchip layout, not all partitions are expected to show up in the gpt partition table. This patch uses "--no-table" to only number the partitions that are numbered in the Rockchip wiki, as well as to give these partitions the partition numbers indicated in the wiki. Note: there is a mistake in the Rockchip table (which I've copied verbatim here). Going by the values of the "Start Sector", the size of the "reserved1" partition is listed as being 2x its actual size/number of sectors. Expected: Partition Start Sector Number of SectorsPartition Size PartNum in GPTRequirements MBR 0 1 0001 512 0.5KB Primary GPT 1 000163 003F 32256 31.5KB loader1 64 004071041bc0 4096000 2.5MB 1 preloader (miniloader or U-Boot SPL) Vendor Storage 7168 1c00512 0200 262144256KB SN, MAC and etc. Reserved Space 7680 1e00384 0180 196608192KB Not used reserved1 8064 1f80128 0080 65536 64KB legacy DRM key U-Boot ENV 8128 1fc064 0040 32768 32KB reserved2 8192 200081922000 4194304 4MB legacy parameter loader2 16384 400081922000 4194304 4MB 2 U-Boot or UEFI trust 24576 600081922000 4194304 4MB 3 trusted-os like ATF, OP-TEE boot32768 8000229376 00038000 117440512 112MB 4 kernel, dtb, extlinux.conf, ramdisk rootfs 262144 0004- -- -MB 5 Linux system Prior to this patch: # fdisk -l /dev/mmcblk1 GPT PMBR size mismatch (1504727 != 30375935) will be corrected by write. The backup GPT table is not on the end of the device. Disk /dev/mmcblk1: 14.48 GiB, 15552479232 bytes, 30375936 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: ----4D9B9EF0 Device Start End Sectors Size Type /dev/mmcblk1p1 6480638000 3.9M Microsoft basic data /dev/mmcblk1p2 80648191 12864K Microsoft basic data /dev/mmcblk1p3 8192 163838192 4M Microsoft basic data /dev/mmcblk1p4 16384 245758192 4M Microsoft basic data /dev/mmcblk1p5 24576 327678192 4M Microsoft basic data /dev/mmcblk1p6 32768 330955 298188 145.6M Microsoft basic data /dev/mmcblk1p7 330956 1504693 1173738 573.1M Linux filesystem New: # fdisk -l /dev/mmcblk1 GPT PMBR size mismatch (1504727 != 30375935) will be corrected by write. The backup GPT table is not on the end of the device. Disk /dev/mmcblk1: 14.48 GiB, 15552479232 bytes, 30375936 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: ----4D9B9EF0 Device Start End Sectors Size Type /dev/mmcblk1p1 6471677104 3.5M Linux filesystem /dev/mmcblk1p2 16384 245758192 4M Linux filesystem /dev/mmcblk1p3 24576 327678192 4M Linux filesystem /dev/mmcblk1p4 32768 330955 298188 145.6M Microsoft basic data /dev/mmcblk1p5 330956 1504693 1173738 573.1M Linux filesystem Signed-off-by: Trevor Woerner --- changes in v2: - expand the commit message to show past, expected, and new behaviour - spell out that vstorage stands for "vendor storage" --- wic/rockchip.wks | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/wic/rockchip.wks b/wic/rockchip.wks index b14ec0d1690a..034443d90050 100644 --- a/wic/rockchip.wks +++ b/wic/rockchip.wks @@ -9,17 +9,23 @@ # wic uses 1KB blocks. The following table uses 512 byte sectors: # # Partition Start SectorNumber of Sectors -# loader1 64 8000(idbloader / U-Boot SPL) -# reserved1 8064128 -# reserved2 81928192 +# loader1 64 7104(idbloader / U-Boot SPL) +# vstorage7168512 (vendor storage: e
Re: [yocto] [meta-rockchip][PATCH v2 2/4] rockchip.wks: add all Rockchip partitions
Hi Trevor, On 2/16/24 09:29, Trevor Woerner via lists.yoctoproject.org wrote: Rockchip defines the expected layout/map of the default storage device. Fill out the wks description so it matches. https://opensource.rock-chips.com/wiki_Partitions Note: in the Rockchip layout, not all partitions are expected to show up in the gpt partition table. This patch uses "--no-table" to only number the partitions that are numbered in the Rockchip wiki, as well as to give these partitions the partition numbers indicated in the wiki. Note: there is a mistake in the Rockchip table (which I've copied verbatim here). Going by the values of the "Start Sector", the size of the "reserved1" partition is listed as being 2x its actual size/number of sectors. Expected: Partition Start Sector Number of SectorsPartition Size PartNum in GPTRequirements MBR 0 1 0001 512 0.5KB Primary GPT 1 000163 003F 32256 31.5KB loader1 64 004071041bc0 4096000 2.5MB 1 preloader (miniloader or U-Boot SPL) Vendor Storage 7168 1c00512 0200 262144256KB SN, MAC and etc. Reserved Space 7680 1e00384 0180 196608192KB Not used reserved1 8064 1f80128 0080 65536 64KB legacy DRM key U-Boot ENV 8128 1fc064 0040 32768 32KB reserved2 8192 200081922000 4194304 4MB legacy parameter loader2 16384 400081922000 4194304 4MB 2 U-Boot or UEFI trust 24576 600081922000 4194304 4MB 3 trusted-os like ATF, OP-TEE boot32768 8000229376 00038000 117440512 112MB 4 kernel, dtb, extlinux.conf, ramdisk rootfs 262144 0004- -- -MB 5 Linux system Prior to this patch: # fdisk -l /dev/mmcblk1 GPT PMBR size mismatch (1504727 != 30375935) will be corrected by write. The backup GPT table is not on the end of the device. Disk /dev/mmcblk1: 14.48 GiB, 15552479232 bytes, 30375936 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: ----4D9B9EF0 Device Start End Sectors Size Type /dev/mmcblk1p1 6480638000 3.9M Microsoft basic data /dev/mmcblk1p2 80648191 12864K Microsoft basic data /dev/mmcblk1p3 8192 163838192 4M Microsoft basic data /dev/mmcblk1p4 16384 245758192 4M Microsoft basic data /dev/mmcblk1p5 24576 327678192 4M Microsoft basic data /dev/mmcblk1p6 32768 330955 298188 145.6M Microsoft basic data /dev/mmcblk1p7 330956 1504693 1173738 573.1M Linux filesystem New: # fdisk -l /dev/mmcblk1 GPT PMBR size mismatch (1504727 != 30375935) will be corrected by write. The backup GPT table is not on the end of the device. Disk /dev/mmcblk1: 14.48 GiB, 15552479232 bytes, 30375936 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: ----4D9B9EF0 Device Start End Sectors Size Type /dev/mmcblk1p1 6471677104 3.5M Linux filesystem /dev/mmcblk1p2 16384 245758192 4M Linux filesystem /dev/mmcblk1p3 24576 327678192 4M Linux filesystem /dev/mmcblk1p4 32768 330955 298188 145.6M Microsoft basic data /dev/mmcblk1p5 330956 1504693 1173738 573.1M Linux filesystem Signed-off-by: Trevor Woerner --- changes in v2: - expand the commit message to show past, expected, and new behaviour - spell out that vstorage stands for "vendor storage" --- wic/rockchip.wks | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/wic/rockchip.wks b/wic/rockchip.wks index b14ec0d1690a..034443d90050 100644 --- a/wic/rockchip.wks +++ b/wic/rockchip.wks @@ -9,17 +9,23 @@ # wic uses 1KB blocks. The following table uses 512 byte sectors: # # Partition Start SectorNumber of Sectors -# loader1 64 8000(idbloader / U-Boot SPL) -# reserved1 8064128 -# reserved2 81928192 +# loader1 64 7104(i
Re: [yocto] [meta-rockchip][PATCH v2 2/4] rockchip.wks: add all Rockchip partitions
On Fri, Feb 16, 2024 at 04:29 PM, Trevor Woerner wrote: > > +# atf 24576 8192 (trusted OS e.g. ATR, OP-TEE, etc) Is it a typo? Use ATF instead of ATR? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62527): https://lists.yoctoproject.org/g/yocto/message/62527 Mute This Topic: https://lists.yoctoproject.org/mt/104389369/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] [meta-rockchip][PATCH v2 2/4] rockchip.wks: add all Rockchip partitions
On Sat 2024-02-17 @ 06:58:27 AM, Stephen Chen wrote: > On Fri, Feb 16, 2024 at 04:29 PM, Trevor Woerner wrote: > > > > > +# atf 24576 8192 (trusted OS e.g. ATR, OP-TEE, etc) > > Is it a typo? Use ATF instead of ATR? Oops yes! Good catch, thank you. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62528): https://lists.yoctoproject.org/g/yocto/message/62528 Mute This Topic: https://lists.yoctoproject.org/mt/104389369/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] [meta-rockchip][PATCH v2 2/4] rockchip.wks: add all Rockchip partitions
On Fri 2024-02-16 @ 10:48:59 AM, Quentin Schulz wrote: > Hi Trevor, > > On 2/16/24 09:29, Trevor Woerner via lists.yoctoproject.org wrote: > > Rockchip defines the expected layout/map of the default storage device. > > Fill out the wks description so it matches. > > > > https://opensource.rock-chips.com/wiki_Partitions > > > > Note: in the Rockchip layout, not all partitions are expected to show up > > in the gpt partition table. This patch uses "--no-table" to only number the > > partitions that are numbered in the Rockchip wiki, as well as to give these > > partitions the partition numbers indicated in the wiki. > > > > Note: there is a mistake in the Rockchip table (which I've copied > > verbatim here). Going by the values of the "Start Sector", the size of > > the "reserved1" partition is listed as being 2x its actual size/number of > > sectors. > > > > Expected: > > Partition Start Sector Number of SectorsPartition Size > >PartNum in GPTRequirements > > MBR 0 1 0001 512 0.5KB > > Primary GPT 1 000163 003F 32256 31.5KB > > loader1 64 004071041bc0 4096000 2.5MB > >1 preloader (miniloader or U-Boot SPL) > > Vendor Storage 7168 1c00512 0200 262144256KB > > SN, MAC and etc. > > Reserved Space 7680 1e00384 0180 196608192KB > > Not used > > reserved1 8064 1f80128 0080 65536 64KB > > legacy DRM key > > U-Boot ENV 8128 1fc064 0040 32768 32KB > > reserved2 8192 200081922000 4194304 4MB > > legacy parameter > > loader2 16384 400081922000 4194304 4MB > >2 U-Boot or UEFI > > trust 24576 600081922000 4194304 4MB > >3 trusted-os like ATF, OP-TEE > > boot32768 8000229376 00038000 117440512 112MB > >4 kernel, dtb, extlinux.conf, ramdisk > > rootfs 262144 0004- -- -MB > >5 Linux system > > > > Prior to this patch: > > # fdisk -l /dev/mmcblk1 > > GPT PMBR size mismatch (1504727 != 30375935) will be corrected by write. > > The backup GPT table is not on the end of the device. > > Disk /dev/mmcblk1: 14.48 GiB, 15552479232 bytes, 30375936 sectors > > Units: sectors of 1 * 512 = 512 bytes > > Sector size (logical/physical): 512 bytes / 512 bytes > > I/O size (minimum/optimal): 512 bytes / 512 bytes > > Disklabel type: gpt > > Disk identifier: ----4D9B9EF0 > > > > Device Start End Sectors Size Type > > /dev/mmcblk1p1 6480638000 3.9M Microsoft basic data > > /dev/mmcblk1p2 80648191 12864K Microsoft basic data > > /dev/mmcblk1p3 8192 163838192 4M Microsoft basic data > > /dev/mmcblk1p4 16384 245758192 4M Microsoft basic data > > /dev/mmcblk1p5 24576 327678192 4M Microsoft basic data > > /dev/mmcblk1p6 32768 330955 298188 145.6M Microsoft basic data > > /dev/mmcblk1p7 330956 1504693 1173738 573.1M Linux filesystem > > > > New: > > # fdisk -l /dev/mmcblk1 > > GPT PMBR size mismatch (1504727 != 30375935) will be corrected by write. > > The backup GPT table is not on the end of the device. > > Disk /dev/mmcblk1: 14.48 GiB, 15552479232 bytes, 30375936 sectors > > Units: sectors of 1 * 512 = 512 bytes > > Sector size (logical/physical): 512 bytes / 512 bytes > > I/O size (minimum/optimal): 512 bytes / 512 bytes > > Disklabel type: gpt > > Disk identifier: ----4D9B9EF0 > > > > Device Start End Sectors Size Type > > /dev/mmcblk1p1 6471677104 3.5M Linux filesystem > > /dev/mmcblk1p2 16384 245758192 4M Linux filesystem > > /dev/mmcblk1p3 24576 327678192 4M Linux filesystem > > /dev/mmcblk1p4 32768 330955 298188 145.6M Microsoft basic data > > /dev/mmcblk1p5 330956 1504693 1173738 573.1M Linux filesystem > > > > Signed-off-by: Trevor Woerner > > --- > > changes in v2: > > - expand the commit message to show past, expected, and new behaviour > > - spell out that vstorage stands for "vendor storage" > > --- > > wic/rockchip.wks | 20 +--- > > 1 file changed, 13 insertions(+), 7 deletions(-) > > > > diff --git a/wic/rockchip.wks b/wic/rockchip.wks > > index b14ec0d1690a..034443d90050 100644 > > --- a/wic/rockchip.wks > > +++ b/wic/rockchip.wks > > @@ -9,17 +9,23 @@ > > # wic uses 1KB blocks. The following table uses 512 byte sectors: >