1934 views|0 replies

164

Posts

0

Resources
The OP
 

Xunwei 3399 development board Linux firmware compilation - install source code dependency package - compile Linux source code [Copy link]

1. Install Linux source code dependency packages
If you are using an Ubuntu16.04 virtual machine image with a compiled environment, the Linux source code dependency packages have already been installed and do not need to
be installed again
Use the following command to install the required packages:
1. sudo apt-get update
2. Install the packages required for kernel and uboot compilation

3. Install the packages required for Buildroot compilation
2. Compile Linux source code
13.1.3.1 Specify the screen
Open the Linux source code, enter
the /home/topeet/rk3399_linux_sdk_v2.0/kernel/arch/arm64/boot/dts/rockchip/itop-3399_linux-lvds.dts directory, and open the itop-3399_linux-lvds.dts device tree file, as shown in the figure below. The default source code specifies that the screen is hdmi Screen, if we want to specify the screen size in the source code, just make the macro definition of the specified screen effective.
For example, I want to specify the screen as a 7-inch screen, modify the device tree, as shown below:
13.1.3.2 Overall compilation
Use the cd command to enter the rk3399_linux_sdk_v2.0_190805 folder.
Compilation is divided into four commands
1./build.sh BoardConfig.mk
2./build.sh all
3./build.sh firmware
4./build.sh updateimg
Finally, the image file update.img is generated in the rocdev directory.
13.1.3.3 Separate compilation
Command ./build.sh -h View optional parameters
Separate compilation of uboot: ./build.sh uboot
Generates u-boot.bin in the uboot directory.
Separate compilation of kernel: ./build.sh kernel
Generates boot.img in the kernel directory
Separate compilation of rootfs: ./build.sh rootfs
Generates rootfs.ext4 in the buildroot/output/rockchip_rk3399/images directory

This post is from ARM Technology
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list