Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12436 Discussions

preloader can not be generated

Altera_Forum
Honored Contributor II
1,137 Views

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
302 Views

Hi, I have the same situation.

Did you fix it? 

Reply