[U-Boot] ERROR: too many flash sectors

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.

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@denx.de

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

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@lists.denx.de http://lists.denx.de/mailman/listinfo/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@denx.de

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@denx.de _______________________________________________ U-Boot mailing list U-Boot@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.
participants (3)
-
Penda, Naveen Kumar
-
SlinceArm
-
Stefan Roese