[U-Boot] Compilation error for fw_printenv

Rahanesh rahanesh at tataelxsi.co.in
Thu Sep 17 11:32:18 CEST 2009


Hi All,

While trying to compile fw_printenv under tools/env directory of u-boot 
i am getting the following error:

fw_env.c:34:27: error: linux/mtd/mtd.h: No such file or directory
fw_env.c: In function fw_printenv:
fw_env.c: In function flash_io:
fw_env.c:390: error: erase_info_t undeclared (first use in this function)
fw_env.c:390: error: (Each undeclared identifier is reported only once
fw_env.c:390: error: for each function it appears in.)
fw_env.c:390: error: expected  before erase
fw_env.c:421: error: erase undeclared (first use in this function)
fw_env.c:423: error: MEMUNLOCK undeclared (first use in this function)
fw_env.c:462: error: MEMERASE undeclared (first use in this function)
fw_env.c:519: error: MEMLOCK undeclared (first use in this function)
make: *** [fw_printenv] Error 1

How can i solve this? I a very new to Linux Environment.

Thanks
Rahanesh





More information about the U-Boot mailing list