mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-04 15:44:06 +08:00
13c6d7e97d
On ARM64 appending the dtb does not work with U-Boot and fastbooting with such an image failes like: ## Booting Android Image at 0x40480000 ... Kernel load addr 0x00000000 size 30514 KiB Kernel command line: ip=dhcp console=ttymxc0,115200n8 root=/dev/nfs rw nfsrootdebug init=/init nfsroot=10.10.10.17:/mnt/disks/testing-nfs-root/gc7000-00,vers=3,tcp RAM disk load addr 0x00000000 size 1 KiB Error: header_version must be >= 2 to get dtb Loading Kernel Image "Error" handler, esr 0xbf000002 elr: 000000004029ce70 lr : 000000004029cf0c (reloc) elr: 00000000be59ae70 lr : 00000000be59af0c x0 : 0000000000100000 x1 : 0000000040580800 x2 : 0000000000010000 x3 : 00000000000020c0 x4 : f9402063f9400463 x5 : 0000000000000000 x6 : 0000000000100000 x7 : 0000000006000000 x8 : 00000000b64f1488 x9 : 0000000000000008 x10: 00000000b651c450 x11: 00000000b653df68 x12: 0000000000000000 x13: 0000000000000200 x14: 0000000000000000 x15: 0000000000000020 x16: 00000000be55acc8 x17: 0000000000004530 x18: 00000000b64fddc0 x19: 0000000000100000 x20: 0000000040580800 x21: 0000000001ccc4af x22: 0000000000010000 x23: 0000000000010000 x24: 0000000040480800 x25: 00000000b64f15c8 x26: 0000000000000000 x27: 0000000000000000 x28: 0000000040480800 x29: 00000000b64f1470 Code: d65f03c0 f8636824 f8236804 91002063 (cb030044) Resetting CPU ... resetting ... Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13691>
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
############### Install packages for baremetal testing
|
|
apt-get install -y ca-certificates
|
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
|
|
apt-get update
|
|
|
|
apt-get install -y --no-remove \
|
|
cpio \
|
|
fastboot \
|
|
netcat \
|
|
procps \
|
|
python3-distutils \
|
|
python3-minimal \
|
|
python3-serial \
|
|
rsync \
|
|
snmp \
|
|
wget \
|
|
zstd
|
|
|
|
# setup SNMPv2 SMI MIB
|
|
wget https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-SMI.txt \
|
|
-O /usr/share/snmp/mibs/SNMPv2-SMI.txt
|
|
|
|
arch=arm64 . .gitlab-ci/container/baremetal_build.sh
|
|
arch=armhf . .gitlab-ci/container/baremetal_build.sh
|
|
|
|
# This firmware file from Debian bullseye causes hangs
|
|
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/qcom/a530_pfp.fw?id=d5f9eea5a251d43412b07f5295d03e97b89ac4a5 \
|
|
-O /rootfs-arm64/lib/firmware/qcom/a530_pfp.fw
|
|
|
|
mkdir -p /baremetal-files/jetson-nano/boot/
|
|
ln -s \
|
|
/baremetal-files/Image \
|
|
/baremetal-files/tegra210-p3450-0000.dtb \
|
|
/baremetal-files/jetson-nano/boot/
|
|
|
|
mkdir -p /baremetal-files/jetson-tk1/boot/
|
|
ln -s \
|
|
/baremetal-files/zImage \
|
|
/baremetal-files/tegra124-jetson-tk1.dtb \
|
|
/baremetal-files/jetson-tk1/boot/
|