Initial commit

This commit is contained in:
Antoine Martin 2023-05-01 15:05:11 -04:00
commit 10ea09c3fe
Signed by: forge
GPG key ID: D62A472A4AA7D541
13 changed files with 76 additions and 0 deletions

12
README.md Normal file
View file

@ -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

BIN
files/lowbattery.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

BIN
files/rootfs.tar.gz Normal file

Binary file not shown.

BIN
files/splash.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

BIN
files/u-boot.imx Normal file

Binary file not shown.

BIN
files/waveform.bin Normal file

Binary file not shown.

BIN
files/zImage Executable file

Binary file not shown.

BIN
files/zero-gravitas.dtb Normal file

Binary file not shown.

64
flash-alpine.uuu Normal file
View file

@ -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

BIN
initramfs.cpio.gz.uboot Normal file

Binary file not shown.

BIN
u-boot-linuxrc.imx Normal file

Binary file not shown.

BIN
zImage-uuu Normal file

Binary file not shown.

BIN
zero-gravitas.dtb Normal file

Binary file not shown.