public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  ERROR: too many flash sectors
@ 2009-08-20 14:45 SlinceArm
  2009-08-20 14:58 ` Stefan Roese
  0 siblings, 1 reply; 6+ messages in thread
From: SlinceArm @ 2009-08-20 14:45 UTC (permalink / raw)
  To: u-boot


Hi , everyone .

My u-boot version is 2009-01 and i try porting u-boot on pxa270 development
board.
when i power on my board then minicom show these information 

 DRAM:  64 MB
 ERROR: too many flash sectors
 ERROR: too many flash sectors
 Flash:    32 MB

then i can save setenv , but when i earse my flash ,it cause one error

 Error: end address not on sector boundary

and here is my flinfo : 

Bank # 1: CFI conformant FLASH (32 x 16)  Size: 32 MB in 128 Sectors
  Intel Extended command set, Manufacturer ID: 0x89, Device ID: 0x18
  Erase timeout: 4096 ms, write timeout: 1 ms
  Buffer write timeout: 2 ms, buffer size: 64 bytes

  Sector Start Addresses:
  00000000   RO   00040000   RO   00080000   RO   000C0000   RO   00100000  
RO
  etc...


And i dont know my network chip work or not . ( my chip is LAN91C113 )
when i ping some address , it show 
 
 ethid=0000...
 LAN91C113:PHY auto-negotiate timed out

then my bootloader freeze ....

would someone can help me ? thanks.

 


-- 
View this message in context: http://www.nabble.com/-U-Boot--ERROR%3A-too-many-flash-sectors-tp25063511p25063511.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ERROR: too many flash sectors
  2009-08-20 14:45 [U-Boot] ERROR: too many flash sectors SlinceArm
@ 2009-08-20 14:58 ` Stefan Roese
  2009-08-22  2:58   ` SlinceArm
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Roese @ 2009-08-20 14:58 UTC (permalink / raw)
  To: u-boot

On Thursday 20 August 2009 16:45:28 SlinceArm wrote:
> Hi , everyone .
>
> My u-boot version is 2009-01 and i try porting u-boot on pxa270 development
> board.
> when i power on my board then minicom show these information
>
>  DRAM:  64 MB
>  ERROR: too many flash sectors
>  ERROR: too many flash sectors

This error is important. Searching in the source code gives you an hint. You 
should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ERROR: too many flash sectors
  2009-08-20 14:58 ` Stefan Roese
@ 2009-08-22  2:58   ` SlinceArm
  2009-08-23 16:15     ` Penda, Naveen Kumar
  2009-08-24  8:57     ` Stefan Roese
  0 siblings, 2 replies; 6+ messages in thread
From: SlinceArm @ 2009-08-22  2:58 UTC (permalink / raw)
  To: u-boot




Stefan Roese wrote:
> 
>>
>>  DRAM:  64 MB
>>  ERROR: too many flash sectors
>>  ERROR: too many flash sectors
> 
>>>This error is important. Searching in the source code gives you an hint.
You 
>>>should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.
> 
>>>Cheers,
>>>Stefan
> 
> 


Stefan Roese wrote:
> 
> On Thursday 20 August 2009 16:45:28 SlinceArm wrote:
>> Hi , everyone .
>>
>> My u-boot version is 2009-01 and i try porting u-boot on pxa270
>> development
>> board.
>> when i power on my board then minicom show these information
>>
>>  DRAM:  64 MB
>>  ERROR: too many flash sectors
>>  ERROR: too many flash sectors
> 
> This error is important. Searching in the source code gives you an hint.
> You 
> should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.
> 
> Cheers,
> Stefan
> 

Thanks for your reply , Stefan.  : )

My flash is 32MB 

and here is my source code for flash environment 

#define CONFIG_SYS_FLASH_CFI
#define CONFIG_FLASH_CFI_DRIVER	1
#define CONFIG_FLASH_CFI_WIDTH	FLASH_CFI_32BIT

#define CONFIG_SYS_MAX_FLASH_BANKS	1
#define CONFIG_SYS_MAX_FLASH_SECT	128

What code did set wrong ??
-- 
View this message in context: http://www.nabble.com/-U-Boot--ERROR%3A-too-many-flash-sectors-tp25063511p25090177.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ERROR: too many flash sectors
  2009-08-22  2:58   ` SlinceArm
@ 2009-08-23 16:15     ` Penda, Naveen Kumar
  2009-08-24  8:57     ` Stefan Roese
  1 sibling, 0 replies; 6+ messages in thread
From: Penda, Naveen Kumar @ 2009-08-23 16:15 UTC (permalink / raw)
  To: u-boot

 


> 
> 
> 
> Stefan Roese wrote:
> > 
> >>
> >>  DRAM:  64 MB
> >>  ERROR: too many flash sectors
> >>  ERROR: too many flash sectors
> > 
> >>>This error is important. Searching in the source code 
> gives you an hint.
> You 
> >>>should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.
> > 
> >>>Cheers,
> >>>Stefan
> > 
> > 
> 
> 
> Stefan Roese wrote:
> > 
> > On Thursday 20 August 2009 16:45:28 SlinceArm wrote:
> >> Hi , everyone .
> >>
> >> My u-boot version is 2009-01 and i try porting u-boot on pxa270
> >> development
> >> board.
> >> when i power on my board then minicom show these information
> >>
> >>  DRAM:  64 MB
> >>  ERROR: too many flash sectors
> >>  ERROR: too many flash sectors
> > 
> > This error is important. Searching in the source code gives 
> you an hint.
> > You 
> > should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.
> > 
> > Cheers,
> > Stefan
> > 
> 
> Thanks for your reply , Stefan.  : )
> 
> My flash is 32MB 
> 
> and here is my source code for flash environment 
> 
> #define CONFIG_SYS_FLASH_CFI
> #define CONFIG_FLASH_CFI_DRIVER	1
> #define CONFIG_FLASH_CFI_WIDTH	FLASH_CFI_32BIT
> 
> #define CONFIG_SYS_MAX_FLASH_BANKS	1
> #define CONFIG_SYS_MAX_FLASH_SECT	128

 Please check your sector size CONFIG_SYS_ENV_SECT_SIZE and multiply with your CONFIG_SYS_MAX_FLASH_SECT should not cross  32MB
> 
> What code did set wrong ??
> -- 
> View this message in context: 
> http://www.nabble.com/-U-Boot--ERROR%3A-too-many-flash-sectors
> -tp25063511p25090177.html
> Sent from the Uboot - Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ERROR: too many flash sectors
  2009-08-22  2:58   ` SlinceArm
  2009-08-23 16:15     ` Penda, Naveen Kumar
@ 2009-08-24  8:57     ` Stefan Roese
  2009-08-24 14:39       ` SlinceArm
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Roese @ 2009-08-24  8:57 UTC (permalink / raw)
  To: u-boot

On Saturday 22 August 2009 04:58:44 SlinceArm wrote:
> Thanks for your reply , Stefan.  : )
>
> My flash is 32MB
>
> and here is my source code for flash environment
>
> #define CONFIG_SYS_FLASH_CFI
> #define CONFIG_FLASH_CFI_DRIVER	1
> #define CONFIG_FLASH_CFI_WIDTH	FLASH_CFI_32BIT
>
> #define CONFIG_SYS_MAX_FLASH_BANKS	1
> #define CONFIG_SYS_MAX_FLASH_SECT	128
>
> What code did set wrong ??

As I already mentioned, the CONFIG_SYS_MAX_FLASH_SECT value is too low. I 
suggest you increase it to 512 and give it another try.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ERROR: too many flash sectors
  2009-08-24  8:57     ` Stefan Roese
@ 2009-08-24 14:39       ` SlinceArm
  0 siblings, 0 replies; 6+ messages in thread
From: SlinceArm @ 2009-08-24 14:39 UTC (permalink / raw)
  To: u-boot




Stefan Roese wrote:
> 
> On Saturday 22 August 2009 04:58:44 SlinceArm wrote:
>> Thanks for your reply , Stefan.  : )
>>
>> My flash is 32MB
>>
>> and here is my source code for flash environment
>>
>> #define CONFIG_SYS_FLASH_CFI
>> #define CONFIG_FLASH_CFI_DRIVER	1
>> #define CONFIG_FLASH_CFI_WIDTH	FLASH_CFI_32BIT
>>
>> #define CONFIG_SYS_MAX_FLASH_BANKS	1
>> #define CONFIG_SYS_MAX_FLASH_SECT	128
>>
>> What code did set wrong ??
> 
> As I already mentioned, the CONFIG_SYS_MAX_FLASH_SECT value is too low. I 
> suggest you increase it to 512 and give it another try.
> 
> 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
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

thaks your reply, Stefan .

i follow your suggestion  .
increase the CONFIG_SYS_MAX_FLASH_SECT to 256.
and the Error is fixed .   : ) 

Thanks your suggestion.


-- 
View this message in context: http://www.nabble.com/-U-Boot--ERROR%3A-too-many-flash-sectors-tp25063511p25117245.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-24 14:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 14:45 [U-Boot] ERROR: too many flash sectors SlinceArm
2009-08-20 14:58 ` Stefan Roese
2009-08-22  2:58   ` SlinceArm
2009-08-23 16:15     ` Penda, Naveen Kumar
2009-08-24  8:57     ` Stefan Roese
2009-08-24 14:39       ` SlinceArm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox