主题 : nfs启动系统的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 6779
精华: 0
发帖: 4
金钱: 40 两
威望: 40 点
综合积分: 8 分
注册时间: 2009-06-16
最后登录: 2009-06-18
楼主  发表于: 2009-06-16 17:41

 nfs启动系统的问题

在设置好NFS,输入param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.111:/opt/FriendlyARM/QQ2440/root_nfs ip=192.168.1.70:192.168.1.111:192.168.1.111:255.255.255.0:sbc2440.arm9.net:eth0:off"和boot后,出现
Looking up port of RPC 100003/2 on 192.168.1.111
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit buffer not free!
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit buffer not free!
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit buffer not free!
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit buffer not free!
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit buffer not free!
NETDEV WATCHDOG: eth0: transmit timed out
这个阶段正是我事业的上升期,我怎么能走得开呢?
级别: 精灵王
UID: 3197
精华: 3
发帖: 770
金钱: 6995 两
威望: 5398 点
综合积分: 1600 分
注册时间: 2008-12-30
最后登录: 2010-12-31
1楼  发表于: 2009-06-16 22:03
每个人的网络环境不同,参数是不能照抄的。
级别: 新手上路
UID: 6779
精华: 0
发帖: 4
金钱: 40 两
威望: 40 点
综合积分: 8 分
注册时间: 2009-06-16
最后登录: 2009-06-18
2楼  发表于: 2009-06-17 21:40
明白了,谢谢。再研究一下
lpz
级别: 新手上路
UID: 9843
精华: 0
发帖: 9
金钱: 90 两
威望: 45 点
综合积分: 18 分
注册时间: 2009-10-15
最后登录: 2009-10-21
3楼  发表于: 2009-10-15 21:43

 回 1楼(26672624) 的帖子

能详细说明一下各参数的意思吗?我按照自己的参数改了后还是不行啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-10-15 22:26
各参数的定义在内核源代码目录下的Documentation/filesystems/nfsroot.txt里有详细的描述:

2.) Kernel command line
    -------------------

When the kernel has been loaded by a boot loader (see below) it needs to be
told what root fs device to use. And in the case of nfsroot, where to find
both the server and the name of the directory on the server to mount as root.
This can be established using the following kernel command line parameters:


root=/dev/nfs

  This is necessary to enable the pseudo-NFS-device. Note that it's not a
  real device but just a synonym to tell the kernel to use NFS instead of
  a real device.


nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]

  If the `nfsroot' parameter is NOT given on the command line,
  the default "/tftpboot/%s" will be used.

  <server-ip>   Specifies the IP address of the NFS server.
                The default address is determined by the `ip' parameter
                (see below). This parameter allows the use of different
                servers for IP autoconfiguration and NFS.

  <root-dir>    Name of the directory on the server to mount as root.
                If there is a "%s" token in the string, it will be
                replaced by the ASCII-representation of the client's
                IP address.

  <nfs-options> Standard NFS options. All options are separated by commas.
                The following defaults are used:
                        port            = as given by server portmap daemon
                        rsize           = 4096
                        wsize           = 4096
                        timeo           = 7
                        retrans         = 3
                        acregmin        = 3
                        acregmax        = 60
                        acdirmin        = 30
                        acdirmax        = 60
                        flags           = hard, nointr, noposix, cto, ac


ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>

  This parameter tells the kernel how to configure IP addresses of devices
  and also how to set up the IP routing table. It was originally called
  `nfsaddrs', but now the boot-time IP configuration works independently of
  NFS, so it was renamed to `ip' and the old name remained as an alias for
  compatibility reasons.

  If this parameter is missing from the kernel command line, all fields are
  assumed to be empty, and the defaults mentioned below apply. In general
  this means that the kernel tries to configure everything using
  autoconfiguration.

  The <autoconf> parameter can appear alone as the value to the `ip'
  parameter (without all the ':' characters before).  If the value is
  "ip=off" or "ip=none", no autoconfiguration will take place, otherwise
  autoconfiguration will take place.  The most common way to use this
  is "ip=dhcp".

  <client-ip>   IP address of the client.

                Default:  Determined using autoconfiguration.

  <server-ip>   IP address of the NFS server. If RARP is used to determine
                the client address and this parameter is NOT empty only
                replies from the specified server are accepted.

                Only required for for NFS root. That is autoconfiguration
                will not be triggered if it is missing and NFS root is not
                in operation.

                Default: Determined using autoconfiguration.
                         The address of the autoconfiguration server is used.

  <gw-ip>       IP address of a gateway if the server is on a different subnet.

                Default: Determined using autoconfiguration.

  <netmask>     Netmask for local network interface. If unspecified
                the netmask is derived from the client IP address assuming
                classful addressing.

                Default:  Determined using autoconfiguration.

  <hostname>    Name of the client. May be supplied by autoconfiguration,
                but its absence will not trigger autoconfiguration.

                Default: Client IP address is used in ASCII notation.

  <device>      Name of network device to use.

                Default: If the host only has one device, it is used.
                         Otherwise the device is determined using
                         autoconfiguration. This is done by sending
                         autoconfiguration requests out of all devices,
                         and using the device that received the first reply.

  <autoconf>    Method to use for autoconfiguration. In the case of options
                which specify multiple autoconfiguration protocols,
                requests are sent using all protocols, and the first one
                to reply is used.

                Only autoconfiguration protocols that have been compiled
                into the kernel will be used, regardless of the value of
                this option.

                  off or none: don't use autoconfiguration
                                (do static IP assignment instead)
                  on or any:   use any protocol available in the kernel
                               (default)
                  dhcp:        use DHCP
                  bootp:       use BOOTP
                  rarp:        use RARP
                  both:        use both BOOTP and RARP but not DHCP
                               (old option kept for backwards compatibility)

                Default: any
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."