[U-Boot] fw_setenv not working
Wolfgang Denk
wd at denx.de
Tue Feb 10 09:30:21 CET 2009
Dear "M SANDEEP-TVF386",
in message <0A01463223B8164194908CAC85B66A120341472A at ZMY16EXM67.ds.mot.com> you wrote:
>
> My U-boot version is 1.1.4, but I was not able to build tools/env for
> 1.1.4, so I am using fw_setenv and fw_printenv binaries build from
> 1.3.4.
Please update your code. U-Boot 1.1.4 is more than 3 years old, which
is an eternity in terms of U-Boot development.
> Im getting strange errors while building 1.1.4 . As im using linux
> kernel 2.6.22.18 (enclosing build errors and Makefile)
That is to be expected. You must not attempt to combine software
packages from different eras. U-Boot 1.1.4 will work fine with a 2.4
kernel, but for a 2.6 kernel you will want to use a more current
version of U-Boot.
> For 1.3.4 fw_printenv and fw_setenv im not able to set env variables as
> I said in prev mail.
> /vob/magma/trunk/toolchain/orion/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -Wall -DUSE_HOSTCC -I ../../../linux-2.6.22.18/include/ -I ../../include crc32.c fw_env.c fw_env_main.c -o fw_printenv
> In file included from ../../../linux-2.6.22.18/include/linux/preempt.h:9,
> from ../../../linux-2.6.22.18/include/linux/spinlock.h:49,
> from ../../../linux-2.6.22.18/include/linux/module.h:9,
> from ../../../linux-2.6.22.18/include/linux/mtd/mtd.h:13,
> from fw_env.c:34:
> ../../../linux-2.6.22.18/include/linux/thread_info.h:23: error: syntax error before "u32"
> ../../../linux-2.6.22.18/include/linux/thread_info.h:23: warning: no semicolon at end of struct or union
Obviously you modified the U-Boot Makefile, but in an incompatible and
incorrect way. You must not include arbitrary Linux kernel header
files into U-Boot.
This cannot work.
Please use recent code, and your problem will just go away.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Use C++ to confuse your enemies; use C to produce stable code.
More information about the U-Boot
mailing list