* [U-Boot-Users] Configuring Spansion flash
@ 2007-09-14 14:21 Yasothabalan
2007-09-14 14:23 ` Ben Warren
0 siblings, 1 reply; 12+ messages in thread
From: Yasothabalan @ 2007-09-14 14:21 UTC (permalink / raw)
To: u-boot
Hi all,
I am using Lite5200B board with SPANSION type flash. UBoot code doesn't
detect this flash.
Can anyone please help me what are all the changes to be made to
configure SPANSION type flash.
SPANSION 64MB flash.
Regards,
Yasotha Balan R
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070914/e573f273/attachment.htm
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-14 14:21 [U-Boot-Users] Configuring Spansion flash Yasothabalan
@ 2007-09-14 14:23 ` Ben Warren
2007-09-14 14:47 ` Yasothabalan
0 siblings, 1 reply; 12+ messages in thread
From: Ben Warren @ 2007-09-14 14:23 UTC (permalink / raw)
To: u-boot
Yasothabalan Ramaswamy-TLS,Chennai wrote:
>
> Hi all,
>
> I am using Lite5200B board with SPANSION type flash. UBoot code
> doesn?t detect this flash.
>
> Can anyone please help me what are all the changes to be made to
> configure SPANSION type flash.
>
> SPANSION 64MB flash.
>
There are many types of Spansion flash. Please provide the part number.
Please format all future e-mail as Plain Text if you want help. Some
curmudgeonly people around here get very annoyed if you don't.
regards,
Ben
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-14 14:23 ` Ben Warren
@ 2007-09-14 14:47 ` Yasothabalan
2007-09-14 15:00 ` Ben Warren
0 siblings, 1 reply; 12+ messages in thread
From: Yasothabalan @ 2007-09-14 14:47 UTC (permalink / raw)
To: u-boot
Thanks Ben.
I checked out in my board and found the part number to be:
S29GL128N90-R2. (128Mb)
Regards,
Yasotha Balan R
-----Original Message-----
From: Ben Warren [mailto:bwarren at qstreams.com]
Sent: Friday, September 14, 2007 7:54 PM
To: Yasothabalan Ramaswamy-TLS,Chennai
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Configuring Spansion flash
Yasothabalan Ramaswamy-TLS,Chennai wrote:
>
> Hi all,
>
> I am using Lite5200B board with SPANSION type flash. UBoot code
> doesn't detect this flash.
>
> Can anyone please help me what are all the changes to be made to
> configure SPANSION type flash.
>
> SPANSION 64MB flash.
>
There are many types of Spansion flash. Please provide the part number.
Please format all future e-mail as Plain Text if you want help. Some
curmudgeonly people around here get very annoyed if you don't.
regards,
Ben
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-14 14:47 ` Yasothabalan
@ 2007-09-14 15:00 ` Ben Warren
2007-09-14 15:12 ` Yasothabalan
0 siblings, 1 reply; 12+ messages in thread
From: Ben Warren @ 2007-09-14 15:00 UTC (permalink / raw)
To: u-boot
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> Thanks Ben.
>
> I checked out in my board and found the part number to be:
>
> S29GL128N90-R2. (128Mb)
>
>
OK. That's a good start. This is a very common flash type.
> Regards,
> Yasotha Balan R
>
> -----Original Message-----
> From: Ben Warren [mailto:bwarren at qstreams.com]
> Sent: Friday, September 14, 2007 7:54 PM
> To: Yasothabalan Ramaswamy-TLS,Chennai
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Configuring Spansion flash
>
> Yasothabalan Ramaswamy-TLS,Chennai wrote:
>
>> Hi all,
>>
>> I am using Lite5200B board with SPANSION type flash. UBoot code
>> doesn't detect this flash.
>>
>>
I don't know anything about this board or processor, but there are
people here who do. Please elaborate on what you mean by 'U-boot code
doesn't detect this flash', and provide details on the steps you've
taken to reach this conclusion.
Also, please don't top-post. Post responses directly after the relevant
parts of e-mail messages. The previously-mentioned curmudgeons will eat
your children if you continue this habit.
regards,
Ben
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-14 15:00 ` Ben Warren
@ 2007-09-14 15:12 ` Yasothabalan
2007-09-14 15:22 ` Ben Warren
2007-09-14 15:35 ` Jerry Van Baren
0 siblings, 2 replies; 12+ messages in thread
From: Yasothabalan @ 2007-09-14 15:12 UTC (permalink / raw)
To: u-boot
So how shall I proceed next Ben.
Where and in which file this configuration is done?
Whenever I trace out which flash is detected, it always gets detects as
FLASH_UNKNOWN.
In flash.c file....
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ulong flash_get_size (FPWV *addr, flash_info_t *info)
{
int i;
FPWV* addr2;
/* Write auto select command: read Manufacturer ID */
/* Write auto select command sequence and test FLASH answer */
addr[FLASH_CYCLE1] = (FPW)0x00AA00AA; /* for AMD, Intel
ignores this */
addr[FLASH_CYCLE2] = (FPW)0x00550055; /* for AMD, Intel
ignores this */
addr[FLASH_CYCLE1] = (FPW)0x00900090; /* selects Intel or AMD
*/
/* The manufacturer codes are only 1 byte, so just use 1 byte.
* This works for any bus width and any FLASH device width.
*/
udelay(100);
switch (addr[0] & 0xff) {
case (uchar)AMD_MANUFACT:
info->flash_id = FLASH_MAN_AMD;
break;
case (uchar)INTEL_MANUFACT:
info->flash_id = FLASH_MAN_INTEL;
break;
default:
info->flash_id = FLASH_UNKNOWN;
info->sector_count = 0;
info->size = 0;
break;
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Regards,
Yasotha Balan R
Member Technical Staff - HPEG
HCL Technologies Ltd.
73,74, South Phase Road, Ambattur Indutrial Estate, Chennai 600058.
Tel: +91-044-43935000 Extn. (5076)
Mob: +91-9994309885
www.hcltech.com
www.hcl.in
-----Original Message-----
From: Ben Warren [mailto:bwarren at qstreams.com]
Sent: Friday, September 14, 2007 8:31 PM
To: Yasothabalan Ramaswamy-TLS,Chennai
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Configuring Spansion flash
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> Thanks Ben.
>
> I checked out in my board and found the part number to be:
>
> S29GL128N90-R2. (128Mb)
>
>
OK. That's a good start. This is a very common flash type.
> Regards,
> Yasotha Balan R
>
> -----Original Message-----
> From: Ben Warren [mailto:bwarren at qstreams.com]
> Sent: Friday, September 14, 2007 7:54 PM
> To: Yasothabalan Ramaswamy-TLS,Chennai
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Configuring Spansion flash
>
> Yasothabalan Ramaswamy-TLS,Chennai wrote:
>
>> Hi all,
>>
>> I am using Lite5200B board with SPANSION type flash. UBoot code
>> doesn't detect this flash.
>>
>>
I don't know anything about this board or processor, but there are
people here who do. Please elaborate on what you mean by 'U-boot code
doesn't detect this flash', and provide details on the steps you've
taken to reach this conclusion.
Also, please don't top-post. Post responses directly after the relevant
parts of e-mail messages. The previously-mentioned curmudgeons will eat
your children if you continue this habit.
regards,
Ben
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-14 15:12 ` Yasothabalan
@ 2007-09-14 15:22 ` Ben Warren
2007-09-14 15:35 ` Jerry Van Baren
1 sibling, 0 replies; 12+ messages in thread
From: Ben Warren @ 2007-09-14 15:22 UTC (permalink / raw)
To: u-boot
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> So how shall I proceed next Ben.
> Where and in which file this configuration is done?
>
>
Use CFI. Don't top-post. Seriously.
regards,
Ben
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-14 15:12 ` Yasothabalan
2007-09-14 15:22 ` Ben Warren
@ 2007-09-14 15:35 ` Jerry Van Baren
2007-09-17 6:52 ` Yasothabalan
1 sibling, 1 reply; 12+ messages in thread
From: Jerry Van Baren @ 2007-09-14 15:35 UTC (permalink / raw)
To: u-boot
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> So how shall I proceed next Ben.
> Where and in which file this configuration is done?
>
> Whenever I trace out which flash is detected, it always gets detects as
> FLASH_UNKNOWN.
It would appear you have something misconfigured in your hardware or
u-boot software. We know basically zero about either, so you will have
to work the problem with only generic hints from the list.
Start by verifying the chip select to your flash part is being driven
properly.
Once you are sure your hardware is driving the flash OK, use u-boot
memory read and write commands to send the CFI manufacturer ID commands.
When you figure out how to do CFI commands manually so that the flash
responds, your misconfiguration of hardware/software should be very obvious.
The following message thread goes into more details, simply substitute
u-boot memory read/write commands for BDI configuration read/write commands.
<http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/31501/focus=31730>
Good luck,
gvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-14 15:35 ` Jerry Van Baren
@ 2007-09-17 6:52 ` Yasothabalan
2007-09-18 15:15 ` Ben Warren
0 siblings, 1 reply; 12+ messages in thread
From: Yasothabalan @ 2007-09-17 6:52 UTC (permalink / raw)
To: u-boot
Thanks Ben and Jerry I have fixed the my flash issued.
Is there any way to test the EEPROM through Uboot code?
Thanks in advance.
Regards,
Yasotha Balan R
-----Original Message-----
From: Jerry Van Baren [mailto:gerald.vanbaren at smiths-aerospace.com]
Sent: Friday, September 14, 2007 9:05 PM
To: Yasothabalan Ramaswamy-TLS,Chennai
Cc: Ben Warren; u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Configuring Spansion flash
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> So how shall I proceed next Ben.
> Where and in which file this configuration is done?
>
> Whenever I trace out which flash is detected, it always gets detects
as
> FLASH_UNKNOWN.
It would appear you have something misconfigured in your hardware or
u-boot software. We know basically zero about either, so you will have
to work the problem with only generic hints from the list.
Start by verifying the chip select to your flash part is being driven
properly.
Once you are sure your hardware is driving the flash OK, use u-boot
memory read and write commands to send the CFI manufacturer ID commands.
When you figure out how to do CFI commands manually so that the flash
responds, your misconfiguration of hardware/software should be very
obvious.
The following message thread goes into more details, simply substitute
u-boot memory read/write commands for BDI configuration read/write
commands.
<http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/31501/focus=3173
0>
Good luck,
gvb
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-17 6:52 ` Yasothabalan
@ 2007-09-18 15:15 ` Ben Warren
2007-09-18 15:20 ` Yasothabalan
0 siblings, 1 reply; 12+ messages in thread
From: Ben Warren @ 2007-09-18 15:15 UTC (permalink / raw)
To: u-boot
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> Thanks Ben and Jerry I have fixed the my flash issued.
>
> Is there any way to test the EEPROM through Uboot code?
>
> Thanks in advance.
>
> Regards,
> Yasotha Balan R
>
>
Probably. What kind of EEPROM is it?
regards,
Ben
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-18 15:15 ` Ben Warren
@ 2007-09-18 15:20 ` Yasothabalan
2007-09-18 15:30 ` Ben Warren
2007-09-18 19:17 ` Wolfgang Denk
0 siblings, 2 replies; 12+ messages in thread
From: Yasothabalan @ 2007-09-18 15:20 UTC (permalink / raw)
To: u-boot
I am using I2C EEPROM.
Ben I am having another issue now.
Here in my board I have two Ethernet ports; So now I have to set two
different IP addresses for these ports.
As when the U-Boot prompt comes up we can set the IP address as,
=> set ipaddr 10.128.19.1
=> set ethaddr aa:bb:cc:ee:ff:gg
So above setting is valid only for single Ethernet port.
My doubt how to set IP address for another Ethernet port or what is the
method to do that?
{How can I set two different IP addresses for these two ports?
[Two different IPs
Two different GATEWAYs
Two different SERVERIPs]}
Regards,
Yasotha Balan R
-----Original Message-----
From: Ben Warren [mailto:bwarren at qstreams.com]
Sent: Tuesday, September 18, 2007 8:46 PM
To: Yasothabalan Ramaswamy-TLS,Chennai
Cc: Jerry Van Baren; u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Configuring Spansion flash
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> Thanks Ben and Jerry I have fixed the my flash issued.
>
> Is there any way to test the EEPROM through Uboot code?
>
> Thanks in advance.
>
> Regards,
> Yasotha Balan R
>
>
Probably. What kind of EEPROM is it?
regards,
Ben
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-18 15:20 ` Yasothabalan
@ 2007-09-18 15:30 ` Ben Warren
2007-09-18 19:17 ` Wolfgang Denk
1 sibling, 0 replies; 12+ messages in thread
From: Ben Warren @ 2007-09-18 15:30 UTC (permalink / raw)
To: u-boot
Yasothabalan Ramaswamy-TLS,Chennai wrote:
> I am using I2C EEPROM.
>
>
I've forgotten what type of CPU you have. As long as there's a driver
for the I2C controller and you've enabled I2C support, this is supported.
> Ben I am having another issue now.
>
> Here in my board I have two Ethernet ports; So now I have to set two
> different IP addresses for these ports.
>
> As when the U-Boot prompt comes up we can set the IP address as,
>
> => set ipaddr 10.128.19.1
> => set ethaddr aa:bb:cc:ee:ff:gg
>
> So above setting is valid only for single Ethernet port.
>
> My doubt how to set IP address for another Ethernet port or what is the
> method to do that?
>
> {How can I set two different IP addresses for these two ports?
> [Two different IPs
> Two different GATEWAYs
> Two different SERVERIPs]}
>
The network code really only supports one IP address at a time, which
will be used by whatever interface that the 'ethact' environment
variable points to. What is your use case for setting up more elaborate
networking?
regards,
Ben
^ permalink raw reply [flat|nested] 12+ messages in thread
* [U-Boot-Users] Configuring Spansion flash
2007-09-18 15:20 ` Yasothabalan
2007-09-18 15:30 ` Ben Warren
@ 2007-09-18 19:17 ` Wolfgang Denk
1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Denk @ 2007-09-18 19:17 UTC (permalink / raw)
To: u-boot
In message <CE54F2377C0FB8439A290BF5A88BF13D06672A97@CHN-HCLT-EVS01.HCLT.CORP.HCL.IN> you wrote:
>
> I am using I2C EEPROM.
>
> Ben I am having another issue now.
>
> Here in my board I have two Ethernet ports; So now I have to set two
> different IP addresses for these ports.
Can you *please* use a Subjectr line that is in any way related to the
content of your messages?
Neither I2C EEPROMs nor Ethernet intefaces have anything to do with
Spansion flash chips!
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
We, the unwilling, led by the unknowing, are doing the impossible for
the ungrateful. We have done so much, for so long, with so little, we
are now qualified to do anything with nothing.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2007-09-18 19:17 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 14:21 [U-Boot-Users] Configuring Spansion flash Yasothabalan
2007-09-14 14:23 ` Ben Warren
2007-09-14 14:47 ` Yasothabalan
2007-09-14 15:00 ` Ben Warren
2007-09-14 15:12 ` Yasothabalan
2007-09-14 15:22 ` Ben Warren
2007-09-14 15:35 ` Jerry Van Baren
2007-09-17 6:52 ` Yasothabalan
2007-09-18 15:15 ` Ben Warren
2007-09-18 15:20 ` Yasothabalan
2007-09-18 15:30 ` Ben Warren
2007-09-18 19:17 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox