2013年1月30日

制作yaffs2文件系统

摘要: 由于内核里没有yaffs2文件系统生成功能,所以需要添加补丁。 1. fsMakefile.path in fs_yaffs2.tgz is the patch for kernel/fs/Makefile 在 kernel/fs/Makefile中添加如下内容 [root@local... 阅读全文

posted @ 2013-01-30 12:06 胡永光 阅读(312) 评论(0) 推荐(0) 编辑

mount命令详解

摘要: 命令格式: mount [-t vfstype] [-o options] device dir 其中: 1.-t vfstype 指定文件系统的类型,通常不必指定。mount 会自动选择正确的类型。常用类型有: 光盘或光盘镜像:iso9660 DOS fat... 阅读全文

posted @ 2013-01-30 12:02 胡永光 阅读(143) 评论(0) 推荐(0) 编辑

ext2文件系统错误

摘要: attempt to access beyond end of device ram0: rw=0, want=16482, limit=8192 ... 阅读全文

posted @ 2013-01-30 12:01 胡永光 阅读(373) 评论(0) 推荐(0) 编辑

内核配置中 ramdisk 大小修改

摘要: 1.修改内核配置选项 进入内核源码目录linux-2.6.32.2目录 #cp config_mini2440_x35 .config #make menuconfig ARCH=arm (1).打开配置菜单,修改两个配置项,分别是: a):General setup-->选择 Initial ... 阅读全文

posted @ 2013-01-30 11:36 胡永光 阅读(2224) 评论(0) 推荐(0) 编辑

mke2fs 制作ext2文件系统image

摘要: 方法1: 利用/dev/ram1: linux下有很多ram,我们用ram1,首先把ram1格式化成ext2文件系统 [root@gucuiwen babylinux]# sudo mkfs.ext2 -m0 /dev/ram1 将ram1挂装到文件系统中: 先建立一个挂装点: #mkdi... 阅读全文

posted @ 2013-01-30 11:32 胡永光 阅读(243) 评论(0) 推荐(0) 编辑

nandwrite 参数

摘要: $ nandwrite -h nandwrite: invalid option -- 'h' Usage: nandwrite [OPTION] MTD_DEVICE [INPUTFILE|-] Writes to the specified MTD device. -a, --auto... 阅读全文

posted @ 2013-01-30 11:30 胡永光 阅读(872) 评论(0) 推荐(0) 编辑

stat---文件状态信息结构体

摘要: 1. stat 结构体用来表示相关文件状态信息。 stat 结构题定义于个体系架构下的 stat.h 文件中, 如x86下,是 arch/x86/include/asm/stat.h arm下, 是 arch/arm/include/asm/stat.h, 下面以x86为例,stat 结构... 阅读全文

posted @ 2013-01-30 10:56 胡永光 阅读(277) 评论(0) 推荐(0) 编辑

dirent和DIR 结构体 --- 表示文件夹中目录内容信息

摘要: 1. dirent --- 用来表示某文件夹的目录内容。 我猜是directory content 的缩写. dirent 定义于 /include/bits/dirent.h 中: [cpp] view plaincopyprint? struct dirent { ... 阅读全文

posted @ 2013-01-30 09:09 胡永光 阅读(545) 评论(0) 推荐(0) 编辑

导航