jffs2sd卡无文件系统统制作出来一般多大

1)zlib的编译
tar xjvf zlib-1.2.3.tar.bz2
tony@Ubuntu:~/win/zlib-1.2.3$./configure
tony@Ubuntu:~/win/zlib-1.2.3$make
tony@Ubuntu:~/win/zlib-1.2.3$sudo make install
2)mtd工具的编译
tar xjvf mtd-snapshot-.tar.bz2
tony@Ubuntu:~/win/mtd/util$make
tony@Ubuntu:~/win/mtd/util$sudo make install
&执行完上面2部,我们的系统里就有了mkfs.jffs2这个工具了
3)jffs2文件系统镜像制作 & &&(/opt/filesystem/目录下为已经制作好的文件系统,参看--》)
tony@Ubuntu:/opt$sudo mkfs.jffs2 -r filesystem -o filesystem.jffs2
tony@Ubuntu:/opt$cp filesystem.jffs2 /tftpboot/
4)将jffs2文件系统烧写到nand
filesystem.jffs2
nand erase 000
nand write 000&实际大小
setenv bootargs root=/dev/mtdblock2 init=/linuxrc rootfstype=jffs2 rw console=ttySAC0,115200&
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:329917次
积分:5333
积分:5333
排名:第1725名
原创:192篇
转载:123篇
评论:64条
(1)(1)(1)(2)(1)(1)(2)(4)(10)(6)(13)(14)(29)(40)(19)(21)(10)(2)(7)(18)(4)(2)(11)(5)(14)(6)(9)(12)(5)(9)(28)(8)温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
阅读(142)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'制作jffs2文件系统时遇到的错误',
blogAbstract:'由于粗心大意,又耽误了一天,不过这一天也对jffs2文件系统的制作了解了更多,前面主要是操作错误,写nand flash时我用的是nand write,而文章:在nand flash上实现JFFS2根文件文件系统中用的是:nand write.jffs2 不过启动后,还有些问题:VFS: Unable to mount root fs via NFS, trying floppy.jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0xxfbeb instead等这样的n行错误,这个错误,有空再做处理。&&解决问题时看到网上的同类错误如下:jffs2挂载不上,大家帮忙分析分析 ',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:6,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}1386人阅读
*****************************************************************************************
环 & & & &境:linux系统(centos6.4ubuntu12.10)
开 &发 &板:飞凌2440或者 天嵌2440
联系方式:
装载声明:http://blog.csdn.net/sonbai/article/details/8797820
*****************************************************************************************
1、JFFS2的特点
可以看看下面的文档:
/user1/4071/archives/.html
2、内核配置使其支持jffs2
Linux &make menuconfig&选择
& File systems &---&
& & & Miscellaneous filesystems &---&
& & & & & &&*& Journalling Flash File System v2 (JFFS2) support
& & & & & &(0) & JFFS2 debugging verbosity (0 = quiet, 2 = noisy)
& & & & & &[*] & JFFS2 write-buffering support
& & & & & &[ ] & JFFS2 summary support (EXPERIMENTAL)&
& & & & & &[ ] & JFFS2 XATTR support (EXPERIMENTAL)&
& & & & & &[ ] & Advanced compression options for JFFS2
& & & & & &&*& Compressed ROM file system support (cramfs)
3、制作mkfs.jffs2工具
下载最新的mtd-utils,当然也可以从其他地方下载源码压缩包,如:
http://download.chinaunix.net/download/2.shtml
下面是我们直接使用git从源码的主线上获取最新的版本并编译的脚步:
[root:/usr/local/apps_src]#mkdir mtd-utils
[root:/usr/local/apps_src]#cd mtd-utils/
[root:/usr/local/apps_src/mtd-utils]#nocvim&
[root:/usr/local/apps_src/mtd-utils]#vim build.sh
#+--------------------------------------------------------------------------------------------
#|Description: &This shell script used to download lzo,zlib,mtd-utils source code
#| & & & & & & &and cross compile it for ARM Linux, all is static compile.
#| & & Author: &GuoWenxue &&
#| &ChangeLog:
#| & & & & & 1, Initialize 1.0.0 on
#+--------------------------------------------------------------------------------------------
PRJ_PATH=`pwd`
LZO=&lzo-2.04&
ZLIB=&zlib-1.2.5&
function decompress_packet ()
& if [ -f $1 ] ; then
& & case $1 in
& & & *.tar.bz2) & tar xjf $1 & & & &;;
& & & *.tar.gz) & &tar xzf $1 & & ;;
& & & *.bz2) & & & bunzip2 $1 & & & ;;
& & & *.rar) & & & rar x $1 & & ;;
& & & *.gz) & & & &gunzip $1 & & ;;
& & & *.tar) & & & tar xf $1 & & & &;;
& & & *.tbz2) & & &tar xjf $1 & & &;;
& & & *.tgz) & & & tar xzf $1 & & & ;;
& & & *.zip) & & & unzip $1 & & ;;
& & & *.Z) & & & & uncompress $1 &;;
& & & *.7z) & & & &7z x $1 & &;;
& & & *) & & & & & echo &'$1' cannot be extracted via extract()& ;;
& & echo &'$1' is not a valid file&
echo &+----------------------------------------+&
echo &| &Compile $LZO now & &
echo &+----------------------------------------+&
# Download lzo source code packet
if [ ! -s $LZO.tar.gz ] ; then
& &wget /opensource/lzo/download/$LZO.tar.gz
# Decompress lzo source code packet
if [ ! -d $LZO ] ; then
& & decompress_packet $LZO.tar.*
# Compile lzo library
if [ ! -s src/.libs/liblzo*.a ] ; then
unset LDFLAGS
./configure
echo &+----------------------------------------+&
echo &| &Compile $ZLIB now & &
echo &+----------------------------------------+&
# Download zlib source code packet
if [ ! -s $ZLIB.tar* ] ; then
#wget http://www.zlib.net/$ZLIB.tar.gz
& &wget http://www.imagemagick.org/download/delegates/$ZLIB.tar.bz2
# Decompress zlib source code packet
if [ ! -d $ZLIB ] ; then
& & decompress_packet $ZLIB.tar.*
#Compile zlib library
if [ ! -s libz.a ] ; then
unset LDFLAGS
./configure &--static
echo &+----------------------------------------+&
echo &| &Compile mtd-utils now & &
echo &+----------------------------------------+&
if [ -s mtd-utils.tar.* ] ; then
& & decompress_packet mtd-utils.tar.*
# download mtd-utils source code
if [ ! -d &mtd-utils ] ; then
& &git clone git://git.infradead.org/mtd-utils.git
cd mtd-utils
unset LDFLAGS
export CFLAGS=&-DWITHOUT_XATTR -I$PRJ_PATH/$ZLIB -I$PRJ_PATH/$LZO/include&
export ZLIBLDFLAGS=-L$PRJ_PATH/$ZLIB
export LZOLDFLAGS=-L$PRJ_PATH/$LZO/src/.libs/
export LDFLAGS=-static
&build.sh& [New] 105L, 2663C written & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & &&
[root:/usr/local/apps_src/mtd-utils]#sh build.sh&
注:如果上面脚本运行的过程中有些问题的话可以看看mtd-utils/目录下是否有mkfs.jffs2工具,因为我们只需要mkfs.jffs2工具,如果有可以将出现的问题忽略:
[root:/usr/local/apps_src/mtd-utils]#file mtd-utils/mkfs.jffs2
mtd-utils/mkfs.jffs2: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped
[root:/usr/local/apps_src/mtd-utils]#cp mtd-utils/mkfs.jffs2 /usr/local/bin/
[root:/usr/local/apps_src/mtd-utils]#mkfs.jffs2 -V
mkfs.jffs2: error!: revision 1.60
[root:/usr/local/apps_src/mtd-utils]#mkfs.jffs2&
mkfs.jffs2: error!: Usage: mkfs.jffs2 [OPTIONS]
Make a JFFS2 file system image from an existing directory tree
& -p, --pad[=SIZE] & & & &Pad output to SIZE bytes with 0xFF. If SIZE is
& & & & & & & & & & & & & not specified, the output is padded to the end of
& & & & & & & & & & & & & the final erase block
& -r, -d, --root=DIR & & &Build file system from directory DIR (default: cwd)
& -s, --pagesize=SIZE & & Use page size (max data node size) SIZE (default: 4KiB)
& -e, --eraseblock=SIZE & Use erase block size SIZE (default: 64KiB)
& -c, --cleanmarker=SIZE &Size of cleanmarker (default 12)
& -m, --compr-mode=MODE & Select compression mode (default: priortiry)
& -x, --disable-compressor=COMPRESSOR_NAME
& & & & & & & & & & & & & Disable a compressor
& -X, --enable-compressor=COMPRESSOR_NAME
& & & & & & & & & & & & & Enable a compressor
& -y, --compressor-priority=PRIORITY:COMPRESSOR_NAME
& & & & & & & & & & & & & Set the priority of a compressor
& -L, --list-compressors &Show the list of the avaiable compressors
& -t, --test-compression &Call decompress and compare with the original (for test)
& -n, --no-cleanmarkers & Don't add a cleanmarker to every eraseblock
& -o, --output=FILE & & & Output to FILE (default: stdout)
& -l, --little-endian & & Create a little-endian filesystem
& -b, --big-endian & & & &Create a big-endian filesystem
& -D, --devtable=FILE & & Use the named FILE as a device table file
& -f, --faketime & & & & &Change all file times to '0' for regression testing
& -q, --squash & & & & & &Squash permissions and owners making all files be owned by root
& -U, --squash-uids & & & Squash owners making all files be owned by root
& -P, --squash-perms & & &Squash permissions on all files
& -h, --help & & & & & & &Display this help text
& -v, --verbose & & & & & Verbose operation
& -V, --version & & & & & Display version information
& -i, --incremental=FILE &Parse FILE and generate appendage output for it
[root:/usr/local/apps_src/mtd-utils]#
当然,我们也可以交叉编译这些工具运行在ARM Linux上,这里我们可以交叉编译得到的常用的工具还有:
flashcp flash_erase flash_eraseall flash_info flash_lock flash_unlock mkfs.jffs2 nandwrite nandtest等
4、制作根文件系统:
注:这里我们假定你已经制作好了根文件系统树,如果没有可以参考这篇文档:
http://blog.csdn.net/sonbai/article/details/8785146 ,教你制作根文件系统树
各参数的意义:
(1)-r :指定根文件系统目录.
(2)-o : 指定输出的根文件系统名.
(3)-s : 指定flash每一页的大小;
(3)-e : 指定flash的檫除块的大小,預設是64KB.
要注意,不同的flash, 其page size和block size會不一樣.,如果是K9F1208U0C,在它的datasheet上有说明:
则下面指定:&&s 512 -e 16KiB&
如果是K9F2G08U0M,在它的datasheet上有说明:
1 Page = (2K+64)Bytes
1 Block = (2K+64)Bytes = (128K+4K) Bytes
1 Device = (2K+64)B * 64Pages * 2048 Blocks = 2112 Mbits&
则下面指定:&&s 2048 -e 128KiB&
这里我们用的是K9F2G08U0M.
[root:/opt]#mkfs.jffs2 -n -s 2048 -e 128KiB -d rootfs -o rootfs.jffs2 --pad=0x1400000
[root:/opt]#du -h rootfs.jffs2&
20M & & rootfs.jffs2
如果这里的block size设置不对的话(如将上面的-e 128Kib改成-e 0x4000),则系统启动时会给出如下警告信息:
Empty flash at 0x00003ffc ends at 0x
Empty flash at 0x00007ffc ends at 0x
Empty flash at 0x0000bffc ends at 0x
Empty flash at 0x0000fffc ends at 0x
Empty flash at 0x00013ffc ends at 0x
Empty flash at 0x00017ffc ends at 0x
Empty flash at 0x0001bffc ends at 0x
(4)--pad (-p): 用16进制表示输出根文件系统image的大小,也就是rootfs.jffs2的size。很重要的是, 在Linux内核里划分
的区为多大,这个size就为多大,因为我们的Linux划分的该区为20M,所里这里大小为0x1400000.
如果指定的大小小于我们划分的分区大小,则系统启动时会打印:
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009e5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009e5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009e5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009e000c: 0x1d57 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009e1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009ed5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009ed5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009e001c: 0xdc5c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009ec45 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x009e5 instead
*****************************************************************************************
环 & & & &境:linux系统(centos6.4ubuntu12.10)
开 &发 &板:飞凌2440或者 天嵌2440
版权所有:郭文学
联系方式:
装载声明:http://blog.csdn.net/sonbai/article/details/8797820
*****************************************************************************************
建议在内核中的jffs2分区给20M左右,因为如果是用tftp将rootfs.jffs2下载到nandflash上的话,太大了很可能将uboot覆盖掉。
(5)如果挂载后会出现类似:CLEANMARKER node found at 0x has totlen 0xc != normal 0x0 &的警告,则加上 -n 就会消失。
(5) -n 指明不添加清除标记(nand flash 有自己的校检块,存放相关的信息。)
& & & &如果挂载后会出现类似下面的警告,则加上-n就会消失:
& & & &CLEANMARKER node found at 0x has totlen 0xc != normal 0x0
5、在linux的PC上挂载jffs2根文件系统映像
注:在linux的PC上挂载jffs2根文件系统映像主要是对jffs2文件系统进行修改,你可以跳过这一步。
因为jffs2是构建于MTD设备上的文件系统,所以无法通过loop设备来挂载,但是可以通过mtdram设备来挂载。mtdram是在用RAM实现
的MTD设备,可以通过mtdblock设备来访问。使用mtdram设备很简单,只要加载mtdram和mtdblock两个内核模块即可。这两个内核模块
一般的linux内核发行版都有编译好的,直接用modprobe命令加载。
下面是具体步骤,主机环境为CentOS 6.4:
[root:/opt]#uname -a
Linux localhost 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT
i686 i386 GNU/Linux
(1).加载mtdblock内核模块
[root:/opt]#modprobe mtdblock
(2).加载mtdram内核模块,将该设备的大小指定为jffs2根文件系统映像的大小,块擦除大小(即flash的块大小)指定为制作该jffs2
根文件系统时“-e”参数指定的大小,缺省为64KB。下面两个参数的单位都是KB:
[root:/opt]#modprobe mtdram total_size=20480 erase_size=128
(3).这时将出现MTD设备/dev/mtdblock0,使用dd命令将jffs2根文件系统拷贝到/dev/mtdblock0设备中:
[root:/opt]#ls /dev/mtdblock0 -l
brw-r----- 1 root disk 31, 0 Jun &1 21:59 /dev/mtdblock0
[root:/opt]#sudo dd if=rootfs.jffs2 of=/dev/mtdblock0&
4 records in
4 records out
bytes (21 MB) copied, 0.59659 seconds, 35.2 MB/s
(4).将保存了jffs2根文件系统的MTD设备挂载到指定的目录上。
[root:/opt]#mkdir mtd
[root:/opt]#mount -t jffs2 /dev/mtdblock0 ./mtd/
这之后就可以到/mnt/mtd目录查看、修改挂载的jffs2根文件系统了,修改后的jffs2根文件系统可以通过dd命令拷贝为一个jffs2的
映像文件。
[root:/opt]#ls mtd/
apps &bin &data &dev &etc &info &lib &linuxrc &mnt &proc &root &sbin &sys &tmp &usr &var
[root:/opt]#mkdir mtd/test
[root:/opt]#ls mtd/
apps &bin &data &dev &etc &info &lib &linuxrc &mnt &proc &root &sbin &sys &test &tmp &usr &var
[root:/opt]#dd if=/dev/mtdblock0 of=rootfs.jffs2 & &&
4 records in
4 records out
bytes (21 MB) copied, 0.291989 seconds, 71.8 MB/s
[root:/opt]#umount /dev/mtdblock0
再挂载测试:
[root:/opt]#mount -t jffs2 /dev/mtdblock0 mtd/
[root:/opt]#ls mtd/
apps &bin &data &dev &etc &info &lib &linuxrc &mnt &proc &root &sbin &sys &test &tmp &usr &var
[root:/opt]#umount /dev/mtdblock0
使用该方法更新后得到的文件系统在启动时会出现以下WARNING:
CLEANMARKER node found at 0x has totlen 0xc != normal 0x0
CLEANMARKER node found at 0x013a0000 has totlen 0xc != normal 0x0
6、烧录并启动:
修改分区是在arch/arm/plat-s3c24xx/common-smdk.c文件中,可以参考这篇文档:
http://blog.csdn.net/sonbai/article/details/8717574
参考内核分区:
0xx : &mtdblock0 uboot 1MB, 0x100000&
0xx : &mtdblock1 kernel 5MB, 0x500000&
0xx : &mtdblock2 ramdisk 10MB, 0xa00000&
0xx01a00000 : &mtdblock3 cramfs 10MB, 0xa00000&
0x01ae00000 : &mtdblock4 yaffs 20MB, 0x1400000&
0x02e00000 : &mtdblock5 jffs 20MB, 0x1400000& &&
0xx : &mtdblock6 apps 20MB, 0x1400000&
0xx06a00000 : &mtdblock7 info 20MB, 0x1400000&
0x06a00000 : &mtdblock8 data 40MB, 0x2800000&
这里说明下关于nand flash操作的几个常用命令的含义
nand write:向Nand Flash写入数据,如果NandFlash相应的区域有坏块,则直接报错。
nand write.jffs2:向Nand Flash写入数据,如果NandFlash相应的区域有坏块,可以跳过坏块。
nand read:读取Nand Flash相应区域的数据,如果NandFlash相应的区域有坏块,则直接报错。
nand read.jffs2s:读取Nand Flash相应区域的数据,如果NandFlash相应的区域有坏块,将对应坏块区域的缓冲填充0xff,然后跳过此坏块继续读取。
nand read.jffs2:读取Nand Flash相应区域的数据,如果NandFlash相应的区域有坏块,直接跳过坏块。
具体的参考代码参看U-BOOT源码:common/cmd_nand.c文件。
以下是用tftp烧录的方法介绍:
uboot中的参数设置,对于这次jffs2移植关注这么几个参数:
serverip=192.168.1.79#这是tftp服务器地址,
linuxrom-fulinux.nand erase 000;nand write 000 500000#这是tftp下载内核的参数(根据你的内核分区表请自行设置nand
erase 和nand write后面的参数)
bjffs2=tftp
rootfs.jffs2;nand erase 2e0;nand write e0#这是tftp下载jffst2文件系统的参数(同样根据自己的情况修改)
bootargs=noinitrd root=/dev/mtdblock5 rootfstype=jffs2 init=/linuxrc console=ttyS0,115200#这是uboot传递给内核的参数
U-boot环境变量及其启动:
U-Boot 00-g1a87d59 (Jun 01 2011 - 21:21:30)
Modified by guowenxue for s3c0 board.
DRAM: &64 MiB
Flash: 1 MiB
NAND: &256 MiB
In: & &serial
Out: & serial
Err: & serial
Net: & dm9000
Hit any key to stop autoboot: &0&
[ s3c2440@guowenxue ]# run bkr
dm9000 i/o: 0x, id: 0x90000a46&
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:6b
could not establish link
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.1.155; our IP address is 192.168.1.244
Filename 'uImage-s3c2440.gz'.
Load address: 0x
Loading: T #################################################################
& & & & &############################################################
Bytes transferred = be690 hex)
NAND erase: device 0 offset 0x100000, size 0x300000
Erasing at 0x3e0000 -- 100% complete.
NAND write: device 0 offset 0x100000, size 0x300000
&3145728 bytes written: OK
[ s3c2440@guowenxue ]# run bjffs2
dm9000 i/o: 0x, id: 0x90000a46&
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:6b
could not establish link
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.1.155; our IP address is 192.168.1.244
Filename 'rootfs.jffs2'.
Load address: 0x
Loading: T #################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &######################T ###########################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &#################################################################
& & & & &##########################################################T ######
Bytes transferred = 00000 hex)
NAND erase: device 0 offset 0x2e00000, size 0x1400000
Skipping bad block at &0x & & & & & & & & & & & & & & & & & & & & &
Erasing at 0x41e0000 -- 100% complete.
NAND write: device 0 offset 0x2e00000, size 0x1400000
Skip bad block 0x
& bytes written: OK
[ s3c2440@guowenxue ]# boot
NAND read: device 0 offset 0x100000, size 0x300000
&3145728 bytes read: OK
## Booting kernel from Legacy Image at
& &Image Name: & Linux Kernel
& &Created: & & & &12:19:50 UTC
& &Image Type: & ARM Linux Kernel Image (uncompressed)
& &Data Size: & &1828432 Bytes = 1.7 MiB
& &Load Address:
& &Entry Point: &
& &Verifying Checksum ... OK
& &XIP Kernel Image ... OK
Starting kernel ...
Uncompressing Linux.................................................................................................................... done, booting the kernel.
Linux version 2.6.24 (root@localhost) (gcc version 4.3.5 (Buildroot 2011.02) ) #2 Wed May 25 20:19:45 CST 2011
CPU: ARM920T [] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x)
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on. &Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock5 rootfstype=jffs2 init=/linuxrc console=ttyS0,115200 mem=64M loglevel=7
irq: clearing pending ext status
irq: clearing subpending status
irq: clearing subpending status
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=, tcnt a4ca, tcfg 00000, usec 00001e57
Console: colour dummy device 80x30
console [ttyS0] enabled
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: 61068KB available (3336K code, 307K data, 132K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
S3C24XX DMA Driver, (c) 06 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
NetWinder Floating Point Emulator V0.97 (extended precision)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) (SUMMARY) &??
Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
s3c2440-uart.0: ttyS0 at MMIO 0x (irq = 70) is a S3C2440
s3c2440-uart.1: ttyS1 at MMIO 0x (irq = 73) is a S3C2440
s3c2440-uart.2: ttyS2 at MMIO 0x (irq = 76) is a S3C2440
RAMDISK driver initialized: 1 RAM disks of 16384K size 1024 blocksize
loop: module loaded
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
tun: Universal TUN/TAP device driver, 1.6
Max Krasnyansky &&
dm9000 Ethernet Driver
eth0: dm9000 at c485e300,c4860304 IRQ 51 MAC: 08:00:3e:26:0a:6b
Loading iSCSI transport class v2.0-724.
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 195 at 0x
Bad eraseblock 410 at 0x
Bad eraseblock 989 at 0x07ba0000
Bad eraseblock 1047 at 0x082e0000
Creating 9 MTD partitions on &NAND 256MiB 3,3V 8-bit&:
0xx : &mtdblock0 uboot 1MB&
0xx : &mtdblock1 kernel 5MB&
0xx : &mtdblock2 ramdisk 10MB&
0xx01a00000 : &mtdblock3 cramfs 10MB&
0x01ae00000 : &mtdblock4 yaffs 20MB&
0x02e00000 : &mtdblock5 jffs 20MB&
0xx : &mtdblock6 apps 20MB&
0xx06a00000 : &mtdblock7 info 20MB&
0x06a00000 : &mtdblock8 data 40MB&
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c)
Simtec Electronics
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ASoC version 0.13.1
ALSA device list:
& No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
ieee8 data/management/control stack, git-1.1.13
ieee80211: Copyright (C)
Intel Corporation &jketreno@&
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 132K
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Copyright (C) 2011 GuoWenxue&&
root login: root
Password:&
apps & & data & & etc & & &lib & & &mnt & & &root & & sys & & &usr
bin & & &dev & & &info & & linuxrc &proc & & sbin & & tmp & & &var
*****************************************************************************************
环 & & & &境:linux系统(centos6.4ubuntu12.10)
开 &发 &板:飞凌2440或者 天嵌2440
版权所有:郭文学
联系方式:
装载声明:http://blog.csdn.net/sonbai/article/details/8797820
*****************************************************************************************
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:195555次
积分:4355
积分:4355
排名:第2458名
原创:191篇
转载:89篇
评论:81条
(8)(4)(1)(4)(5)(4)(9)(2)(1)(4)(3)(5)(4)(6)(2)(9)(14)(21)(6)(4)(36)(47)(7)(7)(65)(6)
文章:28篇
阅读:36430
开源社区QQ群:}

我要回帖

更多关于 jffs2文件系统 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信