Install Tools; Compile Source - Boardcon Embedded Design EM3568 User Manual

Android11
Hide thumbs Also See for EM3568:
Table of Contents

Advertisement

Your Idea
Customize the embedded system based on

2.3 Install Tools

PC OS: ubuntu system
Network: online
Permission: root
$ sudo apt-get install build-essential zlib1g-dev flex libx11-dev gperf libncurses5-dev bison lsb-core
lib32z1-dev g++-multilib lib32ncurses5-dev uboot-mkimage g++-4.4-multilib repo git ssh make gcc
libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support
qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilibdevice-tree-compiler
python-pip ncurses-dev pyelftools unzip

3 Compile Source

Step 1, unzip the source and set the compile board
$ tar xvf sdk-11.0.tar.gz
$ cd sdk-11.0
Step 2, compile uboot
$ cd u-boot
$ ./make.sh rk3568
Step 3, compile the kernel
$ cd kernel
$ make ARCH=arm64 rockchip_defconfig rk356x_evb.config android-11.config
$ make ARCH=arm64 rk3568-evb2-lp4x-v10.img -j24
Android11.0 kernel.img and resource.img are included in boot.img, if you only update the kernel, you
can compile the kernel separately with the following command. After compiling, you can directly flash
the boot.img under kernel directory.
$ make ARCH=arm64 rockchip_defconfig rk356x_evb.config android-11.config
$ make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3568_r/boot.img rk3568-evb2-lp4x-v10.img
-j24
Step 4, compile Android
$ source build/envsetup.sh
$ lunch rk3568_r-userdebug
$ make -j12
Step 5, Generated image file
$ ./mkimage.sh
$ ./build.sh -u
(packaged in the update.img)
$ cd rockdev
$ ls
Images and update.img are generated in current directory.
6

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EM3568 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents