[U-Boot-Users] Configuring Spansion flash

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.
-----------------------------------------------------------------------------------------------------------------------

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

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@qstreams.com] Sent: Friday, September 14, 2007 7:54 PM To: Yasothabalan Ramaswamy-TLS,Chennai Cc: u-boot-users@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.
-----------------------------------------------------------------------------------------------------------------------

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@qstreams.com] Sent: Friday, September 14, 2007 7:54 PM To: Yasothabalan Ramaswamy-TLS,Chennai Cc: u-boot-users@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

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@qstreams.com] Sent: Friday, September 14, 2007 8:31 PM To: Yasothabalan Ramaswamy-TLS,Chennai Cc: u-boot-users@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@qstreams.com] Sent: Friday, September 14, 2007 7:54 PM To: Yasothabalan Ramaswamy-TLS,Chennai Cc: u-boot-users@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.
-----------------------------------------------------------------------------------------------------------------------

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

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@smiths-aerospace.com] Sent: Friday, September 14, 2007 9:05 PM To: Yasothabalan Ramaswamy-TLS,Chennai Cc: Ben Warren; u-boot-users@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.
-----------------------------------------------------------------------------------------------------------------------

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@qstreams.com] Sent: Tuesday, September 18, 2007 8:46 PM To: Yasothabalan Ramaswamy-TLS,Chennai Cc: Jerry Van Baren; u-boot-users@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.
-----------------------------------------------------------------------------------------------------------------------

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

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
participants (4)
-
Ben Warren
-
Jerry Van Baren
-
Wolfgang Denk
-
Yasothabalan Ramaswamy-TLS,Chennai