Thanks!
Yes it became obvious as soon as saw your reply. I somehow didnt see the assigment sign.
Now I dont understand the difference between the card layout and partitioning:
SD card layout:
start size usage
0 8KB Unused, available for partition table etc.
8 24KB Initial SPL loader
32 512KB u-boot
544 128KB environment
672 352KB reserved
1024 - Free for partitions
first the first part of the card is erased:
dd if=/dev/zero of=${card} bs=1M count=1
then the bootloader is added:
dd if=spl/sunxi-spl.bin of=${card} bs=1024 seek=8
dd if=u-boot.img of=${card} bs=1024 seek=40
Why seek=40 if it should start at 32 as stated in the SD card layout above?
And then finaly partitioning is made like this:
sfdisk -R ${card}
cat <<EOT | sfdisk --in-order -uM ${card}
1,16,c
,,L
EOT
Which I dont understand at all..
Does somebody have any ideas what is happening behind these commands?
Thanks,
Miha
|