1
0
Fork 0
remarkable-linux/README.md

71 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2021-06-26 18:22:45 -06:00
# Unofficial reMarkable Linux Kernel
***UNDER DEVELOPMENT***
2021-06-26 16:17:05 -06:00
This kernel is for the reMarkable2 epaper tablet.
2021-06-26 18:22:45 -06:00
# Differences
This is a small fork of the upstream reMarkable kernel from the manufacturer.
* Adds kernel patch from here:
https://remarkablewiki.com/tech/rm2_otg_pogo
2021-06-26 17:19:27 -06:00
# Build
Build thine kernel thusly:
```
git clone https://spacecruft.org/redonkable/remarkable-linux
cd remarkable-linux
# should already be on this branch, but check it out:
git checkout redonkable
ARCH=arm CROSS_COMPILE=arm-none-eabi- make zero-sugar_defconfig
ARCH=arm CROSS_COMPILE=arm-none-eabi- make -j`nproc`
ARCH=arm CROSS_COMPILE=arm-none-eabi- make modules_install INSTALL_MOD_PATH=./tmp
rm -rf tmp/lib/modules/*/build tmp/lib/modules/*/source
```
Install files thusly. Symlink them later, or change `fw_env` variables.
```
# Kernel modules
scp -pr tmp/lib/modules/* root@10.11.99.1:/lib/modules/
# Kernel
scp -p arch/arm/boot/zImage root@10.11.99.1:/boot/zImage-4.14.78
# DTB
2021-06-26 17:25:06 -06:00
scp -p arch/arm/boot/dts/zero-sugar.dtb root@10.11.99.1:/boot/zero-sugar.dtb-4.14.78
2021-06-26 17:19:27 -06:00
```
Log in and set symlinks to new kernel seteup.
```
ssh root@10.11.99.1
cd /boot
mv zImage zImage.bak
ln -s zImage-4.14.78 zImage
mv zero-sugar.dtb zero-sugar.dtb.bak
ln -s zero-sugar.dtb-4.14.78 zero-sugar.dtb
cd /lib/modules
mv 4.14.78 4.14.78.bak
# Note, git tag may vary, something like:
ln -s 4.14.78-g2682167b2d00-dirty 4.14.78
```
Then power off, power back up.
2021-06-26 18:01:18 -06:00
# See Also
* https://remarkablewiki.com/tech/rm2_otg_pogo
* https://remarkablewiki.com/tech/kernel
* https://remarkablewiki.com/tech/updatingkernel
* https://remarkablewiki.com/tech/filesystem
* https://github.com/ddvk/remarkable2-recovery
2021-06-26 16:17:05 -06:00
# Fork
This is a fork of the reMarkable Linux kernel from this repository:
* https://github.com/reMarkable/linux