Difference between revisions of "IoTGateway/BSP/Linux/Linux BSP User Guide QSC"
From ESS-WIKI
(update docker env setup reference url) |
(update 7" repo command) |
||
Line 12: | Line 12: | ||
$ ../bin/repo sync | $ ../bin/repo sync | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | For 7" model, repo link is | ||
+ | <syntaxhighlight lang="bash">$ ../bin/repo init -u https://github.com/ADVANTECH-Rockchip/linux-manifest.git -b rk3399_v220_dmssa51_07 | ||
+ | $ ../bin/repo sync | ||
+ | </syntaxhighlight> | ||
+ | |||
=== <span style="color:#0070c0">Buid environment</span> === | === <span style="color:#0070c0">Buid environment</span> === | ||
Latest revision as of 07:51, 6 March 2020
Preparation
Getting Debian Source Code
Download codebase
$ mkdir rk3399
$ mkdir bin
$ cd rk3399/
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ../bin/repo
$ chmod a+x ../bin/repo
$ ../bin/repo init -u https://github.com/ADVANTECH-Rockchip/linux-manifest.git -b rk3399_v220_dmssa51
$ ../bin/repo sync
For 7" model, repo link is
$ ../bin/repo init -u https://github.com/ADVANTECH-Rockchip/linux-manifest.git -b rk3399_v220_dmssa51_07
$ ../bin/repo sync
Buid environment
There are various way to setup development environment choose one of the following depends on personal preference.
Ubuntu 16.04 - Buildroot
sudo apt-get install repo git-core 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 gzi
p 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
sudo apt-get install repo git-core 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 gcc-4.8-multilib-arm-linux-gnueabihf gcc-arm-linux-gnueabihf libssl-dev gcc-aarch64-linux-gnu g+conf 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 ascii doc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev texinfo liblz4-tool genext2fs
sudo apt-get install lib32gcc-7-dev g++-7 libstdc++-7-dev
- Follow the instructions in https://github.com/rockchip-linux/docker-rockchip to build docker image
- Start the docker the image just built, then obtain source code in the container to build.
Buid Image
Bootloader
$./build.sh uboot
$./build.sh kernel
$./build.sh debian
$./build.sh firmware