-
Notifications
You must be signed in to change notification settings - Fork 12
miZy download install and overlay usage
Art Nikpal edited this page Apr 14, 2018
·
1 revision
you ca do it on host or device
source=https://github.com/hyphop/miZy/releases/download/mini-turbo
name=orange_pi_zero_miZy-mini-turbo.MMC.hybrid.8M.8192.bin
# download & unpack
curl -# -k -L $source/$name.gz | gzip -dc > /tmp/$name
# check
curl -s -k -L $source/files.md5sum | grep $name | md5sum -c
# write
dd of=/dev/mmcblk0 < /tmp/$name
# ok system is ready to start
# boot device from sd
all next listings direct copied from uart/debug console
[ 2052.692504] Restarting Linux version 3.4.113+ (root@sager) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 49975) ) #36 SMP PREEMPT Sun Jul 23 02:20:12 ICT 2017
[ 2052.692527]
U-Boot SPL 2017.01-hyphop miZy (Jul 27 2017 - 01:20:02)
DRAM: 512 MiB
Trying to boot from MMC1
U-Boot 2017.01-hyphop miZy (Jul 27 2017 - 01:20:02 +0700) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Zero
I2C: ready
DRAM: 512 MiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
** First descriptor is NOT a primary desc on 0:1 **
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
Setting bus to 0
Valid chip addresses:
Hit any key to stop autoboot: 0
** First descriptor is NOT a primary desc on 0:1 **
switch to partitions #0, OK
mmc0 is current device
MMC read: dev # 0, block # 1040, count 16 ... 16 blocks read: OK
## Executing script at 43100000
Bad data crc
gpio: pin PA17 (gpio 17) value is 1
detect boot source sd
loadenv_MMC0
env_MMC
gpio: pin PA17 (gpio 17) value is 0
loadlinux_MMC0 fdt + kernel + ramdisk
loadlinux MMC RAW
MMC read: dev # 0, block # 1168, count 128 ... 128 blocks read: OK
MMC read: dev # 0, block # 1296, count 7328 ... 7328 blocks read: OK
MMC read: dev # 0, block # 8720, count 5113 ... 5113 blocks read: OK
START linux + args:
ramdisk_size=8192 mmc_core.removable=1 hdmi.audio=EDID:0 itype=openwrt root=/dev/ram0 rw console=tty1 console=ttyS0,115200 mtdparts=W25q128-flash.0:512k(uboot),64k(script),64k(dtb),3712k(kernel),2560k(initrd),1280k(user),-@0(full) panic=10 consoleblank=0 loglevel=3 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 bootfrom=sd loadfrom=MMC0 loadseq=>MMC0 mmcparts=uboot=524288;script=65536;dtb=65536;kernel=3801088;initrd=2621440;user=1310720
## Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-3.4.113+
Image Type: ARM Linux Kernel Image (lzo compressed)
Data Size: 3751557 Bytes = 3.6 MiB
Load Address: 40008000
Entry Point: 40008000
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2617344 Bytes = 2.5 MiB
Load Address: 43300000
Entry Point: 43300000
Uncompressing Kernel Image ... OK
Using machid 0x1029 from environment
Starting kernel....
[sun8i_fixup]: From boot, get meminfo:
Start: 0x40000000
Size: 512MB
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
ion_reserve_select: ion chipid [0x2c00042!
ion_reserve_common: ion reserve: [0x57e00000, 0x60000000]!
INITRD START type: openwrt => /sbin/init.openwrt / [/sbin/init] ()
RO: SQUASHFS + RW: overlayfs
PREINIT: /etc/preinit => preinit.mizy
[PREINIT] boot_from sd / load_from MMC0
/dev/mmcblk0 0 SD SU16G platform:sunxi-mmc
- 1 - - platform:sunxi-mmc
MMC /dev/mmcblk0
[i] /tmp/user/overlay is empty
BusyBox v1.24.2 () built-in shell (ash)
http://hyphop.github.io/mizy
_ ____
_ _ (_)_ / __
/ ' '| |/ /\/ /
|_|_|_|_/ /\ /
/___/_/
tiny fast embeded linux
BASE: OpenWrt
DESIGNATED DRIVER (Bleeding Edge, 50015)
MOD: base / fast load ## hyphop ##
root@sun8i:/# BOOT_INFO: bootfrom=sd loadfrom=MMC0 loadseq=>MMC0
LOAD_TIME: uboot 1.206 + system 5.39 ( kernel 1.41 )
[ 6.078697] Disabling IRQ #105
root@miZy:/# overlay save -f
[i] force mode
rsync -av --delete --inplace /overlay /tmp/user
[i] /dev/mtdblock7 /tmp/user.MMC jffs2 ro,noatime 0 0
[w] /tmp/user mounted as read only
[i] force mode / remount ro to rw /tmp/user.MMC
sending incremental file list
overlay/
sent 61 bytes received 20 bytes 162.00 bytes/sec
total size is 0 speedup is 0.00
[i] force mode / remount rw to ro /tmp/user.MMC
ok its work ! and ready for copy to SPI
root@miZy:/# image_copy_sd_spi yes
cat: can't open '/sys/block/mmcblk1/device/type': No such file or directory
[i] sd /dev/mmcblk0 mmc
[i] copy from /dev/mmcblk0 to /dev/mtdblock6
dd if=/dev/mmcblk0 count=1 skip=1
## FOUND mizy hybrid image info:
8388608
orange_pi_zero_miZy-mini-turbo.MMC.hybrid.8M.8192.bin
miZy_spi_image_builder Fri Jul 28 14:33:46 2017 ## hyphop ##
## WRITE IMAGE CMD:
> dd if=/dev/mmcblk0 skip=1 bs=8192 count=1024 of=/dev/mtdblock6
1024+0 records in
1024+0 records out
8388608 bytes (8.0MB) copied, 51.609583 seconds, 158.7KB/s
root@miZy:/#
root@miZy:/# reboot
root@miZy:/# [ 224.398817] Restarting system.
[ 224.402376] Restarting Linux version 3.4.113+ (root@sager) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 49975) ) #36 SMP PREEMPT Sun Jul 23 02:20:12 ICT 2017
[ 224.402398]
U-Boot SPL 2017.01-hyphop miZy (Jul 27 2017 - 01:20:02)
DRAM: 512 MiB
Trying to boot from sunxi SPI
U-Boot 2017.01-hyphop miZy (Jul 27 2017 - 01:20:02 +0700) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Zero
I2C: ready
DRAM: 512 MiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
MMC: no card present
*** Warning - MMC init failed, using default environment
In: serial
Out: serial
Err: serial
Net: phy interface0
eth0: ethernet@1c30000
Setting bus to 0
Valid chip addresses:
Hit any key to stop autoboot: 0
SPI readed 8192 bytes from 524288 offset, time 0.004
## Executing script at 43100000
Bad data crc
gpio: pin PA17 (gpio 17) value is 1
detect boot source spi
loadenv_spi
gpio: pin PA17 (gpio 17) value is 0
loadlinux_spi fdt + kernel + ramdisk
loadlinux spi
SPI readed 65536 bytes from 589824 offset, time 0.035
SPI readed 3751621 bytes from 655360 offset, time 2.005
SPI readed 2617408 bytes from 4456448 offset, time 1.399
START linux + args:
ramdisk_size=8192 mmc_core.removable=1 hdmi.audio=EDID:0 itype=openwrt root=/dev/ram0 rw console=tty1 console=ttyS0,115200 mtdparts=W25q128-flash.0:512k(uboot),64k(script),64k(dtb),3712k(kernel),2560k(initrd),1280k(user),-@0(full) panic=10 consoleblank=0 loglevel=3 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 bootfrom=spi loadfrom=spi loadseq=>spi mmcparts=uboot=524288;script=65536;dtb=65536;kernel=3801088;initrd=2621440;user=1310720
## Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-3.4.113+
Image Type: ARM Linux Kernel Image (lzo compressed)
Data Size: 3751557 Bytes = 3.6 MiB
Load Address: 40008000
Entry Point: 40008000
## Loading init Ramdisk from Legacy Image at 43300000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2617344 Bytes = 2.5 MiB
Load Address: 43300000
Entry Point: 43300000
Uncompressing Kernel Image ... OK
Using machid 0x1029 from environment
Starting kernel....
[sun8i_fixup]: From boot, get meminfo:
Start: 0x40000000
Size: 512MB
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
ion_reserve_select: ion chipid [0x2c00042!
ion_reserve_common: ion reserve: [0x57e00000, 0x60000000]!
INITRD START type: openwrt => /sbin/init.openwrt / [/sbin/init] ()
RO: SQUASHFS + RW: overlayfs
PREINIT: /etc/preinit => preinit.mizy
[PREINIT] boot_from spi / load_from spi
- 0 - - platform:sunxi-mmc
- 1 - - platform:sunxi-mmc
spi
[i] /tmp/user/overlay is empty
BusyBox v1.24.2 () built-in shell (ash)
http://hyphop.github.io/mizy
_ ____
_ _ (_)_ / __
/ ' '| |/ /\/ /
|_|_|_|_/ /\ /
/___/_/
tiny fast embeded linux
BASE: OpenWrt
DESIGNATED DRIVER (Bleeding Edge, 50015)
MOD: base / fast load ## hyphop ##
root@sun8i:/# ovBOOT_INFO: bootfrom=spi loadfrom=spi loadseq=>spi
LOAD_TIME: uboot 4.014 + system 5.14 ( kernel 1.40 )
ok
root@miZy:/# echo "make some changes" > /root/file.txt
root@miZy:/# overlay save -f
rsync -av --delete --inplace /overlay /tmp/user
[i] /dev/mtdblock5 /tmp/user.spi jffs2 ro,noatime 0 0
[w] /tmp/user mounted as read only
[i] force mode / remount ro to rw /tmp/user.spi
sending incremental file list
overlay/root/
overlay/root/file.txt
sent 184 bytes received 44 bytes 456.00 bytes/sec
total size is 18 speedup is 0.08
[i] force mode / remount rw to ro /tmp/user.spi
root@miZy:/# reboot
root@miZy:/# [ 558.419044] Restarting system.
....
root@miZy:/# cat /root/file.txt
make some changes
root@miZy:/#
ok well done