amlogic: switch to unified u-boot-amlogic package (MR 4995)
Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org> [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
6c6a0bd9da
commit
02e435c298
16 changed files with 14 additions and 782 deletions
|
|
@ -2,13 +2,13 @@
|
|||
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
||||
pkgname=device-amediatech-x96-mini
|
||||
pkgver=3
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Amediatech X96 mini"
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base u-boot-amediatech-x96-mini soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
depends="postmarketos-base u-boot-amlogic-amediatech-x96-mini soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="asound.state deviceinfo modules-initfs"
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
pkgname=device-bananapi-bpi-cm4-cm4io
|
||||
pkgdesc="BananaPi BPI-CM4IO Baseboard with BPI-CM4"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base u-boot-bananapi-bpi-cm4 soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
depends="postmarketos-base u-boot-amlogic-bananapi-bpi-cm4-cm4io soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="deviceinfo modules-initfs"
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
# Maintainer:
|
||||
pkgname=device-beelink-gt1
|
||||
pkgver=2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Beelink gt1 (Ultimate)"
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base u-boot-beelink-gt1 soc-amlogic-s905"
|
||||
depends="postmarketos-base u-boot-amlogic-beelink-gt1 soc-amlogic-s905"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="
|
||||
$pkgname-kernel-alpine:kernel_alpine
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
pkgname=device-librecomputer-lepotato
|
||||
pkgdesc="Libre Computer AML-S905X-CC-V1.0"
|
||||
pkgver=3
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
|
|
@ -12,7 +12,7 @@ depends="
|
|||
linux-postmarketos-amlogic
|
||||
postmarketos-base
|
||||
soc-amlogic-s905
|
||||
u-boot-librecomputer-lepotato
|
||||
u-boot-amlogic-librecomputer-lepotato
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
pkgname=device-odroid-c4
|
||||
pkgdesc="ODROID C4"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base u-boot-odroid-c4 soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
depends="postmarketos-base u-boot-amlogic-odroid-c4 soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="deviceinfo modules-initfs"
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
pkgname=device-odroid-n2plus
|
||||
pkgdesc="ODROID N2+"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base u-boot-odroid-n2plus soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
depends="postmarketos-base u-boot-amlogic-odroid-n2plus soc-amlogic-s905 linux-postmarketos-amlogic"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="deviceinfo modules-initfs"
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
||||
pkgname=device-radxa-zero
|
||||
pkgver=2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Radxa Zero"
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-edge u-boot-radxa-zero"
|
||||
depends="postmarketos-base linux-edge u-boot-amlogic-radxa-zero"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="deviceinfo modules-initfs"
|
||||
|
|
|
|||
|
|
@ -1,127 +0,0 @@
|
|||
From 6a40398dee7a21df9da032aa2f8b6c5cc08453c0 Mon Sep 17 00:00:00 2001
|
||||
From: "@exkc" <exkc@exkc.moe>
|
||||
Date: Thu, 30 Mar 2023 19:58:52 +0800
|
||||
Subject: [PATCH] add x96-mini support
|
||||
|
||||
---
|
||||
arch/arm/dts/meson-gxl-s905w-x96-mini.dts | 38 ++++++++++++++
|
||||
configs/x96_mini_defconfig | 62 +++++++++++++++++++++++
|
||||
2 files changed, 100 insertions(+)
|
||||
create mode 100644 arch/arm/dts/meson-gxl-s905w-x96-mini.dts
|
||||
create mode 100644 configs/x96_mini_defconfig
|
||||
|
||||
diff --git a/arch/arm/dts/meson-gxl-s905w-x96-mini.dts b/arch/arm/dts/meson-gxl-s905w-x96-mini.dts
|
||||
new file mode 100644
|
||||
index 0000000000..bd69f88973
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/dts/meson-gxl-s905w-x96-mini.dts
|
||||
@@ -0,0 +1,38 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright (c) 2023 Karl Chan <exxxxkc@getgoogleoff.me>.
|
||||
+ * Based on meson-gxl-s905w-tx3-mini.dts:
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include <dt-bindings/leds/common.h>
|
||||
+
|
||||
+#include "meson-gxl-s905x.dtsi"
|
||||
+#include "meson-gx-p23x-q20x.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ compatible = "amediatech,x96-mini", "amlogic,s905w", "amlogic,meson-gxl";
|
||||
+ model = "Shenzhen Amediatech Technology Co., X96 Mini";
|
||||
+
|
||||
+ memory@0 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x0 0x0 0x0 0x40000000>; /* 1 GiB or 2 GiB */
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ led-0 {
|
||||
+ label = "x96-mini:blue:power";
|
||||
+ gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "on";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+};
|
||||
+
|
||||
+&usb {
|
||||
+ dr_mode = "host";
|
||||
+};
|
||||
diff --git a/configs/x96_mini_defconfig b/configs/x96_mini_defconfig
|
||||
new file mode 100644
|
||||
index 0000000000..5d88b83067
|
||||
--- /dev/null
|
||||
+++ b/configs/x96_mini_defconfig
|
||||
@@ -0,0 +1,62 @@
|
||||
+CONFIG_ARM=y
|
||||
+CONFIG_ARCH_MESON=y
|
||||
+CONFIG_TEXT_BASE=0x01000000
|
||||
+CONFIG_NR_DRAM_BANKS=1
|
||||
+CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
|
||||
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x20000000
|
||||
+CONFIG_ENV_SIZE=0x2000
|
||||
+CONFIG_DM_GPIO=y
|
||||
+CONFIG_DEFAULT_DEVICE_TREE="meson-gxl-s905w-x96-mini"
|
||||
+CONFIG_DM_RESET=y
|
||||
+CONFIG_MESON_GXL=y
|
||||
+CONFIG_DEBUG_UART_BASE=0xc81004c0
|
||||
+CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
+CONFIG_IDENT_STRING=" x96-mini"
|
||||
+CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||
+CONFIG_DEBUG_UART=y
|
||||
+CONFIG_REMAKE_ELF=y
|
||||
+CONFIG_OF_BOARD_SETUP=y
|
||||
+CONFIG_CONSOLE_MUX=y
|
||||
+# CONFIG_DISPLAY_CPUINFO is not set
|
||||
+CONFIG_MISC_INIT_R=y
|
||||
+CONFIG_SYS_MAXARGS=32
|
||||
+# CONFIG_CMD_BDI is not set
|
||||
+# CONFIG_CMD_IMI is not set
|
||||
+CONFIG_CMD_ADC=y
|
||||
+CONFIG_CMD_GPIO=y
|
||||
+# CONFIG_CMD_LOADS is not set
|
||||
+CONFIG_CMD_MMC=y
|
||||
+CONFIG_CMD_USB=y
|
||||
+CONFIG_CMD_USB_MASS_STORAGE=y
|
||||
+# CONFIG_CMD_SETEXPR is not set
|
||||
+CONFIG_CMD_REGULATOR=y
|
||||
+CONFIG_OF_CONTROL=y
|
||||
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
+CONFIG_SARADC_MESON=y
|
||||
+CONFIG_MMC_MESON_GX=y
|
||||
+CONFIG_PHY_MESON_GXL=y
|
||||
+CONFIG_DM_MDIO=y
|
||||
+CONFIG_DM_MDIO_MUX=y
|
||||
+CONFIG_ETH_DESIGNWARE_MESON8B=y
|
||||
+CONFIG_MDIO_MUX_MMIOREG=y
|
||||
+CONFIG_MESON_GXL_USB_PHY=y
|
||||
+CONFIG_PINCTRL=y
|
||||
+CONFIG_PINCTRL_MESON_GXL=y
|
||||
+CONFIG_DM_REGULATOR=y
|
||||
+CONFIG_DM_REGULATOR_FIXED=y
|
||||
+CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
+CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
+CONFIG_MESON_SERIAL=y
|
||||
+CONFIG_SYSINFO=y
|
||||
+CONFIG_SYSINFO_SMBIOS=y
|
||||
+CONFIG_USB=y
|
||||
+CONFIG_DM_USB_GADGET=y
|
||||
+CONFIG_USB_XHCI_HCD=y
|
||||
+CONFIG_USB_XHCI_DWC3=y
|
||||
+CONFIG_USB_DWC3=y
|
||||
+# CONFIG_USB_DWC3_GADGET is not set
|
||||
+CONFIG_USB_DWC3_MESON_GXL=y
|
||||
+CONFIG_USB_GADGET=y
|
||||
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b8e
|
||||
+CONFIG_USB_GADGET_PRODUCT_NUM=0xfada
|
||||
+CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
--
|
||||
2.39.2
|
||||
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
# Reference: <https://u-boot.readthedocs.io/en/latest/board/amlogic/radxa-zero.html>
|
||||
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
||||
pkgname=u-boot-amediatech-x96-mini
|
||||
pkgver=2023.04
|
||||
pkgrel=1
|
||||
pkgdesc="U-Boot bootloader for Amediatech x96 mini"
|
||||
url="https://source.denx.de/u-boot"
|
||||
arch="aarch64"
|
||||
_ubootver=2023.04-rc3
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11 proprietary"
|
||||
makedepends="$depends_dev
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl-dev
|
||||
py3-setuptools
|
||||
python3-dev
|
||||
swig
|
||||
bash
|
||||
"
|
||||
options="!check"
|
||||
# https://u-boot.readthedocs.io/en/latest/board/amlogic/pre-generated-fip.html
|
||||
_amlogicblob_commit="e96b6a694380ff07d5a9e4be644ffe254bd18512"
|
||||
source="https://source.denx.de/u-boot/u-boot/-/archive/v$_ubootver/u-boot-v$_ubootver.tar.gz
|
||||
0001-add-x96-mini-support.patch
|
||||
amlogicblob_amediatech_x96_mini.tar.gz::https://github.com/LibreELEC/amlogic-boot-fip/archive/$_amlogicblob_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/u-boot-v$_ubootver"
|
||||
_fipbuilddir="$srcdir/amlogic-boot-fip-$_amlogicblob_commit"
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
make x96_mini_defconfig
|
||||
make all
|
||||
cd $_fipbuilddir
|
||||
mkdir build
|
||||
# We dont have the fip for x96 mini so we use jethub j80's fip
|
||||
./build-fip.sh jethub-j80 $builddir/u-boot.bin ./build
|
||||
cd ./build
|
||||
dd if=u-boot.bin.sd.bin of=u-boot.bin.sd-stripped.bin conv=fsync,notrunc bs=512 skip=1
|
||||
}
|
||||
|
||||
package() {
|
||||
_installdir="$pkgdir/usr/share/u-boot/amediatech-x96-mini"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd-stripped.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.bl2" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.tpl" -t "$_installdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4d2afc652d1431f17694bb41493c699dd477c82b466282a24094c59fada558df7c8a79518c1804729a73dd901d2e24beb1643313cb2d93d348559410182bc67b u-boot-v2023.04-rc3.tar.gz
|
||||
3d78bbf9f945acce5bc9a54cc67b62a5958b5ff66e252cfced46efba05cf9e442086692b8d8c056b8e42bfff28ede1ad6069e9437c96883d38f2fd6dbf01b2dc 0001-add-x96-mini-support.patch
|
||||
98ecbbc56e8326ce11db4e316a7bb3812d713fbe630235825ddb657b28419eb406f7117208a5c0360653ebdccb9af1a48357d0c257cd61f11a8c3cdaa78548b5 amlogicblob_amediatech_x96_mini.tar.gz
|
||||
"
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
# Reference: <https://u-boot.readthedocs.io/en/latest/board/amlogic/radxa-zero.html>
|
||||
# Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
|
||||
pkgname=u-boot-bananapi-bpi-cm4
|
||||
pkgver=2024.04
|
||||
pkgrel=0
|
||||
pkgdesc="U-Boot bootloader for BananaPi BPI-CM4"
|
||||
url="https://source.denx.de/u-boot"
|
||||
arch="aarch64"
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11 proprietary"
|
||||
makedepends="$depends_dev
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl-dev
|
||||
py3-setuptools
|
||||
python3-dev
|
||||
swig
|
||||
bash
|
||||
qemu-x86_64
|
||||
"
|
||||
options="!check"
|
||||
# https://u-boot.readthedocs.io/en/latest/board/amlogic/pre-generated-fip.html
|
||||
_amlogicblob_commit="8599bc77b17f38e69275f6145acc5792faab735e"
|
||||
|
||||
source="
|
||||
https://source.denx.de/u-boot/u-boot/-/archive/v$pkgver/u-boot-v$pkgver.tar.gz
|
||||
amlogicblobs-$_amlogicblob_commit.tar.gz::https://github.com/LibreELEC/amlogic-boot-fip/archive/$_amlogicblob_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/u-boot-v$pkgver"
|
||||
_fipbuilddir="$srcdir/amlogic-boot-fip-$_amlogicblob_commit"
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
make bananapi-cm4-cm4io_defconfig
|
||||
make all
|
||||
cd $_fipbuilddir
|
||||
mkdir build
|
||||
./build-fip.sh bananapi-cm4io $builddir/u-boot.bin ./build
|
||||
cd ./build
|
||||
dd if=u-boot.bin.sd.bin of=u-boot.bin.sd-stripped.bin conv=fsync,notrunc bs=512 skip=1
|
||||
}
|
||||
|
||||
package() {
|
||||
_installdir="$pkgdir/usr/share/u-boot/bananapi-bpi-cm4"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd-stripped.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.bl2" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.tpl" -t "$_installdir"
|
||||
}
|
||||
|
||||
|
||||
sha512sums="
|
||||
be9b0176337fe9321ac244a16a17dfc1fb976b019de36c78d52149fe7c9d89d2907321be4c0c2faf0d47a4982212501f29063dbd01a005ce2c54e072159e0e3e u-boot-v2024.04.tar.gz
|
||||
74c57daff859e7f449bd2743c7a8c0358b8dbe5d321ddb3a5b242b4d35683890d500d23e769490b1419a18bed233aea03ee11103bb4d646c502e4018283ba975 amlogicblobs-8599bc77b17f38e69275f6145acc5792faab735e.tar.gz
|
||||
"
|
||||
|
|
@ -1,218 +0,0 @@
|
|||
From e8914ff61f978a65a3647517535181f973830afb Mon Sep 17 00:00:00 2001
|
||||
From: "@exkc" <exkc@exkc.moe>
|
||||
Date: Sat, 4 Mar 2023 23:50:49 +0800
|
||||
Subject: [PATCH] add basic support for beelink-gt1
|
||||
|
||||
---
|
||||
.../dts/meson-gxm-gt1-ultimate-u-boot.dtsi | 7 ++
|
||||
arch/arm/dts/meson-gxm-gt1-ultimate.dts | 91 +++++++++++++++++++
|
||||
configs/gt1_ultimate_defconfig | 85 +++++++++++++++++
|
||||
3 files changed, 183 insertions(+)
|
||||
create mode 100644 arch/arm/dts/meson-gxm-gt1-ultimate-u-boot.dtsi
|
||||
create mode 100644 arch/arm/dts/meson-gxm-gt1-ultimate.dts
|
||||
create mode 100644 configs/gt1_ultimate_defconfig
|
||||
|
||||
diff --git a/arch/arm/dts/meson-gxm-gt1-ultimate-u-boot.dtsi b/arch/arm/dts/meson-gxm-gt1-ultimate-u-boot.dtsi
|
||||
new file mode 100644
|
||||
index 0000000000..39270ea71c
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/dts/meson-gxm-gt1-ultimate-u-boot.dtsi
|
||||
@@ -0,0 +1,7 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright (c) 2019 BayLibre, SAS.
|
||||
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
|
||||
+ */
|
||||
+
|
||||
+#include "meson-gxl-u-boot.dtsi"
|
||||
diff --git a/arch/arm/dts/meson-gxm-gt1-ultimate.dts b/arch/arm/dts/meson-gxm-gt1-ultimate.dts
|
||||
new file mode 100644
|
||||
index 0000000000..2c267884cc
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/dts/meson-gxm-gt1-ultimate.dts
|
||||
@@ -0,0 +1,91 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright (c) Christian Hewitt <christianshewitt@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "meson-gxm.dtsi"
|
||||
+#include "meson-gx-p23x-q20x.dtsi"
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+#include <dt-bindings/leds/common.h>
|
||||
+
|
||||
+/ {
|
||||
+ compatible = "azw,gt1-ultimate", "amlogic,s912", "amlogic,meson-gxm";
|
||||
+ model = "Beelink GT1 Ultimate";
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ led-white {
|
||||
+ color = <LED_COLOR_ID_WHITE>;
|
||||
+ function = LED_FUNCTION_POWER;
|
||||
+ gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "on";
|
||||
+ panic-indicator;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ adc-keys {
|
||||
+ compatible = "adc-keys";
|
||||
+ io-channels = <&saradc 0>;
|
||||
+ io-channel-names = "buttons";
|
||||
+ keyup-threshold-microvolt = <1710000>;
|
||||
+
|
||||
+ button-function {
|
||||
+ label = "update";
|
||||
+ linux,code = <KEY_VENDOR>;
|
||||
+ press-threshold-microvolt = <10000>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+ðmac {
|
||||
+ pinctrl-0 = <ð_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ phy-handle = <&external_phy>;
|
||||
+ amlogic,tx-delay-ns = <2>;
|
||||
+ phy-mode = "rgmii";
|
||||
+};
|
||||
+
|
||||
+&external_mdio {
|
||||
+ external_phy: ethernet-phy@0 {
|
||||
+ /* Realtek RTL8211F (0x001cc916) */
|
||||
+ reg = <0>;
|
||||
+ max-speed = <1000>;
|
||||
+
|
||||
+ reset-assert-us = <10000>;
|
||||
+ reset-deassert-us = <80000>;
|
||||
+ reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
|
||||
+
|
||||
+ interrupt-parent = <&gpio_intc>;
|
||||
+ /* MAC_INTR on GPIOZ_15 */
|
||||
+ interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&ir {
|
||||
+ linux,rc-map-name = "rc-beelink-gs1";
|
||||
+};
|
||||
+
|
||||
+&sd_emmc_a {
|
||||
+ brcmf: wifi@1 {
|
||||
+ reg = <1>;
|
||||
+ compatible = "brcm,bcm4329-fmac";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&uart_A {
|
||||
+ status = "okay";
|
||||
+ pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ uart-has-rtscts;
|
||||
+
|
||||
+ bluetooth {
|
||||
+ compatible = "brcm,bcm43438-bt";
|
||||
+ shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
|
||||
+ max-speed = <2000000>;
|
||||
+ clocks = <&wifi32k>;
|
||||
+ clock-names = "lpo";
|
||||
+ };
|
||||
+};
|
||||
diff --git a/configs/beelink_gt1_ultimate_defconfig b/configs/beelink_gt1_ultimate_defconfig
|
||||
new file mode 100644
|
||||
index 0000000000..b5ed30fab4
|
||||
--- /dev/null
|
||||
+++ b/configs/beelink_gt1_ultimate_defconfig
|
||||
@@ -0,0 +1,85 @@
|
||||
+CONFIG_ARM=y
|
||||
+CONFIG_ARCH_MESON=y
|
||||
+CONFIG_TEXT_BASE=0x01000000
|
||||
+CONFIG_NR_DRAM_BANKS=1
|
||||
+CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
|
||||
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x20000000
|
||||
+CONFIG_ENV_SIZE=0x10000
|
||||
+CONFIG_ENV_OFFSET=0xFFFF0000
|
||||
+CONFIG_ENV_SECT_SIZE=0x10000
|
||||
+CONFIG_DM_GPIO=y
|
||||
+CONFIG_DEFAULT_DEVICE_TREE="meson-gxm-gt1-ultimate"
|
||||
+CONFIG_DM_RESET=y
|
||||
+CONFIG_MESON_GXM=y
|
||||
+CONFIG_DEBUG_UART_BASE=0xc81004c0
|
||||
+CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
+CONFIG_IDENT_STRING=" gt1-ultimate"
|
||||
+CONFIG_SYS_LOAD_ADDR=0x1000000
|
||||
+CONFIG_DEBUG_UART=y
|
||||
+CONFIG_REMAKE_ELF=y
|
||||
+CONFIG_OF_BOARD_SETUP=y
|
||||
+CONFIG_USE_PREBOOT=y
|
||||
+# CONFIG_DISPLAY_CPUINFO is not set
|
||||
+CONFIG_MISC_INIT_R=y
|
||||
+CONFIG_SYS_MAXARGS=32
|
||||
+# CONFIG_CMD_BDI is not set
|
||||
+# CONFIG_CMD_IMI is not set
|
||||
+CONFIG_CMD_ADC=y
|
||||
+CONFIG_CMD_GPIO=y
|
||||
+# CONFIG_CMD_LOADS is not set
|
||||
+CONFIG_CMD_MMC=y
|
||||
+CONFIG_CMD_SF_TEST=y
|
||||
+CONFIG_CMD_SPI=y
|
||||
+CONFIG_CMD_USB=y
|
||||
+CONFIG_CMD_USB_MASS_STORAGE=y
|
||||
+# CONFIG_CMD_SETEXPR is not set
|
||||
+CONFIG_CMD_REGULATOR=y
|
||||
+CONFIG_OF_CONTROL=y
|
||||
+CONFIG_ENV_IS_IN_SPI_FLASH=y
|
||||
+CONFIG_SARADC_MESON=y
|
||||
+CONFIG_MMC_MESON_GX=y
|
||||
+CONFIG_MTD=y
|
||||
+CONFIG_DM_SPI_FLASH=y
|
||||
+CONFIG_SPI_FLASH_GIGADEVICE=y
|
||||
+CONFIG_PHY_REALTEK=y
|
||||
+CONFIG_DM_MDIO=y
|
||||
+CONFIG_DM_MDIO_MUX=y
|
||||
+CONFIG_ETH_DESIGNWARE_MESON8B=y
|
||||
+CONFIG_MDIO_MUX_MMIOREG=y
|
||||
+CONFIG_MESON_GXL_USB_PHY=y
|
||||
+CONFIG_PINCTRL=y
|
||||
+CONFIG_PINCTRL_MESON_GXL=y
|
||||
+CONFIG_POWER_DOMAIN=y
|
||||
+CONFIG_MESON_EE_POWER_DOMAIN=y
|
||||
+CONFIG_DM_REGULATOR=y
|
||||
+CONFIG_DM_REGULATOR_FIXED=y
|
||||
+CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
+CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
+CONFIG_MESON_SERIAL=y
|
||||
+CONFIG_SPI=y
|
||||
+CONFIG_DM_SPI=y
|
||||
+CONFIG_MESON_SPIFC=y
|
||||
+CONFIG_USB=y
|
||||
+CONFIG_DM_USB_GADGET=y
|
||||
+CONFIG_USB_XHCI_HCD=y
|
||||
+CONFIG_USB_XHCI_DWC3=y
|
||||
+CONFIG_USB_DWC3=y
|
||||
+# CONFIG_USB_DWC3_GADGET is not set
|
||||
+CONFIG_USB_DWC3_MESON_GXL=y
|
||||
+CONFIG_USB_KEYBOARD=y
|
||||
+CONFIG_USB_GADGET=y
|
||||
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b8e
|
||||
+CONFIG_USB_GADGET_PRODUCT_NUM=0xfada
|
||||
+CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
+CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
+CONFIG_VIDEO=y
|
||||
+CONFIG_SYS_WHITE_ON_BLACK=y
|
||||
+CONFIG_VIDEO_MESON=y
|
||||
+CONFIG_VIDEO_DT_SIMPLEFB=y
|
||||
+CONFIG_SPLASH_SCREEN=y
|
||||
+CONFIG_SPLASH_SCREEN_ALIGN=y
|
||||
+CONFIG_VIDEO_BMP_RLE8=y
|
||||
+CONFIG_BMP_16BPP=y
|
||||
+CONFIG_BMP_24BPP=y
|
||||
+CONFIG_BMP_32BPP=y
|
||||
+CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
--
|
||||
2.39.1
|
||||
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
# Reference: <https://u-boot.readthedocs.io/en/latest/board/amlogic/radxa-zero.html>
|
||||
# Maintainer:
|
||||
pkgname=u-boot-beelink-gt1
|
||||
pkgver=2023.04
|
||||
pkgrel=1
|
||||
pkgdesc="U-Boot bootloader for Beelink gt1"
|
||||
url="https://source.denx.de/u-boot"
|
||||
arch="aarch64"
|
||||
_ubootver=2023.04-rc3
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11 proprietary"
|
||||
makedepends="$depends_dev
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl-dev
|
||||
py3-setuptools
|
||||
python3-dev
|
||||
swig
|
||||
bash
|
||||
"
|
||||
options="!check"
|
||||
# https://u-boot.readthedocs.io/en/latest/board/amlogic/pre-generated-fip.html
|
||||
_amlogicblob_commit="e96b6a694380ff07d5a9e4be644ffe254bd18512"
|
||||
source="https://source.denx.de/u-boot/u-boot/-/archive/v$_ubootver/u-boot-v$_ubootver.tar.gz
|
||||
0001-add-basic-support-for-beelink-gt1.patch
|
||||
amlogicblob_beelink-gt1.tar.gz::https://github.com/LibreELEC/amlogic-boot-fip/archive/$_amlogicblob_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/u-boot-v$_ubootver"
|
||||
_fipbuilddir="$srcdir/amlogic-boot-fip-$_amlogicblob_commit"
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
make ARCH=arm beelink_gt1_ultimate_defconfig
|
||||
make ARCH=arm all
|
||||
cd $_fipbuilddir
|
||||
mkdir build
|
||||
./build-fip.sh beelink-gt1 $builddir/u-boot.bin ./build
|
||||
cd ./build
|
||||
dd if=u-boot.bin.sd.bin of=u-boot.bin.sd-stripped.bin conv=fsync,notrunc bs=512 skip=1
|
||||
}
|
||||
|
||||
package() {
|
||||
_installdir="$pkgdir/usr/share/u-boot/beelink-gt1"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd-stripped.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.bl2" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.tpl" -t "$_installdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4d2afc652d1431f17694bb41493c699dd477c82b466282a24094c59fada558df7c8a79518c1804729a73dd901d2e24beb1643313cb2d93d348559410182bc67b u-boot-v2023.04-rc3.tar.gz
|
||||
d870e1ea53e70038600c9a9ac03a2493f511ebf27231ff899c6f2c6f3d9160d91882871553e48475b46a4ba80f9037f7fcb0243b26649f7f3753fa13d220e352 0001-add-basic-support-for-beelink-gt1.patch
|
||||
98ecbbc56e8326ce11db4e316a7bb3812d713fbe630235825ddb657b28419eb406f7117208a5c0360653ebdccb9af1a48357d0c257cd61f11a8c3cdaa78548b5 amlogicblob_beelink-gt1.tar.gz
|
||||
"
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
# Reference: <https://u-boot.readthedocs.io/en/latest/board/amlogic/radxa-zero.html>
|
||||
# Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
|
||||
pkgname=u-boot-librecomputer-lepotato
|
||||
pkgver=2023.04
|
||||
pkgrel=1
|
||||
pkgdesc="U-Boot bootloader for Libre Computer AML-S905X-CC-V1.0"
|
||||
url="https://source.denx.de/u-boot"
|
||||
arch="aarch64"
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11 proprietary"
|
||||
makedepends="$depends_dev
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl-dev
|
||||
py3-setuptools
|
||||
python3-dev
|
||||
swig
|
||||
bash
|
||||
"
|
||||
options="!check"
|
||||
# https://u-boot.readthedocs.io/en/latest/board/amlogic/pre-generated-fip.html
|
||||
_amlogicblob_commit="e96b6a694380ff07d5a9e4be644ffe254bd18512"
|
||||
source="
|
||||
https://source.denx.de/u-boot/u-boot/-/archive/v$pkgver/u-boot-v$pkgver.tar.gz
|
||||
amlogicblobs.tar.gz::https://github.com/LibreELEC/amlogic-boot-fip/archive/$_amlogicblob_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/u-boot-v$pkgver"
|
||||
_fipbuilddir="$srcdir/amlogic-boot-fip-$_amlogicblob_commit"
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
make libretech-cc_defconfig
|
||||
make all
|
||||
cd $_fipbuilddir
|
||||
mkdir build
|
||||
./build-fip.sh lepotato $builddir/u-boot.bin ./build
|
||||
cd ./build
|
||||
dd if=u-boot.bin.sd.bin of=u-boot.bin.sd-stripped.bin conv=fsync,notrunc bs=512 skip=1
|
||||
}
|
||||
|
||||
package() {
|
||||
_installdir="$pkgdir/usr/share/u-boot/librecomputer-lepotato"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd-stripped.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.bl2" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.tpl" -t "$_installdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
52a81c3733c7b8a3e95227e1ad2f7315851c0eba14f44576ba4a320897cdc387b763323ec0a750ee111ddd82e9333e834f01e097bf4840d08eab9185427c3fba u-boot-v2023.04.tar.gz
|
||||
98ecbbc56e8326ce11db4e316a7bb3812d713fbe630235825ddb657b28419eb406f7117208a5c0360653ebdccb9af1a48357d0c257cd61f11a8c3cdaa78548b5 amlogicblobs.tar.gz
|
||||
"
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
# Reference: <https://u-boot.readthedocs.io/en/latest/board/amlogic/radxa-zero.html>
|
||||
# Maintainer: hexaheximal <hexaheximal@proton.me>
|
||||
pkgname=u-boot-odroid-c4
|
||||
pkgver=2024.04
|
||||
pkgrel=0
|
||||
pkgdesc="U-Boot bootloader for ODROID C4"
|
||||
url="https://source.denx.de/u-boot"
|
||||
arch="aarch64"
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11 proprietary"
|
||||
makedepends="$depends_dev
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl-dev
|
||||
py3-setuptools
|
||||
python3-dev
|
||||
swig
|
||||
bash
|
||||
qemu-x86_64
|
||||
"
|
||||
options="!check"
|
||||
# https://u-boot.readthedocs.io/en/latest/board/amlogic/pre-generated-fip.html
|
||||
_amlogicblob_commit="8599bc77b17f38e69275f6145acc5792faab735e"
|
||||
source="
|
||||
https://source.denx.de/u-boot/u-boot/-/archive/v$pkgver/u-boot-v$pkgver.tar.gz
|
||||
amlogicblobs-$_amlogicblob_commit.tar.gz::https://github.com/LibreELEC/amlogic-boot-fip/archive/$_amlogicblob_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/u-boot-v$pkgver"
|
||||
_fipbuilddir="$srcdir/amlogic-boot-fip-$_amlogicblob_commit"
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
make odroid-c4_defconfig
|
||||
make all
|
||||
cd $_fipbuilddir
|
||||
mkdir build
|
||||
./build-fip.sh odroid-c4 $builddir/u-boot.bin ./build
|
||||
cd ./build
|
||||
dd if=u-boot.bin.sd.bin of=u-boot.bin.sd-stripped.bin conv=fsync,notrunc bs=512 skip=1
|
||||
}
|
||||
|
||||
package() {
|
||||
_installdir="$pkgdir/usr/share/u-boot/odroid-c4"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd-stripped.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.bl2" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.tpl" -t "$_installdir"
|
||||
}
|
||||
|
||||
|
||||
sha512sums="
|
||||
be9b0176337fe9321ac244a16a17dfc1fb976b019de36c78d52149fe7c9d89d2907321be4c0c2faf0d47a4982212501f29063dbd01a005ce2c54e072159e0e3e u-boot-v2024.04.tar.gz
|
||||
74c57daff859e7f449bd2743c7a8c0358b8dbe5d321ddb3a5b242b4d35683890d500d23e769490b1419a18bed233aea03ee11103bb4d646c502e4018283ba975 amlogicblobs-8599bc77b17f38e69275f6145acc5792faab735e.tar.gz
|
||||
"
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
# Reference: <https://u-boot.readthedocs.io/en/latest/board/amlogic/radxa-zero.html>
|
||||
# Maintainer: hexaheximal <hexaheximal@proton.me>
|
||||
pkgname=u-boot-odroid-n2plus
|
||||
pkgver=2024.04
|
||||
pkgrel=0
|
||||
pkgdesc="U-Boot bootloader for ODROID N2+"
|
||||
url="https://source.denx.de/u-boot"
|
||||
arch="aarch64"
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11 proprietary"
|
||||
makedepends="$depends_dev
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl-dev
|
||||
py3-setuptools
|
||||
python3-dev
|
||||
swig
|
||||
bash
|
||||
qemu-x86_64
|
||||
"
|
||||
options="!check"
|
||||
# https://u-boot.readthedocs.io/en/latest/board/amlogic/pre-generated-fip.html
|
||||
_amlogicblob_commit="8599bc77b17f38e69275f6145acc5792faab735e"
|
||||
|
||||
source="
|
||||
https://source.denx.de/u-boot/u-boot/-/archive/v$pkgver/u-boot-v$pkgver.tar.gz
|
||||
amlogicblobs-$_amlogicblob_commit.tar.gz::https://github.com/LibreELEC/amlogic-boot-fip/archive/$_amlogicblob_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/u-boot-v$pkgver"
|
||||
_fipbuilddir="$srcdir/amlogic-boot-fip-$_amlogicblob_commit"
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
make odroid-n2_defconfig
|
||||
make all
|
||||
cd $_fipbuilddir
|
||||
mkdir build
|
||||
./build-fip.sh odroid-n2-plus $builddir/u-boot.bin ./build
|
||||
cd ./build
|
||||
dd if=u-boot.bin.sd.bin of=u-boot.bin.sd-stripped.bin conv=fsync,notrunc bs=512 skip=1
|
||||
}
|
||||
|
||||
package() {
|
||||
_installdir="$pkgdir/usr/share/u-boot/odroid-n2"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd-stripped.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.sd.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.bl2" -t "$_installdir"
|
||||
install -Dm644 "$_fipbuilddir/build/u-boot.bin.usb.tpl" -t "$_installdir"
|
||||
}
|
||||
|
||||
|
||||
sha512sums="
|
||||
be9b0176337fe9321ac244a16a17dfc1fb976b019de36c78d52149fe7c9d89d2907321be4c0c2faf0d47a4982212501f29063dbd01a005ce2c54e072159e0e3e u-boot-v2024.04.tar.gz
|
||||
74c57daff859e7f449bd2743c7a8c0358b8dbe5d321ddb3a5b242b4d35683890d500d23e769490b1419a18bed233aea03ee11103bb4d646c502e4018283ba975 amlogicblobs-8599bc77b17f38e69275f6145acc5792faab735e.tar.gz
|
||||
"
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
# Reference: <https://u-boot.readthedocs.io/en/latest/board/amlogic/radxa-zero.html>
|
||||
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
||||
pkgname=u-boot-radxa-zero
|
||||
pkgver=2023.01
|
||||
pkgrel=1
|
||||
pkgdesc="U-Boot bootloader for the PINE64 PinePhone"
|
||||
url="https://source.denx.de/u-boot"
|
||||
arch="aarch64"
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11 proprietary"
|
||||
makedepends="$depends_dev
|
||||
bc
|
||||
bison
|
||||
dtc
|
||||
flex
|
||||
openssl-dev
|
||||
py3-setuptools
|
||||
python3-dev
|
||||
swig
|
||||
bash
|
||||
"
|
||||
options="!check"
|
||||
# https://u-boot.readthedocs.io/en/latest/board/amlogic/pre-generated-fip.html
|
||||
_amlogicblob_commit="5b8beba2f50ce06219c4e4844101226a81aef854"
|
||||
source="https://source.denx.de/u-boot/u-boot/-/archive/v$pkgver/u-boot-v$pkgver.tar.gz
|
||||
amlogicblob.tar.gz::https://github.com/radxa/fip/archive/$_amlogicblob_commit.tar.gz
|
||||
"
|
||||
builddir="$srcdir/u-boot-v$pkgver"
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
export BUILD_DIR="$builddir"/build
|
||||
mkdir -p "$BUILD_DIR"
|
||||
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm radxa-zero_defconfig
|
||||
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm all
|
||||
cd $srcdir/fip-$_amlogicblob_commit/radxa-zero
|
||||
cp $srcdir/u-boot-v$pkgver/build/u-boot.bin ./bl33.bin
|
||||
make
|
||||
dd if=u-boot.bin.sd.bin of=u-boot.bin.sd-stripped.bin conv=fsync,notrunc bs=512 skip=1
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
install -D -m644 "$srcdir/fip-$_amlogicblob_commit/radxa-zero/u-boot.bin.sd-stripped.bin" \
|
||||
"$pkgdir/usr/share/u-boot/radxa-zero/u-boot.bin.sd-stripped.bin"
|
||||
install -D -m644 "$srcdir/fip-$_amlogicblob_commit/radxa-zero/u-boot.bin.sd.bin" \
|
||||
"$pkgdir/usr/share/u-boot/radxa-zero/u-boot.bin.sd.bin"
|
||||
install -D -m644 "$srcdir/fip-$_amlogicblob_commit/radxa-zero/u-boot.bin" \
|
||||
"$pkgdir/usr/share/u-boot/radxa-zero/u-boot.bin"
|
||||
install -D -m644 "$srcdir/fip-$_amlogicblob_commit/radxa-zero/u-boot.bin.usb.bl2" \
|
||||
"$pkgdir/usr/share/u-boot/radxa-zero/u-boot.bin.usb.bl2"
|
||||
install -D -m644 "$srcdir/fip-$_amlogicblob_commit/radxa-zero/u-boot.bin.usb.tpl" \
|
||||
"$pkgdir/usr/share/u-boot/radxa-zero/u-boot.bin.usb.tpl"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c25aae1b0d2f677d295587c6d318f23d52bc3a79e968bed9093645943a9840c56b1f6f44e5649d236e76e3dc85f0473c1da4a5205c02dcf437bca820acaf6fb8 u-boot-v2023.01.tar.gz
|
||||
3ac5fa8f0ef702585de71a8e0364088639b1163e84d5159b7768dda0016eeb97229bd089acfd0559b0ac32ea0d4ee15945c53e5684c0030e089414ff4135aed9 amlogicblob.tar.gz
|
||||
"
|
||||
Loading…
Add table
Add a link
Reference in a new issue