buildroot-mangopi-r icon indicating copy to clipboard operation
buildroot-mangopi-r copied to clipboard

Buildroot Package for MPi-R1 R2 R3 R3c ( F1C200s )

Buildroot Package for Allwinner SIPs

Opensource development package for Allwinner F1C100s & F1C200s

Driver support

Check this file to view current driver support progress for F1C100s/F1C200s: PROGRESS-SUNIV.md

Check this file to view current driver support progress for V3/V3s/S3/S3L: PROGRESS-V3.md

Install

Install necessary packages

sudo apt install rsync wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev
sudo apt install python3-distutils

Download BSP

Notice: Root permission is not necessery for download or extract.

git clone https://github.com/mangopi-sbc/buildroot-mangopi-r

Make the first build

Notice: Root permission is not necessery for build firmware.

Apply defconfig

Caution: Apply defconfig will reset all buildroot configurations to default values.

Generally, you only need to apply it once.

cd buildroot-mangopi-r
make widora_mangopi_r3_defconfig

Regular build

make

If changed DTS or kenrel build

./rebuild-kernel.sh

If changed Uboot, build

./rebuild-uboot.sh

Speed up build progress

Download dl

Buildroot will download sourcecode when compiling the firmware. You can grab a TRUSTWORTHY archive of 'dl' folder for speed up. https://pan.baidu.com/s/1-5CiMwXMQWjZxsFhsyRC5Q?pwd=1111

.make source

Compile speed

If you have a multicore CPU, you can try

make -j8

or buy a powerful PC for yourself.

Flashing firmware to target

You can flash a board by Linux (Recommended) or Windows system.

Here is the manual.

Helper Scripts

  • rebuild-uboot.sh: Recompile U-Boot when you direct edit U-Boot sourcecode.
  • rebuild-kernel.sh: Recompile Kernel when you direct edit Kernel sourcecode.
  • emulate-chroot.sh: Emulate target rootfs by chroot.