[U-Boot] building tools/env

hi there, I'm attempting to build u-boot 1.1.1 tools/env and the build is failed. Any ideas on best way to enable it in the build. Here's what I did so far
first, update tools/Makefile
TOOLSUBDIRS = env
then
top level build make clobber mrproper make octeon_cn3010_evb_hs5_config make all
the build in tools/env fails due to missing include files linux/mtd/mtd.h zlib.h
add to tools/env/Makefile
CPPFLAGS += ../../include
and include CPPFLAGS here:
fw_printenv : $(SOURCES) $(HEADERS) $(CROSS_COMPILE)gcc -Wall $(CPPFLAGS) -DUSE_HOSTCC $(SOURCES) -o fw_printenv
but this leads to build error on definitions of uint32_t, phys_addr_t and erase_info_t
Any ideas on preferred way to build tools/env?
thanks in advance!

Dear Steve DeLaney,
In message 4BFBE07B.7020309@yahoo.com you wrote:
hi there, I'm attempting to build u-boot 1.1.1 tools/env and the build is failed. Any ideas on best way to enable it in the build. Here's what I did so far
...
make octeon_cn3010_evb_hs5_config
U-Boot 1.1.1 is pehistoric - it is more than 6 years old. And Octeon is only supported in out-of-tree ports, the patches are not available to the community.
Don't expect that anybody in the community is able to help you with that - please contact Cavium technical support and ask them what to do.
Best regards,
Wolfgang Denk

Had you find a solution to your problem. I have the same problem.
Thanks,
steverino2 wrote:
hi there, I'm attempting to build u-boot 1.1.1 tools/env and the build is failed. Any ideas on best way to enable it in the build. Here's what I did so far
first, update tools/Makefile
TOOLSUBDIRS = env
then
top level build make clobber mrproper make octeon_cn3010_evb_hs5_config make all
the build in tools/env fails due to missing include files linux/mtd/mtd.h zlib.h
add to tools/env/Makefile
CPPFLAGS += ../../include
and include CPPFLAGS here:
fw_printenv : $(SOURCES) $(HEADERS) $(CROSS_COMPILE)gcc -Wall $(CPPFLAGS) -DUSE_HOSTCC $(SOURCES) -o fw_printenv
but this leads to build error on definitions of uint32_t, phys_addr_t and erase_info_t
Any ideas on preferred way to build tools/env?
thanks in advance!
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (4)
-
Mike Frysinger
-
Nickos
-
Steve DeLaney
-
Wolfgang Denk