public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc. [Updated]
Date: Fri, 10 Nov 2006 09:47:03 -0600	[thread overview]
Message-ID: <45549EF7.20206@orkun.us> (raw)
In-Reply-To: <200611101216.17435.sr@denx.de>

Stefan,

Stefan Roese wrote:
> Hi Tolunay,
>
> On Friday 10 November 2006 00:46, Tolunay Orkun wrote:
>   
>> This patch (replaces patch submitted via DNX#2006110942000016):
>>
>>    * Adds support for AMD command set Top Boot flash geometry reversal
>>    * Adds support for reading JEDEC Manufacturer ID and Device ID
>>    * Adds support for displaying command set, manufacturer id and
>>      device ids (flinfo)
>>    * Makes flinfo output to be consistent when CFG_FLASH_EMPTY_INFO defined
>>    * Removes outdated change history (refer to git log instead)
>>     
>
> I tied you patch one a board with a ST M29W160ET FLASH, that couldn't be 
> handled by the "old" CFI driver, because of the geometry reversal. I had 
> hoped your patch would have solved this issue. Unfortunately not:
>
> => fli
>
> Bank # 1: CFI conformant FLASH (16 x 16)  Size: 2 MB in 35 Sectors
>   AMD Standard command set, Manufacturer ID: 0x05, Device ID: 0x56
>   Erase timeout: 8192 ms, write timeout: 1 ms
>
>   Sector Start Addresses:
>   FFE00000        FFE04000        FFE06000        FFE08000        FFE10000
>   FFE20000 E      FFE30000 E      FFE40000 E      FFE50000 E      FFE60000 E
>   FFE70000 E      FFE80000 E      FFE90000 E      FFEA0000 E      FFEB0000 E
>   FFEC0000 E      FFED0000 E      FFEE0000 E      FFEF0000 E      FFF00000 E
>   FFF10000 E      FFF20000 E      FFF30000 E      FFF40000 E      FFF50000 E
>   FFF60000 E      FFF70000 E      FFF80000 E      FFF90000 E      FFFA0000   
> RO
>   FFFB0000   RO   FFFC0000   RO   FFFD0000   RO   FFFE0000   RO   FFFF0000   
> RO
>
>
> As you may notice, even the ID's are not correct (0020 and 22c4 are correct) 
> and the geometry is not correct (bottom instead of top).
>   
The DeviceID detection seems still broken for AMD at this moment. I 
might be reading the actual data or possibly wrong offsets. The 
Manufacturer ID should be 0x20 and Device Id should be displayed as 0xC4 
(I might add code to get that 0x22 but if a word/byte device is in byte 
mode 0x22 part is not available)

I need your help. Can you compile cfi_flash.c with DEBUG and capture the 
output as U-Boot boots. Also, the output of following commands please.

mw.w ffe00555 00aa
mw.w ffe002aa 0055
mw.w ffe00555 0090
md ffe00000
mw.w ffe00000 00f0

Even if detection is right we might fail sometimes with CFI version 1.0 
which your ST part is according to datasheet. But in your case if we can 
identify the device id as 0xC4 it would be designated as top boot 
(because msb is set) and it would work. The bottom boot version of the 
device would have device id 0x49 [By the way device ids have odd parity 
according to MTD code]

We might need to add specific device IDs to the driver as exceptions for 
some CFI 1.0 cases. Linux driver did not have a good solution for this 
either. But for your case as soon as device id algorithm is fixed it 
should work fine.

  reply	other threads:[~2006-11-10 15:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09 23:46 [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc. [Updated] Tolunay Orkun
2006-11-10 11:16 ` Stefan Roese
2006-11-10 15:47   ` Tolunay Orkun [this message]
2006-11-10 21:31   ` Timur Tabi
2006-11-10 22:44     ` Timur Tabi
2006-11-12  4:42       ` Tolunay Orkun
2006-11-12  8:13         ` Stefan Roese
2006-11-12 22:04           ` Tolunay Orkun
2006-11-13 13:05             ` Stefan Roese
2006-11-13 15:34         ` Timur Tabi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45549EF7.20206@orkun.us \
    --to=listmember@orkun.us \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox