* problem with env in NOR
@ 2010-02-16 20:44 Marc Kleine-Budde
2010-02-17 6:53 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Marc Kleine-Budde @ 2010-02-16 20:44 UTC (permalink / raw)
To: barebox mailing list; +Cc: Sascha Hauer
[-- Attachment #1.1: Type: text/plain, Size: 970 bytes --]
Hello,
on my PXA270 I put a splash image into the environment. The env image
with the splash image covers more than one flash sector. (The flash
sector size is 256 KiB.)
Loading the environment fails:
uboot:/ loadenv /dev/env0
loading environment from /dev/env0
read: error -262116
(This fails during boot, too.)
[frogger@hardanger:barebox (dev/pxa270)]$ grep CFI .config
CONFIG_HAS_CFI=y
CONFIG_DRIVER_CFI=y
# CONFIG_DRIVER_CFI_NEW is not set
CONFIG_DRIVER_CFI_OLD=y
CONFIG_CFI_BUFFER_WRITE=y
Sascha it's probably the problem we discussed the other day, that the
cfi driver doesn't handle the offset correct. I haven't looked at the
code though.
Cheers, Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with env in NOR
2010-02-16 20:44 problem with env in NOR Marc Kleine-Budde
@ 2010-02-17 6:53 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2010-02-17 6:53 UTC (permalink / raw)
To: Marc Kleine-Budde; +Cc: barebox mailing list
On Tue, Feb 16, 2010 at 09:44:03PM +0100, Marc Kleine-Budde wrote:
> Hello,
>
> on my PXA270 I put a splash image into the environment. The env image
> with the splash image covers more than one flash sector. (The flash
> sector size is 256 KiB.)
>
> Loading the environment fails:
>
> uboot:/ loadenv /dev/env0
> loading environment from /dev/env0
> read: error -262116
>
> (This fails during boot, too.)
>
> [frogger@hardanger:barebox (dev/pxa270)]$ grep CFI .config
> CONFIG_HAS_CFI=y
> CONFIG_DRIVER_CFI=y
> # CONFIG_DRIVER_CFI_NEW is not set
> CONFIG_DRIVER_CFI_OLD=y
> CONFIG_CFI_BUFFER_WRITE=y
>
> Sascha it's probably the problem we discussed the other day, that the
> cfi driver doesn't handle the offset correct. I haven't looked at the
> code though.
Yes, saveenv probably saves the whole environment with one write call
whereas other writes usually don't cross sector boundaries and so the
bug never showed up
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-17 6:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-16 20:44 problem with env in NOR Marc Kleine-Budde
2010-02-17 6:53 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox