pmos/{device, firmware}-remarkable-zero-gravitas: new aport #849

Closed
forge wants to merge 2 commits from device-remarkable-zero-gravitas/initial into edge
5 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-remarkable-zero-gravitas
pkgdesc="remarkable reMarkable 1"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-remarkable-zero-gravitas
postmarketos-base
"
makedepends="devicepkg-dev"
source="
deviceinfo
modules-initfs
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
a334eee970ae609a535bb31e730ee042278eb7275be0b42c200001e77d53dbb0c63a6657b714e69e3edadf96ccb11c8e4a839450b5cfa3125d9bce6cba0db91d deviceinfo
e70bae17df23dcaaaea0e2d3616556f04baa23f8ee1357785c0f539bf97282d8ddff53953e155b72689bb73beb38c2da3d08de2a61e866684edfa10a6593885d modules-initfs
"

View file

@ -0,0 +1,20 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="remarkable reMarkable 1"
deviceinfo_manufacturer="remarkable"
deviceinfo_codename="remarkable-zero-gravitas"
deviceinfo_year="2017"
deviceinfo_dtb=""
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="false"
# Bootloader related
deviceinfo_flash_method="uuu"
deviceinfo_generate_legacy_uboot_initfs="true"

View file

@ -0,0 +1,23 @@
uuu_version 1.0.1
# Note: This script is meant to be used by uuu running in the native chroot, so
# all paths are relative to the native chroot and not to the device rootfs
# chroot.
SDP: boot -f /mnt/rootfs_purism-librem5dev/usr/share/u-boot/librem5/devkit-boot.img
SDPU: delay 1000
SDPU: write -f /mnt/rootfs_purism-librem5dev/usr/share/u-boot/librem5/devkit-boot.img -offset 0x57c00
SDPU: jump
SDPV: delay 1000
SDPV: write -f /mnt/rootfs_purism-librem5dev/usr/share/u-boot/librem5/devkit-boot.img -skipspl
SDPV: jump
SDPS: boot -f /mnt/rootfs_purism-librem5dev/usr/share/u-boot/librem5/devkit-boot.img
FB: ucmd mmc dev 0
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev 0
FB: flash -raw2sparse all /home/pmos/rootfs/purism-librem5dev.img
FB: Done

View file

@ -0,0 +1,9 @@
# Remove this file if unnecessary (CHANGEME!)
# This file shall contain a list of modules to be included in the initramfs,
# so that they are available in early boot stages. In general, it should
# include modules to support unlocking FDE (touchscreen, panel, etc),
# USB networking, and telnet in the debug-shell.
# The format is one module name per line. Lines starting with the character
# '#', and empty lines are ignored. If there are multiple kernel variants
# with different initramfs module requirements, one modules-initfs.$variant
# file should be created for each of them.

View file

@ -0,0 +1,18 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=firmware-remarkable-zero-gravitas
pkgver=0
pkgrel=0
pkgdesc="Firmware for reMarkable rM1 (remarkable-zero-gravitas)"
url="https://github.com/ichaozi/RemarkableFramebuffer"
arch="armv7"
license="custom:proprietary"
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
source="https://raw.githubusercontent.com/ichaozi/RemarkableFramebuffer/0f37dc8c06d340dc1af52ff2d4d6d5789ccf14bb/kernel-mxc-epdc-fb-reference/epdc_ES103CS1.fw"
package() {
install -vDm644 "$srcdir"/epdc_ES103CS1.fw "$pkgdir"/lib/firmware/imx/epdc/epdc_ES103CS1.fw
}
sha512sums="
ad4bd6f332319aceee7a1c7b71b49439e8217621214b6249c7e20198360d02ea442f31edfc8e1af1b85ed71e6f97c1cb7decf7b0885c9d0293361eef47f218b2 epdc_ES103CS1.fw
"