public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Building fw_printenv ?
@ 2005-03-10 11:32 Steven Scholz
  2005-03-10 11:47 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Scholz @ 2005-03-10 11:32 UTC (permalink / raw)
  To: u-boot

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.

-- 
Steven

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Building fw_printenv ?
  2005-03-10 11:32 [U-Boot-Users] Building fw_printenv ? Steven Scholz
@ 2005-03-10 11:47 ` Wolfgang Denk
  2005-03-10 12:00   ` Steven Scholz
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2005-03-10 11:47 UTC (permalink / raw)
  To: u-boot

In message <42303056.3010305@imc-berlin.de> 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

-- 
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_

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Building fw_printenv ?
  2005-03-10 11:47 ` Wolfgang Denk
@ 2005-03-10 12:00   ` Steven Scholz
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Scholz @ 2005-03-10 12:00 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:
> In message <42303056.3010305@imc-berlin.de> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-10 12:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 11:32 [U-Boot-Users] Building fw_printenv ? Steven Scholz
2005-03-10 11:47 ` Wolfgang Denk
2005-03-10 12:00   ` Steven Scholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox