radxa-zero: new device (MR 3865)
This commit is contained in:
parent
4792c3b859
commit
49c9b7cc44
3 changed files with 95 additions and 0 deletions
41
device/testing/device-radxa-zero/APKBUILD
Normal file
41
device/testing/device-radxa-zero/APKBUILD
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
||||
pkgname=device-radxa-zero
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Radxa Zero"
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-edge u-boot-radxa-zero"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
# Due to linux-edge bugs in boot-deploy (see boot-deploy!20)
|
||||
# This device could not be use generated extlinux.conf.
|
||||
# There are hack for the boot-deploy bugs.
|
||||
# However,if i put the hack in the deviceinfo file directly
|
||||
# the ci will fail.
|
||||
# so i have to use those command at below to put the hack in the deviceinfo.
|
||||
echo '# Hack for lnux-edge bugs in boot-deploy (see boot-deploy!20)' >> $srcdir/deviceinfo
|
||||
echo 'kernel_filename="vmlinuz-edge"' >> $srcdir/deviceinfo
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="WiFi/BT firmware"
|
||||
depends="firmware-radxa-zero linux-firmware-meson"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c465e3ff343476a3bdd50e490a1487a439caee7f6a80682e178ef2b6881d1e158cf99b2337287df484fbb00dd4e0fde4f64ac6a687cb1b93ed3fb38bd25c495c deviceinfo
|
||||
"
|
||||
|
27
device/testing/device-radxa-zero/deviceinfo
Normal file
27
device/testing/device-radxa-zero/deviceinfo
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Radxa Zero"
|
||||
deviceinfo_manufacturer="Radxa"
|
||||
deviceinfo_codename="radxa-zero"
|
||||
deviceinfo_modules_initfs="fixed meson_gxbb_wdt meson_wdt meson-gx-mmc dw_hdmi drm_display_helper cec display_connector drm_kms_helper drm meson_drm meson_dw_hdmi"
|
||||
deviceinfo_dtb="amlogic/meson-g12a-radxa-zero"
|
||||
deviceinfo_year="2021"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
deviceinfo_chassis="embedded"
|
||||
deviceinfo_keyboard="true"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1920"
|
||||
deviceinfo_screen_height="1080"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="none"
|
||||
deviceinfo_kernel_cmdline="rw console=ttyAML0,115200 console=tty0 PMOS_NO_OUTPUT_REDIRECT no_console_suspend"
|
||||
deviceinfo_sd_embed_firmware_step_size="512"
|
||||
deviceinfo_sd_embed_firmware="u-boot/radxa-zero/u-boot.bin.sd-stripped.bin:1"
|
||||
deviceinfo_boot_part_start="4096"
|
||||
deviceinfo_generate_extlinux_config="true"
|
27
device/testing/firmware-radxa-zero/APKBUILD
Normal file
27
device/testing/firmware-radxa-zero/APKBUILD
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
||||
pkgname=firmware-radxa-zero
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Broadcom firmware for Radxa Zero"
|
||||
url="https://github.com/armbian/firmware"
|
||||
arch="aarch64"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||
|
||||
_commit="e2c95c9994b87d28e517495a9a52f0b3f634bcf9"
|
||||
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
||||
|
||||
_fwdir="/lib/firmware/postmarketos"
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
cd "$srcdir/firmware-$_commit"
|
||||
install -Dm644 brcm/brcmfmac43456-sdio.bin -t "$pkgdir/$_fwdir"/brcm
|
||||
install -Dm644 brcm/brcmfmac43456-sdio.clm_blob -t "$pkgdir/$_fwdir"/brcm
|
||||
install -Dm644 brcm/brcmfmac43456-sdio.txt -t "$pkgdir/$_fwdir"/brcm
|
||||
install -Dm644 brcm/BCM4345C5.hcd -t "$pkgdir/$_fwdir"/brcm
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
296c6e96a42d01d883669fef9ccfffe4b4bf1e3192e8182023a132b0cfc2b063377c3db90af1944a50f575bdfddae4ef1797dc5a98b4424f6cdc1ea3a657367f firmware-radxa-zero-e2c95c9994b87d28e517495a9a52f0b3f634bcf9.tar.gz
|
||||
"
|
Loading…
Reference in a new issue