
Visible size reduction and minor performance improvement at no cost. rootfs measure: ``` 2022-07-27 11:15:16.235268: 475MB downloaded in 111.59s (4.26MB/s) 2022-07-27 15:07:40.984857: 425MB downloaded in 85.57s (4.97MB/s) ``` So let say approx. 95s vs 85s if we assume 5MB/s, which can bring us 10s speedup... Acked-by: Guilherme Gallo <guilherme.gallo@collabora.com> Acked-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17776>
41 lines
1.1 KiB
Bash
41 lines
1.1 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 \
|
|
abootimg \
|
|
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/
|