public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* 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
* 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

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