6467文件系统制作与烧写

来源:互联网 发布:易语言挂机源码 编辑:程序博客网 时间:2024/06/03 02:25


1、主要流程请参考TI官方说明

http://processors.wiki.ti.com/index.php/MTD_Utilities


2、利用mkfs.jffs2工具制作文件系统

mkfs.jffs2-n -r /mnt/loop/ -e 128 -o /tftpboot/rootfs.jffs2

mkfs.jffs2可以在直接下载安装:

apt-getinstall mtd-utils

也可以参考官方文档下载自己编译。


3、重新配置uboot参数,禁掉启动(noinitrd)
setenvbootargs mem=76M console=ttyS0,115200n8 root=/dev/mtdblock3 rw noinitrdrootfstype=jffs2

注意保存。


4、烧写文件系统

tftp 0x82000000 /tftpboot/rootfs.jffs2

nand erase 0x560000 0x7AA0000 //128M全部擦写干净,减少jffs2自检时间

nandwrite.jffs2 0x82000000 0x560000 0x1600000 //32M为文件系统实际大小


5、调试结果

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf458: 0x6eb6 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf45c: 0xff8a in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf460: 0xfeac in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf464: 0xaeff in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf468: 0xb7b9 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf46c: 0xffdb in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf470: 0x07dd in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf474: 0xbfc5 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf478: 0x7dff in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x013cf47c: 0xddbb in
stead
Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 128K
INIT: version 2.86 booting
Please wait: booting...
Starting udev
udev: starting version 141
udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


udevd[1022]: inotify_add_watch(3, (null), 10) failed: Bad address


Remounting root file system...
modprobe: FATAL: Could not open 'kernel/fs/minix/minix.ko': No such file or dire
ctory


root: mount: mounting rootfs on / failed: No such file or directory
ALSA: Restoring mixer settings...
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces... eth0: attached PHY driver [ET1011C] (mii_bus:p
hy_addr=1:01, id=282f014)
udhcpc (v1.13.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
done.
Tue Apr 13 10:21:00 UTC 2010
INIT: Entering runlevel: 5
Starting telnet daemon.
modprobe: FATAL: Could not open 'kernel/net/ipv6/ipv6.ko': No such file or direc
tory


Starting syslogd/klogd: done
Starting thttpd.


 _____                    _____           _         _
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
              |___|                    |___|


Arago Project http://arago-project.org dm6467t-evm ttyS0


Arago 2009.11 dm6467t-evm ttyS0


dm6467t-evm login:


0 0