Use NFS to start Linux at mini2440 in Ubuntu

Source: Internet
Author: User

 

Use NFS to start Linux at mini2440 in Ubuntu

Date: 2011.11.8

Previously, NFS boot was set based on country embedded materials and videos. However, the huge speed and speed of rhel5 are really crashing. Therefore, we still need to transfer the battle line to Ubuntu and download software at will, great.

1. Environment

HOST: ubuntu10.04 in VMware. IP address 202.114.3.20 is allocated for bridged access in bridging mode.

Target Development Board: assign IP address 202.114.3.19 to mini2440

Networking: Both Ubuntu and the Development Board have their own physical IP addresses. The two are in the same network segment, and the host and Development Board are connected to the same switch through a network cable. Connect the host to the Development Board with a serial line.

Others: correctly set the Super Terminal in Windows to work properly.

References:

Mini2440 user manual.

Mini2440 boot ubuntu-10.04 system via NFS Summary

Http://geyingzhen.blog.163.com/blog/static/65586655201010243017543/

Mount mini2440 NFS in Ubuntu 8.10 (focusing on basic knowledge)

Http://blog.chinaunix.net/space.php? Uid = 21496371 & Do = Blog & id = 440255

2. preparations:

About Ubuntu firewall: by default, UBUNTU does not have firewall. Unless you have installed it yourself, you can delete it if you have installed it. As for the iptables mentioned in some posts, I have not modified it and mounted NFS smoothly.

About the Development Board: the Development Board should be able to start Linux properly from nandflash. In this experiment, supervivi and Linux kernel written in nandflash will be used, although the file system in nandflash cannot be used when NFS is started.

3. Installation Steps

A) Place the available File System in the directory specified by the host.Follow the mini2440 User Manual to decompress the file system to the host machine/opt/friendlyarm/mini2440/rootfs_qtopia_qt4

B) install NFS on the host, start the NFS service, and test whether the NFS service is normal.

$ Sudo apt-Get install nfs-kernel-Server

$/Etc/init. d/nfs-kernel-Server start

Mount the file system directory to the host machine/mnt directory to test whether the NFS service is normal.

$ Sudo Mount-t nfs 202.114.3.20:/opt/friendlyarm/mini2440/rootfs_qtopia_qt4/mnt

$ Ls/mnt

C) set the IP address of the mini2440 Development Board

Skip this step to test whether the network connection is normal. There are two methods for setting. First, start Linux from nandflash. after entering the QT graphical interface, open the friendly arm tab, open the network setup program, and input IP, mask, gateway, and other information with the touch screen. Second, use the ifconfig command to change the IP address of the target board under the Super Terminal of the host machine. After setting, ping the host from the Super Terminal to check whether the host is normal.

D) Configure exports

$ Sudo gedit/etc/exports open and add a line/opt/friendlyarm/mini2440/rootfs_qtopia_qt4 * (RW, sync, no_root_squash), save and exit.

E) set the Development Board to start from NFS

Write the command line parameters. Modify the hosts file to: Param set linux_cmd_line "console = ttysac0 root =/dev/nfs nfsroot = 202.114.3.20:/opt/friendlyarm/mini2440/slave IP = 202.114.3.19: 202.114.3.20: release: 255.255.255.0: sbc2440.arm9.net: eth0: off"

Nfsroot is the IP address of the self-developed host.
"IP =:
The first item (192.168.1.230) is the temporary IP address of the target board (do not conflict with other IP addresses in the LAN );
The second item (192.168.1.112) is the IP address of the Development host;
The third item (192.168.1.1) is the setting of the Gateway (GW) on the target board;
The fourth (255.255.255.0) is the subnet mask;
The fifth item is the name of the Development host (generally irrelevant, you can enter it as needed)

Start the Development Board from nandflash. When powered on, press any button on the Development Board to enter the bios, enter Q [Q] goto shell of VIVI on the Super Terminal, and enter the command line.

Paste the previously written command and press Enter.

Enter boot and press enter to start the system from NFS.

To start the system through NFS every time you start the system, input menu, S, W, Q, and return to the BIOS menu before entering boot. In this way, NFS is automatically started every time.

Another way to always start from NFS is to modify the Kernel configuration file, so you have to re-compile the kernel.

Below is the menu list after entering s under the BIOS menu.

##### Parameter menu #####

[R] Reset parameter table to default table

[S] Set Parameter

[V] view the parameter table

[W] Write the parameter table to flash memeory

[Q] Quit

 

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.