In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to port the linux4.14 kernel to the 4412 development board, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Recently, the mage received a lot of messages, some of which asked the mage when to update, and a large part of them asked me whether I should buy the elite version of IMX6UL or the elite version of 4412, because neither of us is expensive. The mage's suggestion is to start with 4412! Why?
First, 4412 is Samsung's first classic processor, which created brilliance for Samsung and was the master of the popular GalaxyS3 phone in China at that time. His appearance opened the four-core era of mobile phones and tablets, making phones and tablets smooth. It can be said that so far, the technology used on 4412 is still the current mainstream technology, and other processors have not made a qualitative leap. Similarly, after more than 7 years of tests in various industries. Has been very stable. And the quad-core processor system can achieve dynamic FM and voltage regulation, so we can learn not only uboot,linux, bare metal, but also Android on one board. One board is enough.
Second, after years of accumulation, 4412 has accumulated a huge amount of development data.
The third and most important point!
Around June 2017, the SCP core board of iTOP-4412, the electronic iTOP development platform, was officially supported by the world's largest open source software Linux, which means that the latest kernel downloaded from linux's official www.kernel.orrg can run directly on ITOP4412 with a little modification, which is very convenient for users to upgrade their products.
So, a development board that can run Android, ubuntu,QT and is officially supported by linux can be started for 400 to 500 yuan. It doesn't smell good.
In addition, if you are a regular user of Xunwei, buy my products in the official store again and show Wangwang a screenshot of the order purchased in the official store to get a discount!
Next, let's cut to today's topic and experience how convenient it is to migrate a new kernel to a development board officially supported by linux.
Step 1: download the kernel from the linux official website
Download the kernel from the official website of linux. The official website of linux is https://www.kernel.org/, as shown below.
We went to the linux official website, and in order to be consistent with the previous device tree tutorial, we chose the 4.14.2 kernel version here. After the download is completed, we put it in ubuntu for backup, as shown in the following figure:
Then we modify the environment variables and add them to the bottom line of the .bashrc file. Notice here that you need to block out other compilers, as shown in the following figure:
Step 3: configure the kernel
1) decompress the linux source code we downloaded on ubuntu, then go to the decompressed file, and open the top-level Makefile, as shown below:
3) generate .config. We can directly use the official default configuration of linux and enter the command make exynos_defconfig directly, as shown in the following figure.
5) Select the chip type and enter the following path:
6) by configuring the debug serial port, we return to the first-level directory of menuconfig and enter the following path from the first-level directory:
Then select the Kernel low-level debugging port (Use Samsung S3C UART 0 for low-level debug) option and set the serial port to serial port 2, as shown in the following figure:
Select Samsung SoC serial debug (NEW) and Support for console on Samsung SoC serial port, as shown in the following figure:
Remove the following options, as shown in the following figure:
Step 5: modify the dts file
When we enter the kernel arch/arm/boot/dts/, there is a device tree file of itop by default, as shown in the following figure:
Second: since there is no events attribute, we need to change the events of line 71 to event, as shown in the following figure:
To compile the device tree, we enter the following command, as shown in the following figure: make dtbs ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- compilation is completed as shown in the figure:
Step 6: burn and write the image
We copy the compiled uimage and dtb files to the fastboot tool, and uboot can use our transplanted uboot_2015.04. For specific burning methods, you can see the device tree video burning chapter.
Burn it to the board and start it successfully.
Doesn't it feel easy, yes! It's that simple. And really synchronized with the linux official, we can not change the board, and do not have to struggle on the 4412 board to learn the latest linux technology, can keep up with the development of linux, this is not too cool!
The above content is how to migrate the linux4.14 kernel to the 4412 development board. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.