7d72743b1f
ODROID HC2 is based upon the Samsung Exynos 5422 and can run full mainline. Switch to linux-edge from Alpine to enable this and drop the close-to-mainline fork for this device. The close-to-mainline fork was already linux-edge for a while but with a separate KConfig. These KConfig changes are now integrated in linux-edge of Alpine. U-boot script was updated to handle vmlinuz-edge as well since Alpine's linux-edge does not generate a vmlinuz file, but vmlinuz-edge. Probably to allow installing linux-lts as well. initcall_blacklist=exynos_drm_init was added to the kernel cmdline because upstream wants to set CONFIG_DRM_EXYNOS=y instead of module. The DRM subsystem of Exynos5 in the kernel seems to be broken for this device. There's also no use for it since this device does not have video out. See https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/38094
60 lines
1.7 KiB
Text
60 lines
1.7 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
|
|
|
|
pkgname=device-odroid-hc2
|
|
pkgdesc="ODROID HC2"
|
|
pkgver=0.7
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="linux-edge
|
|
postmarketos-base
|
|
u-boot-odroid
|
|
u-boot-tools
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-tools"
|
|
_commit="42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
|
|
source="deviceinfo uboot-script.cmd install-rootfs-hdd.sh"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
mkimage \
|
|
-A arm \
|
|
-O linux \
|
|
-T script \
|
|
-C none \
|
|
-a 0 \
|
|
-e 0 \
|
|
-n postmarketos \
|
|
-d "$srcdir"/uboot-script.cmd \
|
|
"$srcdir"/boot.scr
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
install -Dm644 "$srcdir"/boot.scr \
|
|
"$pkgdir"/boot/boot.scr
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="U-Boot, Samsung JPEG encoder, and Realtek firmware, required for a bootable system"
|
|
depends="firmware-odroid-hc2 linux-firmware-rtl_nic linux-firmware-other"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="ODROID HC2 tools"
|
|
depends="rsync e2fsprogs-extra"
|
|
mkdir "$subpkgdir"
|
|
install -Dm744 "$srcdir"/install-rootfs-hdd.sh \
|
|
"$subpkgdir"/usr/bin/install-rootfs-hdd
|
|
}
|
|
|
|
sha512sums="
|
|
6c4be5c1d2ba17b6ab5e093a5bd649d35af5cb4e3412ddad4073ca48900bbb4e7d25233f043dc661c66df5a7b6790502f19477e2c3cab711ec4968514494314d deviceinfo
|
|
f3e7a39d53c072f4ae68fcca241f88b05939052ff1c9bd8d45b47d2b336f3c239689857051ff3c7a96caefd5c10d2e34d9b921c62f993f80faca2999eb7beab8 uboot-script.cmd
|
|
669a0561251f287f072c9c1fc37d89b49a47fc4a4e5134c9e6681750ae960e5827043166136b7d5b9ad52c931b060bdcb6d0b5335c2e9fdb4eefd82f131ded93 install-rootfs-hdd.sh
|
|
"
|