Build an embedded development environment in Ubuntu

Source: Internet
Author: User
The operating system used is Ubuntu9.10, the Development Board is FL2440 environment: minicom, cross compiler, NFS, QT-Embedded1.minicom in the terminal input sudoapt-getinstallminicom, install minicom. enter sudominicom-s in the terminal to enter the minicom configuration list, enter the serial port configuration option, and modify the serial port device to/dev/ttyUSB0 (this is the number 0, I use USB

The operating system used is Ubuntu 9.10 and the development board is FL2440.

Environment:
Minicom, cross compiler, NFS, QT-Embedded

1. minicom
Enter sudo apt-get install minicom in the terminal and install minicom.
Enter sudo minicom-s in the terminal to enter the minicom configuration list, enter the serial port configuration option, and modify the serial port device to/dev/ttyUSB0 (this is the number 0, I use the USB to serial port line, so ttyUSB0)
The hardware Data Flow Control is changed to "no". Otherwise, data cannot be written to the serial port.
Return, select "save" as "dlf", exit the terminal, connect to the terminal, and power the Board on. the startup information is displayed.

2. Cross Compiler
The tool package is cross-3.4.1.tar.bz2.
Unzip: tar jxvf cross-3.4.1.tar.bz2
Then move the arm to/usr/local: mv usr/local/arm/usr/local
Delete the original empty folder: rm-r usr
Add the compiler path to the path:
$ Sudo su
# Gedit/etc/bash. bashrc
Add:
Export PATH = $ PATH:/usr/arm/3.4.1/bin
Export PATH
Save and enter the command
# Source/root/. bashrc
Restart the terminal and enter arm-linux-gcc-v to test whether the installation is successful.
The last line of the displayed information is gcc version 3.4.1, indicating that the installation is successful.
Note: when compiling the kernel and uboot, this compiler has encountered a floating point problem in the software, so there is no problem with version 4.3.2, but 4.3.2 compiled applications cannot run on my development board. I don't understand why.

3. NFS
Install: $ sudo apt-get install nfs-kernel-server
Configure portmap: $ sudo dpkg-reconfigure portmap, select No
Configure hosts. deny: $ sudo gedit/etc/hosts. deny
Portmap: ALL
Lockd: ALL
Mountd: ALL
Rquotad: ALL
Statd: ALL
Configure hosts. allow: $ sudo gedit/etc/hosts. allow
Portmap: 192.168.1.
Lockd: 192.168.1.
Rquotad: 192.168.1.
Mountd: 192.168.1.
Statd: 192.168.1.
This indicates that the host with the IP address range 192.168.1 can be accessed.
Note: After configuring hosts. deny and hosts. allow, restart the portmap daemon service: sudo service portmap restart.
Configure NFS mounting permission: sudo gedit/etc/exports
Share as root directory:/192.168.1. * (rw, sync, no_root_squash)
Restart NFS: sudo service nfs-kernel-server restart

In this way, NFS is installed.
Connect the PC to the Development Board with a network cable and set the Host IP Address: ifconfig eth0 192.168.1.26
Set the IP address of the Development Board (first go to linux): ifconfig eth0 192.168.1.11
You can ping to check whether the PC and the Development Board are connected.
If there is no problem, you can mount it.
On the Development Board: mount-o nolock 192.168.1.26: // mnt
In this way, mount the PC root directory to the/mnt directory of the Development Board.

4. QT-Embedded
Based on a post posted on the Internet, I finally finished it last night + this morning. Fortunately, there was no problem.
Install various libraries: libx11-dev, libxtst-dev, libxext-dev, libxext6
It is important to enter the root user mode.
1. Download the source code package:
Qt-x11-opensource-src-4.5.0.tar.bz2
Qt-embedded-linux-opensource-src-4.5.0.tar.bz2
: Ftp://ftp.qt.nokia.com/qt/source/ (the original author to not, Looking For A Long Time)
2. Compile and install qt-x11-opensource-src-4.5.0
Qt-x11 version can generate Qt development tools, such as designer and so on, the most important is to get qvfb, embedded development with qvfb, You can do not need the actual development board, you can also develop Qt applications. The qt-embedded version is specifically used for embedded.
Tar xjvf qt-x11-opensource-src-4.5.0.tar.bz2
Cd qt-x11-opensource-src-4.5.0
./Configure
Make
Make install
After a long compilation process, about one and a half hours, the default installation in/usr/local/Trolltech/Qt-4.5.0. After the compilation is complete, Do not delete the source program, there is a use.
3. Compile and install qt-embedded-linux-opensource-src-4.5.0
Create a src directory under the user directory to store the compiling source file qt-embedded-linux-opensource-src-4.5.0.tar.bz2. Decompress it to get the qt-embedded-linux-opensource-src-4.5.0 and rename it to qt-
Mkdir ~ /Src
Music qt-embedded-linux-opensource-src-4.5.0.tar.bz2 ~ /Src
Tar xjvf qt-embedded-linux-opensource-src-4.5.0.tar.bz2
Mv qt-embedded-linux-opensource-src-4.5.0 qt-embedded-linux-opensource-src-4.5.0-x86
Tar xjvf qt-embedded-linux-opensource-src-4.5.0.tar.bz2
Mv qt-embedded-linux-opensource-src-4.5.0 qt-embedded-linux-opensource-src-4.5.0-arm
Cd qt-embedded-linux-opensource-src-4.5.0-x86
./Configure-prefix/usr/local/Trolltech/QtEmbedded-4.5.0-x86-embedded x86-qvfb
Make
Make install
------- OK! Qt-embedded-x86 is installed under/usr/local/Trolltech/QtEmbedded-4.5.0-x86.
Cd qt-embedded-linux-opensource-src-4.5.0-arm
./Configure-prefix/usr/local/Trolltech/QtEmbedded-4.5.0-arm-embedded arm
Make
Make install
------- OK! Qt-embedded-arm is installed under/usr/local/Trolltech/QtEmbedded-4.5.0-arm.
(It took me one morning to compile the two files, about one and a half hours each)

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.