[U-Boot-Users] U-boot saveenv Error: start and/or end address not on sector bou ndary

Hi,
I have problem with saveenv on Motorola's ADS (8270) Could someone help please with the hint how to resolve this?
Thanks, Best regards, alex povolotsky ************** => printenv bootdelay=5 ethaddr=00:11:22:33:44:55 bootcmd=bootm fff80000 baudrate=19200 bootargs=root=/dev/nfs rw nfsroot=172.16.246.111:/home/gaiotto/fadsroot stdin=serial stdout=serial stderr=serial filesize=992d2 ipaddr=172.16.119.3 serverip=172.16.240.200
Environment size: 248/262140 bytes => saveenv Saving Environment to Flash... Error: start and/or end address not on sector boundary =>

I had this same issue and found that during cfi detect, specifically in flash_get_size the sector_size was not calculated correctly. From the u-boot command line execute flinfo and see if your flash sector boundaries look correct. If not then looking in the flash_get_size routine and you may have a problem with the sector size calculation. It's the (tmp & 0xffff) ? blah : 128 line of code - can't remember exactly.
Mitch
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of Povolotsky, Alexander Sent: Wednesday, July 21, 2004 5:02 AM To: 'u-boot-users@lists.sourceforge.net' Cc: 'wd@denx.de' Subject: [U-Boot-Users] U-boot saveenv Error: start and/or end address not on sector bou ndary
Hi,
I have problem with saveenv on Motorola's ADS (8270) Could someone help please with the hint how to resolve this?
Thanks, Best regards, alex povolotsky ************** => printenv bootdelay=5 ethaddr=00:11:22:33:44:55 bootcmd=bootm fff80000 baudrate=19200 bootargs=root=/dev/nfs rw nfsroot=172.16.246.111:/home/gaiotto/fadsroot stdin=serial stdout=serial stderr=serial filesize=992d2 ipaddr=172.16.119.3 serverip=172.16.240.200
Environment size: 248/262140 bytes => saveenv Saving Environment to Flash... Error: start and/or end address not on sector boundary =>
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

By the way my target is an MPC8250 with Intel flash MT28F128J3 (32M, 128 sectors). I also had to rewrite the flash_make_cmd function because our board is setup to do byte lane swapping from the flash chips.
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of Povolotsky, Alexander Sent: Wednesday, July 21, 2004 5:02 AM To: 'u-boot-users@lists.sourceforge.net' Cc: 'wd@denx.de' Subject: [U-Boot-Users] U-boot saveenv Error: start and/or end address not on sector bou ndary
Hi,
I have problem with saveenv on Motorola's ADS (8270) Could someone help please with the hint how to resolve this?
Thanks, Best regards, alex povolotsky ************** => printenv bootdelay=5 ethaddr=00:11:22:33:44:55 bootcmd=bootm fff80000 baudrate=19200 bootargs=root=/dev/nfs rw nfsroot=172.16.246.111:/home/gaiotto/fadsroot stdin=serial stdout=serial stderr=serial filesize=992d2 ipaddr=172.16.119.3 serverip=172.16.240.200
Environment size: 248/262140 bytes => saveenv Saving Environment to Flash... Error: start and/or end address not on sector boundary =>
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

Alexander Povolotsky writes:
Alexander> Hi, I have problem with saveenv on Motorola's ADS (8270) Alexander> Could someone help please with the hint how to resolve Alexander> this?
What is the flash configuration in the board configuration file? Also, please use flinfo command to see what U-Boot "thinks" about the flash.
participants (3)
-
Mitchell Black
-
Povolotsky, Alexander
-
Yuli Barcohen