24 lines
1.1 KiB
Bash
24 lines
1.1 KiB
Bash
|
|
gpt_idbloader=(64 8063) # 4MiB 8192
|
|
gpt_uboot=(16384 24575) # 8MiB 16384
|
|
gpt_trust=(24576 32767) # 12MiB 24575
|
|
gpt_boot=(32768 229376) # 16MiB 32768
|
|
gpt_root=(262144) # 128MiB 262144 expanded to use remaining space.
|
|
|
|
ls *.img
|
|
loopdevice=${PWD}/decode-1.0.0-arm64.img
|
|
cgpt show ${loopdevice}
|
|
echo "sudo dd if=idbloader.img bs=512 seek=${gpt_idbloader[0]} of="${loopdevice}" status=none conv=notrunc"
|
|
sudo dd if=idbloader.img bs=512 seek=${gpt_idbloader[0]} of="${loopdevice}" status=none conv=notrunc status=progress
|
|
|
|
echo sudo dd if=idbloader.img bs=512 seek=${gpt_idbloader[0]} of="${loopdevice}" status=none conv=notrunc status=progress
|
|
|
|
echo "sudo dd if=uboot.img bs=512 seek=${gpt_uboot[0]} of="${loopdevice}" status=none conv=notrunc"
|
|
sudo dd if=uboot.img bs=512 seek=${gpt_uboot[0]} of="${loopdevice}" status=none conv=notrunc status=progress
|
|
|
|
echo "sudo dd if=trust.img bs=512 seek=${gpt_trust[0]} of="${loopdevice}" status=none conv=notrunc"
|
|
sudo dd if=trust.img bs=512 seek=${gpt_trust[0]} of="${loopdevice}" status=none conv=notrunc status=progress
|
|
|
|
cgpt show ${loopdevice}
|
|
|