- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
i want to build u-boot with altera 15.1 lite and ds-5 @windows cygwin (cyclone v).
export CROSS_COMPILE=arm-linux-gnueabihf-
make
cd uboot-socfpga
make mrproper
make socfpga_cyclone5_config
make
i can build the preloader without any error. the first error i get, without change anything if i built the bootloader is: same problem found here https://forum.rocketboards.org/t/error-building-u-boot-for-cyclone-v-in-cygwin/475
nb@pc /cygdrive/c/software/spl_bsp/uboot-socfpga$ make mrproper
nb@pc /cygdrive/c/software/spl_bsp/uboot-socfpga
$ make socfpga_cyclone5_config
Configuring for socfpga_cyclone5 board...
nb@pc /cygdrive/c/software/spl_bsp/uboot-socfpga
$ make
Generating include/autoconf.mk
In file included from C:/software/spl_bsp/uboot-socfpga/include/configs/socfpga_cyclone5.h:27:0,
from C:/software/spl_bsp/uboot-socfpga/include/config.h:10,
from include/common.h:37:
C:/software/spl_bsp/uboot-socfpga/include/configs/socfpga_common.h:20:31: fatal error: asm/arch/hardware.h: No such file or directory
# include <asm/arch/hardware.h>
^
compilation terminated.
Generating include/autoconf.mk.dep
In file included from C:/software/spl_bsp/uboot-socfpga/include/configs/socfpga_cyclone5.h:27:0,
from C:/software/spl_bsp/uboot-socfpga/include/config.h:10,
from include/common.h:37:
C:/software/spl_bsp/uboot-socfpga/include/configs/socfpga_common.h:20:31: fatal error: asm/arch/hardware.h: No such file or directory
# include <asm/arch/hardware.h>
^
compilation terminated.
arm-linux-gnueabihf-gcc -DDO_DEPS_ONLY
-g -Os -fno-common -ffixed-r8 -msoft-float -IC:/software/spl_bsp/uboot-socfpga/board/altera/socfpga -IC:/software/spl_bsp/uboot-socf
pga/board/altera/socfpga/sdram -D__KERNEL__ -IC:/software/spl_bsp/uboot-socfpga/include -fno-builtin -ffreestanding -nostdinc -isystem c:/altera/15.1/embedded/ds-5/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/
4.8.3/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage
-o lib/asm-offsets.s lib/asm-offsets.c -c -S
In file included from C:/software/spl_bsp/uboot-socfpga/include/configs/socfpga_cyclone5.h:27:0,
from C:/software/spl_bsp/uboot-socfpga/include/config.h:10,
from C:/software/spl_bsp/uboot-socfpga/include/common.h:37,
from lib/asm-offsets.c:18:
C:/software/spl_bsp/uboot-socfpga/include/configs/socfpga_common.h:20:31: fatal error: asm/arch/hardware.h: No such file or directory
# include <asm/arch/hardware.h>
^
compilation terminated.
make: *** Error 1
-> the hardware.h file is missing. i check this and the error is that the symlink to asm in the include folder is not working, i dont knwo why. i change the env setting to:
export CYGWIN="winsymlinks:nativestrict"
export CROSS_COMPILE=arm-linux-gnueabihf-
make
cd uboot-socfpga
make mrproper
make socfpga_cyclone5_config
make
delete the uboot folder generate the preloader again. after that i get the following error if i create the bootloader:
nb@pc /cygdrive/c/software/spl_bsp/uboot-socfpga
$ make
Generating include/autoconf.mk
Generating include/autoconf.mk.dep
sed: -e expression# 1, char 17: Unmatched ) or \)
arm-linux-gnueabihf-gcc -DDO_DEPS_ONLY
-g -Os -fno-common -ffixed-r8 -msoft-float -IC:/software/spl_bsp/uboot-socfpga/board/altera/socfpga -IC:/software/spl_bsp/uboot-socf
pga/board/altera/socfpga/sdram -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x01000040 -DCONFIG_SPL_TEXT_BASE=0xFFFF0000 -IC:/software/spl_bsp/uboot-socfpga/include -fno-builtin -ffreestanding -nostdinc -isystem c:/
altera/15.1/embedded/ds-5/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/include -pipe -DCONFIG_ARM -D__ARM__ -mthumb -mthumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-securit
y -fstack-usage
-o lib/asm-offsets.s lib/asm-offsets.c -c -S
Generating include/generated/generic-asm-offsets.h
tools/scripts/make-asm-offsets lib/asm-offsets.s include/generated/generic-asm-offsets.h
if ;then
arm-linux-gnueabihf-gcc -DDO_DEPS_ONLY
-g -Os -fno-common -ffixed-r8 -msoft-float -IC:/software/spl_bsp/uboot-socfpga/board/altera/socfpga -IC:/software/spl_bsp/uboot-socf
pga/board/altera/socfpga/sdram -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x01000040 -DCONFIG_SPL_TEXT_BASE=0xFFFF0000 -IC:/software/spl_bsp/uboot-socfpga/include -fno-builtin -ffreestanding -nostdinc -isystem c:/
altera/15.1/embedded/ds-5/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/include -pipe -DCONFIG_ARM -D__ARM__ -mthumb -mthumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-securit
y -fstack-usage
-o arch/arm/cpu/armv7/socfpga/asm-offsets.s arch/arm/cpu/armv7/socfpga/asm-offsets.c -c -S;
else
touch arch/arm/cpu/armv7/socfpga/asm-offsets.s;
fi
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
C:/altera/15.1/embedded/host_tools/gnu/make/H-x86_64-mingw32/bin/make -C $dir _depend ; done
make: Entering directory `C:/software/spl_bsp/uboot-socfpga/tools'
cat /dev/null >.depend
sed: -e expression# 1, char 17: Unmatched ) or \)
make: *** No rule to make target `.depend', needed by `_depend'. Stop.
make: Leaving directory `C:/software/spl_bsp/uboot-socfpga/tools'
make: Entering directory `C:/software/spl_bsp/uboot-socfpga/examples/standalone'
arm-linux-gnueabihf-gcc -M -g -Os -fno-common -ffixed-r8 -msoft-float -IC:/software/spl_bsp/uboot-socfpga/board/altera/socfpga -IC:/software/spl_bsp
/uboot-socfpga/board/altera/socfpga/sdram -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x01000040 -DCONFIG_SPL_TEXT_BASE=0xFFFF0000 -IC:/software/spl_bsp/uboot-socfpga/include -fno-builtin -ffreestanding -nostdinc -
isystem c:/altera/15.1/embedded/ds-5/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/include -pipe -DCONFIG_ARM -D__ARM__ -mthumb -mthumb-interwork -mabi=aapcs-linux -march=armv7-a -I.. -MQ hello_world.o hello_world.c >.depend.hello_world
sed: -e expression# 1, char 17: Unmatched ) or \)
make: *** No rule to make target `.depend', needed by `_depend'. Stop.
make: Leaving directory `C:/software/spl_bsp/uboot-socfpga/examples/standalone'
make: Entering directory `C:/software/spl_bsp/uboot-socfpga/examples/api'
cat /dev/null >.depend
sed: -e expression# 1, char 17: Unmatched ) or \)
make: *** No rule to make target `.depend', needed by `_depend'. Stop.
make: Leaving directory `C:/software/spl_bsp/uboot-socfpga/examples/api'
make: Entering directory `C:/software/spl_bsp/uboot-socfpga/arch/arm/cpu/armv7'
arm-linux-gnueabihf-gcc -M -g -Os -fno-common -ffixed-r8 -msoft-float -IC:/software/spl_bsp/uboot-socfpga/board/altera/socfpga -IC:/software/spl_bsp
/uboot-socfpga/board/altera/socfpga/sdram -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x01000040 -DCONFIG_SPL_TEXT_BASE=0xFFFF0000 -IC:/software/spl_bsp/uboot-socfpga/include -fno-builtin -ffreestanding -nostdinc -
isystem c:/altera/15.1/embedded/ds-5/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/include -pipe -DCONFIG_ARM -D__ARM__ -mthumb -mthumb-interwork -mabi=aapcs-linux -march=armv7-a -MQ start.o start.S >.depend.start
sed: -e expression# 1, char 17: Unmatched ) or \)
make: *** No rule to make target `.depend', needed by `_depend'. Stop.
make: Leaving directory `C:/software/spl_bsp/uboot-socfpga/arch/arm/cpu/armv7'
make: *** Error 2
nb@pc /cygdrive/c/software/spl_bsp/uboot-socfpga
can sb help me plz? thanks a lot!
Link Copied
8 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
sry its in the wrong place. can some admin move the post to: Forum -> Device and Tools Related -> SoC Discussion -> SoC Linux- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
did you create the correct configuration with the bsp-generator from the handoff-files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, i can compile the u-boot from an second pc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
i cant compile it although with altera 16.0.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is it possible to move the thread?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
sry i ve no solution found.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having the exact same issue? Did you ever find a solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
no i ve found no solution, because we need an newer version from uboot with 2 channel i2c support. we build now the uboot with an linux pc and get the source from altera github. sry for the bad news
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page