odroid-u2: new device (MR 4019)
This commit is contained in:
parent
62d4d0c62a
commit
629bde0adb
3 changed files with 114 additions and 0 deletions
52
device/testing/device-odroid-u2/APKBUILD
Normal file
52
device/testing/device-odroid-u2/APKBUILD
Normal file
|
@ -0,0 +1,52 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
||||
|
||||
pkgname=device-odroid-u2
|
||||
pkgdesc="ODROID U2/U3"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
postmarketos-base>=25-r1
|
||||
u-boot-odroid>=2023.04-r1
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="
|
||||
$pkgname-kernel-lts:kernel_lts
|
||||
$pkgname-kernel-exynos4:kernel_exynos4
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
kernel_lts() {
|
||||
pkgdesc="Use Alpine's long-term support kernel"
|
||||
depends="linux-lts"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
kernel_exynos4() {
|
||||
pkgdesc="Use linux-postmarketos-exynos4"
|
||||
depends="linux-postmarketos-exynos4"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Early bootloaders and trustzone firmware (required for a bootable system)"
|
||||
depends="firmware-odroid-u2"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
0bd51dc15da00985ecb032726d6914b836dc6d639a9d10a700d2b4430a388a1b4ac8ce9e334ed339b0df969b301ee6951cbf35f94156fb3a5475029703669fee deviceinfo
|
||||
"
|
33
device/testing/device-odroid-u2/deviceinfo
Normal file
33
device/testing/device-odroid-u2/deviceinfo
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="ODROID U2"
|
||||
deviceinfo_manufacturer="ODROID"
|
||||
deviceinfo_codename="odroid-u2"
|
||||
deviceinfo_year="2014"
|
||||
deviceinfo_getty="ttySAC1;115200"
|
||||
deviceinfo_append_dtb_lts="false"
|
||||
deviceinfo_dtb_lts="exynos4412-odroidu3"
|
||||
deviceinfo_append_dtb_exynos4="false"
|
||||
deviceinfo_dtb_exynos4="exynos4412-odroidu3"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_no_framebuffer="true"
|
||||
deviceinfo_disable_dhcpd="true"
|
||||
deviceinfo_modules_initfs_lts="uas usb-storage scsi_mod sd_mod dw_mmc sdhci mmc_block max77686 max77686-regulator dw_mmc-exynos sdhci-s3c"
|
||||
deviceinfo_modules_initfs_exynos4="uas usb-storage scsi_mod sd_mod"
|
||||
|
||||
# Device related
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
deviceinfo_chassis="embedded"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="none"
|
||||
deviceinfo_sd_embed_firmware="u-boot/odroid-u2/bl1.bin:1,u-boot/odroid-u2/bl2.bin:31,u-boot/odroid/u-boot.bin:63,u-boot/odroid-u2/tzsw.bin:2111"
|
||||
deviceinfo_sd_embed_firmware_step_size="512"
|
||||
deviceinfo_boot_part_start="3072"
|
||||
deviceinfo_kernel_cmdline="console=tty1 loglevel=9 rw PMOS_FORCE_PARTITION_RESIZE"
|
||||
deviceinfo_generate_extlinux_config="true"
|
29
device/testing/firmware-odroid-u2/APKBUILD
Normal file
29
device/testing/firmware-odroid-u2/APKBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
||||
|
||||
pkgname=firmware-odroid-u2
|
||||
pkgver=2015.10
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for Odroid X/U2/U3"
|
||||
url="https://github.com/hardkernel/u-boot"
|
||||
arch="armv7"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||
source="u2-bl1.HardKernel::https://github.com/hardkernel/u-boot/raw/odroid-v$pkgver/sd_fuse/bl1.HardKernel
|
||||
u2-bl2.HardKernel::https://github.com/hardkernel/u-boot/raw/odroid-v$pkgver/sd_fuse/bl2.HardKernel
|
||||
u2-tzsw.HardKernel::https://github.com/hardkernel/u-boot/raw/odroid-v$pkgver/sd_fuse/tzsw.HardKernel
|
||||
"
|
||||
|
||||
package() {
|
||||
# Install firmware
|
||||
install -D -m644 "$srcdir"/u2-bl1.HardKernel \
|
||||
"$pkgdir"/usr/share/u-boot/odroid-u2/bl1.bin
|
||||
install -D -m644 "$srcdir"/u2-bl2.HardKernel \
|
||||
"$pkgdir"/usr/share/u-boot/odroid-u2/bl2.bin
|
||||
install -D -m644 "$srcdir"/u2-tzsw.HardKernel \
|
||||
"$pkgdir"/usr/share/u-boot/odroid-u2/tzsw.bin
|
||||
}
|
||||
sha512sums="
|
||||
04bd91f8c46f72d0f6d09b4cec70e9617e82cccee5e6b660e2ec54aa64972169f48b7c81ee2a9f31fa513bf99021de443bebc871a25569eaaf25aaf4da208e8d u2-bl1.HardKernel
|
||||
6f970437a1bc94a438be45473d18125e782cb89c9a3be29ec59fbe52d8787fb7e0943e3cc40505b71bb31e99b7d015a81c982aec15c0db61550b9084bd07b842 u2-bl2.HardKernel
|
||||
96636b2de5f43f879a9f96501719a13e240446b812154e0085a4584e19d2317b54e94c0745a3913e1b183ad23cda97e998a2308bbe04bee158653ea8c1835cd7 u2-tzsw.HardKernel
|
||||
"
|
Loading…
Add table
Reference in a new issue