Skip to content

mangopi-sbc/buildroot-mangopi-r

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

Languages

  • Makefile 73.0%
  • C 9.3%
  • Python 7.3%
  • Shell 6.0%
  • C++ 1.1%
  • HTML 1.1%
  • Other 2.2%