In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to build the opencv file system in buildroot. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
1. Download the source code:
After downloading it, we put it on ubuntu and extract it. The mage uses ubuntu12.04 here.
2. Configuration:
Execute the "make menuconfig" command under the buildroot source package path to enter the configuration interface, as shown below:
Go to the "Target options" directory, configure Target Architecture as ARM (littlt endian), Target Architecture Variant as cortex-A9, Target ABI as EABI, and ARM instruction set as ARM. As shown in the following figure:
After returning to the previous interface, go to the Toolchain directory: configure Toolchain type as Buildroot toolchain, then select the version of linux in Kernel Headers, select Manually specified Linuxversion here, select 3.0.x in Custom kernel headers series, and then fill in the linux version in linux version. The author uses version 3.0. When compiling later, buildroot will automatically download the corresponding tool chain and install it automatically, and configure C library as glibc. Select Enable MMU support and Enable C++ support. As shown in the following figure:
After returning to the previous interface, enter the name of the development board in the System hostname column, such as iTop-4412, select BusyBox in Init system, select Dynamic using mdev in / devmanagement, even if you use mdev to dynamically load the device node, and then select the configuration table of the device node in Path to the permission tables. Here we must select system/device_table_dev.txt, otherwise all kinds of device nodes will not be generated in the dev directory. Of course, we can also configure the file manually, add necessary nodes or delete unwanted nodes. Root password is the password configured to enter the linux console terminal. If it is left empty, no password is required for login. Here, we set it to topeet, and the default login user name is root. As shown in the following figure:
Select Run a getty (login prompt) after boot, and then enter the getty options option: configure TTY port as ttySAC2, configure baudrate as 115200, and print the serial port corresponding to the console of the iTop4412 development board.
The serial ports of other development board consoles are:
4418-ttyAMA0
6818-ttySAC0
IMX6Q&iMX6UL-ttymxc0
Return to the previous layer, then continue to the previous interface, enter the Filesystem images directory, and select tar the rootfilesystem, as shown in the following figure:
Return to the upper level and enter the "Target packages" directory, as shown in the following figure:
Enter "Libraries" as shown in the following figure:
Enter "Graphics" and select "opencv" as shown in the following figure:
Then return to "Target packages", enter the path shown in the following figure, and select "Qt" as shown in the following figure:
Enter "Qt" and select "Gui Module", as shown in the following figure:
3. Compile and generate file system images
Compiling buildroot can be done by executing make directly under the buildroot root directory. Some tools need to be downloaded automatically during the first compilation, so it will take some time to keep the Ubuntu system online.
After the compilation is completed, enter the output file, and targer is the file system we compiled. Of course, buildroot will package it into a relevant image, but the format (configured under the "Filesystem images" directory in "menuconfig") is limited. The image is placed in the image directory, so let's go back to the output directory.
ITop-4412 uses the command "make_ext4fs-s-l 314572800-a root-L Linuxsystem.img target/" to generate a file system image. Other development boards can be packaged into the corresponding format using compression commands.
4. Kernel configuration
You can skip this step directly in this part of 4418j6818 and the default configuration of imx6ul (4412 and imx6q are not configured by default). Take 4412 as an example. We enter the 4412 kernel directory, use make menuconfig to configure the kernel, enter Device Drivers, and enter Generic Driver Options, as shown below:
Then select Maintain a devtmpfs filesystem tomount at / dev, and then select Automount devtmpfs at / dev, after the kernel mounted the rootf, as shown below:
On how to build the opencv file system in buildroot to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.