01-03-2020, 06:47 AM
Hi
I've read you created a partition on eMMC with GPT
This is wrong
The SD card and/or eMMC images should be (almost ?) the same
eMMC is basically a SD card on steroids, i.e. with more pin
The stage0 bootloader in the SoC needs a special layout
http://opensource.rock-chips.com/wiki_Boot_option
As you can see at the above link
As simple
should work
If you want to check the written image, zou have written with this method you must do some trickery
because dd reads by default the whole device and the image is compresses
This should work (untested) with following assumtions
- you know/remember the block count number from the first command, this will show up at the end of copy
- the copied data from the decompression has an alignment of 1M blocksize, you will not see some 'copied 1000 blocks+500'
Use $DEVICE, $IMAGE, $COUNT as appropriate
I've read you created a partition on eMMC with GPT
This is wrong
The SD card and/or eMMC images should be (almost ?) the same
eMMC is basically a SD card on steroids, i.e. with more pin
The stage0 bootloader in the SoC needs a special layout
http://opensource.rock-chips.com/wiki_Boot_option
As you can see at the above link
As simple
Code:
xzcat $IMAGE | sudo dd of=$DEVICE bs=1M
If you want to check the written image, zou have written with this method you must do some trickery
because dd reads by default the whole device and the image is compresses
Code:
xzcat $IMAGE | md5sum
dd if=$DEVICE bs=1M count=$COUNT | md5sum
This should work (untested) with following assumtions
- you know/remember the block count number from the first command, this will show up at the end of copy
- the copied data from the decompression has an alignment of 1M blocksize, you will not see some 'copied 1000 blocks+500'
Use $DEVICE, $IMAGE, $COUNT as appropriate