$ bash gensdimg.sh
===> Create raw disk image
2097152+0 records in
2097152+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 155.641 s, 55.2 MB/s
===> Clean existing partition table
Creating new GPT entries.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
128+0 records in
128+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0.00142816 s, 367 MB/s
4096+0 records in
4096+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 0.209724 s, 80.0 MB/s
===> Add partitions
bootloader-sd.img: size=1966080
bootloader-sd.img: partition offset=131072
Creating new GPT entries.
Setting name!
partNum is 0
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
480+0 records in
480+0 records out
1966080 bytes (2.0 MB, 1.9 MiB) copied, 0.139539 s, 14.1 MB/s
env.img: size=262144
env.img: partition offset=2097152
Setting name!
partNum is 1
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
64+0 records in
64+0 records out
262144 bytes (262 kB, 256 KiB) copied, 0.0382005 s, 6.9 MB/s
boot.img: size=25165824
boot.img: partition offset=3145728
Setting name!
partNum is 2
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
6144+0 records in
6144+0 records out
25165824 bytes (25 MB, 24 MiB) copied, 0.99076 s, 25.4 MB/s
misc.img: size=524288
misc.img: partition offset=28311552
Setting name!
partNum is 3
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
128+0 records in
128+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0.0025216 s, 208 MB/s
boot.img: size=25165824
boot.img: partition offset=29360128
Setting name!
partNum is 4
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
6144+0 records in
6144+0 records out
25165824 bytes (25 MB, 24 MiB) copied, 0.047663 s, 528 MB/s
boot_dtbo.img: size=42037
boot_dtbo.img: partition offset=54525952
Setting name!
partNum is 5
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
10+0 records in
10+0 records out
40960 bytes (41 kB, 40 KiB) copied, 0.017471 s, 2.3 MB/s
metadata.img: size=16777216
metadata.img: partition offset=55574528
Setting name!
partNum is 6
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
4096+0 records in
4096+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 0.0375812 s, 446 MB/s
super.img: size=1258291200
super.img: partition offset=72351744
Setting name!
partNum is 7
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
307200+0 records in
307200+0 records out
1258291200 bytes (1.3 GB, 1.2 GiB) copied, 68.6094 s, 18.3 MB/s
stat: cannot stat 'vbmeta.img': No such file or directory
vbmeta.img: size=
vbmeta.img: partition offset=1330642944
Could not create partition 9 from 2598912 to 2598911
Setting name!
partNum is 8
REALLY setting name!
Unable to set partition 9's name to 'vbmeta'!
Error encountered; not saving changes.
dd: failed to open 'vbmeta.img': No such file or directory
metadata.img: size=16777216
metadata.img: partition offset=1330642944
Setting name!
partNum is 9
REALLY setting name!
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
4096+0 records in
4096+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 0.260703 s, 64.4 MB/s



