“MYZR-RK3399-EK314 Linux-4.4 Build Manual”的版本间的差异
第46行: | 第46行: | ||
== '''Compile ubuntu image'''== | == '''Compile ubuntu image'''== | ||
* Set up a profile | * Set up a profile | ||
− | + | $./build.sh myzr-rk3399.mk<br> | |
</div> | </div> |
2020年2月25日 (二) 16:43的版本
目录
Configure the compilation environment
Build a compilation environment
- Compile ubuntu firmware
$sudo apt-get install 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 asciidoc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev texinfo \
liblz4-tool genext2fs lib32stdc++6
- Compile buildroot firmware
$sudo apt-get install 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 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 realpath
Download the source code and extract it
- cat myrk3399_linux.tar.bz2.a* >> myrk3399_linux.tar.bz2
- tar -xjvf myrk3399_linux.tar.bz2
- sudo chown myzr:myzr linux -R
Configuration file introduction
The configuration file is in the device/rockchip/rk3399目录下
myzr-rk3399.mk compile ubuntu image
myzr-rk3399-buildroot.mk compile buildroot image
The configuration file has several important attributes:
- Compile u-boot configuration file
export RK_UBOOT_DEFCONFIG=myzr-rk3399
- Compile the kernel configuration file
export RK_KERNEL_DEFCONFIG=myzr_linux_defconfig
- Compile kernel device tree
export RK_KERNEL_DTS=rk3399-myzr-hdmi
- Partition information
export RK_PARAMETER=parameter-ubuntu.txt
- Root file system mirror path
export RK_ROOTFS_IMG=system/system.img
Compile ubuntu image
- Set up a profile
$./build.sh myzr-rk3399.mk