| #!/usr/bin/env bash |
| # shellcheck disable=SC2154 # arch is assigned in previous scripts |
| # When changing this file, you need to bump the following |
| # .gitlab-ci/image-tags.yml tags: |
| # DEBIAN_BASE_TAG |
| # KERNEL_ROOTFS_TAG |
| |
| 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.d/* |
| apt-get update |
| |
| apt-get install -y --no-remove \ |
| cpio \ |
| curl \ |
| fastboot \ |
| netcat-openbsd \ |
| openssh-server \ |
| procps \ |
| python3-distutils \ |
| python3-minimal \ |
| python3-serial \ |
| rsync \ |
| snmp \ |
| zstd |
| |
| # setup SNMPv2 SMI MIB |
| curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \ |
| https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-SMI.txt \ |
| -o /usr/share/snmp/mibs/SNMPv2-SMI.txt |
| |
| . .gitlab-ci/container/baremetal_build.sh |
| |
| 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/ |