-
Notifications
You must be signed in to change notification settings - Fork 12
SPI images MMC images
Art Nikpal edited this page Jun 18, 2018
·
2 revisions
download miZy images from https://github.com/hyphop/miZy/releases
we have SPI and MMC image types
write to SPI flash only
*.8M.bin - spi image *.16M.bin - spi image
example
wget https://github.com/hyphop/miZy/releases/download/mpd/orange-pi-h2-miZy-musicbox-mpd.SPI.16M.bin.gz
gzip -d *.bin.gz
master@master:/tmp$ hd orange-pi-h2-miZy-musicbox-mpd.SPI.16M.bin | head
00000000 0e 00 00 ea 65 47 4f 4e 2e 42 54 30 dd 40 14 3b |....eGON.BT0.@.;|
00000010 00 60 00 00 53 50 4c 01 00 00 00 00 00 00 00 00 |.`..SPL.........|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000040 16 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................|
00000050 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................|
00000060 80 00 00 00 80 00 00 00 80 00 00 00 80 00 00 00 |................|
...
write to MMC / SD only
*.MMC.hybrid.bin - sd/mmc image
wget https://github.com/hyphop/miZy/releases/download/mpd/orange-pi-h2-miZy-musicbox-mpd.MMC.hybrid.16M.8192.bin.gz
gzip -d *.bin.gz
hd orange-pi-h2-miZy-musicbox-mpd.MMC.hybrid.16M.8192.bin | head -n231 | tail
00001eb0 23 23 20 68 79 70 68 6f 70 20 23 23 20 20 20 0a |## hyphop ## .|
00001ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00002000 0e 00 00 ea 65 47 4f 4e 2e 42 54 30 dd 40 14 3b |....eGON.BT0.@.;|
00002010 00 60 00 00 53 50 4c 01 00 00 00 00 00 00 00 00 |.`..SPL.........|
00002020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00002040 16 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................|
00002050 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................|
00002060 80 00 00 00 80 00 00 00 80 00 00 00 80 00 00 00 |................|
MMC image begin from extra 8192 bytes header - we can use this space for MBR or partition table
skip header example
dd bs=8192 skip=1 count=1 < *.MMC.*bin | hd | head
1+0 records in
1+0 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 8.6447e-05 s, 94.8 MB/s
00000000 0e 00 00 ea 65 47 4f 4e 2e 42 54 30 dd 40 14 3b |....eGON.BT0.@.;|
00000010 00 60 00 00 53 50 4c 01 00 00 00 00 00 00 00 00 |.`..SPL.........|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000040 16 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................|
00000050 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................|
00000060 80 00 00 00 80 00 00 00 80 00 00 00 80 00 00 00 |................|
00000070 80 00 00 00 80 00 00 00 80 00 00 00 ef be ad de |................|
00000080 fe ff ff eb 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3 |...... ... ... .|
00000090 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3 00 f0 20 e3 |.. ... ... ... .|
convert MMC => SPI
dd bs=8192 skip=1 count=1 < *.MMC.*bin > converted.to.SPI.image.bin