教程:

一、配置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!

NFS 文件系统的搭建的更多相关文章

  1. NFS文件系统及搭建NFS共享服务

    一.什么是文件系统? 文件系统是对一个存储设备上的数据和元数据进行组织的一种机制.文件系统是在一个磁盘(包括光盘.软盘.闪盘及其它存储设备)或分区上组织文件方式方法,常见文件系统如ext2.ext3. ...

  2. NFS文件系统存储服务部署

    1 NFS介绍 1.1 什么是NFS? NFS是Network File System的缩写,中文名称是网络文件系统.它的主要功能是通过网络让不用的主机系统之间可以共享文件或者目录.NFS客户端通过挂 ...

  3. 自学linux——21. NFS服务器的搭建

    NFS服务器的搭建 1.NFS的认识 NFS(Network File System即网络文件系统)服务最大的功能就是可以透过网络,让不同的机器.不同的操作系统.可以彼此分享文件,可以将远程 Linu ...

  4. 4、nfs服务器的搭建

    4.1.nfs服务介绍: samba服务器一般互联网企业不会使用 nfs服务的端口是不固定的,需要先启动rpc服务对nfs服务端口进行注册 4.2.安装nfs: rpm -qa nfs-utils r ...

  5. NFS 文件系统

    NFS的安装是非常简单的,只需要两个软件包即可,而且在通常情况下,是作为系统的默认包安装的. NFS服务的主要配置文件 /etc/exports /etc/exports文件内容格式: <输出目 ...

  6. NFS文件系统制作

    内核:              linux-3.0 u-boot:          2010.09 开发板:         fl2440(s3c2440主芯片) 交叉编译器:   2011.11 ...

  7. Linux下NFS服务器的搭建与配置

    一.NFS服务简介 NFS 就是 Network FileSystem 的缩写,最早之前是由sun 这家公司所发展出来的. 它最大的功能就是可以透过网络,让不同的机器.不同的操作系统.可以彼此分享个别 ...

  8. 嵌入式 hi3518平台uboot引导nfs文件系统

    首先贴出来我的bootargs的设置(注没有换行符!!!): setenv bootargs noinitrd mem=64M root=/dev/nfs init=/linuxrc rw nfsro ...

  9. qemu 模拟-arm-mini2440开发板-启动u-boot,kernel和nfs文件系统

    qemu 本文介绍了如何编译u-boot.linux kernel,然后用qemu启动u-boot和linux kernel,达到与开发板上一样的学习效果! 虽然已经买了2440开发板,但是在实际学习 ...

随机推荐

  1. js模拟复制

    现在浏览器种类也越来越多,诸如 IE.Firefox.Chrome.Safari等等,因此现在要实现一个js复制内容到剪贴板的小功能就不是一件那么容易的事了.   一.实现点击按钮,复制文本框中的的内 ...

  2. [Apple开发者帐户帮助]六、配置应用服务(5.3)推送通知(APN):从您的Web服务器发送推送通知

    要使用APN从Web服务器向macOS用户发送推送通知,请注册网站推送标识符并创建网站推送证书. 对于每个网站,请注册一个网站推送标识符,用于验证通知是否来自您的服务器.然后创建一个网站推送证书以签署 ...

  3. Akka源码分析-Remote-收发消息UL图

  4. glances内存分析工具使用

    glances -b 以字节为单位显示网络流量 glances 是一个命令行工具包括如下命令选项:-b:显示网络连接速度 Byte/ 秒-B @IP|host :绑定服务器端 IP 地址或者主机名称- ...

  5. ASP.NET MVC5 之 Log4Net 的学习和使用

    最近在学习 log4Net 插件,在博客园找到了好多资料,但是实现起来还是有点麻烦. 现在记录下学习的过程,期间可能加载着借鉴和转载的代码. 1.配置文件的设置: 新建config文件夹下 log4n ...

  6. Elasticsearch之CURL命令的mget查询

    我这里, 再,创建一个zhouls2的索引库. [hadoop@master elasticsearch-]$ curl -XPUT 'http://master:9200/zhouls2/' {]$ ...

  7. MySQL关于存储过程

    代码示例: 1.IN输入参数: delimiter // create PROCEDURE proc1(IN sid int) begin select * from student where id ...

  8. 【译】x86程序员手册15-5.2页转换

    5.2 Page Translation 页转换 In the second phase of address transformation, the 80386 transforms a linea ...

  9. 汇编:MSR/MRS/BIC指令

    1.MRS指令MRS指令的格式为:MRS{条件}   通用寄存器,程序状态寄存器(CPSR或SPSR)MRS指令用于将程序状态寄存器的内容传送到通用寄存器中.该指令一般用在以下两种情冴: Ⅰ.当需要改 ...

  10. matlab数值数据的表示方法,输出数据以及相关函数

    数据类型的分类: 1.整型 无符号整型和带符号整形 带符号整形的最大值是127 >>x=int8(129) 输出结果是x=127 >>x=unit8(129) 输出结果是x=1 ...