[uClinux-dev] JFFS and blkmem
dbeamonte at intelnet.es
Mon Nov 5 04:58:19 EST 2001
Changing MTD block major number from 31 to (i.e.) 42 makes the kernel
register the MTD device properly (mtdchar and mtdblock appear in
/proc/devices), but when trying to acces to the /dev/mtd0 or
/dev/mtdblock0 I get the error:
/dev/mtdblock0: no such device
with /dev/mtdblock0 defined as a block device whose major is 42 and minor 0.
The same happens with mtd0 (major=90, minor=0).
Besides, JFFS always tries to mount over a device with the major number
defined in BLKMEM and I don't know how to change that...
Thuys, Michiel wrote:
>You can use them at the same time, but then either MTD or blkmem must
>have another major number. JFFS can only work with MTD.
>From: David Beamonte [mailto:dbeamonte at intelnet.es]
>Sent: woensdag 31 oktober 2001 18:17
>Subject: [uClinux-dev] JFFS and blkmem
>I'm using blkmem to read/write on my flash device. I have 8 arenas
>defined, and want to use one of them with JFFS. In order to have JFFS
>support, MTD must be enabled, but if blkmem is enabled, MTD can't
>allocate its major number. Can I use blkmem and MTD at the same time?
>Can JFFS be mounted on a blkmem device as I would like to?
>When booting, the kernel gives the following message:
>Blkmem copyright 1998,1999 D. Jeff
>Blkmem copyright 1998 Kenneth
>Blkmem 8 disk
>0: 10CBB074-10D55873 [VIRTUAL 10CBB074-10D55873]
>1: 10DA0000-10DCFFFF [VIRTUAL 10DA0000-10DCFFFF]
>2: 10DD0000-10DFFFFF [VIRTUAL 10DD0000-10DFFFFF]
>3: 10C00000-10C0FFFF [VIRTUAL 10C00000-10C0FFFF]
>4: 10C10000-10DFFFFF [VIRTUAL 10C10000-10DFFFFF]
>5: 10C00000-10DFFFFF [VIRTUAL 10C00000-10DFFFFF]
>6: 10DF0000-10DFFFFF [VIRTUAL 10DF0000-10DFFFFF]
>7: 10C00000-10DEFFFF [VIRTUAL 10C00000-10DEFFFF]
>PPP generic driver version
>Can't allocate major number 31 for Memory Technology
>NET4: Linux TCP/IP 1.0 for
>IP Protocols: ICMP, UDP,
>IP: routing cache hash table of 512 buckets,
>TCP: Hash tables configured (established 512 bind
>NET4: Unix domain sockets 1.0/SMP for Linux
>JFFS: Trying to mount device
>jffs_create_control(): Allocation failed:
>JFFS: Failed to mount device
>VFS: Mounted root (romfs filesystem)
>Freeing unused kernel memory: 0k
>eth0: using half-duplex 10Base-T
>JFFS tries to mount device 1f:00 (31:00), which is the same as the first
>blkmem arena, where my root filesystem is located. Maybe I'm not giving
>the proper major-minor numbers to the mtdblock device... don't know...
>I forgot to tell that I'm using kernel 2.4.6 over VZ.
>This message resent by the uclinux-dev at uclinux.org list server
>This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
More information about the uClinux-dev