[Reserved] linux4.14 transplanted to kernel development board 4412

[Reserved] transplant linux4.14 kernel development board 4412 to 

 

       Master recently received a lot of messages, including when to ask the Master update part, there is a majority Master asked me to buy fast as the IMX6UL Elite 4412 Elite Edition to buy a good or good , because we maybe has not expensive. The Master is recommended to start 4412! why?

       First, the 4412 classic is Samsung's first processor, Samsung has created a brilliant, it is the year in the country's red-hot mobile phone GalaxyS3 master, his appearance, opening the era of quad-core mobile phone and tablet, mobile phone It becomes smooth and flat, it can be said, so far, used the 4412 technology, is still the current mainstream technology, other processors and not a qualitative leap, too, after more than seven years all walks of life tests, has very stable. And quad-core processor system can achieve dynamic FM regulator, so we can not only learn a board uboot, linux, bare metal, but also learn Andrews, a board would be sufficient.

       Second, after years of accumulation, 4412 has accumulated a massive development information.

       Third, and most important point! ! !     

      Around June 2017, rapid development platform for the electronics iTOP iTOP-4412 series of SCP core board to give the world's largest open source software Linux official support, which means www.kernel.orrg downloaded from the latest official linux kernel with slight modifications can be run directly on the ITOP4412, greatly facilitate the technological upgrading of consumer products.

       Therefore, both a run Android, Ubuntu, QT system, was also officially supported linux development board can start with four or five hundred, he is not fragrant Well ~ ~

       Also, if fast as the old user, I buy the product again in the official store, shot in order to present to the official store to buy Want, you can get a discount!

 

 Next, we cut to the theme of today, we experience something, being officially supported development board linux transplant a new kernel is more than convenient.

The first step: from linux official website to download the kernel

     Linux kernel from the official website to download, linux official website is https://www.kernel.org/  shown below:

 

 

 

 

 

 

 We enter linux official website, order equipment tree unity and tutorials before, where we choose the kernel version 4.14.2. After the download is complete, we placed inside ubuntu standby, as shown below:

 

 

 

 

 

 

Step 2: Install the compiler

Compiler version: gcc-4.6.2-glibc-2.13-Linaro-the multilib-2011.12.tar.gz

ubuntu version: ubuntu12.04

     We compiler / usr / local / arm / under unpack, get gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12 catalog. As shown below:

 

 

 

 

 

 

Then we modify environment variables, in adding the bottom line of the file .bashrc environment variable, pay attention here, we have to block out other compilers, as shown below:

 

 

 

 

Update the environment variables, we use the command source .bashrc update the environment variable, then restart ubuntu, as shown below:

 

 

 

The third step: Configuring the kernel

      1) the decompressed download linux ubuntu our source, and then proceeds to extract the file, the Makefile open top, as shown below:

 

 

 

2) at the top to find the Makefile lines 251 and 252, modify the platform and compiler, after completion of modification, as shown below:

 

 

 

 

 

3) generating .config, we directly use the default configuration to the official linux, make exynos_defconfig enter commands directly , as shown below.

 

 

 

 

 

4) the configuration platforms and debug serial port. Entering commands at the kernel source make menuconfig open menuconfig, as shown below:

 

 

 

 

5) Select the type of chip, we enter the following path:

 

 

 

 

 

The options under this path configured to shown below:

 

 

 

 

 

 

6) configured debug serial port, we return to menuconfig first-level directory, enter the directory from the first stage to the following path:

 

 

 

 

Select Kernel low-level debugging functions (read help!), As shown below:

 

 

 

 

 

Then select Kernel low-level debugging port (Use Samsung S3C UART 0 for low-level debug) option, the serial port 2 is arranged, as shown below:

 

 

 

 

Back to menuconfig first-level directory, the directory from the first stage enters to the following path:

 

 

 

Select Samsung SoC serial debug (NEW) and Support for console on Samsung SoC serial port , as shown below:

 

 

 

 

   Menuconfig returns to the first level directory, the directory from the first stage enters to the following path:

 

 

 

 

FIG remove the option, as shown below:

 

 

 

 

After the setup is complete, save and exit.

Step Four: Compiling the kernel

We enter the following command in the kernel source:

Wherein LOADADDR = 0X40007000 specified kernel load address indicates, as shown below:

 

 

 

 

 

 

Compiled as shown below:

 

 

 

Step Five: Modify dts files

We into kernel arch / arm / boot / dts / lower, which device has a default file tree itop, as shown in FIG.

 

 

 

 

We opened exynos4412-itop-scp-core.dtsi file, modify the device file tree.

At first: Comment out the code lines 29 to 32, as shown below:

 

 

 

 

Second Department: because no events this property, so we want the line 71 is modified events Event, as shown below:

 

 

 

Third Department: core board power chip configuration, you can control at this portion scp core board schematics, may refer to the diagram, the following code is modified as follows:

 

 

 

 

 

Compiling apparatus tree, we enter the following command , as shown below:

 

 

 

 

Compiled as shown:

 

 

 

 

Step Six: Writing Mirror

      We compiled the uimage and dtb fastboot file copy tool, uboot using the device tree video programming chapter we can transplant uboot_2015.04 good, you can look at specific programming method.

After successfully programmed into the start board as shown below:

 

 

 

 

     It is not feeling very easy for! It is so simple. And do the real and official linux synchronization, we can not change the board, it does not quite strenuous in the 4412 school board to the latest linux technology, you can keep up with linux development, which is not too cool! !

 

 

 

Guess you like

Origin www.cnblogs.com/yueliang17/p/11776163.html