rock-bsp is a collection of bootloader(u-boot), Linux kernel, flashing tools and toolchains for making a Linux images for radxa products as well as other rockchip based platform. Currently supported boards are:
- rock full(2013)
- rock pro
- rock lite
- rock2 square
supported Linux distributions are Debian
and Ubuntu
.
-
install required packages
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev libusb-1.0-0-dev
you also need to install the following if you run it on 64bit system:
sudo apt-get install libc6-i386
-
get the source code
git clone https://github.com/radxa/rock-bsp.git cd rock-bsp
-
Choose a board doing
./config.sh board
, or./config.sh
to see the list of supported boards../config.sh Usage: ./config.sh < board > supported boards:
- rock2_square
- rock_lite
- rock_pro
-
Run
make
to build and pack nand/emmc/sdcard image ormake help
to list available targetsmake
The directory structure of rock-bsp is as below:
.
├── configs
│ ├── defconfig
│ ├── *board*_config
├── package-file
│ ├── *board*-package-file
├── parameter
│ ├── *board*-parameter
├── rootfs
│ └── rootfs_null.ext4
└── tools
└── scripts
- configs: define board kernel/u-boot repository, revision, defconfigs and rootfs name/url.
- package-file: define what can be packed into the image
- parameter: define kernel command line, emmc/nand partitions
- rootfs: put your rootfs image here and add the image name in board_config
- tools: tools developed by linux-rockchip community and arm toolchains