WorkingTipsOnRPI4Android
Aug 11, 2021
Technology
flash
Create a new partition:
Create new unkown partitions, then a userdata partition:
Layout:
p1: 128MB for boot (fat32, boot & lba)
p2: 768MB for /system
p3: 128MB for /vendor
p4: remainings for /data (ext4)
Manage flags:
Final layout:
Write steps
Write via following steps:
➜ ~ cd rpi4
➜ rpi4 ls
bcm2711-rpi-4-b.dtb boot ramdisk.img system.img vc4-kms-v3d-pi4.dtbo vendor.img zImage
➜ rpi4 sudo dd if=system.img of=/dev/sdb2 bs=1M
768+0 records in
768+0 records out
805306368 bytes (805 MB, 768 MiB) copied, 12.812 s, 62.9 MB/s
➜ rpi4 sudo dd if=vendor.img of=/dev/sdb3 bs=1M
128+0 records in
128+0 records out
134217728 bytes (134 MB, 128 MiB) copied, 2.25087 s, 59.6 MB/s
➜ rpi4 sudo mount /dev/sdb1 /mnt
➜ rpi4 sudo cp boot/* /mnt
➜ rpi4 sudo cp zImage bcm2711-rpi-4-b.dtb ramdisk.img /mnt
➜ rpi4 sudo mkdir /mnt/overlays
➜ rpi4 sudo cp vc4-kms-v3d-pi4.dtbo /mnt/overlays
➜ rpi4 sudo sync