public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* sflash: CFI does not contain boot bank location. Assuming top.
@ 2004-07-10 17:15 Robert P. J. Day
  0 siblings, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2004-07-10 17:15 UTC (permalink / raw)
  To: linux-mtd


   i just wrote the mtd/maps file for the board i'm playing with, and i 
stole shamelessly from examples of other files in that 
drivers/mtd/maps directory.

   the build is successful, but at boot time, i get (excerpt):

init_synergy_mtd: processing flash bank 0: sflash.
init_synergy_mtd: Remapped flash bank sflash to 0xc3000000.
sflash: Found 1 x16 devices at 0x0 in 16-bit mode
  Amd/Fujitsu Extended Query Table at 0x0040
sflash: CFI does not contain boot bank location. Assuming top. (?????)
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 2 MTD partitions on "sflash":
0x00000000-0x00010000 : "secsi"
0x00400000-0x00800000 : "rootfs"

   the 2 partitions listed are correct based on my defined partitions, 
but i don't ever recall seeing the following diagnostic working with 
earlier boards:

sflash: CFI does not contain boot bank location. Assuming top.

   i'm assuming i've just messed up a pointer, or dereferenced 
something incorrectly.  can anyone explain what this means?

rday

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

* Re: sflash: CFI does not contain boot bank location. Assuming top.
@ 2004-07-10 22:56 Wolfgang Denk
  2004-07-11  0:09 ` Robert P. J. Day
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2004-07-10 22:56 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

Dear Robert,

in message <Pine.LNX.4.60.0407101310380.16786@localhost.localdomain> you wrote:
> 
>    the build is successful, but at boot time, i get (excerpt):
> 
> init_synergy_mtd: processing flash bank 0: sflash.
> init_synergy_mtd: Remapped flash bank sflash to 0xc3000000.
> sflash: Found 1 x16 devices at 0x0 in 16-bit mode
>   Amd/Fujitsu Extended Query Table at 0x0040
> sflash: CFI does not contain boot bank location. Assuming top. (?????)

Fujitsu flash, right?

>    the 2 partitions listed are correct based on my defined partitions, 
> but i don't ever recall seeing the following diagnostic working with 
> earlier boards:
> 
> sflash: CFI does not contain boot bank location. Assuming top.
> 
>    i'm assuming i've just messed up a pointer, or dereferenced 
> something incorrectly.  can anyone explain what this means?

It's a bug. Please try if the attached patch helps.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"Confound these ancestors.... They've stolen our best ideas!"
- Ben Jonson


[-- Attachment #2: patch --]
[-- Type: application/octet-stream , Size: 396 bytes --]

diff -Nur drivers/mtd/chips/cfi_cmdset_0002.c drivers/mtd/chips/cfi_cmdset_0002.c
--- drivers/mtd/chips/cfi_cmdset_0002.c	Fri Jun 11 10:22:55 2004
+++ drivers/mtd/chips/cfi_cmdset_0002.c	Fri Jun 11 10:22:55 2004
@@ -147,6 +147,11 @@
 		CFI_ID_ANY,
 		fixup_amd_bootblock, NULL
 	},
+	{
+		0x0004,		/* Fujitsu */
+		CFI_ID_ANY,
+		fixup_amd_bootblock, NULL
+	},
 #endif
 	{ 0, 0, NULL, NULL }
 };

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

* Re: sflash: CFI does not contain boot bank location. Assuming top.
  2004-07-10 22:56 sflash: CFI does not contain boot bank location. Assuming top Wolfgang Denk
@ 2004-07-11  0:09 ` Robert P. J. Day
  2004-07-11  0:35   ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2004-07-11  0:09 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linux-mtd

On Sun, 11 Jul 2004, Wolfgang Denk wrote:

> Dear Robert,
>
> in message <Pine.LNX.4.60.0407101310380.16786@localhost.localdomain> you wrote:
>>
>>    the build is successful, but at boot time, i get (excerpt):
>>
>> init_synergy_mtd: processing flash bank 0: sflash.
>> init_synergy_mtd: Remapped flash bank sflash to 0xc3000000.
>> sflash: Found 1 x16 devices at 0x0 in 16-bit mode
>>   Amd/Fujitsu Extended Query Table at 0x0040
>> sflash: CFI does not contain boot bank location. Assuming top. (?????)
>
> Fujitsu flash, right?

actually AMD, but the kernel config lists AMD/Fujitsu as a single 
option.  is the patch then still relevant?

and another issue is that an older, hacked kernel -- 2.4.22-pre8 that 
we got from embedded planet -- does work with the board, but in 
upgrading to the latest 2.4.25 DENX ppc kernel, i have no way of 
knowing if there are any funny, subtle or obscure kernel fixes that we 
got with it that i'm not aware of.

i'll take a shot at the patch tomorrow morning.  thanks.  and i'll 
read over the older (hacked by us) version of rpxlite.c that works 
with the older kernel to see if i've overlooked something.

rday

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

* Re: sflash: CFI does not contain boot bank location. Assuming top.
  2004-07-11  0:09 ` Robert P. J. Day
@ 2004-07-11  0:35   ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2004-07-11  0:35 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: linux-mtd

In message <Pine.LNX.4.60.0407102006050.4345@localhost.localdomain> you wrote:
> 
> actually AMD, but the kernel config lists AMD/Fujitsu as a single 
> option.  is the patch then still relevant?

Not really, as it adds code for the Fujitsu vendor ID.  For  AMD  the
code is already present.

> and another issue is that an older, hacked kernel -- 2.4.22-pre8 that 
> we got from embedded planet -- does work with the board, but in 

Expect that it contains pretty old MTD code...

> upgrading to the latest 2.4.25 DENX ppc kernel, i have no way of 
> knowing if there are any funny, subtle or obscure kernel fixes that we 
> got with it that i'm not aware of.

You can always check the CVS logs - either by hand ("cvs log" if  you
feel  like  it)  or with some tools that give better formatting (like
"cvsps").


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
The most difficult thing in the world is to know how to  do  a  thing
and to watch someone else doing it wrong, without commenting.
                                                        -- T.H. White

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

end of thread, other threads:[~2004-07-11  0:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-10 22:56 sflash: CFI does not contain boot bank location. Assuming top Wolfgang Denk
2004-07-11  0:09 ` Robert P. J. Day
2004-07-11  0:35   ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-07-10 17:15 Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox