After commit 8335d050bf24977afefee6612dd347abd555bc53 in pmbootstrap the partition table now defaults to GPT instead of MBR. This breaks booting on Amlogic devices for the following reasons: * On set-top boxes: downstream U-Boot most likely does not have GPT support * On boards where we install mainline U-Boot as BL33 on eMMC/SD: the bootROM checks for an `@AML` image header at offset 512 (second LBA), which means we are basically stuck on MBR Some Amlogic boards have U-Boot + the proprietary Amlogic firmware stages in SPI flash (mainly the Libre Computer boards do), which means they can use GPT, because the firmware is simply not stored on eMMC/SD. For that reason I chose not to change the partition table on those. Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
64 lines
1.8 KiB
Bash
64 lines
1.8 KiB
Bash
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
|
|
pkgname=device-amlogic-tvbox
|
|
pkgdesc="Amlogic TV box"
|
|
pkgver=2
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
postmarketos-base
|
|
soc-amlogic-s905
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
deviceinfo
|
|
modules-initfs
|
|
"
|
|
subpackages="
|
|
$pkgname-kernel-p201:kernel_p201
|
|
$pkgname-kernel-p212:kernel_p212
|
|
$pkgname-kernel-videostrong-kii-pro:kernel_videostrong_kii_pro
|
|
$pkgname-kernel-xiaomi-once:kernel_xiaomi_once
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
kernel_p201() {
|
|
pkgdesc="Kernel for Amlogic P201-based TV box (S905)"
|
|
depends="linux-postmarketos-amlogic u-boot-amlogic-s905-tv"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_p212() {
|
|
pkgdesc="Kernel for Amlogic P212-based TV box (S905X)"
|
|
depends="linux-postmarketos-amlogic u-boot-amlogic-s905x-tv"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_videostrong_kii_pro() {
|
|
pkgdesc="Kernel for Videostrong KII Pro (S905)"
|
|
depends="linux-postmarketos-amlogic u-boot-amlogic-s905-tv"
|
|
_pmb_recommends="firmware-videostrong-kii-pro"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_xiaomi_once() {
|
|
pkgdesc="Kernel for Xiaomi Mi Box 3 (S905X)"
|
|
depends="linux-postmarketos-amlogic u-boot-amlogic-s905x-tv"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
sha512sums="
|
|
f0051118ea2948821b11bf754c55e926fd3e35be1b1682310e45cf80e174c69ea3e7f13f294deef741a6198407e9b12b366202009269f80207ca45d7130bb786 deviceinfo
|
|
52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8 modules-initfs
|
|
"
|