+ -
当前位置:首页 → 问答吧 → /proc/mtd问题请教

/proc/mtd问题请教

时间:2010-08-20

来源:互联网

我编译linux创建分区,
  1. static struct mtd_partition rtl8196_parts[] = {
  2.         {
  3.                 name: "boot+cfg+linux",
  4.                 size:  0x00150000,
  5.                 offset:0x00000000,
  6.         },
  7.         {
  8.                 name:           "root fs",               
  9.                 size:                0x00270000,
  10.                 offset:         0x00150000,
  11.         },
  12.         {
  13.                 name:           "jffs2",               
  14.                 size:                0x00040000,
  15.                 offset:         0x003c0000,
  16.         }
  17.         };
复制代码
启动信息如下

MXIC matched!!get SPI chip driver!
Physically mapped flash: Found an alies 0x400000 for the chip at 0x0, sst device detect.
Creating 3 MTD partitions on "Physically mapped flash":
0x00000000-0x00150000 : "boot1+cfg+linux"
0x00150000-0x003c0000 : "rootfs"
0x003c0000-0x00400000 : "jffs2"

但是为什么我
  1. # cat /proc/mtd
  2. dev:    size   erasesize  name
  3. mtd0: 00150000 00001000 "boot1+cfg+linux"
  4. mtd1: 00270000 00001000 "rootfs"
  5. #
复制代码
没有发现jffs2分区呢

作者: cltnet   发布时间: 2010-08-20

这个问题是什么原因造成的呢?盼望各位帮忙解答。

作者: cltnet   发布时间: 2010-08-21