Embedded NFS configuration notes

Source: Internet
Author: User

Http://blog.21ic.org/user1/765/archives/2006/28199.html

Embedded NFS configuration notes

2006-7-31

During the development and debugging of Embedded Linux products, the target root file system is often mounted to the NFS export directory of the development machine, and the kernel image file is often downloaded to the target board through TFTP, the configuration of Several Linux services will be involved here. Many new users will face NFS and the configuration of TFTP is helpless. Here I will briefly talk about their configuration (haha, I am also a newbie ).

We mainly conduct three types of Configuration:

1. TFTP Configuration

2. DHCP Configuration

3. NFS configuration

I. TFTP Configuration

First install TFTP service: Find the tftp-server-0.32-4.i386.rpm file in the CD3 of redhat9

[Root @ vcom/] # rpm-IVH tftp-server-0.32-4.i386.rpm install the TFTP service package

[Root @ vcom/] # rpm-QV tftp-server-0.32-4.i386.rpm query whether the installation is successful

[Root @ vcom/] # vi/etc/xinetd. d/TFTP modify the server_args configuration item in this file to your own tftpboot root directory, change disable configuration to No. Then save and exit.

The content of my TFTP file is as follows:

Service tftp

{

Disable = No

Socket_type = dgram

Protocol = UDP

Wait = Yes

Disable = No

User = root

Server =/usr/sbin/in. tftpd

Server_args =-S/tftpboot

Per_source = 110.

CPIs = 100 2

Flags = IPv4

}

Ii. DHCP Configuration

First install Dhcp Service: Find the dhcp-3.0pl1-23.i386.rpm file in the CD2 of redhat9

[Root @ vcom/] # rpm-IVH dhcp-3.0pl1-23.i386.rpm install DHCP

[Root @ vcom/] # rpm-QV dhcp-3.0pl1-23.i386.rpm query whether the installation is successful

[Root @ vcom/] # vi/etc/DHCPD. conf modify the DHCPD Configuration

Note that DHCPD .. conf is installed in/usr/share/doc/dhcp-3.0.1/DHCPD. conf. Sample by default.

Kao Bei to/etc/DHCPD. conf, on this basis can be modified.

The content of my DHCPD. conf file is as follows:

Ddns-Update-style interim;

Ignore client-updates;

Subnet 192.168.3.0 netmask 255.255.255.0 {

Dynamic-BOOTP-lease-length 20;

Range dynamic-BOOTP 192.168.3.19 192.168.3.35;

Option routers 192.168.3.26;

Option subnet-mask limit 255.0;

Option domain-name-servers 192.168.3.26;

Default-lease-time 10;

Max-lease-time 10;

Host test {

Hardware Ethernet 00: 60: 6e: 42: BA: 86;

Fixed-address 192.168.3.27

Option root-path "ndvd9026l/target ";

Filename "zimage. treeboot_debug ";

}

}

192.168.3.26 is the IP address of the development machine (also the server), and the IP address of the target board is 192.168.3.27.

3. Set NFS:

[Root @ vcom/] # vi/etc/Export

Add/ndvd9026l/Target 192.168.3.0/255.255.255.0 (RW, no_root_squash)

4. Start the service:

[Root @ vcom/] # ntsysv start Related Services

[Root @ vcom/] # service DHCPD start

[Root @ vcom/] # service NFS start

[Root @ vcom/] # service Portmap start

[Root @ vcom/] # service xinted start

 

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.