前面已经制作好工具mkyaffsimage,现在就可以使用它来制作根文件系统的映象文件,具体如下:
1、huanghuang@huanghuang-desktop:/work/nfs_root$ mkyaffsimage fs_mini fs_mini.yaffsmkyaffsimage: image building tool for YAFFS built Dec 13 2009
Processing directory fs_mini into image file fs_mini.yaffs
Object 257, fs_mini/bin is a directory
Object 258, fs_mini/bin/rmdir is a symlink to "busybox"
Object 259, fs_mini/bin/lsattr is a symlink to "busybox"
。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。
huanghuang@huanghuang-desktop:/work/nfs_root$ ls
fs_mini fs_mini.tar.bz2 fs_qtopia.tar.bz2
fs_mini_mdev.tar.bz2 fs_mini.yaffs fs_xwindow.tar.bz2
huanghuang@huanghuang-desktop:/work/nfs_root$ ls -l
总计 68124
drwxr-xr-x 13 root root 4096 2009-12-12 15:15 fs_mini
-rwxr-xr-x 1 root root 2832504 2009-11-17 03:53 fs_mini_mdev.tar.bz2
-rwxr-xr-x 1 root root 2748536 2009-11-17 03:53 fs_mini.tar.bz2
-rw------- 1 huanghuang huanghuang 20755680 2009-12-13 14:18 fs_mini.yaffs
-rwxr-xr-x 1 root root 16331984 2009-11-17 03:53 fs_qtopia.tar.bz2
-rwxr-xr-x 1 root root 27072948 2009-11-17 03:53 fs_xwindow.tar.bz2
huanghuang@huanghuang-desktop:/work/nfs_root$ sudo chmod 777 fs_mini.yaffs
huanghuang@huanghuang-desktop:/work/nfs_root$ sudo cp fs_mini.yaffs /var/lib/tftpboot
2、Open> tftp 0x30000000 fs_mini.yaffs
Open> nand erase 0xA00000 0x3600000
Open> write.yaffs 0x30000000 0xA00000 $(filesize)
3、修改命令行参数以MTD2分区作为根文件系统,
Open> save bootargs noinitrd console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs
Open>saveenv
4、再把内核重新再烧入板中,启动后如下信息:
。。。。。。。。。。。
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
mdev: /etc/mdev.conf: No such file or directory
Please press Enter to activate this console.
starting pid 741, tty '/dev/s3c2410_serial0': '/bin/sh'
# cd /
# ls
bin lib mnt sbin usr
dev linuxrc proc sys
etc lost+found root tmp
# shutdown -h now
-/bin/sh: shutdown: not found
# sudo shutdown
-/bin/sh: sudo: not found
# halt
starting pid 747, tty '': '/bin/umount'
The system is going down NOW!
Sending SIGTERM to all processes
Requesting system halt processes
System halted.
以上启动过程中,发现还有mdev: /etc/mdev.conf: No such file or directory错误信息,
这个问题,再慢慢解决,
但是重启之后发现板子没反应了。。。。只能再烧一遍u-boot。
上一篇:U-Boot移植(1)新建一个开发板的相应目录和文件
下一篇:构建根文件系统(6)修改制作yaffs映象文件的工具
推荐阅读最新更新时间:2024-10-26 16:24
设计资源 培训 开发板 精华推荐
- 基于MA8601的USB拓展坞
- SI2415FS08-EVB,带有 UART 接口的 SI2415 ISOmodem 芯片评估板
- 用于实现更高输出电流和更低输出阻抗的 LT1026CS8 并联转换器的典型应用电路
- LM2576电源模块5V
- EVAL-AD7790EB,使用 AD7790 的评估板,16 位,120 sps 低功耗 Sigma Delta 模数转换器
- EVAL-AD7762EDZ,使用 EVAL-CED1Z 的 AD7762、24 位、625 kSPS Sigma Delta ADC 评估板
- EVAL-AD5445EB,使用 AD5445、12 位、高带宽乘法 DAC 和并行接口的评估板
- 使用 Richtek Technology Corporation 的 RT8110D 的参考设计
- LT3837EFE、低部件数、9V 至 18V 输入至 3.3V/10A 输出、具有 0.7% 调节率的隔离反激式转换器
- 5+1键盘