mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/uboot-raspberrypi to 2024.07-2
Fix boot on RPi4B on linux-armv7 by adding native built dtb files and needed config.txt. Without both of these modifications boot either hangs at a blank screen (without config.txt) or at the rainbow screen (with dtb provided by github repo).
This commit is contained in:
parent
bd482dfcb8
commit
8e4d89b849
15 changed files with 35 additions and 3 deletions
|
@ -4,16 +4,17 @@
|
||||||
|
|
||||||
pkgname=uboot-raspberrypi
|
pkgname=uboot-raspberrypi
|
||||||
pkgver=2024.07
|
pkgver=2024.07
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="U-Boot for Raspberry Pi"
|
pkgdesc="U-Boot for Raspberry Pi"
|
||||||
arch=('armv7h' 'aarch64')
|
arch=('armv7h' 'aarch64')
|
||||||
url='https://docs.u-boot.org/en/latest'
|
url='https://docs.u-boot.org/en/latest'
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
backup=('boot/boot.txt' 'boot/boot.scr' 'boot/config.txt')
|
backup=('boot/boot.txt' 'boot/boot.scr' 'boot/config.txt')
|
||||||
makedepends=('bc' 'dtc' 'git')
|
makedepends=('bc' 'dtc' 'git' 'util-linux')
|
||||||
conflicts_armv7h=('linux-rpi' 'linux-rpi-16k')
|
conflicts_armv7h=('linux-rpi' 'linux-rpi-16k')
|
||||||
_commit=c0307606abef9e6070d50047e7fa62d8354d8c29
|
_commit=c0307606abef9e6070d50047e7fa62d8354d8c29
|
||||||
source=(
|
source=(
|
||||||
|
# these work for aarch64 but not for armv7h
|
||||||
"https://github.com/u-boot/u-boot/archive/refs/tags/v${pkgver/rc/-rc}.tar.gz"
|
"https://github.com/u-boot/u-boot/archive/refs/tags/v${pkgver/rc/-rc}.tar.gz"
|
||||||
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-2-b.dtb"
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-2-b.dtb"
|
||||||
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-3-b-plus.dtb"
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-3-b-plus.dtb"
|
||||||
|
@ -30,6 +31,21 @@ source=(
|
||||||
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2712d0-rpi-5-b.dtb"
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2712d0-rpi-5-b.dtb"
|
||||||
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2712-rpi-cm5-cm4io.dtb"
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2712-rpi-cm5-cm4io.dtb"
|
||||||
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2712-rpi-cm5-cm5io.dtb"
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2712-rpi-cm5-cm5io.dtb"
|
||||||
|
# these are from linux-armv7-6.9.8-1
|
||||||
|
bcm2712-rpi-5-b.v7
|
||||||
|
bcm2710-rpi-3-b-plus.v7
|
||||||
|
bcm2711-rpi-cm4-io.v7
|
||||||
|
bcm2712-rpi-cm5-cm4io.v7
|
||||||
|
bcm2710-rpi-3-b.v7
|
||||||
|
bcm2711-rpi-cm4.v7
|
||||||
|
bcm2711-rpi-cm4s.v7
|
||||||
|
bcm2711-rpi-400.v7
|
||||||
|
bcm2712d0-rpi-5-b.v7
|
||||||
|
bcm2710-rpi-zero-2.v7
|
||||||
|
bcm2712-rpi-cm5-cm5io.v7
|
||||||
|
bcm2710-rpi-zero-2-w.v7
|
||||||
|
bcm2710-rpi-cm3.v7
|
||||||
|
bcm2711-rpi-4-b.v7
|
||||||
'0001-rpi-increase-space-for-kernel.patch'
|
'0001-rpi-increase-space-for-kernel.patch'
|
||||||
'boot.txt.v2'
|
'boot.txt.v2'
|
||||||
'boot.txt.v3'
|
'boot.txt.v3'
|
||||||
|
@ -50,6 +66,20 @@ md5sums=('f750ca945f4a4d6a69b36259c8b68689'
|
||||||
'd8619315e6c8896df1727008b7e9359f'
|
'd8619315e6c8896df1727008b7e9359f'
|
||||||
'9fb99782610680f2c5457afb65a60826'
|
'9fb99782610680f2c5457afb65a60826'
|
||||||
'8d16fd383d663662ca60f750a69ed732'
|
'8d16fd383d663662ca60f750a69ed732'
|
||||||
|
'94abb358fd4af83907dc16e19b65d4f3'
|
||||||
|
'0190cba24f7a637cdf6019d6750c59ff'
|
||||||
|
'3efd77582f05e5ca6f55ec14f00810e1'
|
||||||
|
'9fb99782610680f2c5457afb65a60826'
|
||||||
|
'c291d947389308411e3779782522f7c3'
|
||||||
|
'687902e98a5e4367a2b0f3914752a0c9'
|
||||||
|
'fbfe64dc18614d75d22955eeb3a8cae1'
|
||||||
|
'e7edf95cfa70211a6db053615c8c45c3'
|
||||||
|
'd8619315e6c8896df1727008b7e9359f'
|
||||||
|
'7e9846deb2c8f81283ccae35240258e1'
|
||||||
|
'8d16fd383d663662ca60f750a69ed732'
|
||||||
|
'7e9846deb2c8f81283ccae35240258e1'
|
||||||
|
'8dea82ecb9ec769246767836c74fb8f7'
|
||||||
|
'35074bb767e8b259c5825b0c1f17fd60'
|
||||||
'636c8ac2098ebf0acdc2ff15430edf0d'
|
'636c8ac2098ebf0acdc2ff15430edf0d'
|
||||||
'69e883f0b8d1686b32bdf79684623f06'
|
'69e883f0b8d1686b32bdf79684623f06'
|
||||||
'be8abe44b86d63428d7ac3acc64ee3bf'
|
'be8abe44b86d63428d7ac3acc64ee3bf'
|
||||||
|
@ -83,13 +113,15 @@ package() {
|
||||||
if [[ $CARCH == "armv7h" ]]; then
|
if [[ $CARCH == "armv7h" ]]; then
|
||||||
cp u-boot.bin ${pkgdir}/boot/kernel7.img
|
cp u-boot.bin ${pkgdir}/boot/kernel7.img
|
||||||
cp ../boot.txt.v2 ../boot.txt
|
cp ../boot.txt.v2 ../boot.txt
|
||||||
|
cp ../*.v7 ${pkgdir}/boot
|
||||||
|
rename .v7 .dtb ${pkgdir}/boot/*
|
||||||
elif [[ $CARCH == "aarch64" ]]; then
|
elif [[ $CARCH == "aarch64" ]]; then
|
||||||
cp u-boot.bin ${pkgdir}/boot/kernel8.img
|
cp u-boot.bin ${pkgdir}/boot/kernel8.img
|
||||||
cp ../*.dtb ${pkgdir}/boot
|
cp ../*.dtb ${pkgdir}/boot
|
||||||
cp ../boot.txt.v3 ../boot.txt
|
cp ../boot.txt.v3 ../boot.txt
|
||||||
echo "enable_uart=1" > ${pkgdir}/boot/config.txt
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "enable_uart=1" > ${pkgdir}/boot/config.txt
|
||||||
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
|
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
|
||||||
cp ../{boot.txt,mkscr} "${pkgdir}"/boot
|
cp ../{boot.txt,mkscr} "${pkgdir}"/boot
|
||||||
}
|
}
|
||||||
|
|
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-3-b-plus.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-3-b-plus.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-3-b.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-3-b.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-cm3.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-cm3.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-zero-2-w.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-zero-2-w.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-zero-2.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2710-rpi-zero-2.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-4-b.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-4-b.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-400.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-400.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-cm4-io.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-cm4-io.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-cm4.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-cm4.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-cm4s.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2711-rpi-cm4s.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2712-rpi-5-b.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2712-rpi-5-b.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2712-rpi-cm5-cm4io.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2712-rpi-cm5-cm4io.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2712-rpi-cm5-cm5io.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2712-rpi-cm5-cm5io.v7
Executable file
Binary file not shown.
BIN
alarm/uboot-raspberrypi/bcm2712d0-rpi-5-b.v7
Executable file
BIN
alarm/uboot-raspberrypi/bcm2712d0-rpi-5-b.v7
Executable file
Binary file not shown.
Loading…
Reference in a new issue