epson-embt2ws: new device (MR 5210)

Currently it requries the check_code result check in the
vendor uboot to be disabled as explained in the wiki.

Booting directly via reconfigured boot order still
does not work. It hangs somewhere in the kernel.

Firmware for Wifi/BT is not included yet.

It could use the linux-postmarketos-omap kernel in the future,
but there are still some dirty things in there e.g. for sound
which are not suitable for a multi-device kernel.
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Andreas Kemnade 2024-06-05 23:59:11 +02:00 committed by Stefan Hansson
parent 863760c6ba
commit f3cee8a36e
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD
7 changed files with 7482 additions and 0 deletions

View file

@ -0,0 +1,41 @@
# Maintainer: Andreas Kemnade <andreas@kemnade.info>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-epson-embt2ws
pkgdesc="Epson Moverio BT-200"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-epson-embt2ws
postmarketos-base
u-boot-epson-embt2ws
u-boot-tools
"
_pmb_recommends="linux-firmware-ti-connectivity"
makedepends="devicepkg-dev"
source="
deviceinfo
modules-initfs
sdboot.cmd
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
mkimage -A arm -O linux -T script -n postmarketOS \
-d "$srcdir"/sdboot.cmd "$srcdir/sdboot.scr"
install -Dm644 "$srcdir/sdboot.scr" "$pkgdir/boot/sdboot.scr"
}
sha512sums="
9b4b61df13463565f18044672690ffd559d89121dda8b84930f7f78829f18565e4c91d5e5eb921a035825abdd7aa18f0aa2bf99edfd432e631f277cf17eb1c4e deviceinfo
e6d26536578432bd1d9123d3b3eb621e39d5475e5ce9086c42fae213be6fa05d56bd6b42d08f6f5afccffe5b01ca940239c11b8046e0be1a5962ac95a0b0dfa4 modules-initfs
2c3a39107dd6c061d001d11211b816fc0e1fb060e0bcbf0fcf057d7910a7dcc4d1d06c6b0572ee0d616f1d06679ca48872395f62c1f44f5460cceefbbd2b5050 sdboot.cmd
"

View file

@ -0,0 +1,28 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Epson Moverio BT-200"
deviceinfo_manufacturer="Epson"
deviceinfo_codename="epson-embt2ws"
deviceinfo_year="2014"
deviceinfo_arch="armv7"
deviceinfo_dtb="omap4-epson-embt2ws"
deviceinfo_kernel_cmdline="console=ttyS2,115200"
deviceinfo_generate_extlinux_config="true"
# Device related
# chassis = touchpad with buttons + glasses
deviceinfo_chassis="embedded"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_boot_part_start="2048"
deviceinfo_boot_filesystem="fat32"
deviceinfo_getty="ttyS2;115200"
deviceinfo_no_framebuffer="true"
deviceinfo_sd_embed_firmware_step_size="512"
deviceinfo_sd_embed_firmware="u-boot/epson-embt2ws/MLO:256,u-boot/epson-embt2ws/u-boot.img:512"

View file

@ -0,0 +1,2 @@
phy-omap-usb2
phy-twl6030-usb

View file

@ -0,0 +1,6 @@
# secret
# md5sum("# secret") should be 92b12a37d1913ac41d2956120a475aca
# for avoiding hassle with factory u-boot
# secret has not yet been found
fatload mmc 0:1 0x80800000 /u-boot-ml.bin
go 0x80800000

View file

@ -0,0 +1,63 @@
# Maintainer: Andreas Kemnade <andreas@kemnade.info>
# Kernel config based on: arch/arm/configs/embt2_defconfig
pkgname=linux-epson-embt2ws
pkgver=6.9.0
pkgrel=0
pkgdesc="Epson Moverio BT-200 kernel fork, close to mainline"
arch="armv7"
_carch="arm"
_flavor="epson-embt2ws"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables"
makedepends="
bash
bc
bison
devicepkg-dev
findutils
flex
gmp-dev
lzop
mpc1-dev
mpfr-dev
openssl-dev
perl
"
# Source
_repository="linux"
_commit="0b7d50a17ac503c09f1a39ccc67c542184be0f8a"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
REPLACE_GCCH=0
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
make modules_install dtbs_install \
O="$_outdir" ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
}
sha512sums="
9e9372557ed41aa497c9317cc19bd6746fc10366bf0b0e6f298f7a8f867b8b9f5072ae0648ba2f420e24cbae228418ce05e4b2596d7e07b7c6978164369817f3 linux-epson-embt2ws-0b7d50a17ac503c09f1a39ccc67c542184be0f8a.tar.gz
7b45f1abe52c6a6fc1002c9206600f7994fa55dd028dd1184f16cb784eed069d627df0a50248716ce7526f0e9debbe394fa48670c663de644bf60191d1f583e8 config-epson-embt2ws.armv7
"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,37 @@
# Maintainer: Andreas Kemnade <andreas@kemnade.info>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=u-boot-epson-embt2ws
pkgver=2022.10
pkgrel=0
pkgdesc="U-Boot for Epson Moverio BT-200"
arch="armv7"
_carch="arm"
license="GPL-2.0"
url="https://github.com/akemnade/u-boot"
makedepends="bash bc dtc bison flex openssl-dev"
options="!check !tracedeps pmb:cross-native"
_repository="u-boot"
_commit="913067d717b9e81ceca1d777db0e0774cd42f388"
source="
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz
"
builddir="$srcdir/$_repository-$_commit"
build() {
make ARCH="$_carch" omap4_embt2ws_defconfig
scripts/config --set-str BOOTCOMMAND "run distro_bootcmd ; fastboot 0"
make ARCH="$_carch"
}
package() {
install -Dm644 "$builddir/u-boot-dtb.img" "$pkgdir/usr/share/u-boot/epson-embt2ws/u-boot.img"
install -Dm644 "$builddir/u-boot-dtb.bin" "$pkgdir/usr/share/u-boot/epson-embt2ws/u-boot.bin"
install -Dm644 "$builddir/u-boot-dtb.bin" "$pkgdir/boot/u-boot-ml.bin"
install -Dm644 "$builddir/MLO" "$pkgdir/usr/share/u-boot/epson-embt2ws/MLO"
}
sha512sums="
8f5f4d6444428dacc935734e7ab46749828ecb71ecfab54594282f276ef4677c30754771a0c939760e0210a9aeca844cf56e7bb887493b4d7d6d42fb6e11057e u-boot-epson-embt2ws-913067d717b9e81ceca1d777db0e0774cd42f388.tar.gz
"