Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
976 Views

preloader can not be generated

https://rocketboards.org/foswiki/documentation/gsrd140preloader 

when i Run makecommand to build the preloader image 

 

Generating include/generated/asm-offsets.h 

tools/scripts/make-asm-offsets arch/arm/cpu/armv7/socfpga/asm-offsets.s include/generated/asm-offsets.h 

for dir in tools examples/standalone examples/api arch/arm/cpu/armv7 ; do  

/bin/make -C $dir _depend ; done 

make[2]: Entering directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/tools' 

make[2]: Nothing to be done for '_depend'. 

make[2]: Leaving directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/tools' 

make[2]: Entering directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/examples/standalone' 

make[2]: Nothing to be done for '_depend'. 

make[2]: Leaving directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/examples/standalone' 

make[2]: Entering directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/examples/api' 

make[2]: Nothing to be done for '_depend'. 

make[2]: Leaving directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/examples/api' 

make[2]: Entering directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/arch/arm/cpu/armv7' 

make[2]: Nothing to be done for '_depend'. 

make[2]: Leaving directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/arch/arm/cpu/armv7' 

/bin/make -C tools all 

make[2]: Entering directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/tools' 

x86_64-w64-mingw32-gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/include -idirafter /cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/include2 -idirafter /cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/include -I /cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/lib/libfdt -I /cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/tools -DCONFIG_SYS_TEXT_BASE=0x01000040 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -ansi -o mkenvimage.o mkenvimage.c -c 

mkenvimage.c:41:22: fatal error:sys/mman.h:No such file or directory 

# include <sys/mman.h> 

Compile interrupt 

/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/rules.mk:66: recipe for target 'mkenvimage.o' failed 

make[2]: *** [mkenvimage.o] Error 1 

make[2]: Leaving directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga/tools' 

Makefile:590: recipe for target 'tools' failed 

make[1]: *** [tools] Error 2 

make[1]: Leaving directory '/cygdrive/d/intelFPGA_lite/FPGA2/software/spl_bsp/uboot-socfpga' 

make: *** [uboot-socfpga/spl/u-boot-spl.bin] Error 2 

 

win10 64 1803 

how to fix it?
0 Kudos
1 Reply
ScottShin
New Contributor I
141 Views

Hi, I have the same situation.

Did you fix it? 

Reply