Re: Help with using JFFS2 as root filesystem



On May 9, 9:14 am, Michael Schnell
<mschnell_at_lumino_dot...@xxxxxxxxxxx> wrote:
You need to create a mount point in the rout file system to access the
jff2 (supposedly in 2.6 the driver can do this in the proc file system
automatically if configured to do so).

Now you need to mount jff2 into a directory of the root file system, of
course.

-Michael

Hi Michael,

Thanks for your replies. I really appreciate it.

I have enabled the support for both MTD and JFFS2 when I compiled the
kernel. Now I suppose I don't need to load the drivers separately. I
have tried creating the mount point (/tmp) and mounting the /dev/
mtdblock to it, it didn't work. Before I mounted the /dev/mtdblock*, I
actually have to copy the JFFS2 image to the /dev/mtd* node. But when
I tried to copy my JFFS2 image to the /dev/mtd node, it gave me error
message :"block device required". The same error message appeared when
I tried to copy to /dev/mtdblock.
Then, I manually created the following nodes:
# mknod /dev/mtd0 c 90 0
# mknod /dev/mtdblock0 b 31 0
I tried to copy the JFFS2 image to the /dev/mtd0 again, and it gave me
message: "no such device".

FYI: when I enabled CFI Flash device on physical memory map, I
expected an extended menu would show up containing the option for
specifying the start, length, and the bus width as in the uClinux. But
nothing else appeared. I am using Montavista linux. I wonder if this
is the reason why the mtd and mtdblock do not get mounted properly. If
not, I wonder how can I partition the flash manually? Do I have to
modify the driver for the flash?


Shirley



.



Relevant Pages

  • Re: Removable media enc/dec driver design.
    ... on top of the disk driver before the "File System Recognizers" look at ... This Disk Device filter driver would decrypt all the sectors ... Once the user has provided the correct decryption key, ...
    (microsoft.public.development.device.drivers)
  • Re: Incorporating a 3rd party driver into a BSP/Image
    ... I am now able to configure the file system, and by extension get all of my ... driver suite actually run as if a CAB had installed it. ... folder and run? ... As far as 'making it part of my BSP', I'm not sure what that means ...
    (microsoft.public.windowsce.platbuilder)
  • Re: True fsync() in Linux (on IDE)
    ... All these ATA fsync() vs. write cache issues have been open for much too ... May I ask that the information whether a particular driver (file system, ... If I recall correctly from earlier patches, the barrier stuff is 1. ...
    (Linux-Kernel)
  • Re: Writing File System Device Driver & Creating Virtual Disk Drive in Windows XP [Question by a
    ... developing file system driver. ... Production code is code that will run on live production machines. ... means that if ANYTHING goes wrong, then its the fault of your driver. ... Books to pick up: ...
    (microsoft.public.development.device.drivers)
  • Re: Interview Questions
    ... loves to put on their certification exams, such as "what is the value you would use in the ... Those of us who have done driver development wonder how any ... give talks on file system driver issues. ... I tell my clients "All you can do is throw this out and get a competent programmer to ...
    (microsoft.public.vc.mfc)