FILE=perdita-gcis.bin; cd /tmp && tftp -g -r $FILE 192.168.3.197 FILE=perdita-ipl; cd /tmp && tftp -g -r $FILE 192.168.3.197
export SNANDER_I2CDEV=/dev/i2c-10:49
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -e
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV 0x0 -v -w perdita-gcis.bin -l2048
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -a 0x20000 -v -w perdita-ipl
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -a 0x40000 -v -w perdita-ipl
FILE=perdita-gcis.bin; cd /tmp && tftp -g -r $FILE 192.168.3.197 FILE=dongshanpipicow-ipl; cd /tmp && tftp -g -r $FILE 192.168.3.197 FILE=dongshanpipicow-u-boot.ubi; cd /tmp && tftp -g -r $FILE 192.168.3.197
export SNANDER_I2CDEV=49@i2cdev:/dev/i2c-10
export BINDIR=<path to your binaries>
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -u
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -e
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -a 0x0 -v -w -f $BINDIR/perdita-gcis.bin -l2048
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -a 0x20000 -v -w -f $BINDIR/dongshanpipicow-ipl
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -a 0x40000 -v -w -f $BINDIR/dongshanpipicow-ipl
snander_electricboogaloo -p mstarddc -c $SNANDER_I2CDEV -a 0x60000 -v -w -f $BINDIR/dongshanpipicow-u-boot.ubi
See https://github.com/linux-chenxing/p3udl
ubi createvol uboot 0x100000 static
ubi createvol env 0x20000 static
ubi createvol kernel 0x800000 static
ubi createvol root 0x2000000 static
ubi createvol rescue 0x1000000 static
ubi createvol data
loady ${loadaddr} 460800;
ubi writevol ${loadaddr} kernel ${filesize}
ubi writevol ${loadaddr} root ${filesize}
ubi writevol ${loadaddr} rescue ${filesize}
mw.w 0x1f207980 0x200; setenv bootargs clk_ignore_unused usbcore.autosuspend=-1 console=ttyS0,115200 ubi.fm_autoconvert=1 ubi.mtd=1 ubi.block=0,root root=/dev/ubiblock0_3 quiet; ubi read 0x21000000 kernel; bootm 0x21000000
UBIFILE=perdita-kernel-rescue.fit; cd /tmp && tftp -g -r $UBIFILE 192.168.3.197 && ubiupdatevol /dev/ubi0_4 $UBIFILE
In u-boot:
setenv bootargs clk_ignore_unused console=ttyS0,115200 ubi.mtd=1 quiet; ubi read 0x21000000 rescue; bootm 0x21000000#ssd210-picow
To flash another board using a picow:
setenv bootargs clk_ignore_unused console=ttyS0,115200 ubi.mtd=1 quiet; ubi read 0x21000000 rescue; bootm 0x21000000#ssd210-picow#ssd210-picow-snander