In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to build an embedded environment under Ubuntu 10.10". In daily operation, I believe that many people have doubts about how to build an embedded environment under Ubuntu 10.10.0.The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about how to build an embedded environment under Ubuntu 10.10.10! Next, please follow the editor to study!
Host: X86+Ubuntu 10.10, networking
1. Download and install the cross compiler:
The compiler I use is arm-linux-gcc4.3.2, so I just need to extract it and OK it.
Tar-zxvf arm-linux-gcc-4.3.2.tgz
Get the folder usr and copy the arm directory inside to:
Sudo mv usr/local/arm / usr/local
Next, as long as you set the environment variable, you can use it. The environment variable can be set to be global or available to the current terminal by:
Export PATH=$PATH:/usr/local/arm/4.3.2/bin
Then run: arm-linux-gcc-v to see the version information. Cross compilers are used in the same way as GCC.
two。 Install serial communication tool: minicom
In any case, minicom is a classic and practical serial communication tool, which is installed as follows:
Sudo apt-get install minicom
Configuration:
Sudo minicom-s
Select Serial port setup and configure the port (the configuration varies with the development board and serial port connection). My configuration is shown below:
Enter after configuration, select Save setup as dfl, enter and save.
Use: after connecting the cable, enter minicom in the terminal and you can open the serial port.
3. Install NFS (Network File system):
Install this to facilitate debugging, do not need to download the program to the development board every time.
Installation: sudo apt-get install nfs-kernel-server
Configure hosts.deny (disable connections, permissions are less than allowed connections):
Sudo gedit / etc/hosts.deny
The modifications are as follows:
Portmap:ALL lockd:ALL mountd:ALL rquotad:ALL statd:ALL
Configure hosts.allow (allow connections):
Sudo gedit / etc/hosts.allow
Modify as follows (hosts that set the 192.168.1 network segment can access it):
Portmap: 192.168.1.* lockd: 192.168.1.* rquotad: 192.168.1.* mountd: 192.168.1.* statd: 192.168.1.*
Note that after hosts.deny and hosts.allow are configured, restart the portmap daemon service:
Sudo service portmap restart
Configure NFS mount permissions:
Sudo gedit / etc/exports
I set it to root share: / 192.168.1.* (rw,sync,no_root_squash)
Then restart NFS:
Sudo service nfs-kernel-server restart
In this way, NFS is installed.
Connect the PC with the development board with a network cable, and set up the IP of the host:
Ifconfig eth0 192.168.1.26
Set the IP of the development board (enter linux first):
Ifconfig eth0 192.168.1.11
Then you can ping to see if PC and the development board are connected. If there is no problem, you can mount. Start minicom, power up the development board, enter linux, enter enter to activate the terminal, enter:
Mount-o nolock 192.168.1.26 / mnt
If there are no errors, mount the root directory of PC to the / mnt directory of the development board.
At this point, the study on "how to build an embedded environment under Ubuntu 10.10" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.