Skip to contentSkip to conversation

Building fw_printenv ?

U-Boot-Users Steven Scholz 2 participants 3 messages Mar 10, 2005

lore
Share & tools
lore
#0 lore raw

Hi there,

how can I build fw_printenv?

Just add

TOOLSUBDIRS = env

in tools/Makefile?

Then I get

make[2]: Leaving directory /home/scholz/EXTERN/u-boot.pristine/tools/env' make[2]: Entering directory /home/scholz/EXTERN/u-boot.pristine/tools/env' arm-softfloat-linux-gnu-gcc -Wall -DUSE_HOSTCC crc32.c fw_env.c fw_env_main.c -o fw_printenv
crc32.c:15:18: zlib.h: No such file or directory

Thanks.

Signature · 1 line
Steven
#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

how can I build fw_printenv?

-> cd tools/env
-> make
ln -s ../../lib_generic/crc32.c crc32.c
cc -M -DUSE_HOSTCC crc32.c fw_env.c fw_env_main.c > .depend
ppc_8xx-gcc -Wall -DUSE_HOSTCC crc32.c fw_env.c fw_env_main.c -o fw_printenv

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I mean, I . . . think to understand you, I just don't know  what  you
are saying ...                        - Terry Pratchett, _Soul Music_
#2 lore raw
Quoted 10 lines · Wolfgang Denk
Quoted 1 line · In message <[email protected]> you wrote:

how can I build fw_printenv?

-> cd tools/env
-> make
ln -s ../../lib_generic/crc32.c crc32.c
cc -M -DUSE_HOSTCC crc32.c fw_env.c fw_env_main.c > .depend
ppc_8xx-gcc -Wall -DUSE_HOSTCC crc32.c fw_env.c fw_env_main.c -o fw_printenv

Ok.
I had to put "-I ../../include" in the Makefile for zlib.h as well.

And for my linux-2.6 with new MTD I have to use

-#include <linux/mtd/mtd.h>
+#include <mtd/mtd-user.h>

Thanks.

--
Steven