[uClinux-dev] How to Mount Flash in Snapgear 3.4.0
Aram Zaerpoor
a_zaerpoor at isc.iranet.net
Sat Jun 16 04:05:08 EDT 2007
Dear Doug,
Hi Aram,
--- Aram Zaerpoor wrote:
> Dear All,
>
>
>
> To be able to mount Flash and to use JFFS(2) on an
> Intel IXP425 based
> system, I selected
>
> "CFI Flash device mapped on Intel IXP4xx based
> systems". But during the make
> progress I faced a linking time error.
>
> Has anybody ever experienced such problem? What
> should I do now?
>
What is the link error?
Regards,
...doug
Thank you for your reply and sorry for my late answer.
The link error was removed by selecting "MTD Partitioning support" in
xconfig, but now a new problem has arisen.
The size of flash memory is 16 MB and I want to dedicate just 4 MB of it to
SnapGear. The physical address of Flash memory starts at 0x50000000.
In "Mapping drivers for chip access", item "CFI Flash device in physical
memory map" is selected with the following values:
Physical start address of flash mapping: 0x50800000
Physical length of flash mapping: 0x400000
Bank width in octets: 2
Although these changes are reflected in
/snapgear/linux-2.6.x/include/linux/autoconf.h , when Snapgear gets started,
the result of "cat /proc/mtd" is:
Dev: size erasesize name
Mtd0: 01000000 00020000 "phys_mapped_flash
While it should be something like this:
Dev: size erasesize name
Mtd0: 00400000 00020000 "phys_mapped_flash.0
And my attempt to mount mtdblock0 leads to a Segmentation Fault!
Regards,
A.Zaerpoor
More information about the uClinux-dev
mailing list