Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19660
  • 博文数量: 4
  • 博客积分: 120
  • 博客等级: 入伍新兵
  • 技术积分: 45
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-15 15:12
文章分类

全部博文(4)

文章存档

2011年(1)

2010年(2)

2008年(1)

我的朋友
最近访客

分类: LINUX

2008-12-15 15:20:57

做我们这一行的似乎都是夜猫子,因为晚上的时候脑子很安静,思路也就很好,不过对身体不太好。呵呵。虽然有朋友告诉我NFS文件系统现在用得不多了,但是我相信还是有很多像我这样的初学者会从这个开始学起的,所以还是跟大家分享一下我挂载NFS系统的一些经验。
开始在网上查找相关的NFS挂载方式时,根本没有找到一个可行的,不知道作者是否真的亲自动手做过,就像很多书上写的一样,在实际操作中根本行不通,要么就是错误百出,真是白白浪费了我们大把的银子,所以希望大家亲自动手做过的朋友能够无私的把你的亲身经历分享给大家,要确保你真的操作成功过啊,不然可就对不起大家了。
这是我第二次做以下的操作,第一次没有写下来,过了一段时间就忘记了,所以这次决定写下来。我使用的是开发商提供的软件和文件系统及内核,因为自己还没有掌握这么多。
在做以下操作前要确定三件事情你都做到了:
1.有一个可以用的Bootloader,我的是VIVI(开发商提供),U-boot我自己移植成功了,呵呵
2.有一个可以正常启动的Linux内核镜相文件
3.编译配置好的NFS文件系统
有了这三个条件后,就可以开始下面的操作了。
下载好VIVI后,将编译好的内核通过Xmodem下载到开发板,然后设置如下命令:
param set linux_cmd_line "console=ttyS0 root=/dev/nfs nfsroot=192.168.1.17:/real2410/root_nfs ip=192.168.1.119:192.168.1.17:192.168.1.1:255.255.255.0:"
我的主机虚拟机Linux的IP地址是192.168.1.17,而开发板设置的IP地址是192.168.1.119
设置好传递给内核的参数后,就需要配置你的Linux系统了。
首先,将NFS服务配置好,指定NFS文件系统的路径,权限等
其次,关闭可恶的Linux防火墙,我在这个上面花了不少时间,service iptables stop
可以用iptables -L命令查看一下所有的服务是不是都被“accept”,如果是就继续
最后,重启一下NFS和PORTMAP两个服务:
service nfs restart
service portmap restart
接下来复位你的开发板,就可以进行ARM下的Linux操作了!呵呵
                                                          此木亮  08.11.22.1:10

下面是我的启动信息:

VIVI version 0.1.4 () (gcc version 2.95.3 20010315 (release)) #0.1.4 日 8月 10 23:03:38 CST 2008
MMU table base address = 0x33DFC000
Succeed memory mapping.
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
Found saved vivi parameters.
Press Return to start the LINUX now, any other key for vivi
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x00100000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttyS0 root=/dev/nfs nfsroot=192.168.1.17:/real2410/root_nfs ip=192.168.1.119:192.168.1.17:192.168.1.1:255.255.255.0:"
MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux.......................................................... done, booting the kernel.
Linux version 2.4.18-rmk7-pxa1 () (gcc version 2.95.3 20010315 (release)) #279 2007骞?04鏈?14鏃?鏄熸湡鍏?07:23:50 CST
CPU: ARM/CIRRUS Arm920Tsid(wb) revision 0
Machine: Samsung-SMDK2410
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0 root=/dev/nfs nfsroot=192.168.1.17:/real2410/root_nfs ip=192.168.1.119:192.168.1.17:192.168.1.1:255.255.255.0:
DEBUG: timer count 15626
Console: colour dummy device 80x30
Calibrating delay loop... 99.94 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62528KB available (1428K code, 438K data, 72K init)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
CPU clock = 200.000 Mhz, HCLK = 100.000 Mhz, PCLK = 50.000 Mhz
Initializing S3C2410 buffer pool for DMA workaround
check your kernel config.
USB Function Character Driver Interface - 0.5, (C) 2001, Extenex Corp.
usbctl: Opened for usb-char
usbctl: Started for usb-char
Starting kswapd
devfs: v1.10 (20020120) Richard Gooch ()
devfs: boot_options: 0x1
ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410
ttyS%d1 at I/O 0x50004000 (irq = 55) is a S3C2410
ttyS%d2 at I/O 0x50008000 (irq = 58) is a S3C2410
test lcd backlight
Console: switching to colour frame buffer device 40x30
Installed S3C2410 frame buffer for TFT 320x240 LCD.
pty: 256 Unix98 ptys configured
leds initialized
s3c2410-ts initialized
S3C2410 Real Time Clock Driver v0.1
block: 128 slots per queue, batch=32
eth0: cs8900 rev K(3.3 Volts) found at 0xd0000300
cs89x0 media RJ-45, IRQ 37
SCSI subsystem driver Revision: 1.00
request_module[scsi_hostadapter]: Root fs not mounted
UDA1341 audio driver initialized
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Creating 3 MTD partitions on "NAND 64MiB 3,3V":
0x00000000-0x00030000 : "boot"
0x00030000-0x00200000 : "kernel"
0x00200000-0x04000000 : "rootfs"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xe9000000, IRQ 26
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usb_mouse
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
usb.c: registered new driver keyboard
usbkbd.c: :USB HID Boot Protocol keyboard driver
usb.c: registered new driver usblp
printer.c: v0.8:USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
IP-Config: Complete:
      device=eth0, addr=192.168.1.119, mask=255.255.255.0, gw=192.168.1.1,
     host=www, domain=, nis-domain=realembed.com,
     bootserver=192.168.1.17, rootserver=192.168.1.17, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
Looking up port of RPC 100003/2 on 192.168.1.17
Looking up port of RPC 100005/1 on 192.168.1.17
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
init started:  BusyBox v0.60.5 (2003.09.05-09:25+0000) multi-c鵯l binary
===========================================
       NFS root filesytem                  
                          
===========================================
[01/Feb/2000:02:12:29 +0000] boa: server version Boa/0.94.13
[01/Feb/2000:02:12:29 +0000] boa: server built Feb 28 2004 at 21:47:23.
[01/Feb/2000:02:12:29 +0000] boa: starting server pid=28, port 80
Please press Enter to activate this console.

BusyBox v0.60.5 (2003.09.05-09:25+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
[root@Real /]#
阅读(1834) | 评论(1) | 转发(0) |
0

上一篇:没有了

下一篇:常用的C/C++工程Makefile模板

给主人留下些什么吧!~~

o_Chapman2009-05-24 10:51:44

其次,关闭可恶的Linux防火墙,我在这个上面花了不少时间 这一步的确很重要,哈哈.