by ionspin » Sun Nov 21, 2021 9:47 pm
$this->bbcode_second_pass_quote('dingausmwald', '@')ionspin
Just to be clear, i used the rpi-aarch64-latest image. Not the aarch64-latest. But i guess you did too.
Yes, that is correct, md5sum 226c986716ac2a0d95b426f5ed3352a4 to be precise.
$this->bbcode_second_pass_quote('graysky', 'K')evin refreshed the images a few days ago. If I understand this thread correctly, it should just work.
http://il.us.mirror.archlinuxarm.org/os ... est.tar.gzor
http://il.us.mirror.archlinuxarm.org/os ... est.tar.gzFirst try 64-bit since I thought that is what I understand works. I do not have the hardware so I cannot.
The rpi-aarch64-latest you linked is the one I was testing with. As far as the ArchLinuxARM-rpi-4-latest, that one worked out of the box, but unfortunately I need a 64-bit system.
I have naively patched uboot to include Zero 2, and now I am stuck at this point
$this->bbcode_second_pass_code('', '
U-Boot 2021.04-1 (Nov 21 2021 - 21:23:36 +0000) Arch Linux ARM
DRAM: 448 MiB
RPI Zero 2 (0x902120)
MMC: mmc@7e202000: 0, mmcnr@7e300000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment
In: serial
Out: vidconsole
Err: vidconsole
Net: No ethernet found.
starting USB...
Bus usb@7e980000: USB DWC2
scanning bus usb@7e980000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
708 bytes read in 2 ms (345.7 KiB/s)
## Executing script at 02c00000
39852544 bytes read in 1648 ms (23.1 MiB/s)
28481 bytes read in 7 ms (3.9 MiB/s)
7231011 bytes read in 301 ms (22.9 MiB/s)
Moving Image from 0x80000 to 0x200000, end=28e0000
## Flattened Device Tree blob at 02e00000
Booting using the fdt blob at 0x2e00000
Using Device Tree in place at 0000000002e00000, end 0000000002e09f40
Starting kernel ...
')
The patch for the uboot was this
$this->bbcode_second_pass_code('', '
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 55afaa54d9..431984870a 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -157,6 +157,11 @@ static const struct rpi_model rpi_models_new_scheme[] = {
DTB_DIR "bcm2711-rpi-4-b.dtb",
true,
},
+ [0x12] = {
+ "Zero 2",
+ DTB_DIR "bcm2710-rpi-zero-2.dtb",
+ true,
+ },
[0x13] = {
"400",
DTB_DIR "bcm2711-rpi-400.dtb",
')
and the accompanying PKGBUILD for uboot-raspberrypi is then this:
$this->bbcode_second_pass_code('', '
# U-Boot: Raspberry Pi
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=12
pkgname=uboot-raspberrypi
pkgver=2021.04
pkgrel=1
pkgdesc="U-Boot for Raspberry Pi"
arch=('armv7h' 'aarch64')
url='http://www.denx.de/wiki/U-Boot/WebHome'
license=('GPL')
backup=('boot/boot.txt' 'boot/boot.scr' 'boot/config.txt')
makedepends=('bc' 'dtc' 'git')
conflicts_armv7h=('linux-raspberrypi')
_commit=12bc6e3677348adaffd155e7a04761e2661d4bff
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-3-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-cm3.dtb"
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2711-rpi-4-b.dtb"
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-zero-2.dtb"
'0001-rpi-increase-space-for-kernel.patch'
'0002-add-rpi-zero-2.patch'
'boot.txt.v2'
'boot.txt.v3'
'mkscr')
md5sums=('1299c23ee4fde7e73a1b9f8f80fd28e0'
'8ec878fae64a80af5cd8b1b35e8c1f04'
'2adcbe600344faccba7c02a48c69d13b'
'1c1b6783d95c9d2da868e3326845e758'
'6d2e63f432358b23f98fd86c956ae0de'
'34d9a7450c0ace160a8d5ad7c31552d5'
'728c4a0a542db702b8d88ffe1994660c'
'f8b4442a2d606930fe21f4e0aede757a'
'69e883f0b8d1686b32bdf79684623f06'
'be8abe44b86d63428d7ac3acc64ee3bf'
'021623a04afd29ac3f368977140cfbfd')
prepare() {
cd u-boot-${pkgver/rc/-rc}
patch -p1 -i ../0001-rpi-increase-space-for-kernel.patch
patch -p1 -i ../0002-add-rpi-zero-2.patch
}
build() {
cd u-boot-${pkgver/rc/-rc}
unset CFLAGS
unset CXXFLAGS
unset CPPFLAGS
make distclean
[[ $CARCH == "armv7h" ]] && make rpi_2_config
[[ $CARCH == "aarch64" ]] && make rpi_arm64_config
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
make EXTRAVERSION=-${pkgrel}
}
package() {
cd u-boot-${pkgver/rc/-rc}
mkdir -p "${pkgdir}"/boot
if [[ $CARCH == "armv7h" ]]; then
cp u-boot.bin ${pkgdir}/boot/kernel7.img
cp ../boot.txt.v2 ../boot.txt
elif [[ $CARCH == "aarch64" ]]; then
cp u-boot.bin ${pkgdir}/boot/kernel8.img
cp ../*.dtb ${pkgdir}/boot
cp ../boot.txt.v3 ../boot.txt
echo "enable_uart=1" > ${pkgdir}/boot/config.txt
fi
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
}
')
I also had to add the bcm2710-rpi-zero-2.dtb to the /boot/dtbs/broadcom/ and didn't have time to figure out how to get that into the PKBUILD just yet, I've never written one before and it's getting late here
I'm receiving a mini-HDMI connector tomorrow so I might be able to see if something different happens when I install linux-raspberrypi4 kernel on aarch64 because I was unable to get UART to work with it.
Thanks for the help in any case!