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!
NFS 文件系统的搭建的更多相关文章
- NFS文件系统及搭建NFS共享服务
一.什么是文件系统? 文件系统是对一个存储设备上的数据和元数据进行组织的一种机制.文件系统是在一个磁盘(包括光盘.软盘.闪盘及其它存储设备)或分区上组织文件方式方法,常见文件系统如ext2.ext3. ...
- NFS文件系统存储服务部署
1 NFS介绍 1.1 什么是NFS? NFS是Network File System的缩写,中文名称是网络文件系统.它的主要功能是通过网络让不用的主机系统之间可以共享文件或者目录.NFS客户端通过挂 ...
- 自学linux——21. NFS服务器的搭建
NFS服务器的搭建 1.NFS的认识 NFS(Network File System即网络文件系统)服务最大的功能就是可以透过网络,让不同的机器.不同的操作系统.可以彼此分享文件,可以将远程 Linu ...
- 4、nfs服务器的搭建
4.1.nfs服务介绍: samba服务器一般互联网企业不会使用 nfs服务的端口是不固定的,需要先启动rpc服务对nfs服务端口进行注册 4.2.安装nfs: rpm -qa nfs-utils r ...
- NFS 文件系统
NFS的安装是非常简单的,只需要两个软件包即可,而且在通常情况下,是作为系统的默认包安装的. NFS服务的主要配置文件 /etc/exports /etc/exports文件内容格式: <输出目 ...
- NFS文件系统制作
内核: linux-3.0 u-boot: 2010.09 开发板: fl2440(s3c2440主芯片) 交叉编译器: 2011.11 ...
- Linux下NFS服务器的搭建与配置
一.NFS服务简介 NFS 就是 Network FileSystem 的缩写,最早之前是由sun 这家公司所发展出来的. 它最大的功能就是可以透过网络,让不同的机器.不同的操作系统.可以彼此分享个别 ...
- 嵌入式 hi3518平台uboot引导nfs文件系统
首先贴出来我的bootargs的设置(注没有换行符!!!): setenv bootargs noinitrd mem=64M root=/dev/nfs init=/linuxrc rw nfsro ...
- qemu 模拟-arm-mini2440开发板-启动u-boot,kernel和nfs文件系统
qemu 本文介绍了如何编译u-boot.linux kernel,然后用qemu启动u-boot和linux kernel,达到与开发板上一样的学习效果! 虽然已经买了2440开发板,但是在实际学习 ...
随机推荐
- 作业训练------通过读取c.txt文件中的内容等号右值,并将右值的最大值、最小值、平均值打印到屏幕上。
这篇博客是学习传智播客c++教程的作业,通过在网上进行搜集来完成,但是网上有相似的代码,但是结果总是有点问题,所以本文写了这篇记录下. #include <stdio.h> #includ ...
- bzoj2427:[HAOI2010]软件安装(Tarjan+tree_dp)
2427: [HAOI2010]软件安装 Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 1053 Solved: 424[Submit][Statu ...
- [Swift通天遁地]五、高级扩展-(10)整形、浮点、数组、字典、字符串、点、颜色、图像类的实用扩展
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs. ...
- Java中多个线程交替循环执行
有些时候面试官经常会问,两个线程怎么交替执行呀,如果是三个线程,又怎么交替执行呀,这种问题一般人还真不一定能回答上来.多线程这块如果理解的不好,学起来是很吃力的,更别说面试了.下面我们就来剖析一下怎么 ...
- Java 删除List元素的正确方式
方式一:使用Iterator的remove()方法 public class Test { public static void main(String[] args) { List<Strin ...
- [转]在 Linux 下使用 RAID
转自:http://www.linuxidc.com/Linux/2015-08/122191.htm RAID 的意思是廉价磁盘冗余阵列(Redundant Array of Inexpensive ...
- MyBatis ((一对多和多对一配置)实现持久化操作 之二)
注: 此文中的实体类还是沿用上一章的Emp和Dept两个类 还是老样子,不细说 直接上代码 01.在emp.xml中 配置和Dept的多对一的相关信息 <?xml version=" ...
- Hive扩展功能(三)--使用UDF函数将Hive中的数据插入MySQL中
软件环境: linux系统: CentOS6.7 Hadoop版本: 2.6.5 zookeeper版本: 3.4.8 主机配置: 一共m1, m2, m3这五部机, 每部主机的用户名都为centos ...
- 提高mysql千万级大数据SQL查询优化几条经验
凯哥java 微信号 kaigejava 功能介绍 ...
- html5——3D案例(立方体)
立方体:父盒子规定了3d呈现属性,立方体做旋转运动 移动顺序:1.每个盒子都先移动100px,然后再做相应的旋转 2.只有这样立方体的几何中心点与父盒子的几何中心点是一样的 <!DOCTYPE ...