*** The Linux MTD, JFFS HOWTO ***
(work in progress, please contribute if you have anything)
$Id: mtd-jffs-HOWTO.txt,v 1.16 2001/08/13 23:17:55 dwmw2 Exp $
Last Updated: <see CVS Id above>
Compiled/Written By: Vipin Malik ([email protected])
Other author's contributions as noted in the text.
**ABOUT:
This document will attempt to describe setting up the MTD (Memory
Technology Devices), DOC, CFI and the JFFS (Journaling Flash File System)
under Linux versions 2.2.x and 2.4.x
This is work in progress and (hopefully) with the help of others on
the mtd and jffs mailing lists will become quite a comprehensive
document.
Please mail any comments/corrections/contributions to
[email protected]
Please DO NOT send questions to him directly, rather send them to the
mailing lists (see below).
**************************** NO WARRANTY *****************************
# This HOWTO is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# If you break something you get to keep both parts! Follow these
# directions at YOUR OWN RISK.
# See the GNU General Public License for more details.
**********************************************************************
*** Getting Started:
If you want to seriously design a project with MTD/JFFS please
subscribe to the respective mailing lists. Both are managed by majordomo.
MTD:
To subscribe, see http://lists.infradead.org/mailman/listinfo/linux-mtd-cvs
or send an email to [email protected] containing the
line "subscribe" in the body.
DO NOT SEND SUBSCRIBE REQUESTS TO THE LIST ITSELF, which is at
[email protected].
JFFS:
To subscribe, send an email to [email protected] containing the line
"subscribe jffs-dev" in the body.
DO NOT SEND SUBSCRIBE REQUESTS TO THE LIST ITSELF, which is at
[email protected].
The home page for the two projects are located at:
MTD/DOC/
http://www.linux-mtd.infradead.org/
JFFS
http://developer.axis.com/software/jffs/
The MTD mail archive is at:
http://www.linux-mtd.infradead.org/list-archive/
The JFFS mail archive is at:
http://mhonarc.axis.se/jffs-dev/threads.html
<blatant plug by author>
A general, vendor agnostic, non commercial site for Embedded Linux
Systems is at:
http://www.EmbeddedLinuxWorks.com
(Here you will find articles about using IDE flash disks
in embedded systems, reports of JFFS/JFFS2 power fail reliability
tests, tips on using JFFS systems in your design, details on how
to boot the x86 Linux kernel from FLASH without using a BIOS
and (hopefully in due course) a vibrant community of developers
discussing issues related to embedded Linux with each other
on the message boards ;)
** MTD Flash Device Database: **
In the above mentioned site, you will also find a MTD Flash device
database. This database contains a list of flash devices successfully
working with the MTD drivers. If you manage to get a particular flash
device (or Disk On Chip etc.) to work with any MTD driver, please take
a few minutes to enter the relevant info in this database for the
benefit of future users. Anyone can make an entry or view any info there.
Access the MTD Flash database directly at:
http://www.embeddedLinuxWorks.com/db.html
** Power fail safe embedded database **
There is a seperate project (with its own mailing list) going on to
develop a zero latency write, power fail safe (small) embedded
database to use on JFFS2. Read more on why we need such a beast at:
http://www.embeddedLinuxWorks.com/articles/db_project.html
</blatant plug by author>
*** Getting the latest code:
The entire MTD/DOC/JFFS (and some utils) source code may be downloaded
via anonymous CVS.
Follow the following steps:
1.Make sure that you are root.
2. cd /usr/src
3. cvs -d :pserver:[email protected]:/home/cvs login
(password: anoncvs)
4. cvs -d :pserver:[email protected]:/home/cvs co mtd
This will create a dir called mtd under /usr/src
You now have two options depending on what series of the Linux Kernel
you want to work with.
There is an extra step involved with the 2.2 series kernels as they do
not have any MTD code in them.
Note:
Check under /dev/ If you do not have devices like mtd0,1,2 and
mtdblock0,1,2 etc. run the MAKEDEV utility found under mtd/util as:
#sh /usr/src/mtd/util/MAKEDEV
This will create all the proper devices for you under /dev
** With 2.2.x series kernels:
(Note that as far as I can tell, mtd and jffs does not work as modules
under the 2.2.x series of kernels. If you want to do modules I would
recommend that you upgrade to the 2.4.x series of kernels).
Get the 2.2.17 or 2.2.18 kernel source code from your favorite source
(ftp.kernel.org) and install the kernel under /usr/src/linux-2.2.x
with /usr/src/linux being a symbolic link to your kernel source dir.
Configure the kernel to your desired options (by doing a make config
(or menuconfig or xconfig), and make sure that the kernel compiles ok.
Download the mtd patch from:
ftp://ftp.infradead.org/pub/mtd/patches
Move the patch to /usr/src/linux and do
patch -p1 < <patch file name here>
Make sure that the patch was applied ok without any errors.
This will add the mtd functionality to your basic kernel and bring the
mtd code up-to date to the date of the patch.
You have two choices here. You may do a make config and configure in
mtd stuff with the current code or you may want to get the latest code
from the cvs patched in.
If you want the latest CVS code patched in follow the 2.4.x directions
below.
** With 2.4.x series of kernels:
If you want the latest code from CVS (available under /usr/src/mtd)
do:
1. cd /usr/src/mtd/patches
2. sh patchin.sh /usr/src/linux
This will create symbolic links from the
/usr/src/linux/drivers/mtd/<files here> to
the respective files in /usr/src/mtd/kernel/<latest files here>
The same happens with /usr/src/linux/fs/jffs and
/usr/src/linux/include/linux/mtd
Now you have the latest cvs code available with the kernel. You may
now do a make config (or menuconfig or xconfig) and config the
mtd/jffs etc. stuff in as described below.
*** Configuring MTD and friends for DOC in the Kernel:
Do not use any mtd modules with the 2.2.x series of kernels. As far as
I can tell, it does not work even if you can get it to compile ok.
Modules work ok with the 2.4.x series of kernels.
Depending on what you want to target you have some choices here,
namely:
*** 1. Disk On Chip Devices (DOC):
For these, you need to turn on (or make into modules) the following:
* MTD core support
* Debugging (set the debug level as desired)
* Select the correct DOC driver depending on the DOC that you have.
(1000, 2000 or Millennium). Note that the CONFIG_MTD_DOC2000 option is
a driver for both the DiskOnChip 2000 and the DiskOnChip Millenium
devices. If you have problems with that you could try the alternative
DiskOnChip Millennium driver, CONFIG_MTD_DOC2001. To get the DiskOnChip
probe code to use the Millennium-specific driver, you need to edit
the code in docprobe.c and undefine DOC_SINGLE_DRIVER near the beginning.
* Unless you are doing something out of the ordinary, it shouldn't be
necessary for you to enable the "Advanced detection options for
DiskOnChip" option.
* If you do so, you can specify the physical address at which to probe
for the DiskOnChip. Normally, the probe code will probe at every
0x2000 bytes from 0xC8000 to 0xEE000. Changing the
CONFIG_MTD_DOCPROBE_ADDRESS option will allow you to specify a
single location to be probed. Note that your DiskOnChip is far
more likely to be mapped at 0xD0000 than 0xD000. Use the real physical
address, not the segment address.
If you leave the address blank (or just don't enable the advanced
options), the code will *auto probe*. This works quite well (at
least for me). Try it first
没有合适的资源?快使用搜索试试~ 我知道了~
mtd.rar_mtd _s3c2410 fs
共531个文件
c:208个
h:77个
repository:38个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 6 浏览量
2022-09-23
07:43:15
上传
评论
收藏 1.21MB RAR 举报
温馨提示
ARMer9 s3c2410开发系统 mtd文件系统的源代码,对于安装mtd-fs有很好的参考价值
资源推荐
资源详情
资源评论
收起资源包目录
mtd.rar_mtd _s3c2410 fs (531个子文件)
mkfs.jffs2.1 6KB
.#jffs2reader.c.1.2 20KB
Makefile.24 761B
Makefile.24 338B
Makefile.24 256B
Makefile.24 231B
Makefile.24 227B
Makefile.am 707B
loader.asm 2KB
intrep.c 96KB
nand_base.c 73KB
super.c 52KB
fs-ecos.c 51KB
inode-v22.c 50KB
cfi_cmdset_0001.c 48KB
jedec_probe.c 48KB
inode-v23.c 46KB
diskonchip.c 46KB
compr_lzo.c 45KB
deflate.c 44KB
cfi_cmdset_0002.c 43KB
gc.c 41KB
deftree.c 40KB
cfi_cmdset_0020.c 38KB
mkfs.jffs2.c 37KB
doc2000.c 35KB
JitterTest.c 34KB
amd_flash.c 34KB
doc2001plus.c 33KB
wbuf.c 32KB
ftl.c 31KB
nand_bbt.c 30KB
scan.c 30KB
sa1100-flash.c 29KB
pmc551.c 29KB
nodemgmt.c 28KB
jedec.c 27KB
doc2001.c 26KB
blkmtd.c 26KB
comprtest.c 26KB
nftlmount.c 26KB
inftlcore.c 24KB
inftlmount.c 23KB
nftlcore.c 23KB
readinode.c 23KB
pcmciamtd.c 22KB
jffs_fm.c 22KB
checkfs.c 22KB
nodelist.c 21KB
dir.c 21KB
jffs2reader.c 21KB
mtdconcat.c 21KB
write.c 20KB
blkmtd-25.c 20KB
mapped.c 20KB
lart.c 19KB
fileio1.c 18KB
compr_lzari.c 18KB
fs.c 18KB
compr.c 17KB
mkfs.jffs.c 17KB
compr.c 17KB
mtd_blkdevs-24.c 16KB
mtdpart.c 16KB
docecc.c 16KB
jffs2dump.c 15KB
inftrees.c 14KB
dilnetpc.c 13KB
sharp.c 13KB
erase.c 13KB
nettel.c 12KB
ppchameleonevb.c 12KB
tx4938ndfmc.c 12KB
tx4925ndfmc.c 11KB
cfi_probe.c 11KB
flashcp.c 11KB
mtdchar.c 11KB
romfileio1.c 11KB
build.c 11KB
mtd_blkdevs.c 11KB
io.c 11KB
docprobe.c 11KB
ichxrom.c 10KB
infblock.c 10KB
plotJittervsFill.c 10KB
nftl_format.c 10KB
mtd_debug.c 10KB
inflate.c 10KB
main.c 10KB
mtdcore.c 10KB
docfdisk.c 10KB
mtdblock.c 9KB
dir-ecos.c 9KB
pci.c 9KB
ftl_format.c 9KB
sc520cdp.c 9KB
slram.c 9KB
super.c 9KB
cmdlinepart.c 9KB
sbc_gxx_boot.c 9KB
共 531 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
Kinonoyomeo
- 粉丝: 76
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功