public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] CFI: geometry reversal for STMicro M29W320DT
Date: Mon, 9 Mar 2009 09:30:01 +0100	[thread overview]
Message-ID: <200903090930.01771.sr@denx.de> (raw)
In-Reply-To: <49B14FC2.8090505@RuggedCom.com>

On Friday 06 March 2009, Richard Retanubun wrote:
> >> My baseline is 2009.03-rc1. If there are STMicro/Numonyx guys on
> >> this mailing list, can you help provide a more 'generic' way of
> >> detection? this way the exception list does not have to grow a lot.
> >
> > Did you take a look at the Linux driver to see how this is handled there?
> > Maybe they have a more "generic" solution...
>
> Hi Stefan,
>
> Thanks for the comments. I took a quick look around /drivers/mtd,
> but can't find a similar geometry reversal.
>
> Unfortunately, I found this in:
>
> /driver/mtd/chips/cfi_cmdset_0001.c
> [snip]
> 	{ CFI_MFR_ST, 0x00ba, /* M28W320CT */ fixup_st_m28w320ct, NULL },
> 	{ CFI_MFR_ST, 0x00bb, /* M28W320CB */ fixup_st_m28w320cb, NULL },
> [/snip]
>
> By no means am I a CFI expert, but my impression is,
> if there has to be a part number specific fixup function for any reason,
> then it is a good indication that there are just some part specific
> peculiarity.

Right.

> What utilities exist in Linux-world to do the equivalent of "flinfo" in
> u-boot, just so I can see if Linux has a more generic way.

At this level you really need to "read" the code and/or use the embedded debug 
output (if available) or add some new code to see what's going on.

> And just in case it matters, our board with these flash is MMU-less,
> so if there is a different tool for uCLinux that will help too :)

I don't think that uCLinux has different "tools" here.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2009-03-09  8:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06 15:09 [U-Boot] [PATCH] CFI: geometry reversal for STMicro M29W320DT Richard Retanubun
2009-03-06 15:27 ` Stefan Roese
2009-03-06 16:30   ` Richard Retanubun
2009-03-09  8:30     ` Stefan Roese [this message]
2009-03-19 13:50       ` Richard Retanubun
2009-03-19 13:59         ` Stefan Roese

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=200903090930.01771.sr@denx.de \
    --to=sr@denx.de \
    --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