Chinaunix首页 | 论坛 | 博客
  • 博客访问: 72523
  • 博文数量: 17
  • 博客积分: 658
  • 博客等级: 上士
  • 技术积分: 235
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-31 19:44
文章分类

全部博文(17)

文章存档

2011年(1)

2010年(13)

2009年(3)

我的朋友

分类: 嵌入式

2010-02-07 16:46:26


之前一直没有把nfs mount成功,总觉得不爽,今天总算是在nfs上跑起来了。。。。。

我是在虚拟机vmware上安装 ubuntu8.04.3 双网卡(现在只用了一个)

这里假设你已经成功移植网卡驱动

先接好网线 windows下设置ip为 192.168.1.109

将VMware网络连接设置为桥接(第一个)

linux: 加入nfs共享目录
-----          sudo emacs /etc/exports
加入这一行  /arm 192.168.1.* (rw,sync,no_root_squash)

设置linux的ip
                  ifconfig eth0 down

                  ifconfig eth0 192.168.1.114

                  ifconfig eth0 up
 重启网络     sudo /etc/init.d/networking restart

       去掉防火墙 srvice iptables stop (我一直没启用的,故省略啦)
ifconfig 得到开发板ip
主机ping开发板 开发板ping主机
                       ping -c 3 192.168.1.111
                       ping -c 3 192.168.1.114
成功


二:   更改boot argm (启动参数)
  root=/dev/nfs rw init=/linuxrc console=ttySAC0,115200 nfsroot=192.168.1.114:/arm ip=192.168.1.111:192.168.1.114:192.168.1.1:255.255.255.0 rootfstype=nfs

烧写bios(u-boot就不用啦 直接改,我用的是开发板自带的bios,挺好用的就没换,[懒而已】)

启动 !!!!!!!!!!!!!

************************************
NAND Flash Boot

Please select function :
0 : USB download file
1 : Uart download file
2 : Write Nand flash with download file
3 : Load Pragram from Nand flash and run
4 : Erase Nand flash regions
5 : Write NOR flash with download file
6 : Set boot params
7 : Set AutoBoot parameter,1:linux 2:wince
3
Read chip id = ec76
Nand flash status = c0
Set boot params = root=/dev/nfs rw init=/linuxrc nfsroot=192.168.1.114:/arm console=ttySAC0,115200 ip=192.168.1.111:192.168.1.114:192.168.1.1:255.255.255.0 rootfs=nfs
Uncompressing Linux......................................................................................................... done, booting the kernel.
Linux version 2.6.32.7 (root@arm-desktop) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #18 Sun Feb 7 00:17:25 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/nfs rw init=/linuxrc nfsroot=192.168.1.114:/arm console=ttySAC0,115200 ip=192.168.1.111:192.168.1.114:192.168.1.1:255.255.255.0 rootfs=nfs
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61456KB available (2940K code, 301K data, 104K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing subpending status 00000093
irq: clearing subpending status 00000092
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 99.73 BogoMIPS (lpj=249344)
Mount-cache hash table entries: 512
Initializing cgroup subsys ns
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
bio: create slab at 0
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
fuse init (API version 7.13)
msgmni has been set to 120
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
nbd: registered device at major 43
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2410-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns
s3c24xx-nand s3c2410-nand: NAND ECC disabled
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000030000 : "boot"
0x000000030000-0x000000200000 : "kernel"
0x000000200000-0x000002000000 : "rootfs"
0x000002000000-0x000004000000 : "ext-fs3"
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
eth0: CS8900A rev E at 0xe0000300 irq=53, addr: 00: 0:3E:26:0A: 0
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
TCP cubic registered
cs8900_start 
enable the ethernet controlle
request_irq
IP-Config: Complete:
     device=eth0, addr=192.168.1.111, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.111, domain=, nis-domain=(none),
     bootserver=192.168.1.114, rootserver=192.168.1.114, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.114
Looking up port of RPC 100005/1 on 192.168.1.114
VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing init memory: 104K
^C#mount all.......
chmod: /dev/null: No such file or directory
# starting mdev....
******************************************
 zhangyujun linux-2.6.32.7 boot          
 2010-01-31              
                        
******************************************

Processing /etc/profile......-/bin/sh: USER: not found
Done!
[root@gec2410/]#

-----------------------------------------
发现要重新制作一个nfs专用的文件系统,之前用来制作cramfs和jffs2的出现 readonly filesystem
          不可写。。。。。。

阅读(3220) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~