Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ touch build_chroot.sh OpenHD-ChrootCompiler/additionalFiles/
- Replace `YOURFILES` with the files you need to include.
- Ensure you have your `CLOUDSMITH_API_KEY` ready and place it in the `additionalFiles` directory.

For `x86-jammy` builds with required Artosyn support, you can also provide:

- `artlink_repo.txt` (optional, defaults to OpenHD private ArtLink repo)
- `artlink_branch.txt` (optional, default `sdk`)
- `artlink_fetch_mode.txt` (optional, for example `git-only`)
- `artlink_git_username.txt` + `artlink_git_token.txt`
or `artlink_git_auth.txt` (format `username:token` or token)
- Optional archive inputs:
- `artosyn_sdk_archive.txt` (absolute path in chroot) or
- `artosyn_sdk.tar.gz` / `artosyn_sdk.tgz` / `artosyn_sdk.tar`

=== Building

Update your system and install the required dependencies:
Expand Down Expand Up @@ -82,4 +93,4 @@ This project is licensed under the terms of the GPL-3.0 license . For more infor

== Legal

All logos, names, and brands belong to OpenHD and are not permitted to be used by individuals who are not affiliated with OpenHD.
All logos, names, and brands belong to OpenHD and are not permitted to be used by individuals who are not affiliated with OpenHD.
22 changes: 12 additions & 10 deletions stages/02-Packages/00-run-chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ if [[ "${OS}" == "radxa-debian-rock5a" ]] || [[ "${OS}" == "radxa-debian-rock5b"
# Remove old Radxa repository from sources.list
sudo sed -i '/radxa-repo.github.io/d' /etc/apt/sources.list || true

# Remove any old Radxa repository list files
sudo rm -f /etc/apt/sources.list.d/radxa.list /etc/apt/sources.list.d/70-radxa.list || true
# Disable any old Radxa repository entries before adding the signed source.
sudo find /etc/apt/sources.list.d -name '*.list' -print0 2>/dev/null \
| xargs -0 -r sudo sed -i -E '/radxa-repo\.github\.io/s/^[[:space:]]*deb/# deb/' || true
sudo find /etc/apt/sources.list.d -name '*.sources' -print0 2>/dev/null \
| xargs -0 -r sudo sed -i -E '/URIs:.*radxa-repo\.github\.io/,/^$/s/^/# /' || true

# Remove outdated keys (ignore errors if already gone)
sudo apt-key del E572249A33EB9743 5D93177D0752732A >/dev/null 2>&1 || true
sudo apt-key del E572249A33EB9743 5D93177D0752732A 67A474DD40402951 >/dev/null 2>&1 || true

# Download and install the new Radxa keyring
keyring="$(mktemp)"
Expand All @@ -35,10 +38,8 @@ if [[ "${OS}" == "radxa-debian-rock5a" ]] || [[ "${OS}" == "radxa-debian-rock5b"
sudo dpkg -i "$keyring"
rm -f "$keyring"

# Add the updated repository to sources.list (append if missing)
if ! grep -q 'radxa-repo.github.io/bullseye' /etc/apt/sources.list; then
echo "deb [signed-by=/usr/share/keyrings/radxa-archive-keyring.gpg] https://radxa-repo.github.io/bullseye/ bullseye main" | sudo tee -a /etc/apt/sources.list
fi
# Add the updated repository as the only active Radxa source.
echo "deb [signed-by=/usr/share/keyrings/radxa-archive-keyring.gpg] https://radxa-repo.github.io/bullseye/ bullseye main" | sudo tee /etc/apt/sources.list.d/radxa.list

echo "UPDATING___________"

Expand Down Expand Up @@ -162,9 +163,10 @@ if [[ "${OS}" == "debian-X20" ]]; then
fi

if [[ "${OS}" == "radxa-debian-rock-cm3" ]]; then
sudo apt-key del E572249A33EB9743 5D93177D0752732A >/dev/null 2>&1 || true
wget -qO - https://radxa-repo.github.io/bullseye/public.key | sudo tee /usr/share/keyrings/radxa-apt-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/radxa-apt-keyring.gpg] https://radxa-repo.github.io/bullseye bullseye main" | sudo tee /etc/apt/sources.list.d/radxa.list
sudo apt-key del E572249A33EB9743 5D93177D0752732A 67A474DD40402951 >/dev/null 2>&1 || true
sudo sed -i -E '\|^[[:space:]]*deb[[:space:]]+(\[[^]]+\][[:space:]]+)?https?://radxa-repo\.github\.io/bullseye/?[[:space:]]+bullseye[[:space:]]|s/^[[:space:]]*deb/# deb/' /etc/apt/sources.list || true
sudo find /etc/apt/sources.list.d -name '*.list' -print0 2>/dev/null \
| xargs -0 -r sudo sed -i -E '\|^[[:space:]]*deb[[:space:]]+(\[[^]]+\][[:space:]]+)?https?://radxa-repo\.github\.io/bullseye/?[[:space:]]+bullseye[[:space:]]|s/^[[:space:]]*deb/# deb/' || true
sudo apt-get update
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..."
Expand Down
Loading