public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Ho-Kuo Chan" <hchan@wavesat.com>
To: "David Woodhouse" <dwmw2@infradead.org>
Cc: <linux-mtd@lists.infradead.org>
Subject: Re: Trouble indetifying FLASH part
Date: Thu, 23 May 2002 17:19:39 -0400	[thread overview]
Message-ID: <007401c2029f$8c95ac30$0200010a@WT0136> (raw)
In-Reply-To: 19099.1021561319@redhat.com

Hi David,
    I have partially solved the problem. The PPC405GP multiplexes its GPIO
lines with the External Bus Chip Select lines. In fact, what was occurring
was that my GPIO's were misconfigured and were not acting as Chip Select
Lines. However, it's not quite working:

physmap flash device: 400000 at 8000000
HKC: Map Priv 1 = 0xc2003000
HKC: Calling cfi_probe_chip with bus width 2, interleave 2 and device_type 8
HKC: Output Reg: 0x45480000        -------> Correct value
HKC: TCR: 0x750a0000                    -------> Correct value
HKC: ODR: 0x20000                        -------> Correct value
Control 0: 0x17ee616                        -------> Correct value
Addr = 0x0
Cmd_addr = 0x0, CFIDEV_INTERLEAVE = 0x2, type = 0x1
Val = 0xf0f0
Addr = 0xaa
Cmd_addr = 0x55, CFIDEV_INTERLEAVE = 0x2, type = 0x1
Val = 0x9898
Read 0x=51, cmd = 0x5151   -----> the correct value is read, but it is being
compared to a value returned by cfi_build_cmd('Q',map,cfi) in qry_present
Read 0x=52, cmd = 0x5252
Read = 0x59, cmd = 0x5959
CFI Query Failed for driver
Calling cfi_probe_chip with bus width 2, interleave 2 and device_type 16
Output Reg: 0x45480000
TCR: 0x750a0000
ODR: 0x20000
Control 0: 0x17ee616
Addr = 0x0
Cmd_addr = 0x0, CFIDEV_INTERLEAVE = 0x2, type = 0x2
Val = 0xf0f0
Addr = 0x154
Cmd_addr = 0x55, CFIDEV_INTERLEAVE = 0x2, type = 0x2
Val = 0x9898
Read 0x=ffff, cmd = 0x5151
Read 0x=3000, cmd = 0x5252
Read = 0x3000, cmd = 0x5959
CFI Query Failed for driver
CFI: Found no Physically mapped flash device at location zero

The value read above is the return value of cfi_read as in the qry_present
function. I am no expert but should the comparison in qry_present:

if (cfi_read(map, base+osf*0x10)==cfi_buil_cmd('Q', map, cfi) &&
    cfi_read(map, base+osf*0x11)==cfi_buil_cmd('R', map, cfi) &&
    cfi_read(map, base+osf*0x12)==cfi_buil_cmd('Y', map, cfi))

be simply:

if (cfi_read(map, base+osf*0x10)=='Q' &&
    cfi_read(map, base+osf*0x11)=='R' &&
    cfi_read(map, base+osf*0x12)=='Y')

Thanks for all your help!!!!

Ho-Kuo Chan
Software Designer, Digital Division
Wavesat Wireless Inc.
(514) 956-6322
----- Original Message -----
From: "David Woodhouse" <dwmw2@infradead.org>
To: "Ho-Kuo Chan" <hchan@wavesat.com>
Cc: <linux-mtd@lists.infradead.org>
Sent: Thursday, May 16, 2002 11:01 AM
Subject: Re: Trouble indetifying FLASH part


>
> hchan@wavesat.com said:
> >  The result was a continuous stream of 0xf0's. In VxWorks I get
> > 0x1303434953463900 which is "..CIS59.". Does this tell you anything?
>
> Yeah. It really does look like the chip isn't where you think it is.
>
> Can you get Linux to boot anyway, with NFSroot or something?
>
> od -A x -t x1 /dev/mem | grep "13 03 43 49 53 46 39 00"
>
> Or you could code the equivalent in the kernel.
>
> --
> dwmw2
>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>

  parent reply	other threads:[~2002-05-23 21:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <001301c1fcd9$76792c40$0200010a@WT0136>
2002-05-15 20:50 ` Trouble indetifying FLASH part Ho-Kuo Chan
2002-05-16 12:33   ` David Woodhouse
     [not found]     ` <5240.1021554647@redhat.com>
2002-05-16 13:36       ` Ho-Kuo Chan
2002-05-16 13:37         ` David Woodhouse
2002-05-16 14:12           ` Ho-Kuo Chan
2002-05-16 14:15             ` David Woodhouse
2002-05-16 14:52               ` Ho-Kuo Chan
2002-05-16 15:01                 ` David Woodhouse
2002-05-16 17:37                   ` Ho-Kuo Chan
2002-05-23 21:19                   ` Ho-Kuo Chan [this message]
2002-05-23 21:44                     ` David Woodhouse
2002-05-24 14:09                       ` Ho-Kuo Chan
2002-05-16  6:53 Jim Zeus
  -- strict thread matches above, loose matches on Subject: below --
2002-05-16 13:25 Ho-Kuo Chan

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='007401c2029f$8c95ac30$0200010a@WT0136' \
    --to=hchan@wavesat.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /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