From: Hurricane555 <sohnschein@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Error: end address not on sector boundary
Date: Tue, 6 Jun 2006 10:14:25 -0700 (PDT) [thread overview]
Message-ID: <4737358.post@talk.nabble.com> (raw)
In-Reply-To: <4485B416.5070105@smiths-aerospace.com>
Jerry Van Baren wrote:
>
> Hurricane555 wrote:
>>
>> Nuno Jo?o (Ext_NBS) wrote:
>>>> From: u-boot-users-bounces at lists.sourceforge.net
>>>> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf
>>>> Of Hurricane555
>>>> Sent: ter?a-feira, 6 de Junho de 2006 8:48
>>>> To: u-boot-users at lists.sourceforge.net
>>>> Subject: Re: [U-Boot-Users] Error: end address not on sector boundary
>>>>
>>>>
>>>> Now I changed my settings as follows:
>>>>
>>>>
>>>> #define PHYS_FLASH_SIZE 0x000400000 /* 4 MB */
>>>> ...
>>>
>>> This is mine:
>>>
>>> #define CFG_ENV_IS_IN_FLASH 1
>>> #define CFG_ENV_SECT_SIZE 0x40000 /* 256K (one sector) for env
>>> */
>>> #define CFG_ENV_SIZE CFG_ENV_SECT_SIZE
>>> #define CFG_ENV_ADDR 0xffe00000
>>>
>>> I have a 256KB sized-sector flash, u-boot (512KB) at 0xFFF80000
>>> (at the end of flash) and the environment at 0xFFE00000 (1 sector).
>>>
>>>
>>>> Now I can make saveenv, but after restart the bootloader is damaged!
>>> This probably means that you're setting your environment to
>>> overlap u-boot's flash area. Check your memory map and (re-)read
>>> the file README in u-boot's root directory about the environment's
>>> configuration defines.
>>>
>>>
>>> _______________________________________________
>>> U-Boot-Users mailing list
>>> U-Boot-Users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>>
>>>
>>
>> Hmmmm.... I see what my mistake was!
>> My ENV was on the same address like U-BOOT!
>>
>>
>> U-BOOT is now on address 50000000. The ENV on 50010000!
>>
>> I checked this address and I was clear! No data was on it, so I thougt I
>> could use the section for my ENV. But when I make saveenv the bootloader
>> is
>> dead!? Why?
>
> According to the above, your sector size is 0x40000 (256K) but you
> stored your ENV at u-boot + 0x10000 (64K) which is in the same sector as
> u-boot. When you erased your ENV area, you inadvertently erased u-boot
> as well since it is all in one sector.
>
> gvb
>
>>> 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 s
> ize 1
> Sector Start Addresses:
> 50000000 50008000 5000C000 50010000 (RO) 50020000
> 50040000 50060000 50080000 500A0000 500C0000
> 500E0000 50100000 50120000 50140000 50160000
> 50180000 501A0000 501C0000 501E0000 50200000
> 50220000 50240000 50260000 50280000 502A0000
> 502C0000 502E0000 50300000 50320000 50340000
> 50360000 50380000 503A0000 503C0000 503E0000
>
>
>
>
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>
--
View this message in context: http://www.nabble.com/Error%3A-end-address-not-on-sector-boundary-t1731654.html#a4737358
Sent from the Uboot - Users forum at Nabble.com.
next prev parent reply other threads:[~2006-06-06 17:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-06-08 6:38 ` Hurricane555
-- strict thread matches above, loose matches on Subject: below --
2006-06-08 11:48 Joao, Nuno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4737358.post@talk.nabble.com \
--to=sohnschein@gmx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.