Skip to contentSkip to conversation

Intel P30, HowTo?

U-Boot-Users Konstantin Kletschke 5 participants 9 messages May 11, 2006 – May 13, 2006

lore
Share & tools
lore
#0 lore raw

Again ;)

After switching to CFI flash driver with yesterday's git tree I am trying to get intel P30 flash device running.

I use the most actual code because of
Wolfgang told to do so in

http://article.gmane.org/gmane.comp.boot-loaders.u-boot/20899/match=p30

flinfo does not look too bad indeed:

Bank # 1: CFI conformant FLASH (8 x 8) Size: 0 MB in 259 Sectors
Erase timeout 1 ms, write timeout 1 ms, buffer write timeout 0 ms, buffer size 1024
Sector Start Addresses:

    10000000 (RO) 10008000 (RO) 10010000 (RO) 10018000 (RO) 10020000     
    10040000      10060000 (RO) 10080000 (RO) 100A0000      100C0000     
    100E0000 (RO) 10100000 (RO) 10120000 (RO) 10140000 (RO) 10160000 (RO)
    10180000 (RO) 101A0000 (RO) 101C0000 (RO) 101E0000 (RO) 10200000 (RO)
    10220000 (RO) 10240000 (RO) 10260000 (RO) 10280000 (RO) 102A0000 (RO)
    102C0000 (RO) 102E0000 (RO) 10300000 (RO) 10320000 (RO) 10340000 (RO)
    10360000 (RO) 10380000 (RO) 103A0000 (RO) 103C0000 (RO) 103E0000 (RO)
    10400000 (RO) 10420000 (RO) 10440000 (RO) 10460000 (RO) 10480000 (RO)
    104A0000 (RO) 104C0000 (RO) 104E0000 (RO) 10500000 (RO) 10520000 (RO)
    10540000 (RO) 10560000 (RO) 10580000 (RO) 105A0000 (RO) 105C0000 (RO)
    105E0000 (RO) 10600000 (RO) 10620000 (RO) 10640000 (RO) 10660000 (RO)
    10680000 (RO) 106A0000 (RO) 106C0000 (RO) 106E0000 (RO) 10700000 (RO)
    10720000 (RO) 10740000 (RO) 10760000 (RO) 10780000 (RO) 107A0000 (RO)
    107C0000 (RO) 107E0000 (RO) 10800000 (RO) 10820000 (RO) 10840000 (RO)
    10860000 (RO) 10880000 (RO) 108A0000 (RO) 108C0000 (RO) 108E0000 (RO)
    10900000 (RO) 10920000 (RO) 10940000 (RO) 10960000 (RO) 10980000 (RO)
    109A0000 (RO) 109C0000 (RO) 109E0000 (RO) 10A00000 (RO) 10A20000 (RO)
    10A40000 (RO) 10A60000 (RO) 10A80000 (RO) 10AA0000 (RO) 10AC0000 (RO)
    10AE0000 (RO) 10B00000 (RO) 10B20000 (RO) 10B40000 (RO) 10B60000 (RO)
    10B80000 (RO) 10BA0000 (RO) 10BC0000 (RO) 10BE0000 (RO) 10C00000 (RO)
    10C20000 (RO) 10C40000 (RO) 10C60000 (RO) 10C80000 (RO) 10CA0000 (RO)
    10CC0000 (RO) 10CE0000 (RO) 10D00000 (RO) 10D20000 (RO) 10D40000 (RO)
    10D60000 (RO) 10D80000 (RO) 10DA0000 (RO) 10DC0000 (RO) 10DE0000 (RO)
    10E00000 (RO) 10E20000 (RO) 10E40000 (RO) 10E60000 (RO) 10E80000 (RO)
    10EA0000 (RO) 10EC0000 (RO) 10EE0000 (RO) 10F00000 (RO) 10F20000 (RO)
    10F40000 (RO) 10F60000 (RO) 10F80000 (RO) 10FA0000 (RO) 10FC0000 (RO)
    10FE0000 (RO) 11000000 (RO) 11020000 (RO) 11040000 (RO) 11060000 (RO)
    11080000 (RO) 110A0000 (RO) 110C0000 (RO) 110E0000 (RO) 11100000 (RO)
    11120000 (RO) 11140000 (RO) 11160000 (RO) 11180000 (RO) 111A0000 (RO)
    111C0000 (RO) 111E0000 (RO) 11200000 (RO) 11220000 (RO) 11240000 (RO)
    11260000 (RO) 11280000 (RO) 112A0000 (RO) 112C0000 (RO) 112E0000 (RO)
    11300000 (RO) 11320000 (RO) 11340000 (RO) 11360000 (RO) 11380000 (RO)
    113A0000 (RO) 113C0000 (RO) 113E0000 (RO) 11400000 (RO) 11420000 (RO)
    11440000 (RO) 11460000 (RO) 11480000 (RO) 114A0000 (RO) 114C0000 (RO)
    114E0000 (RO) 11500000 (RO) 11520000 (RO) 11540000 (RO) 11560000 (RO)
    11580000 (RO) 115A0000 (RO) 115C0000 (RO) 115E0000 (RO) 11600000 (RO)
    11620000 (RO) 11640000 (RO) 11660000 (RO) 11680000 (RO) 116A0000 (RO)
    116C0000 (RO) 116E0000 (RO) 11700000 (RO) 11720000 (RO) 11740000 (RO)
    11760000 (RO) 11780000 (RO) 117A0000 (RO) 117C0000 (RO) 117E0000 (RO)
    11800000 (RO) 11820000 (RO) 11840000 (RO) 11860000 (RO) 11880000 (RO)
    118A0000 (RO) 118C0000 (RO) 118E0000 (RO) 11900000 (RO) 11920000 (RO)
    11940000 (RO) 11960000 (RO) 11980000 (RO) 119A0000 (RO) 119C0000 (RO)
    119E0000 (RO) 11A00000 (RO) 11A20000 (RO) 11A40000 (RO) 11A60000 (RO)
    11A80000 (RO) 11AA0000 (RO) 11AC0000 (RO) 11AE0000 (RO) 11B00000 (RO)
    11B20000 (RO) 11B40000 (RO) 11B60000 (RO) 11B80000 (RO) 11BA0000 (RO)
    11BC0000 (RO) 11BE0000 (RO) 11C00000 (RO) 11C20000 (RO) 11C40000 (RO)
    11C60000 (RO) 11C80000 (RO) 11CA0000 (RO) 11CC0000 (RO) 11CE0000 (RO)
    11D00000 (RO) 11D20000 (RO) 11D40000 (RO) 11D60000 (RO) 11D80000 (RO)
    11DA0000 (RO) 11DC0000 (RO) 11DE0000 (RO) 11E00000 (RO) 11E20000 (RO)
    11E40000 (RO) 11E60000 (RO) 11E80000 (RO) 11EA0000 (RO) 11EC0000 (RO)
    11EE0000 (RO) 11F00000 (RO) 11F20000 (RO) 11F40000 (RO) 11F60000 (RO)
    11F80000 (RO) 11010101 (RO) 11FC0000 (RO) 11FE0000     

Well, not too means:

scb9328> erase 1:5
Erase Flash Sectors 5-5 in Bank # 1
Flash erase timeout at address 10040000 data 0
done

A protect off 1:5 looks fine and unlocks sector at 0x10040000 (reported by flinfo).

Trying to cp.b to the sector returns to prompt immediately and leaves 0xff there.

Additionally look at last line second sector address.

Regards, Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#1 lore raw
Quoted 3 lines · In message <20060511104642.GA11415@synertronixx3> you wrote:

After switching to CFI flash driver with yesterday's git tree I am trying to get intel P30 flash device running.

...

Quoted 1 line

flinfo does not look too bad indeed:

...

Quoted 1 line
    11F80000 (RO) 11010101 (RO) 11FC0000 (RO) 11FE0000     

...

Quoted 1 line

Additionally look at last line second sector address.

Are you sure that your board configuration is OK? Checked your CFG_MAX_FLASH_SECT definiton?

Best regards,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Do you know about being with somebody? Wanting to be? If  I  had  the
whole  universe,  I'd  give it to you, Janice. When I see you, I feel
like I'm hungry all over. Do you know how that feels?
	-- Charlie Evans, "Charlie X", stardate 1535.8
#2 lore raw

[U-Boot-Users] PCI pci_read_config_word

Hi,
this may sound like a silly question but none the less...
In pci.h all the functions are extern can you point me to the file where they are actually defined. tried to seach for it but couldn't find it. Thanks
-Kunal

#3 lore raw

[U-Boot-Users] PCI pci_read_config_word

Quoted 7 lines · --- k bisla

Hi,
this may sound like a silly question but none the less...
In pci.h all the functions are extern can you point me to the file where
they are actually defined. tried to seach for it but couldn't find it.

You asked the one I did. Pls have a look at
drivers/pci.c.

Best regards,

Sam

___________________________________________________________
????????-3.5G???20M???
http://cn.mail.yahoo.com

#4 lore raw
In reply to Wolfgang Denk

Hi Konstantin,

Quoted 2 lines · Wolfgang Denk

Are you sure that your board configuration is OK? Checked your CFG_MAX_FLASH_SECT definiton?

Any news on this? Did you set the environment variable "unlock" to "yes"?

Please send a more details error description, if you still experience some problems. Or even better a patch for it. ;-)

Best regards,
Stefan

#5 lore raw
In reply to Wolfgang Denk

Am 2006-05-11 18:22 +0200 schrieb Wolfgang Denk:

Quoted 2 lines

Are you sure that your board configuration is OK? Checked your CFG_MAX_FLASH_SECT definiton?

ARGH! The value was too less.

Bank # 1: CFI conformant FLASH (16 x 16) Size: 32 MB in 259 Sectors
Erase timeout 4096 ms, write timeout 1 ms, buffer write timeout 2 ms, buffer size 64
Sector Start Addresses:

    10000000 (RO) 10008000 (RO) 10010000 (RO) 10018000 (RO) 10020000 (RO)
    10040000 (RO) 10060000 (RO) 10080000 (RO) 100A0000 (RO) 100C0000 (RO)
    100E0000 (RO) 10100000 (RO) 10120000 (RO) 10140000 (RO) 10160000 (RO)
    10180000 (RO) 101A0000 (RO) 101C0000 (RO) 101E0000 (RO) 10200000 (RO)
    10220000 (RO) 10240000 (RO) 10260000 (RO) 10280000 (RO) 102A0000 (RO)
    102C0000 (RO) 102E0000 (RO) 10300000 (RO) 10320000 (RO) 10340000 (RO)
    10360000 (RO) 10380000 (RO) 103A0000 (RO) 103C0000 (RO) 103E0000 (RO)
    10400000 (RO) 10420000 (RO) 10440000 (RO) 10460000 (RO) 10480000 (RO)
    104A0000 (RO) 104C0000 (RO) 104E0000 (RO) 10500000 (RO) 10520000 (RO)
    10540000 (RO) 10560000 (RO) 10580000 (RO) 105A0000 (RO) 105C0000 (RO)
    105E0000 (RO) 10600000 (RO) 10620000 (RO) 10640000 (RO) 10660000 (RO)
    10680000 (RO) 106A0000 (RO) 106C0000 (RO) 106E0000 (RO) 10700000 (RO)
    10720000 (RO) 10740000 (RO) 10760000 (RO) 10780000 (RO) 107A0000 (RO)
    107C0000 (RO) 107E0000 (RO) 10800000 (RO) 10820000 (RO) 10840000 (RO)
    10860000 (RO) 10880000 (RO) 108A0000 (RO) 108C0000 (RO) 108E0000 (RO)
    10900000 (RO) 10920000 (RO) 10940000 (RO) 10960000 (RO) 10980000 (RO)
    109A0000 (RO) 109C0000 (RO) 109E0000 (RO) 10A00000 (RO) 10A20000 (RO)
    10A40000 (RO) 10A60000 (RO) 10A80000 (RO) 10AA0000 (RO) 10AC0000 (RO)
    10AE0000 (RO) 10B00000 (RO) 10B20000 (RO) 10B40000 (RO) 10B60000 (RO)
    10B80000 (RO) 10BA0000 (RO) 10BC0000 (RO) 10BE0000 (RO) 10C00000 (RO)
    10C20000 (RO) 10C40000 (RO) 10C60000 (RO) 10C80000 (RO) 10CA0000 (RO)
    10CC0000 (RO) 10CE0000 (RO) 10D00000 (RO) 10D20000 (RO) 10D40000 (RO)
    10D60000 (RO) 10D80000 (RO) 10DA0000 (RO) 10DC0000 (RO) 10DE0000 (RO)
    10E00000 (RO) 10E20000 (RO) 10E40000 (RO) 10E60000 (RO) 10E80000 (RO)
    10EA0000 (RO) 10EC0000 (RO) 10EE0000 (RO) 10F00000 (RO) 10F20000 (RO)
    10F40000 (RO) 10F60000 (RO) 10F80000 (RO) 10FA0000 (RO) 10FC0000 (RO)
    10FE0000 (RO) 11000000 (RO) 11020000 (RO) 11040000 (RO) 11060000 (RO)
    11080000 (RO) 110A0000 (RO) 110C0000 (RO) 110E0000 (RO) 11100000 (RO)
    11120000 (RO) 11140000 (RO) 11160000 (RO) 11180000 (RO) 111A0000 (RO)
    111C0000 (RO) 111E0000 (RO) 11200000 (RO) 11220000 (RO) 11240000 (RO)
    11260000 (RO) 11280000 (RO) 112A0000 (RO) 112C0000 (RO) 112E0000 (RO)
    11300000 (RO) 11320000 (RO) 11340000 (RO) 11360000 (RO) 11380000 (RO)
    113A0000 (RO) 113C0000 (RO) 113E0000 (RO) 11400000 (RO) 11420000 (RO)
    11440000 (RO) 11460000 (RO) 11480000 (RO) 114A0000 (RO) 114C0000 (RO)
    114E0000 (RO) 11500000 (RO) 11520000 (RO) 11540000 (RO) 11560000 (RO)
    11580000 (RO) 115A0000 (RO) 115C0000 (RO) 115E0000 (RO) 11600000 (RO)
    11620000 (RO) 11640000 (RO) 11660000 (RO) 11680000 (RO) 116A0000 (RO)
    116C0000 (RO) 116E0000 (RO) 11700000 (RO) 11720000 (RO) 11740000 (RO)
    11760000 (RO) 11780000 (RO) 117A0000 (RO) 117C0000 (RO) 117E0000 (RO)
    11800000 (RO) 11820000 (RO) 11840000 (RO) 11860000 (RO) 11880000 (RO)
    118A0000 (RO) 118C0000 (RO) 118E0000 (RO) 11900000 (RO) 11920000 (RO)
    11940000 (RO) 11960000 (RO) 11980000 (RO) 119A0000 (RO) 119C0000 (RO)
    119E0000 (RO) 11A00000 (RO) 11A20000 (RO) 11A40000 (RO) 11A60000 (RO)
    11A80000 (RO) 11AA0000 (RO) 11AC0000 (RO) 11AE0000 (RO) 11B00000 (RO)
    11B20000 (RO) 11B40000 (RO) 11B60000 (RO) 11B80000 (RO) 11BA0000 (RO)
    11BC0000 (RO) 11BE0000 (RO) 11C00000 (RO) 11C20000 (RO) 11C40000 (RO)
    11C60000 (RO) 11C80000 (RO) 11CA0000 (RO) 11CC0000 (RO) 11CE0000 (RO)
    11D00000 (RO) 11D20000 (RO) 11D40000 (RO) 11D60000 (RO) 11D80000 (RO)
    11DA0000 (RO) 11DC0000 (RO) 11DE0000 (RO) 11E00000 (RO) 11E20000 (RO)
    11E40000 (RO) 11E60000 (RO) 11E80000 (RO) 11EA0000 (RO) 11EC0000 (RO)
    11EE0000 (RO) 11F00000 (RO) 11F20000 (RO) 11F40000 (RO) 11F60000 (RO)
    11F80000 (RO) 11FA0000 (RO) 11FC0000 (RO) 11FE0000 (RO)

scb9328>

Now it unlocks erases and programs the flash fine so far. But what is this variable for?
flinfo gets the right capacity and number of sectors automatically. Is it harmful the variable being too big? I have CFG_MAX_FLASH_SECT set to 266 now, because I don't now the number of sectors of p30 flash exactly...

Now jffs2 of 2.6.14 crashes in jffs2_scan_medium, but I have to check this with the kernel guys...

Regards, Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#6 lore raw

Dear Konstatntin,

[Please keep the list on Cc: - thanks.]

Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 3 lines

Are you sure that your board configuration is OK? Checked your CFG_MAX_FLASH_SECT definiton?

ARGH! The value was too less.

Yeah, the symptoms looked like writing out of the bounds of the array.

Quoted 2 lines

Now it unlocks erases and programs the flash fine so far. But what is this variable for?

It defines the size of the array which holds the flash information. It's statically allocated.

Quoted 1 line

flinfo gets the right capacity and number of sectors automatically.

When I wrote that code I decided to use a static array because this results in a smaller code size... Not a big issue on most boards, but a piece of the puzzle on a few.

Quoted 1 line

Is it harmful the variable being too big? I have

You waste a little memory, that's all.

Quoted 2 lines

CFG_MAX_FLASH_SECT set to 266 now, because I don't now the number of sectors of p30 flash exactly...

Look it up in the data sheet!

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Probably the best operating system in the world  is  the  [operating
system] made for the PDP-11 by Bell Laboratories."
                                           - Ted Nelson, October 1977
#7 lore raw

Am 2006-05-12 14:21 +0200 schrieb Wolfgang Denk:

Quoted 1 line

[Please keep the list on Cc: - thanks.]

This was by accident and I bounced a copy to ML immediately. Weird is it doesn't show up here yet o_O

Quoted 1 line

Yeah, the symptoms looked like writing out of the bounds of the array.

Yes, indeed.

Quoted 3 lines
Quoted 1 line

Is it harmful the variable being too big? I have

You waste a little memory, that's all.

Ok, that was my vague idea of this also.

Quoted 1 line

Look it up in the data sheet!

:-P

Thanks for pointing out some details of the code :)

Kind regards, Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#8 lore raw
Quoted 3 lines · In message <20060512145007.GA30889@synertronixx3> you wrote:

This was by accident and I bounced a copy to ML immediately. Weird is it doesn't show up here yet o_O

Once more one of SourceForge's "services". See for example here:

Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7])

	by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP
	id B22A813D0A; Sat, 13 May 2006 04:46:33 -0700 (PDT)
Received: from [10.3.1.93] (helo=sc8-sf-list1-new.sourceforge.net)
	by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)
	id 1FectN-0005IC-GF
	for u-boot-users at lists.sourceforge.net; Fri, 12 May 2006 12:01:37 -0700

Nearly 17 hours of delay just between two internal mail servers there...

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
PLEASE NOTE: Some Quantum Physics Theories Suggest That When the Con-
sumer Is Not Directly Observing This Product, It May Cease  to  Exist
or Will Exist Only in a Vague and Undetermined State.