orange_pi_h2_h3_miZy-music-box-mpd-net-SPI-pre
Pre-release
Pre-release
updated: Tue Feb 20 11:19:38 ICT 2018
DEVICES: orange pi zero - h2
DEVICES: orange pi R1 - r1
MOD: miZy musicbox
alsa + ffmpeg + mpd + mpc + wifi + net + ir
*.MMC.hybrid.bin - sd/mmc write only
*.8M.bin - spi image
*.16M.bin - spi image
Image size
use *8M only for 8M spi usage
prefer *16M !!!
download image example
cd /tmp
wget https://github.com/hyphop/miZy/releases/download/mpd/orange-pi-h2-miZy-musicbox-mpd.MMC.hybrid.8M.8192.bin.gz
gzip -d *.8192.bin.gz
# or
curl -k -L https://github.com/hyphop/miZy/releases/download/mpd/orange-pi-h2-miZy-musicbox-mpd.MMC.hybrid.8M.8192.bin.gz | gzip -dc > https://github.com/hyphop/miZy/releases/download/mpd/orange-pi-h2-miZy-musicbox-mpd.MMC.hybrid.8M.8192.bin
write image
MMC hybrid image sd/mmc write
dd of=/dev/mmcblk0 < *.MMC.hybrid.bin
# reboot or boot from device
boot from MMC hybrid image and copy system to SPI
image_copy_sd_spi yes
# remove sd card
# reboot from spi now
direct write to spi on device (update or upgrade miZy system)
dd bs=65536 of=/dev/mtdblock6 < *M.bin
or
mtd write *M.bin full
write image to SPI via sunxi-tooll FEL mode from host to device
start device in FEL mode and write image to SPI
sunxi-fel -p spiflash-write 0 *M.bin
configure device via usb otg
check host connection ifconfig usb0
login to device ssh [email protected] -p 22
make some customization
nano /etc/rc.local
# add some line like
# mount -o ro /dev/mmcblk0p1 /tmp/mounts/mmcblk0p1
#
wifi.config MIWIFINAME PASSWORD
wifi.reconfig
get_ca # update ssl ca certs
get_ca_le # update ssl ca certs
save changes
overlay save -f
same as save_changes
web interface + console + help
SECURE NOTE !!!
system is open and "not have passwords" , u must care by himself about system security!!!