Open samiux opened 2 months ago
Use the parted command to get the partition numbers for the kernel and resource, then use the dd command to write resource.img and kernel.img:
$ sudo apt install parted $ sudo parted /dev/mmcblk0 print Model: SD SR32G (sd/mmc) Disk /dev/mmcblk0: 31.9GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags:
Number Start End Size File system Name Flags 1 8389kB 12.6MB 4194kB uboot 2 12.6MB 16.8MB 4194kB misc 3 16.8MB 21.0MB 4194kB dtbo 4 21.0MB 37.7MB 16.8MB resource 5 37.7MB 79.7MB 41.9MB kernel 6 79.7MB 113MB 33.6MB boot 7 113MB 147MB 33.6MB recovery 8 147MB 4173MB 4027MB ext4 rootfs 9 4173MB 31.9GB 27.7GB ext4 userdata
$ dd if=resource.img of=/dev/mmcblk0p4 bs=1M $ dd if=kernel.img of=/dev/mmcblk0p5 bs=1M
Can I only to flash the kernel partition instead of the whole system via SD to eMMC flashing? If it can, how to? Thanks.