orangepi-xunlong / orangepi-build

Orange Pi build for H2+, H3, H5, H6, H616, RK3328, RK3399 and RK3588(s)
http://www.orangepi.cn/
GNU General Public License v2.0
687 stars 289 forks source link

Rockchip64 image is miss aligned #113

Open kkkon opened 10 months ago

kkkon commented 10 months ago

Please consider to change offset value from 30 to 32 Current Value 30 is miss aligned

external/config/sources/families/include/rockchip64_common.inc

OFFSET=30

root@orangepir1plus-lts:~# /sbin/fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 28.8 GiB, 30924603392 bytes, 60399616 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: dos
Disk identifier: 0xdaa92e3f

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      61440 59795615 59734176 28.5G 83 Linux
root@orangepir1plus-lts:~# lsblk --discard --ascii /dev/mmcblk0
NAME        DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
mmcblk0            0        4M     228M         0
`-mmcblk0p1  2097152        4M     228M         0

OFFSET=32

root@orangepir1plus-lts:~# /sbin/fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 28.8 GiB, 30924603392 bytes, 60399616 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: dos
Disk identifier: 0x8abcd114

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      65536 59795615 59730080 28.5G 83 Linux
root@orangepir1plus-lts:~# lsblk --discard --ascii /dev/mmcblk0
NAME        DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
mmcblk0            0        4M     228M         0
`-mmcblk0p1        0        4M     228M         0