Skip to contentSkip to conversation

ERROR: too many flash sectors

U-Boot SlinceArm 3 participants 6 messages Aug 20, 2009 – Aug 24, 2009

lore
Share & tools
lore

SlinceArm

author
#0 lore raw

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.

Signature · 2 lines
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.
#1 lore raw
Quoted 9 lines · 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

author
#2 lore raw
Quoted 7 lines · Stefan Roese
Quoted 7 lines

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

Quoted 1 line

This error is important. Searching in the source code gives you an hint.

You

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.

Cheers,
Stefan

Quoted 13 lines · Stefan Roese
Quoted 10 lines · 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

Quoted 7 lines

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

Signature · 2 lines
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.
#3 lore raw
Quoted 51 lines
Quoted 7 lines · Stefan Roese
Quoted 7 lines

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

Quoted 1 line

This error is important. Searching in the source code

gives you an hint.
You

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.

Cheers,
Stefan

Quoted 9 lines · Stefan Roese
Quoted 7 lines · 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

Quoted 5 lines
Quoted 3 lines

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.

Quoted 6 lines

You
should increase CONFIG_SYS_MAX_FLASH_SECT to match you hardware.

Cheers,
Stefan

Thanks for your reply , Stefan. : )

My flash is 32MB

Quoted 8 lines

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

Quoted 14 lines

What code did set wrong ??

Signature · 9 lines
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
#4 lore raw
In reply to SlinceArm
Quoted 6 lines · 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

Quoted 8 lines

#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

author
#5 lore raw
Quoted 23 lines · Stefan Roese
Quoted 6 lines · 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

Quoted 8 lines

#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

Quoted 10 lines

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

Signature · 2 lines
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.