RK3399 board buildroot

I was a little confused when I try to build buildroot because I was new to buildroot. So I write this article to help you ,If you are in the same situation as me. you can see the link below at wiki.friendlyarm.com but It upset me a bit. buildroot for RK3399 at wiki.friendlyarm.com

1 : Install repo Utility

git clone https://github.com/friendlyarm/repo
sudo cp repo/repo/usr/bin/

2 : Retrive Repo Package from Github

mkdir linuxsdk-friendlyelec
cd linuxsdk-friendlyelec
repo init -u https://github.com/friendlyarm/buildroot_manifests -b master -m rk3399_linux_release.xml --repo-url=https://github.com/rockchip-linux/repo --no-clone-bundle
repo sync -c --no-clone-bundle

3 : Setup Compilation Environment

sudo apt-get install repo git gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu mtools parted libudev-dev libusb-1.0-0-dev python-linaro-image-tools linaro-image-tools autoconf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync file bc wget libncurses5 libqt4-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs git mercurial rsync openssh-client subversion asciidoc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev texinfo liblz4-tool genext2fs lib32stdc++6

you'll see sudo apt-get install repo git-core...at wiki.friendlyarm.com but I couldn't use it so just sudo apt-get install repo git ...

4 : Compile Code

1.0 : kernel

./build.sh kernel

it will take 3-10 minute 1.1 : u-boot

./build.sh uboot

it will take a few minute 1.2 : rootfs

./build.sh rootfs

it will take a few hours 5 : Generate Image for SD Card or EMMC 1.0 : Generate Image for SD Card

sudo ./build.sh sd-img

1.1 : Flash an image to an SD card: The "/dev/sdX" needs to be replaced with your actual SD card device name.

./friendlyelec/rk3399/sd-fuse_rk3399/fusing.sh /dev/sdX buildroot

2.0 : Generate Image for EMMC(Eflasher)

sudo ./build.sh emmc-img

Check Help Info buildroothelp.png

I will also write a article for Customize Buildroot

Recommended Posts

RK3399 board buildroot
Drawing board