public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Error: end address not on sector boundary
@ 2006-06-04 18:22 Hurricane555
  2006-06-06  7:17 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Hurricane555 @ 2006-06-04 18:22 UTC (permalink / raw)
  To: u-boot


Hello I?m using a Am29LV160B FLASH with a size of 4MB. My problem is, that I
can?t using the option saveenv. Writing and deleteting of FLASH is no
problem.

My settings are follows:

....


#define PHYS_FLASH_SIZE		0x000400000 /* 4 MB */
#define CFG_MAX_FLASH_SECT	(35)	/* max number of sectors on one chip */
#define CFG_MAX_FLASH_BANKS 1 /* Max # of flash banks */
#define CFG_ENV_ADDR		(CFG_FLASH_BASE) /* addr of environment*/
//#undef  CFG_FLASH_CHECKSUM
#define CFG_FLASH_ERASE_TOUT    1024000 /* Flash Erase Timeout (ms) */
#define CFG_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */



#define CFG_ENV_IS_IN_FLASH         1
#define ENV_IS_EMBEDDED
//#define CFG_ENV_IS_NOWHERE
#define CFG_ENV_OFFSET          0x8000  /* Offset of the Environment Sector  
*/
#define CFG_ENV_SIZE            0x4000  /* Size of the Environment Sector   
*/

....


What I?m doing wrong?
--
View this message in context: http://www.nabble.com/Error%3A-end-address-not-on-sector-boundary-t1731654.html#a4705029
Sent from the Uboot - Users forum at Nabble.com.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot-Users] Error: end address not on sector boundary
@ 2006-06-08 11:48 Joao, Nuno
  0 siblings, 0 replies; 9+ messages in thread
From: Joao, Nuno @ 2006-06-08 11:48 UTC (permalink / raw)
  To: u-boot

> From: u-boot-users-bounces at lists.sourceforge.net 
> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf 
> Of Hurricane555

>>> no, you are wrong! At the beginning of my Flash the first four
sectors
> have different size! The first 8000 ( 32K ) the second and the
> third 4000 (16k) and the fourth 10000 (64k) and the rest 31
> sectors 20000 (128k ) 
>
> flinfo 
>
> Bank # 1: CFI conformant FLASH (32 x 16)  Size: 4 MB in 35 Sectors 
>  Erase timeout 16384 ms, write timeout 0 ms, buffer write timeout 1
ms,
> buffer size 1 
>   Sector Start Addresses: 
>     50000000      50008000      5000C000      50010000 (RO)  50020000 
>     50040000      50060000      50080000      500A0000      500C0000 
>	(...)


	You are putting u-boot at the start of flash (50000000) and
	the env at 50010000? Your u-boot has less than 64Kb?

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

end of thread, other threads:[~2006-06-08 11:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-04 18:22 [U-Boot-Users] Error: end address not on sector boundary Hurricane555
2006-06-06  7:17 ` Wolfgang Denk
2006-06-06  7:47   ` Hurricane555
2006-06-06 12:09     ` Joao, Nuno
2006-06-06 16:47       ` Hurricane555
2006-06-06 16:57         ` Jerry Van Baren
2006-06-06 17:14           ` Hurricane555
2006-06-08  6:38             ` Hurricane555
  -- strict thread matches above, loose matches on Subject: below --
2006-06-08 11:48 Joao, Nuno

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