commit 10ea09c3fe2591e8833de1d810e2655af6284c71 Author: Antoine Martin Date: Mon May 1 15:05:11 2023 -0400 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..034dad1 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# remarkable-alpine-flasher + +!! WARNING !! +This has not been tested!!!! +!! WARNING !! + +# Purpose +Facilitate flashing Alpine Linux to reMarkable 1 tablet + +# Credit +Based on https://github.com/ddvk/remarkable-uuuflash and DavisR's +recovery-os-build-nosplash project diff --git a/files/lowbattery.bmp b/files/lowbattery.bmp new file mode 100644 index 0000000..9c447c2 Binary files /dev/null and b/files/lowbattery.bmp differ diff --git a/files/rootfs.tar.gz b/files/rootfs.tar.gz new file mode 100644 index 0000000..7b53f2c Binary files /dev/null and b/files/rootfs.tar.gz differ diff --git a/files/splash.bmp b/files/splash.bmp new file mode 100644 index 0000000..467e901 Binary files /dev/null and b/files/splash.bmp differ diff --git a/files/u-boot.imx b/files/u-boot.imx new file mode 100644 index 0000000..a2c53f7 Binary files /dev/null and b/files/u-boot.imx differ diff --git a/files/waveform.bin b/files/waveform.bin new file mode 100644 index 0000000..79752ae Binary files /dev/null and b/files/waveform.bin differ diff --git a/files/zImage b/files/zImage new file mode 100755 index 0000000..6889afd Binary files /dev/null and b/files/zImage differ diff --git a/files/zero-gravitas.dtb b/files/zero-gravitas.dtb new file mode 100644 index 0000000..2a37ede Binary files /dev/null and b/files/zero-gravitas.dtb differ diff --git a/flash-alpine.uuu b/flash-alpine.uuu new file mode 100644 index 0000000..3e34966 --- /dev/null +++ b/flash-alpine.uuu @@ -0,0 +1,64 @@ +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 diff --git a/initramfs.cpio.gz.uboot b/initramfs.cpio.gz.uboot new file mode 100644 index 0000000..5699f6b Binary files /dev/null and b/initramfs.cpio.gz.uboot differ diff --git a/u-boot-linuxrc.imx b/u-boot-linuxrc.imx new file mode 100644 index 0000000..c69b8b4 Binary files /dev/null and b/u-boot-linuxrc.imx differ diff --git a/zImage-uuu b/zImage-uuu new file mode 100644 index 0000000..5aa36cc Binary files /dev/null and b/zImage-uuu differ diff --git a/zero-gravitas.dtb b/zero-gravitas.dtb new file mode 100644 index 0000000..96828d4 Binary files /dev/null and b/zero-gravitas.dtb differ