niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » embedded
Flash device can't find in kernel and redboot
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Kevin
*nix forums Guru


Joined: 24 Feb 2005
Posts: 340

PostPosted: Thu Jul 20, 2006 10:04 am    Post subject: Flash device can't find in kernel and redboot Reply with quote

hi all:
when i selected configuration entries in MTD subsystem in the process
of kernel compiling, in the "RAM/ROM/Flash chip driver" subentry, if
only I select "Support for absent chips in bus mapping" subsubentry, I
just get result such as follows:
--------------------------------------------------
sh-2.04# cat /proc/mtd
dev: size erasesize name
mtd0: 01000000 00001000 "Physically mapped flash"
--------------------------------------------------
This make me think about the flash devices had recongnized.
however:
---------------------------------------------------
sh-2.04# cat /dev/mtd0
cat: /dev/mtd0: No such device
---------------------------------------------------
It indicates that kernel has no such device. I read help of "Support
for absent chips in bus mapping" in details:
-----------------------------------------------------------
CONFIG_MTD_ABSENT:
This option enables support for a dummy probing driver used to
allocated placeholder MTD devices on systems that have socketed
or removable media. Use of this driver as a fallback chip probe
preserves the expected registration order of MTD device nodes on
the system regardless of media presence. Device nodes created
with this driver will return -ENODEV upon access.
-----------------------------------------------------------
This means regardless flash devices exist, they will always be
registered and get own device nodes, but if you want to have access to
them, which will prompt: no such device.

my flash is spansion s29GL064M, the two flashes both linked to CS1#, I
have compiled kernel many times and try many configuration entry in MTD
subsystem, but all of those always told me "Found no Physically mapped
flash device at location zero" except when I use the above
configuration --- but that's useless.
----------------------------------------------------
My typical configuration in MTD subsystem is follows:

Memory Techonology Device(MTD) support
MTD partiotioning support
Redboot partitions table parsing
Direct char device access to MTD devices
Caching block device access to MTD devices
RAM/ROM/Flash chip drivers->Detect flash chips by Common Flash
Interface(CFI) probe
RAM/ROM/Flash chip drivers->Detect non-CFI AMD/JEDEC-compatiable flash
chips
RAM/ROM/Flash chip drivers->Support for AMD/Fujitsu flash chips
Mapping drivers for chip access->CFI flash device mapping driver

OR

all of entries in "RAM/ROM/Flash chip drivers" was selected.

but the result was always:
physmap flash device 1000000 at 4000000
genprobe_new_chip called with unsupported buswidth 2
JEDEC: Found no Physically mapped flash device at location zero
priv->size is zero
genprobe_new_chip called with unsupported buswidth 2
CFI: Found no Physically mapped flash device at location zero
Physically mapped flash: Probing for AMD compatible flash...
Physically mapped flash: Found no AMD compatible device at location
zero

-----------------------------------------------------------------
In both cases I can't find my flash devices. What's wrong with them or
kernel?
Hope you can throw light on this.
Back to top
Kevin
*nix forums Guru


Joined: 24 Feb 2005
Posts: 340

PostPosted: Fri Jul 21, 2006 12:34 am    Post subject: Re: Flash device can't find in kernel and redboot Reply with quote

I also want to know which driver can drive spansion flash properly?? Do
it exist?
Kevin wrote:
Quote:
hi all:
when i selected configuration entries in MTD subsystem in the process
of kernel compiling, in the "RAM/ROM/Flash chip driver" subentry, if
only I select "Support for absent chips in bus mapping" subsubentry, I
just get result such as follows:
--------------------------------------------------
sh-2.04# cat /proc/mtd
dev: size erasesize name
mtd0: 01000000 00001000 "Physically mapped flash"
--------------------------------------------------
This make me think about the flash devices had recongnized.
however:
---------------------------------------------------
sh-2.04# cat /dev/mtd0
cat: /dev/mtd0: No such device
---------------------------------------------------
It indicates that kernel has no such device. I read help of "Support
for absent chips in bus mapping" in details:
-----------------------------------------------------------
CONFIG_MTD_ABSENT:
This option enables support for a dummy probing driver used to
allocated placeholder MTD devices on systems that have socketed
or removable media. Use of this driver as a fallback chip probe
preserves the expected registration order of MTD device nodes on
the system regardless of media presence. Device nodes created
with this driver will return -ENODEV upon access.
-----------------------------------------------------------
This means regardless flash devices exist, they will always be
registered and get own device nodes, but if you want to have access to
them, which will prompt: no such device.

my flash is spansion s29GL064M, the two flashes both linked to CS1#, I
have compiled kernel many times and try many configuration entry in MTD
subsystem, but all of those always told me "Found no Physically mapped
flash device at location zero" except when I use the above
configuration --- but that's useless.
----------------------------------------------------
My typical configuration in MTD subsystem is follows:

Memory Techonology Device(MTD) support
MTD partiotioning support
Redboot partitions table parsing
Direct char device access to MTD devices
Caching block device access to MTD devices
RAM/ROM/Flash chip drivers->Detect flash chips by Common Flash
Interface(CFI) probe
RAM/ROM/Flash chip drivers->Detect non-CFI AMD/JEDEC-compatiable flash
chips
RAM/ROM/Flash chip drivers->Support for AMD/Fujitsu flash chips
Mapping drivers for chip access->CFI flash device mapping driver

OR

all of entries in "RAM/ROM/Flash chip drivers" was selected.

but the result was always:
physmap flash device 1000000 at 4000000
genprobe_new_chip called with unsupported buswidth 2
JEDEC: Found no Physically mapped flash device at location zero
priv->size is zero
genprobe_new_chip called with unsupported buswidth 2
CFI: Found no Physically mapped flash device at location zero
Physically mapped flash: Probing for AMD compatible flash...
Physically mapped flash: Found no AMD compatible device at location
zero

-----------------------------------------------------------------
In both cases I can't find my flash devices. What's wrong with them or
kernel?
Hope you can throw light on this.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 8:49 pm | All times are GMT
navigation Forum index » *nix » Linux » embedded
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts flash player Osman Kemal Kadiroglu Suse 2 Fri Jul 21, 2006 7:01 am
No new posts How to find out if a certain value is in a list? TN Perl 3 Thu Jul 20, 2006 9:07 am
No new posts Win32::OLE and CAPICOM to find a certificate in certifica... dan2online Perl 0 Thu Jul 20, 2006 6:47 am
No new posts Win32::OLE and CAPICOM to find a certificate in certifica... dan2online modules 0 Thu Jul 20, 2006 6:44 am
No new posts panic (cpu 0) kernel memory fault - seems to point to NIC Reed, Judith Tru64 managers mail-list 0 Wed Jul 19, 2006 8:15 pm

Shares | Mortgage Loans | Free Credit Report | Balance Transfer Credit Card | France Hotels
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2298s ][ Queries: 16 (0.1444s) ][ GZIP on - Debug on ]