# debos-radxa **Repository Path**: radxa/debos-radxa ## Basic Information - **Project Name**: debos-radxa - **Description**: No description available - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-12-23 - **Last Updated**: 2024-10-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # debos-radxa ## Introduction This guide describes how to use debos-radxa, based on [debos](https://github.com/go-debos/debos), to generate Radxa system image. ## Usage In this example we will build ROCK 3A's system image: ``` docker run --rm --interactive --tty --device /dev/kvm --user $(id -u) --security-opt label=disable \ --workdir $PWD --mount "type=bind,source=$PWD,destination=$PWD" --entrypoint ./build.sh godebos/debos \ -c rk3568 -b rock-3a -m ubuntu -d focal -v server -a arm64 -f gpt ``` The generated system images will be copied to `./output` direcotry. You can specify different configuration in the 3rd line. Note: GitHub Actions uses some different options for `docker run` due to their runners do not support nested virtualization (i.e. no `/dev/kvm`). In that's your case you need to specify `--tmpfs /dev/shm:rw,nosuid,nodev,exec,size=4g` instead of `--device /dev/kvm`. It also uses a wrapper script to only build the supported configurations. ## How to debug errors Launch `dev-shell` to get a shell inside debos docker. You can then run `build.sh` to monitor the build status. debos mounts root partition at `/scratch/mnt`, and boot partition is mounted at `/scratch/mnt/boot`. You can also `chroot /scratch/mnt` to examine the file system. Currently `dev-shell` uses a custom docker image to build, so your result might be different from GitHub build. If you want to reproduce GitHub build please use the command from Usage section. ## Add support for new boards `./boards/*/packages.list.d/*.list` are board-specific debos recipes. `./rootfs/packages` contains additional packages. ## Default settings * Default non-root user: rock (password: rock) * Automatically load Bluetooth firmware after startup * The first boot will resize root filesystem to use all available disk space * SSH installed by default * Hostname: board_name