mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* wrong cfi flash device id
@ 2012-11-20  3:54 zzs
  2012-11-20  8:07 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 3+ messages in thread
From: zzs @ 2012-11-20  3:54 UTC (permalink / raw)
  To: barebox

My board is very similar to at91rm9200ek but using
a 8MB cfi flash AT49BV642D.

When barebox started, the flash info as blow:

# devinfo cfi_flash0
CFI conformant FLASH (16 x 16)  Size: 8 MB in 135 Sectors
  AMD Standard command set, Manufacturer ID: 0x1F, Device ID: 0xD6
  Erase timeout: 8192 ms, write timeout: 256 us
  Buffer write timeout: 64 us, buffer size: 4 bytes

  Sector Start Addresses:
  10000000        10010000        10020000        10030000        10040000
  10050000        10060000        10070000        10080000        10090000
  100A0000        100B0000        100C0000        100D0000        100E0000

Barebox said the device id is 0xD6, But it should be 0x1D6.

Because of this wrong ID, In function drivers/nor/cfi_flash_amd.c:flash_fixup_atmel()
the erase region were reversed.

So I can't erase the first few sectors

I think it should use read8 or read16 according the portwidth like
u-boot does.

Am I right?

-- 
Best Regards,
zzs



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: wrong cfi flash device id
  2012-11-20  3:54 wrong cfi flash device id zzs
@ 2012-11-20  8:07 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-11-20  8:29   ` 张忠山
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-11-20  8:07 UTC (permalink / raw)
  To: barebox

On 11:54 Tue 20 Nov     , zzs wrote:
> My board is very similar to at91rm9200ek but using
> a 8MB cfi flash AT49BV642D.
> 
> When barebox started, the flash info as blow:
> 
> # devinfo cfi_flash0
> CFI conformant FLASH (16 x 16)  Size: 8 MB in 135 Sectors
>   AMD Standard command set, Manufacturer ID: 0x1F, Device ID: 0xD6
>   Erase timeout: 8192 ms, write timeout: 256 us
>   Buffer write timeout: 64 us, buffer size: 4 bytes
> 
>   Sector Start Addresses:
>   10000000        10010000        10020000        10030000        10040000
>   10050000        10060000        10070000        10080000        10090000
>   100A0000        100B0000        100C0000        100D0000        100E0000
> 
> Barebox said the device id is 0xD6, But it should be 0x1D6.
> 
> Because of this wrong ID, In function drivers/nor/cfi_flash_amd.c:flash_fixup_atmel()
> the erase region were reversed.
> 
> So I can't erase the first few sectors
> 
> I think it should use read8 or read16 according the portwidth like
> u-boot does.
I check the kernel we need to read the id according the bus width

btw please use a real name zzs is either an english name or a chinese name

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: wrong cfi flash device id
  2012-11-20  8:07 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-11-20  8:29   ` 张忠山
  0 siblings, 0 replies; 3+ messages in thread
From: 张忠山 @ 2012-11-20  8:29 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

> > I think it should use read8 or read16 according the portwidth like
> > u-boot does.
> I check the kernel we need to read the id according the bus width
>
> btw please use a real name zzs is either an english name or a chinese name
>
This is my chinese name

-- 
Best Regards,
zzs



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-11-20  8:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-20  3:54 wrong cfi flash device id zzs
2012-11-20  8:07 ` Jean-Christophe PLAGNIOL-VILLARD
2012-11-20  8:29   ` 张忠山

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