linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* flash filesystem
@ 2000-07-24 17:36 Mike Coy
  2000-07-24 18:33 ` Daris Nevil
  2000-07-25 21:36 ` Scott Anderson
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Coy @ 2000-07-24 17:36 UTC (permalink / raw)
  To: linuxppc-embedded


I've noticed that the size of my initrd is limited not by the size of my
flash, but by the amount of ram I have to decompress it into.
I would like to put a filesystem in the unused portion of my flash and read
it (read-only) without first copying it into ram.
I'm not entirely sure how to get at this filesystem, though.  The only way
I've seen flash accessed is with the initrd at boottime.
Has anyone done this?

The best that I can come up with is that the flash is probably mapped into
memory somewhere, and maybe I could fool the ramdisk code into reading a
pre-existant ramdisk at a given address.  This didn't appear to be too
trivial at my first browse through the code, though.
What is the right way to get at data in flash?

Thanks,
Mike


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: flash filesystem
  2000-07-24 17:36 flash filesystem Mike Coy
@ 2000-07-24 18:33 ` Daris Nevil
  2000-07-25 21:36 ` Scott Anderson
  1 sibling, 0 replies; 5+ messages in thread
From: Daris Nevil @ 2000-07-24 18:33 UTC (permalink / raw)
  To: Mike Coy; +Cc: linuxppc-embedded


Mike,

We currently do what you suggest with our QS850 product using
our modified version of Linux 2.2.5 (QSLinux).  We have a small
(640K) "boot" area that contains the processor IPL+Kernel.  The
remainder of the FLASH we allocate as a FLASH Filesystem,
and we run the Ext2fs filesystem along with E2cfs (compression).
The /bin, /dev, /lib, /etc directories and files reside in the FLASH
filesystem and are retrieved at boot time.

We are working to cleanup our source for distribution.  I am hoping to
have it ready for publication later this week.

Please note that we developed our code "outside" the main linux
directory tree.  This was done to make it easier to fold these changes
into future kernel releases.  We are hoping that our code gets integrated
into the main branch of the Linux Kernel by some good hearted soul,
but we do not have the manpower to tackle that task at the moment.

There are also other components that may be of interest.  We have
an HDLC/PPP driver for the SCCs.  We have split Dan Malek's
SCC/SMC uart driver into 2 parts (1 for SCC and one for SMC),
but there is still more work to be done on it.  We also have an
ATM/UTOPIA driver, a driver for allocating and controlling the
I/O ports of the MPC850, a watchdog driver, and other features
worth looking at.

To learn about the features of QSLinux you can visit qslinux.com.
To learn about or QS850 product you can visit www.snmc.com.

Regards,
Daris A Nevil
SiSIC Inc/Simple Network Magic Corporation



Mike Coy wrote:

> I've noticed that the size of my initrd is limited not by the size of my
> flash, but by the amount of ram I have to decompress it into.
> I would like to put a filesystem in the unused portion of my flash and read
> it (read-only) without first copying it into ram.
> I'm not entirely sure how to get at this filesystem, though.  The only way
> I've seen flash accessed is with the initrd at boottime.
> Has anyone done this?
>
> The best that I can come up with is that the flash is probably mapped into
> memory somewhere, and maybe I could fool the ramdisk code into reading a
> pre-existant ramdisk at a given address.  This didn't appear to be too
> trivial at my first browse through the code, though.
> What is the right way to get at data in flash?
>
> Thanks,
> Mike
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: flash filesystem
  2000-07-24 17:36 flash filesystem Mike Coy
  2000-07-24 18:33 ` Daris Nevil
@ 2000-07-25 21:36 ` Scott Anderson
  1 sibling, 0 replies; 5+ messages in thread
From: Scott Anderson @ 2000-07-25 21:36 UTC (permalink / raw)
  Cc: linuxppc-embedded


Mike Coy wrote:
> The best that I can come up with is that the flash is probably mapped into
> memory somewhere, and maybe I could fool the ramdisk code into reading a
> pre-existant ramdisk at a given address.  This didn't appear to be too
> trivial at my first browse through the code, though.
> What is the right way to get at data in flash?

I used the MTD code to accomplish the same thing.  I have a compressed
ext2 filesystem image sitting in FLASH and pass the MTD slram driver
the beginning and ending address and it exposes the FLASH as /dev/mtd0.
To make sure we're on the same page, I'm talking about a read-only
filesystem.

Check out http://www.linux-mtd.infradead.org/ to get started with the
MTD layer.  I'm under the impression that MTD has gone into the 2.4
kernel so it should become "the" way of doing this.

    Scott Anderson
    scott_anderson@mvista.com   MontaVista Software Inc.
    (408)328-9214               490 Potrero Ave.
    http://www.mvista.com       Sunnyvale, CA  94086

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Flash Filesystem
@ 2007-09-07  7:34 schardt
  2007-09-13  8:39 ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: schardt @ 2007-09-07  7:34 UTC (permalink / raw)
  To: Linux PPC Linux PPC

Hi

i've some problems using the on board flash memory with linux.
i added the support for adm/fujittsu flash in kernel config and add the
right parameters for the "cfi  flash device in physical memory".

cat /proc/mtd gives me

dev:    size   erasesize  name
mtd0: 00400000 00010000 "physmap-flash.0"

i added /dev/mtd0 c 90 0 and /dev/mtdblock0 b 31 0

how do i add a partition and filesystem ????
fdisk /dev/mtd0  seems me not to be correct :)

Greets
Georg





-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Flash Filesystem
  2007-09-07  7:34 Flash Filesystem schardt
@ 2007-09-13  8:39 ` Laurent Pinchart
  0 siblings, 0 replies; 5+ messages in thread
From: Laurent Pinchart @ 2007-09-13  8:39 UTC (permalink / raw)
  To: linuxppc-embedded

Hi Georg,

On Friday 07 September 2007 09:34, schardt wrote:
> Hi
>
> i've some problems using the on board flash memory with linux.
> i added the support for adm/fujittsu flash in kernel config and add the
> right parameters for the "cfi  flash device in physical memory".
>
> cat /proc/mtd gives me
>
> dev:    size   erasesize  name
> mtd0: 00400000 00010000 "physmap-flash.0"
>
> i added /dev/mtd0 c 90 0 and /dev/mtdblock0 b 31 0
>
> how do i add a partition and filesystem ????
> fdisk /dev/mtd0  seems me not to be correct :)

There are several ways to definie partitions on an MTD device. Make sure yo=
u=20
enable the 'MTD partitioning support' option and have a look at 'RedBoot=20
partition table parsing' and 'Command line partition table parsing':

Device Drivers
<*> Memory Technology Device (MTD) support
    [*] MTD partitioning support
        < > RedBoot partition table parsing
        < > Command line partition table parsing

Another option is to hardcode the partition table in the platform data for =
the=20
physmap driver.

Best regards,

=2D-=20
Laurent Pinchart
CSE Semaphore Belgium

Chauss=E9e de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
=46 +32 (2) 387 42 75

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-13  8:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-07  7:34 Flash Filesystem schardt
2007-09-13  8:39 ` Laurent Pinchart
  -- strict thread matches above, loose matches on Subject: below --
2000-07-24 17:36 flash filesystem Mike Coy
2000-07-24 18:33 ` Daris Nevil
2000-07-25 21:36 ` Scott Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).