Flash File System
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Jaap Jan,
Thanks for your reply. What do you mean by 'works out of the box with denx'? I see the code you referred to but not sure how to use it. I still have some concerns. Like,
1. How can i initially store the image into flash? My flash chip is on the board.
2. How can i boot linux from flash?
3. Currently i have a 32MB SDRAM along with flash. I have tools to download linux image into SDRAM. Even if i go with MTD/JFFS, my concern is unless linux runs flash can not be accessed and vice versa.
4. Lets say, i download linux into a safe place in SDRAM, boot it and then access flash thru MTD/JFFS and store linux image into flash. Even in this case, what all i need to take care of for making my flash a boot device.
Any detailed documentation is appreciated.
Thanks,
Prakash
Quoted 61 lines · --- Jaap-Jan Boor
Hi,
I use strata flash with MTD and JFSS2 as file system on top of it. Works out of the box with denx' eldk kernel and
toolchain. I've provided my own flash map but you can also use an existing one (look e.g. in linux/drivers/mtd/maps)Jaap-Jan
Quoted 2 lines · Wolfgang Denk
In message
Quoted 2 lines · you
Quoted 2 lines
I have a 32MB Intel Strata flash on my PPC405
based
Quoted 1 line
Quoted 1 line
custom board. I need to create access
routines/APIs to
Quoted 1 line
Quoted 1 line
access the flash. I was thinking of creating a
Flash
Quoted 4 lines
Quoted 4 lines
File System and mount it as a device in Linux
environment.Are there any off the shelf FFS packages
available?
Quoted 5 lines
Quoted 1 line
Generally, how the flash is used?
Use the MTD layer.
Quoted 1 line
I am working with micro-monitor to use its Tiny
File
Quoted 1 line
Quoted 1 line
System on flash support and eventually mount
into
Quoted 3 lines
Quoted 1 line
linux. Did anyone use this combination before?
I think you cannot do this. AFAIK the TFS code is
not available under
Quoted 1 line
a GPL compatible license which prevents it from
being linked with the
Quoted 8 lines
Linux kernel code.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and RealtimeSystems, Embedded Linux
Quoted 1 line
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88
Email: [email protected]
Quoted 1 line
There is is no reason for any individual to have a
computer in their
Quoted 1 line
home. -- Ken Olsen (President of Digital
Equipment Corporation),
Quoted 1 line
Convention of the World Future
Society, in Boston, 1977
Quoted 1 line
Quoted 8 lines
--
J.G.J. Boor
Room: BE-525
Lucent Technologies Nederland b.v.
Phone: +31 35 687 4721
Optical Networking Group TMS Data
Fax: +31 35 687 5976
P.O. Box 1168, 1200 BD, Hilversum, The Netherlands
mailto:[email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Prakash,
I had exactly the same issues you are work through. I evaluated JFFS2 for our development it was good but our board support package did not support loading a Linux kernel out of the JFFS2 partition this may have changed by now. What you are going to have to do is partition the flash into sections. A section for your BSP, a section for the linux kernel, and a section for the JFFS2 filesystem.
This way when you boot up copy the linux kernel into RAM and load it telling it to use the JFFS2 filesystem as its root filesystem.
Something like: root=/dev/mtd3 rw (any other parameters you want here)
I'm guessing the device node name here you are going to have to create the device node yourself and it can be called anything.
We strated out using micromon Ed Sutter has done a lot of work and it is very flexable (I really like his book a good read for beginners). We only switched over to U-Boot because 2 years ago micromon did not support booting a Linux kernel.
I'm not sure about the licensing issues for TFS and micromon but you could create a loadable module to use the TFS file system in Linux but it has some major limitations under Linux Ed may even have something to use as a starting point.
Hope this helps a bit.
Regards,
Rod Boyce.
Quoted 101 lines · On Wed, 26 Mar 2003 09:27:09 -0800 (PST) Prakash kanthi <[email protected]>…
Hi Jaap Jan,
Thanks for your reply. What do you mean by 'works out of the box with denx'? I see the code you referred to but not sure how to use it. I still have some concerns. Like,
1. How can i initially store the image into flash? My flash chip is on the board.
2. How can i boot linux from flash?3. Currently i have a 32MB SDRAM along with flash. I have tools to download linux image into SDRAM. Even if i go with MTD/JFFS, my concern is unless linux runs flash can not be accessed and vice versa.
4. Lets say, i download linux into a safe place in SDRAM, boot it and then access flash thru MTD/JFFS and store linux image into flash. Even in this case, what all i need to take care of for making my flash a boot device.
Any detailed documentation is appreciated.
Thanks,
PrakashQuoted 61 lines · --- Jaap-Jan Boor
Hi,
I use strata flash with MTD and JFSS2 as file system on top of it. Works out of the box with denx' eldk kernel and
toolchain. I've provided my own flash map but you can also use an existing one (look e.g. in linux/drivers/mtd/maps)Jaap-Jan
Quoted 2 lines · Wolfgang Denk
In message
Quoted 2 lines · you
Quoted 2 lines
I have a 32MB Intel Strata flash on my PPC405
based
Quoted 1 line
Quoted 1 line
custom board. I need to create access
routines/APIs to
Quoted 1 line
Quoted 1 line
access the flash. I was thinking of creating a
Flash
Quoted 4 lines
Quoted 4 lines
File System and mount it as a device in Linux
environment.Are there any off the shelf FFS packages
available?
Quoted 5 lines
Quoted 1 line
Generally, how the flash is used?
Use the MTD layer.
Quoted 1 line
I am working with micro-monitor to use its Tiny
File
Quoted 1 line
Quoted 1 line
System on flash support and eventually mount
into
Quoted 3 lines
Quoted 1 line
linux. Did anyone use this combination before?
I think you cannot do this. AFAIK the TFS code is
not available under
Quoted 1 line
a GPL compatible license which prevents it from
being linked with the
Quoted 8 lines
Linux kernel code.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and RealtimeSystems, Embedded Linux
Quoted 1 line
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88
Email: [email protected]
Quoted 1 line
There is is no reason for any individual to have a
computer in their
Quoted 1 line
home. -- Ken Olsen (President of Digital
Equipment Corporation),
Quoted 1 line
Convention of the World Future
Society, in Boston, 1977
Quoted 1 line
Quoted 8 lines
--
J.G.J. Boor
Room: BE-525
Lucent Technologies Nederland b.v.
Phone: +31 35 687 4721
Optical Networking Group TMS Data
Fax: +31 35 687 5976
P.O. Box 1168, 1200 BD, Hilversum, The Netherlands
Quoted 3 lines
mailto:[email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/