[U-Boot] error compiling U-boot tools
Kopac Drago
kopac at iskratel.si
Mon Feb 20 15:23:00 CET 2012
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.
More information about the U-Boot
mailing list