1. for Ubuntu Internet access problems, I used ruijie. Just install mentohust and set it. 2. Ubuntu10.10 has installed GCC for us, but G ++ is not installed. Therefore, we need to install G ++ by ourselves. Just enter sudoapt-getinstallg ++ on the terminal side. 3. After installing G ++, you can install the cross compiler. (If the root user is used, the installation may fail .)
1. for Ubuntu Internet access problems, I used ruijie. Just install mentohust and set it.
2. We have installed GCC for Ubuntu 10.10, but G ++ is not installed. Therefore, we need to install G ++ on our own, as long as you enter: sudo apt-get install g ++.
3. After installing G ++, you can install the cross compiler. (If the root user is used, the installation may fail)
(Supplement: normal user to root user
Open the terminal, enter sudo passwd root, and press Enter.
At this time, you will be prompted to enter the password, and then enter the password of the user you are currently logged on
Then the system prompts you to enter a new UNIX Password.
Enter new UNIX password: Enter the password you want to set for the root account. Enter the password twice.
The system prompts that the password is successfully set.
Enter the command in the terminal: su-root to switch to the root permission)
Step 1: Download The arm-linux-gcc-4.4.3.tgz to the tmp folder, go to the directory, and run the unzip command:
# Cd/tmp
# Tar xvzf arm-linux-gcc-4.4.3.tgz-C/
Note: C is followed by a space and C is in uppercase. It is the first letter of the English word "Change,
Here is how to change the directory.
Run this command to install arm-linux-gcc to the/usr/loca/arm/4.4.3 directory.
Step 2: add the compiler path to the system environment variable and run the command
# Gedit/root/. bashrc
Edit the/root/. bashrc file and add it in the last line:
Export PATH = $ PATH:/opt/FriendlyARM/toolschain/4.4.3/bin
Save and exit.
Step 3: log on to the system again (you do not need to restart the machine, start-> logout) to make the preceding settings take effect. Enter
The gcc version 4.4.3 is displayed in arm-linux-GCC-v. This indicates that the cross-compilation environment has been successfully installed.
You can also directly use the source/etc/profile command on the terminal without logging on to the system again.
4. Install minicom. I recommend using PuTTy.
# Apt-get install putty
After running, you can see PuTTy in the application.
Note: If you are using a laptop, when the Development Board is connected to the local version, the port in ubuntu is ttyUSB0, but in windows, the port is COM4.
5. Install nfs.
Step 1: Set the shared directory
Run commands
# Gedit/etc/exports
Edit the nfs service configuration file (Note: The file is empty when it is opened for the first time) and add the following content:
/Opt/FriendlyARM/mini2440/rootfs_qtopia_qt4 * (rw, sync, no_root_squash)
Where:
/Opt/FriendlyARM/mini2440/rootfs_qtopia_qt4 indicates the nfs shared directory (you can change it to another path)
It can be used as a Development Board
The root file system of is mounted through nfs;
* Indicates that all clients can mount the directory.
Rw indicates that the Client Connected to this directory has the permission to read and write the directory.
No_root_squash indicates that the Client Connected to this directory is allowed to have the root identity of the host.
Step 2: Install nfs-kernel-server
# Apt-get install nfs-kernel-server
Step 3: Start the NFS service:
Run the following command line:
#/Etc/init. d/nfs-kernel-server start
This will start the nfs service. You can enter the following command to check whether the nfs service is started.
# Mount-t nfs localhost:/opt/FriendlyARM/mini2440/rootfs_qtopia_qt4/mnt/
If no error message is displayed, you can view the content and
/Opt/FriendlyARM/mini2440/rootfs_qtopia_qt4 is consistent.
Use this command to stop the nfs service:
#/Etc/init. d/nfs-kernel-server stop
6. Install the Qt environment.
------------------------- Split line -------------------------
After the nfs test is correct, use the following method:
Connect the Development Board to a PC host using a crossover line and set an IP address,
HOST: ifconfig eth0 192.168.1.100
Development Board: ifconfig eth0 192.168.1.1 (the two can be in the same network segment)
Configure on the Development Board:
Mount-t nfs-o nolock 192.168.1.100:/opt/FriendlyARM/mini2440/rootfs_qtopia_qt4/mnt/
Opt/FriendlyARM/mini2440/rootfs_qtopia_qt4 is the shared path of the host.
/Mnt is the Development Board Mount path
After the configuration is successful, you can view the shared file on the/mnt of the Development Board.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2