* [U-Boot] error compiling U-boot tools
@ 2012-02-20 14:23 Kopac Drago
2012-02-20 18:03 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: Kopac Drago @ 2012-02-20 14:23 UTC (permalink / raw)
To: u-boot
Hallo
Just like to report problem when compiling U-boot tools
After building U-boot.bin wit h make -all
I tried to compile U-boot tools with
make env
or
make tools-all
It reports error:
fw_env.c: In function `flash_write_buf':
fw_env.c:860: error: `MTD_DATAFLASH' undeclared (first use in this function)
fw_env.c:860: error: (Each undeclared identifier is reported only once
fw_env.c:860: error: for each function it appears in.)
fw_env.c: In function `flash_read':
fw_env.c:979: error: `MTD_DATAFLASH' undeclared (first use in this function)
fw_env.c: In function `fw_env_open':
fw_env.c:1149: error: `MTD_DATAFLASH' undeclared (first use in this function)
gmake[2]: *** [fw_printenv] Error 1
Makefile:523: *** [env] Error 2
Adding definition of MTD_DATAFLASH
#define MTD_DATAFLASH 6
in
./tools/env/fw_env.c
which is defined in
./include/linux/mtd/mtd-abi.h
compiles ok.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] error compiling U-boot tools
2012-02-20 14:23 [U-Boot] error compiling U-boot tools Kopac Drago
@ 2012-02-20 18:03 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2012-02-20 18:03 UTC (permalink / raw)
To: u-boot
On Monday 20 February 2012 09:23:00 Kopac Drago wrote:
> I tried to compile U-boot tools with
> make env
> or
> make tools-all
>
> It reports error:
>
> fw_env.c: In function `flash_write_buf':
> fw_env.c:860: error: `MTD_DATAFLASH' undeclared (first use in this
> function)
the kernel headers installed in your host system are out of date. looking at
the kernel history, it seems they're *very* old as MTD_DATAFLASH was added in
Feb 2005. i could understand making concessions for semi-recent additions,
but not for something this old.
not a bug in u-boot ... update your distro's kernel headers.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120220/18a67614/attachment.pgp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-20 18:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 14:23 [U-Boot] error compiling U-boot tools Kopac Drago
2012-02-20 18:03 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox