Chinaunix首页 | 论坛 | 博客
  • 博客访问: 149402
  • 博文数量: 25
  • 博客积分: 1632
  • 博客等级: 上尉
  • 技术积分: 324
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-02 21:19
文章分类

全部博文(25)

文章存档

2011年(13)

2010年(12)

我的朋友

分类: LINUX

2010-05-21 00:52:04

 
1,问题1
为什么我选择下面的这个内核配置会出现这个结果呢?
选种的话,会自己自动创建MTD分
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
6 cmdlinepart partitions found on MTD device at91_nand
Creating 6 MTD partitions on "at91_nand":
0x00000000-0x00020000 : "bootstrap"
0x00020000-0x00060000 : "uboot"
0x00060000-0x00080000 : "env1"
0x00080000-0x000a0000 : "env2"
0x000a0000-0x002a0000 : "linux"
0x002a0000-0x10000000 : "root"
不选中的话:
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Creating 6 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00400000 : "Bootstrap"
0x00400000-0x00800000 : "u-boot"
0x00800000-0x01e00000 : "kernel"
0x01e00000-0x04600000 : "fs"
0x04600000-0x08200000 : "user space0"
0x08200000-0x10000000 : "user space2"
2,NFS文件系统搭建:
主机:

安装nfs服务器端和客户端
root@emboard:/workdir/atmel/at91sam9260# apt-get install portmap nfs-kernel-server
root@emboard:/workdir/atmel/at91sam9260# apt-get install portmap nfs-common
2.
配置共享文件
编辑/etc/exports,在其中增加要共享的目录
/nfs *(rw,sync,no_subtree_check)
root@emboard:/workdir/atmel/at91sam9260#  exportfs -ra
3.
重启服务

root@emboard:/workdir/atmel/at91sam9260#  /etc/init.d/portmap restart
root@emboard:/workdir/atmel/at91sam9260#  /etc/init.d/nfs-kernel-server restart
4.
客户就可以加载了

root@emboard:/workdir/atmel/at91sam9260# mount 192.168.1.5:/nfs /workdir/ -o nolock

5,设置开发板的启动参数

U-Boot>setenv bootargs mem=64M console=ttyS0 115200 root=/dev/nfs

nfsroot=192.168.1.5:/nfs/rootfs

ip=192.168.1.254:192.168.1.5:192.168.1.1:255.255.255.0::eth0:off

这样就可以看到系统通过nfs文件系统启动了.

当然要把内核关于nfs的选项选中

当开发板的系统跑起来后,可以执行这个命令来验证:

[root@microcreat /]$mount -o nolock -t nfs 192.168.1.5:/nfs/rootfs /mnt/

要加上-o nolock

内核里面关于nfs文件系统的选项选上

 

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