[U-Boot] Does U-boot supports Spansion S29GL01GS NOR Flash?
Balaji Sivakumar, ERS, HCLTech
balajisk at hcl.com
Sun Mar 11 08:17:40 CET 2012
Hi Derk,
Thanks for your response.
I will download the latest one and check it.
Currently am booting the u-boot from DDR3 only and checking the flash information using "flinfo" command, but that itself fails for me. I have not programmed the u-boot into NOR FLASH yet.
To detect ,print flash information and its read, write, erase etc, do I have to add anything extra in the board file or flash_header.s file.
Am little confused whether i miss any configuration for FLASH, because we are able to read the MAN ID and Device ID through diagnostic Software. But through U-boot fails.
Please find my flash configuration details.
#define CONFIG_SYS_FLASH_BASE CS0_BASE_ADDR
#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
#define CONFIG_SYS_MAX_FLASH_SECT 1024/* max number of sectors on one chip */
/* Monitor at beginning of flash */
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
#define CONFIG_SYS_MONITOR_LEN (512 * 1024)
/*-----------------------------------------------------------------------
* CFI FLASH driver setup
*/
#define CONFIG_SYS_FLASH_CFI 1/* Flash memory is CFI compliant */
#define CONFIG_FLASH_CFI_DRIVER 1/* Use drivers/cfi_flash.c */
/* A non-standard buffered write algorithm */
#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1/* Use buffered writes (~10x faster) */
#define CONFIG_SYS_FLASH_PROTECTION 1/* Use hardware sector protection *
Please request you to provide your suggestion.
Thanks ,
ShivBalaji
________________________________________
From: Dirk Behme [dirk.behme at googlemail.com]
Sent: Sunday, March 11, 2012 12:08 PM
To: Balaji Sivakumar, ERS, HCLTech
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] Does U-boot supports Spansion S29GL01GS NOR Flash?
Dear Balaji,
On 11.03.2012 06:47, Balaji Sivakumar, ERS, HCLTech wrote:
> Hi Dirk,
>
> Thanks for your resonse. I have just added into this thread beacuse both are spansion flash.
>
> my responses to your query:
> 1.am using u-boot_2099-08 U-boot. it came with imx6q saberlite board.
This is the 'old' U-Boot from Freescale which is modified heavily by
Freescale. Please ask the Freescale support for this.
Please try the recent mainline U-Boot, e.g.
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary
> 2.NOR Flash is connected to WEIM Bus Chip select 0 and 16 bit Data bus(D16:D31), I have done Weim Bus Mux Config in the Mx6q_saberlite_board .c and also Chip select 0 initailization.
Hmm, I'm not totally sure, but if you boot from NOR, the correct mux
should already be done by the boot ROM code.
> 3. CONFIG_SYS_FLASH_BASE is WEIM_CSO_BASE_ADDR(0x08000000)
This looks correct.
Best regards
Dirk
> ________________________________________
> From: Dirk Behme [dirk.behme at googlemail.com]
> Sent: Saturday, March 10, 2012 11:59 PM
> To: Balaji Sivakumar, ERS, HCLTech
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] Does U-boot supports Spansion S29GL512P NOR Flash?
>
> Dear Balaji,
>
> On 10.03.2012 11:47, Balaji Sivakumar wrote:
>> Stefan Roese<sr<at> denx.de> writes:
>>
>>>
>>> Hi Prakash,
>>>
>>> On Friday 09 April 2010 07:26:37 prakash bedge wrote:
>>>> In U-boot I am not seeing the support for Spansion S29GL512P NOR flash.
>>>>
>>>> This chip is CFI compliant so I believe the common CFI driver should work
>>>> with this chip.
>>>>
>>>> Does U-boot supports S29GL512P NOR flash or I have to implement the
>>>> functionality to support S29GL512P?
>>>>
>>>> If anyone has tried with S29GL512P NOR flash please share the experiecne.
>>>
>>> This chip is currently supported by the common CFI NOR FLASH driver. So it
>>> should just work for your board as well.
>>>
>>> Cheers,
>>> 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
>>>
>>
>>
>> Hi Stefan,
>>
>> I am Balaji. am using IMX6 base custom board. In my board am using S29GL01G
>> NOR Flash to srore u-boot and kernel. I understand from the data sheet this
>> NOR Flash is CFI based on. So i have added Configurations for CFI Flash driver.
>>
>> Currently am loading the U-boot into DDR3 and able to excute U-boot test
>> commands. When i put flinfo , am getting "missing or unknow flash type" and
>> while loading the u-boot it is printing as " Unknown flash on BANK 1 - Size -
>> 0MB". So am not sure what am missing here or i have to add anything extra in
>> teh config file. Please request you to check and provide your suggestion.
>
> Just to be sure: Do you use the mainline U-Boot (u-boot.imx) or the
> old Freescale one?
>
> This thread talks about S29GL512P. You talk about S29GL01G?
>
> Can you send us your flash/CFI configuration from the config file?
>
> Which CONFIG_SYS_FLASH_BASE do you use?
>
> Best regards
>
> Dirk
>
> ::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.
>
> -----------------------------------------------------------------------------------------------------------------------
>
More information about the U-Boot
mailing list