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>
42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
|
|
pkgname=device-librecomputer-lepotato
|
|
pkgdesc="Libre Computer AML-S905X-CC-V1.0"
|
|
pkgver=3
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
linux-postmarketos-amlogic
|
|
postmarketos-base
|
|
soc-amlogic-s905
|
|
u-boot-librecomputer-lepotato
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
deviceinfo
|
|
modules-initfs
|
|
"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="vdec firmware"
|
|
depends="linux-firmware-meson"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
79a809f6b2397b1e9d7a6a3d23811fe74eeb28f9039fef1f52329da9399a234d21161f92ffd1350efe5907195f8a8a6cb11e75c7264b4cb826afc942e903fc11 deviceinfo
|
|
52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8 modules-initfs
|
|
"
|