fw_setenv problem when calling from expect script

Wolfgang Denk wd at denx.de
Wed Jun 9 00:07:21 EST 2004


In message <FIEJJAKAABLMHFKFECNJCEHIHBAA.tschaefer at giga-stream.de> you wrote:
>
> I'm using MVL 3.0 (kernel 2.4.18) on a PPC 405GPr custom board. Flash memory
> on the board is located in 2 AMD641DH flash chips, which are concatenated on
> the mtd layer to one large flash memory area. The flash is divided into 5
> partitions (bootloader u-boot, 2 bootloader environment partitions, kernel,
> rootfs).

More interesting than the kernel  version  would  be  to  know  which
version  of the MTD subsystem you are using. A 2.4.18 kernel sounds a
bit old, so this probably means that the MTD code is even older?

...
> CRC write error on /dev/mtd1: Input/output error
> Error: can't write fw_env to flash
...
> The respective environment sector has been erased, but writing the new
> environment didn't work.
>
> If I insert a 'sync' command between writing on the rootfs partition and the
> fw_setenv call, writing of the environment sector works, but this is not
> really a solution???

No. Definitely not. Soulds like a MTD problem to me.

> Any ideas, comments?

Update the MTD code?

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Lead me not into temptation... I can find it myself.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list