• This repository has been archived on 16/Nov/2023
  • Stars
    star
    128
  • Rank 279,759 (Top 6 %)
  • Language
    Shell
  • Created almost 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This repo is deprecated, please use https://github.com/radxa-repo/rbuild instead

debos-radxa

Introduction

This guide describes how to use debos-radxa, based on debos, to generate Debian/Ubuntu image for Radxa boards.

Please note that the release are auto generated builds without additional testing, if you have issues with the images, please submit an issue.

Supported boards and system images

  • Radxa CM3 IO
  • Radxa E23
  • Radxa E25
  • Radxa NX5
  • Radxa Zero
  • Radxa Zero 2
  • ROCK 3A
  • ROCK 3B
  • ROCK 3C
  • ROCK 5A
  • ROCK 5B
  • ROCK 4B
  • ROCK 4C+

Auto generated build images: https://github.com/radxa/debos-radxa/releases/latest

Build Host PC

Required Packages for the Build Host PC

You must install essential host packages on your build host.

The following command installs the host packages on an Ubuntu distribution.

$ sudo apt-get install -y git

The following command installs the host packages on an Debian distribution.

$ sudo apt-get install -y git user-mode-linux libslirp-helper

Install Docker Engine on Ubuntu

See Docker Docs installing Docker Engine on Ubuntu.

Use Git to Clone debos-radxa

radxa@x86-64:~$ cd ~
radxa@x86-64:~$ git clone https://github.com/radxa/debos-radxa.git

Build Your Image

Get supported board system images

radxa@x86-64:~$ cd ~/debos-radxa/
radxa@x86-64:~/debos-radxa$ docker run --rm --interactive --tty --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=4g --user $(id -u) --security-opt label=disable \
--workdir $PWD --mount "type=bind,source=$PWD,destination=$PWD" --entrypoint ./build-os.sh godebos/debos
TOP DIR = /build/stephen/debos-radxa
====USAGE: ./build-os.sh -b  -m  -v ====
Board list:
    radxa-cm3-io
    radxa-e23
    radxa-e25
    radxa-nx5
    radxa-zero
    radxa-zero2
    rockpi-4b
    rock-4c-plus
    rock-3a
    rock-3b
    rock-3c
    rock-5a
    rock-5b

Model list:
    debian
    ubuntu

Variant list:
    xfce4
    server

Build system image

Exanple: Build ROCK 5B Debian11 Xfce4 image

radxa@x86-64:~$ cd ~/debos-radxa/
radxa@x86-64:~/debos-radxa$
radxa@x86-64:~/debos-radxa$ docker run --rm --interactive --tty --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=4g --user $(id -u) --security-opt label=disable \
--workdir $PWD --mount "type=bind,source=$PWD,destination=$PWD" --entrypoint ./build-os.sh godebos/debos -b rock-5b -m debian -v xfce4

Example: Build ROCK 3A Ubuntu20 server image

radxa@x86-64:~$ cd ~/debos-radxa/
radxa@x86-64:~/debos-radxa$
radxa@x86-64:~/debos-radxa$ docker run --rm --interactive --tty --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=4g --user $(id -u) --security-opt label=disable \
--workdir $PWD --mount "type=bind,source=$PWD,destination=$PWD" --entrypoint ./build-os.sh godebos/debos -b rock-3a -m ubuntu -v server

The generated system images will be copied to ./output direcotry.

How to debug errors

Launch dev-shell to get a shell inside debos docker. You can then run build-os.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

./configs/boards 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

More Repositories

1

manifests

Dockerfile
85
star
2

rockchip-bsp

Linux BSP for ROCK Pi
Dockerfile
83
star
3

rock-pi-images-released

49
star
4

radxa-cm-projects

39
star
5

apt

radxa debian packages repository
CSS
32
star
6

pyRock

Python GPIO module for rockchip platform
Python
28
star
7

oshw

Hardware design from radxa
27
star
8

rockchip-pack-tools

Tools to make linux firmware for rockchip platform.
Shell
26
star
9

u-boot-rockchip

u-boot for rockchip platform such as RK3066/RK3188/RK3168/RK3026
C
25
star
10

initrd

Ramdisk for radxa rock
Shell
21
star
11

overlays

Additional device tree overlays to support different hardwares on Radxa products
Makefile
18
star
12

aml-flash-tool

amlogic flash tool
Shell
16
star
13

radxa-zero-images-released

14
star
14

rock-bsp

Linux BSP for rockchip platform
Makefile
12
star
15

rknpu2

C
12
star
16

rabian-build

Build scripts for Rabian
Shell
11
star
17

documentation

9
star
18

rkwifibt

C
8
star
19

rock-pi-s-images-released

8
star
20

rtkbt

Realtek Bluetooth Linux Driver
C
7
star
21

rknn-api

C
5
star
22

rock-3-images-released

4
star
23

device-rockchip-rk3399

Makefile
3
star
24

armbian-compile-action

GitHub Action for Armbian `compile` command
3
star
25

linux-firmware

C
2
star
26

fip

Amlogic Firmware In Package
Makefile
2
star
27

rockpi4-android-tv-7.1

android tv sdk for rockpi4
Dockerfile
2
star
28

debos-build-action

GitHub Action for debos-radxa `build` command
2
star
29

Android-MraaDemo

Java
2
star
30

rock-pi-4-images-released

1
star
31

rk_ffmpeg_linux

C
1
star
32

device-custom

C
1
star
33

rtl8852bu

Realtek RTL8852BU USB WiFi 6 Module Linux Driver
C
1
star
34

vendor-rockchip-common

C
1
star
35

device-rockchip-common

Makefile
1
star
36

RKTools

Shell
1
star
37

bootable-recovery

C++
1
star