From b18bfd0b71acc9aa70a423f7002e1f71d219954e Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Wed, 15 May 2024 00:05:34 +0200 Subject: [PATCH] Update 00-run-chroot.sh --- stages/02-Packages/00-run-chroot.sh | 70 ++++++++++++++--------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/stages/02-Packages/00-run-chroot.sh b/stages/02-Packages/00-run-chroot.sh index 77d5768..9f3cda7 100644 --- a/stages/02-Packages/00-run-chroot.sh +++ b/stages/02-Packages/00-run-chroot.sh @@ -1,41 +1,41 @@ #!/bin/bash -e -# if [[ "${OS}" == "radxa-debian-rock5a" ]] || [[ "${OS}" == "radxa-debian-rock5b" ]]; then -# #fix radxa's fuckup -# sudo apt update -# PLATFORM_PACKAGES_HOLD="linux-image-rock-5b radxa-system-config-rtk-btusb-dkms r8125-dkms 8852bu-dkms 8852be-dkms task-rockchip radxa-system-config-rockchip linux-image-rock-5a linux-image-5.10.110-6-rockchip linux-image-5.10.110-11-rockchip" -# echo "Holding back platform-specific packages..." -# for package in ${PLATFORM_PACKAGES_HOLD}; do -# echo "Holding ${package}..." -# apt-mark hold ${package} || true -# if [ $? -ne 0 ]; then -# echo "Failed to hold ${package}!" -# fi -# done -# echo "everything is now setup for compiling" -# fi -# if [ -f "/etc/apt/sources.list.d/nvidia-l4t-apt-source.list" ]; then sudo sed -i 's|deb https://repo.download.nvidia.com/jetson/ r35.5 main|deb https://repo.download.nvidia.com/jetson/t194 r35.5 main|' /etc/apt/sources.list.d/nvidia-l4t-apt-source.list; fi -# if [[ "${OS}" == "debian-X20" ]]; then -# # rm -Rf /etc/apt/sources.list.d/* -# # rm -Rf /etc/apt/sources.list -# # touch /etc/apt/sources.list -# apt update -# apt install -y swig gcc-arm* -# sudo sed -i 's/deb \[signed-by=\/usr\/share\/keyrings\/openhd-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/release\/deb\/debian bullseye main/deb \[signed-by=\/usr\/share\/keyrings\/openhd-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/dev-release\/deb\/debian sunxi main/' /etc/apt/sources.list.d/openhd-release.list -# sudo sed -i 's/deb \[signed-by=\/usr\/share\/keyrings\/openhd-dev-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/dev-release\/deb\/debian bullseye main/deb \[signed-by=\/usr\/share\/keyrings\/openhd-dev-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/release\/deb\/debian sunxi main/' /etc/apt/sources.list.d/openhd-release.list -# fi +if [[ "${OS}" == "radxa-debian-rock5a" ]] || [[ "${OS}" == "radxa-debian-rock5b" ]]; then + #fix radxa's fuckup + sudo apt update + PLATFORM_PACKAGES_HOLD="linux-image-rock-5b radxa-system-config-rtk-btusb-dkms r8125-dkms 8852bu-dkms 8852be-dkms task-rockchip radxa-system-config-rockchip linux-image-rock-5a linux-image-5.10.110-6-rockchip linux-image-5.10.110-11-rockchip" + echo "Holding back platform-specific packages..." + for package in ${PLATFORM_PACKAGES_HOLD}; do + echo "Holding ${package}..." + apt-mark hold ${package} || true + if [ $? -ne 0 ]; then + echo "Failed to hold ${package}!" + fi + done + echo "everything is now setup for compiling" + fi + if [ -f "/etc/apt/sources.list.d/nvidia-l4t-apt-source.list" ]; then sudo sed -i 's|deb https://repo.download.nvidia.com/jetson/ r35.5 main|deb https://repo.download.nvidia.com/jetson/t194 r35.5 main|' /etc/apt/sources.list.d/nvidia-l4t-apt-source.list; fi + if [[ "${OS}" == "debian-X20" ]]; then + # rm -Rf /etc/apt/sources.list.d/* + # rm -Rf /etc/apt/sources.list + # touch /etc/apt/sources.list + apt update + apt install -y swig gcc-arm* + sudo sed -i 's/deb \[signed-by=\/usr\/share\/keyrings\/openhd-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/release\/deb\/debian bullseye main/deb \[signed-by=\/usr\/share\/keyrings\/openhd-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/dev-release\/deb\/debian sunxi main/' /etc/apt/sources.list.d/openhd-release.list + sudo sed -i 's/deb \[signed-by=\/usr\/share\/keyrings\/openhd-dev-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/dev-release\/deb\/debian bullseye main/deb \[signed-by=\/usr\/share\/keyrings\/openhd-dev-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/release\/deb\/debian sunxi main/' /etc/apt/sources.list.d/openhd-release.list + fi -# if [[ "${OS}" == "radxa-debian-rock-cm3" ]]; then -# PLATFORM_PACKAGES_HOLD="u-boot-radxa-zero3 radxa-system-config-common radxa-system-config-kernel-cmdline-ttyfiq0 radxa-firmware radxa-system-config-bullseye 8852be-dkms task-rockchip radxa-system-config-rockchip linux-image-radxa-cm3-rpi-cm4-io linux-headers-radxa-cm3-rpi-cm4-io linux-image-5.10.160-12-rk356x linux-headers-5.10.160-12-rk356x" -# echo "Holding back platform-specific packages..." -# for package in ${PLATFORM_PACKAGES_HOLD}; do -# echo "Holding ${package}..." -# apt-mark hold ${package} || true -# if [ $? -ne 0 ]; then -# echo "Failed to hold ${package}!" -# fi -# done -# fi + if [[ "${OS}" == "radxa-debian-rock-cm3" ]]; then + PLATFORM_PACKAGES_HOLD="u-boot-radxa-zero3 radxa-system-config-common radxa-system-config-kernel-cmdline-ttyfiq0 radxa-firmware radxa-system-config-bullseye 8852be-dkms task-rockchip radxa-system-config-rockchip linux-image-radxa-cm3-rpi-cm4-io linux-headers-radxa-cm3-rpi-cm4-io linux-image-5.10.160-12-rk356x linux-headers-5.10.160-12-rk356x" + echo "Holding back platform-specific packages..." + for package in ${PLATFORM_PACKAGES_HOLD}; do + echo "Holding ${package}..." + apt-mark hold ${package} || true + if [ $? -ne 0 ]; then + echo "Failed to hold ${package}!" + fi + done + fi echo "we've now entered a chroot environment, everything should be copied into /opt" echo "_____________________________________________________________________________"