NFS 文件系统的搭建


教程:

 一、配置linux内核:
进入打过at91补丁的linux2.6内核源代码树的根目录
make menuconfig进入内核配置程序。
1. 
Networking --->
Networking options --->
[*] IP: kernel level autoconfiguration 
   [*] IP: DHCP support 
   [*] IP: BOOTP support 
   [*] IP: RARP support 
2. 
Device Drivers --->
     Block devices --->
           <*> Network block device support
3. 选中Device Drivers --->
         Ethernet (10 or 100Mbit) --->
               <*> Atmel MACB support 
               [*] Atmel MACB TX buffers in internal SRAM
4. 选中File systems --->
           Network File Systems --->
                <*> NFS client support 
                    [*] Provide NFSv3 client support 
                       [*] Provide client support for the NFSv3 ACL protocol extension 
                    [*] Provide NFSv4 client support (EXPERIMENTAL)
                    [*] Root file system on NFS
5.
重新编译内核
make uImage
cp  linux-2.60/arch/arm/boot/uImage  /


二、烧写内核
开机回车进入Uboot。在命令编写命令烧写内核。
Hit any key to stop autoboot:  0
U-Boot>

U-Boot> nand erase 0x100000 0x200000

NAND erase: device 0 offset 0x100000, size0x200000

Erasing at 0x2e0000 -- 100% complete.

OK

U-Boot> tftp 0x22000000 uImage


macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Using macb0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.140
Filename 'uImage'.
Load address: 0x22000000
Loading: T #################################################################
         ##########################################################
done
Bytes transferred = 1804256 (1b87e0 hex)

nand write 0x2200 0000   0x10 0000 0x20 0000 将内核烧入NandFlash中




三、 主机开启NFS服务 //// 写成脚本,方便调用
#!/bin/bash
ifconfig eth0 192.168.1.101
/etc/rc.d/init.d/portmap restart
/etc/rc.d/init.d/nfs restart
#!/bin/sh
mount -t nfs 192.168.1.101:/fs  /mnt -o nolock  
///// 本地测试 NFS服务是否开启,/fs为自定义的NFS根目录
echo "nfs ok!"
四、主机关闭防火墙
# lokkit   //// 回车进入后, 禁用防火墙


#service iptables stop  //// 停止防火墙服务




五、启动u-boot配置启动参数:
setenv  bootargs 
root=/dev/nfs rw console=ttyS0,115200 mem=16M nfsroot=192.168.1.101:/fs
 ip=192.168.1.10:192.168.1.101:192.168.1.1:255.255.255.0::eth0:off
///// 假设 主机IP为 192.168.1.101 
然后保存参数:saveenv




六、 开机进入NFS 
rtc-pcf8563 0-0051: setting system clock to 2014-10-27 16:23:45 UTC (1414427025)
IP-Config: Complete:
     device=eth0, addr=192.168.1.10, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.10, domain=, nis-domain=(none),
     bootserver=192.168.1.101, rootserver=192.168.1.101, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.101
eth0: link up (100/Full)
Looking up port of RPC 100005/1 on 192.168.1.101
VFS: Mounted root (nfs filesystem) on device 0:12.
Freeing init memory: 124K
eth0: TX underrun, resetting buffers
/bin/sh: can't acess tty; job control turned off
/ # ls
bin             etc             init            mnt
dev             home            lib             nfsroot.tar.gz



Debug

1、 VFS: Cannot open root device "nfs" or unknown-block(0,255)

U-Boot 2009.08 ( 8鏈?06 2014 - 11:37:06)

DRAM:  32 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
Hit any key to stop autoboot:  0
U-Boot>
U-Boot> printenv
bootcmd=nand read 0x21000000 0x100000 0x200000; nand read 0x21900000 0x400000 0x
200000; bootm 0x21000000
bootdelay=1
baudrate=115200
ethaddr=22:33:11:44:55
ipaddr=192.168.1.140
serverip=192.168.1.100
netmask=255.255.255.0
ethact=macb0
bootargs=root=/dev/nfs rw console=ttyS0,115200 mem=16M nfsroot=192.168.1.101:/fs
 ip=192.168.1.10:192.168.1.101:192.168.1.1:255.255.255.0::eth0:off
stdin=serial
stdout=serial
stderr=serial

Environment size: 424/131067 bytes
U-Boot>

U-Boot 2009.08 ( 8鏈?06 2014 - 11:37:06)

DRAM:  32 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x200000
 2097152 bytes read: OK

NAND read: device 0 offset 0x400000, size 0x200000
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-2.6.30
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1694216 Bytes =  1.6 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
.............................................. done, booting the kernel.
Linux version 2.6.30 (root@localhost.localdomain) (gcc version 4.0.0 (DENX ELDK
4.1 4.0.0)) #50 Wed Aug 6 11:23:41 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/nfs rw console=ttyS0,115200 mem=16M nfsroot=192.1
68.1.101:/fs ip=192.168.1.10:192.168.1.101:192.168.1.1:255.255.255.0::eth0:off
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 64 (order: 6, 256 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 12800KB available (3052K code, 233K data, 108K init, 0K highmem)
Calibrating delay loop... 98.91 BogoMIPS (lpj=494592)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Dec 10 2013 09:14:01 Installing.
msgmni has been set to 25
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.0: Atmel SSC device at 0xc1838000 (irq 14)
Driver 'sd' needs updating - please use bus_type methods
macb macb: invalid hw address, using random
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (62:29:73:ab:ca:8f)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-
1)
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bi
t)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 0 at 0x000000000000
Bad eraseblock 1 at 0x000000020000
Bad eraseblock 2 at 0x000000040000
Bad eraseblock 106 at 0x000000d40000
Bad eraseblock 171 at 0x000001560000
Bad eraseblock 179 at 0x000001660000
Creating 3 MTD partitions on "atmel_nand":
0x000000000000-0x000001000000 : "kernel"
0x000001000000-0x000002400000 : "data"
0x000002400000-0x000008000000 : "program"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffc8000 (irq 12)
atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffcc000 (irq 13)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
mcp2515 spi1.0: device register at dev(251:0)
mcp2515 spi1.1: device register at dev(251:1)
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
Analog-to-Digital Converter (irq 5)
at91_adc.0: register at /dev/adc0 (210:0)
at91_adc.1: register at /dev/adc1 (210:1)
at91_adc.2: register at /dev/adc2 (210:2)
at91_adc.3: register at /dev/adc3 (210:3)
rtc-pcf8563 0-0051: setting system clock to 2014-10-27 10:54:26 UTC (1414407266)

VFS: Cannot open root device "nfs" or unknown-block(0,255)
Please append a correct "root=" boot option; here are the available partitions:
1f00           16384 mtdblock0 (driver?)
1f01           20480 mtdblock1 (driver?)
1f02           94208 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)

Backtrace:
[<c0027600>] (dump_backtrace+0x0/0x10c) from [<c0027740>] (dump_stack+0x18/0x1c)

 r6:c03fb01d r5:00000000 r4:c0399f64
[<c0027728>] (dump_stack+0x0/0x1c) from [<c0039038>] (panic+0x48/0x11c)
[<c0038ff0>] (panic+0x0/0x11c) from [<c0008f54>] (mount_block_root+0x260/0x2b8)
 r3:00000000 r2:c03bd22c r1:c0399f64 r0:c02da108
 r4:c0399f64
[<c0008cf4>] (mount_block_root+0x0/0x2b8) from [<c0009000>] (mount_root+0x54/0x6
c)
[<c0008fac>] (mount_root+0x0/0x6c) from [<c0009188>] (prepare_namespace+0x170/0x
1d0)
 r5:c00208d8 r4:c0344824
[<c0009018>] (prepare_namespace+0x0/0x1d0) from [<c0008a68>] (kernel_init+0xb8/0
xe4)
 r5:c001f5f0 r4:c0344818
[<c00089b0>] (kernel_init+0x0/0xe4) from [<c003b2e4>] (do_exit+0x0/0x59c)
 r5:00000000 r4:00000000

 原因: 内核文件未配置完全;


修改后打印信息如下:

Root-NFS: Unable to get mountd port number from server, using default


U-Boot 2009.08 ( 8鏈?06 2014 - 11:37:06)

DRAM:  32 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x200000
 2097152 bytes read: OK

NAND read: device 0 offset 0x400000, size 0x200000
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-2.6.30
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1804192 Bytes =  1.7 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
..................................................... done, booting the kernel.
Linux version 2.6.30 (root@localhost.localdomain) (gcc version 4.0.0 (DENX ELDK
4.1 4.0.0)) #49 Mon Oct 27 14:33:33 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/nfs rw console=ttyS0,115200 mem=16M nfsroot=192.1
68.1.101:/fs ip=192.168.1.10:192.168.1.101:192.168.1.1:255.255.255.0::eth0:off
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 64 (order: 6, 256 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 12564KB available (3260K code, 244K data, 124K init, 0K highmem)
Calibrating delay loop... 98.91 BogoMIPS (lpj=494592)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Oct 27 2014 14:29:52 Installing.
msgmni has been set to 24
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
nbd: registered device at major 43
ssc ssc.0: Atmel SSC device at 0xc1838000 (irq 14)
Driver 'sd' needs updating - please use bus_type methods
macb macb: invalid hw address, using random
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (26:11:28:86:84:87)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-
1)
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bi
t)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 0 at 0x000000000000
Bad eraseblock 1 at 0x000000020000
Bad eraseblock 2 at 0x000000040000
Bad eraseblock 106 at 0x000000d40000
Bad eraseblock 171 at 0x000001560000
Bad eraseblock 179 at 0x000001660000
Creating 3 MTD partitions on "atmel_nand":
0x000000000000-0x000001000000 : "kernel"
0x000001000000-0x000002400000 : "data"
0x000002400000-0x000008000000 : "program"
atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffcc000 (irq 13)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
mcp2515 spi1.0: device register at dev(251:0)
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
Analog-to-Digital Converter (irq 5)
at91_adc.0: register at /dev/adc0 (210:0)
at91_adc.1: register at /dev/adc1 (210:1)
at91_adc.2: register at /dev/adc2 (210:2)
at91_adc.3: register at /dev/adc3 (210:3)
rtc-pcf8563 0-0051: setting system clock to 2014-10-27 14:49:02 UTC (1414421342)

IP-Config: Complete:
     device=eth0, addr=192.168.1.10, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.10, domain=, nis-domain=(none),
     bootserver=192.168.1.101, rootserver=192.168.1.101, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.101
eth0: link up (100/Full)
rpcbind: server 192.168.1.101 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.101
rpcbind: server 192.168.1.101 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default

原因: 主机 防火墙未完全关闭

修改后打印信息如下:

U-Boot 2009.08 ( 8月 06 2014 - 11:37:06)

DRAM:  32 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
Hit any key to stop autoboot:  1  0 

NAND read: device 0 offset 0x100000, size 0x200000
 2097152 bytes read: OK

NAND read: device 0 offset 0x400000, size 0x200000
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-2.6.30
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1804192 Bytes =  1.7 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................................................. done, booting the kernel.
Linux version 2.6.30 (root@localhost.localdomain) (gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)) #49 Mon Oct 27 14:33:33 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/nfs rw console=ttyS0,115200 mem=32M nfsroot=192.168.1.101:/fs ip=192.168.1.10:192.168.1.101:192.168.1.1:255.255.255.0::eth0:off
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 28808KB available (3260K code, 244K data, 124K init, 0K highmem)
Calibrating delay loop... 98.91 BogoMIPS (lpj=494592)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Oct 27 2014 14:29:52 Installing. 
msgmni has been set to 56
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
nbd: registered device at major 43
ssc ssc.0: Atmel SSC device at 0xc2838000 (irq 14)
Driver 'sd' needs updating - please use bus_type methods
macb macb: invalid hw address, using random
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (56:75:a5:66:8d:91)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1)
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 0 at 0x000000000000
Bad eraseblock 1 at 0x000000020000
Bad eraseblock 2 at 0x000000040000
Bad eraseblock 106 at 0x000000d40000
Bad eraseblock 171 at 0x000001560000
Bad eraseblock 179 at 0x000001660000
Creating 3 MTD partitions on "atmel_nand":
0x000000000000-0x000001000000 : "kernel"
0x000001000000-0x000002400000 : "data"
0x000002400000-0x000008000000 : "program"
atmel_spi atmel_spi.1: Atmel SPI Controller at 0xfffcc000 (irq 13)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
mcp2515 spi1.0: device register at dev(251:0)
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
Analog-to-Digital Converter (irq 5)
at91_adc.0: register at /dev/adc0 (210:0)
at91_adc.1: register at /dev/adc1 (210:1)
at91_adc.2: register at /dev/adc2 (210:2)
at91_adc.3: register at /dev/adc3 (210:3)
rtc-pcf8563 0-0051: setting system clock to 2014-10-27 16:23:45 UTC (1414427025)
IP-Config: Complete:
     device=eth0, addr=192.168.1.10, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.10, domain=, nis-domain=(none),
     bootserver=192.168.1.101, rootserver=192.168.1.101, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.101
eth0: link up (100/Full)
Looking up port of RPC 100005/1 on 192.168.1.101
VFS: Mounted root (nfs filesystem) on device 0:12.
Freeing init memory: 124K
eth0: TX underrun, resetting buffers
/bin/sh: can't acess tty; job control turned off
/ # ls
bin             etc             init            mnt
dev             home            lib             nfsroot.tar.gz


至此, 实现预期的效果, over!










原文地址:https://www.cnblogs.com/roger0212/p/4436686.html