Compile the Linux kernel of the NanoPi2 Development Board and nanopi2linux

Source: Internet
Author: User

Compile the Linux kernel of the NanoPi2 Development Board and nanopi2linux

Compile the Linux kernel of the NanoPi2 Development Board.

1. Download The Linux4.4 kernel source code

Git clone https://github.com/friendlyarm/linux.git // these steps need to be used in a linux environment, the download speed is slightly slow

Cd linux

Git checkout nanopi2-v4.4.y

2. Configure the Linux Kernel

Touch. scmversion

Make ARCH = arm nanopi2_linux_defconfig

Cpinclude/* arch/arm/boot/dts/include/

Here we use the official default configuration of the friendly arm. Of course, you can also configure it yourself.

Sudo apt-get install libncurses5-dev

Sudo apt install libssl-dev

Make menuconfig

We copied the files under linux/include to linux/arch/arm/boot/dts/include to ensure that no error is reported when compiling the Device Tree file dtb.

Modify the dtsi file to modify the linux driver.

 

 

3. Compile the Linux Kernel

Make ARCH = arm

The generated kernel is the zImage file under the linux/arch/arm/boot directory. The generated Device Tree configuration file is the dtb file under the linux/arch/arm/boot/dts/directory. Copy them all to the boot partition of the Development Board.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.