remarkable-alpine-flasher/flash-alpine.uuu

65 lines
2 KiB
Text
Raw Normal View History

2023-05-01 19:05:11 +00:00
uuu_version 1.0.1
SDP: write -f zImage-uuu -addr 0x82000000
SDP: write -f initramfs.cpio.gz.uboot -addr 0x89000000
SDP: write -f zero-gravitas.dtb -addr 0x88000000
SDP: boot -f u-boot-linuxrc.imx
FBK: ucmd ls /dev/mmc*
# overwrite bootloader (disabled)
FBK: ucmd dd if=/dev/zero of=/dev/mmcblk1 bs=512 seek=1536 count=16
FBK: ucmd echo 0 > /sys/block/mmcblk1boot0/force_ro
FBK: ucmd dd if=/dev/zero of=/dev/mmcblk1boot0 bs=512 count=2
FBK: ucp files/u-boot.imx t:/tmp
FBK: ucmd dd if=/tmp/u-boot.imx of=/dev/mmcblk1boot0 bs=512 seek=2
FBK: ucmd echo 1 > /sys/block/mmcblk1boot0/force_ro
# setting boot partition (disabled, fuses blown)
#FBK: ucmd echo 8 > /sys/devices/soc0/soc/2100000.aips-bus/2194000.usdhc/mmc_host/mmc1/mmc1:0001/boot_config
# flash wacom
#FBK: ucp wacomflash.tgz t:/tmp
#FBK: ucmd tar xf /tmp/wacomflash.tgz
#FBK: ucmd /tmp/flash-latest.sh
#FBK: ucmd ./wacom_flash W9013_0734.hex 0 i2c-1
# repartition
#FBK: ucp files/partition.sh t:/tmp
#FBK: ucmd sh /tmp/partition.sh /dev/mmcblk1
#FBK: ucmd mkfs.vfat /dev/mmcblk1p1
FBK: ucmd mkdir -p /mnt/mmcblk1p1
FBK: ucmd mount -t vfat /dev/mmcblk1p1 /mnt/mmcblk1p1
FBK: ucp files/waveform.bin t:/tmp
FBK: ucmd cp /tmp/waveform.bin /mnt/mmcblk1p1/waveform.bin
FBK: ucp files/zImage t:/tmp
FBK: ucmd cp /tmp/zImage /mnt/mmcblk1p1/zImage
FBK: ucp files/zero-gravitas.dtb t:/tmp
FBK: ucmd cp /tmp/zero-gravitas.dtb /mnt/mmcblk1p1/zero-gravitas.dtb
FBK: ucp files/splash.bmp t:/tmp
FBK: ucmd cp /tmp/splash.bmp /mnt/mmcblk1p1/splash.bmp
FBK: ucp files/lowbattery.bmp t:/tmp
FBK: ucmd cp /tmp/lowbattery.bmp /mnt/mmcblk1p1/lowbattery.bmp
FBK: ucmd umount /mnt/mmcblk1p1
# root
FBK: ucmd mkfs.ext4 -O '^64bit' -O '^metadata_csum' -O 'uninit_bg' -J 'size=4' -b 1024 -g 8192 -i 4096 -I 128 /dev/mmcblk1p2
FBK: ucmd mkdir -p /mnt/mmcblk1p2
FBK: ucmd mount -t ext4 /dev/mmcblk1p2 /mnt/mmcblk1p2
FBK: ucp files/rootfs.tar.gz t:/tmp
FBK: ucmd tar -xf /tmp/rootfs.tar.gz -C /mnt/mmcblk1p2
FBK: sync
FBK: ucmd umount /mnt/mmcblk1p2
FBK: done