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.
12366 Discussions

Cannot compile U-Boot for arria 5

Altera_Forum
Honored Contributor I
903 Views

Hello all, 

 

 

I am facing some problem that I cannot build u-boot for arria5. 

The platform is x86_64 Ubuntu 14.04 LTS. 

 

 

At first I executed as below. 

 

$ cd intelFPGA/18.0/embedded $ ./embedded_command_shell.sh $ ...# download and install gcclinaro-7.3.1 $ export CROSS_COMPILE=/path/to/linaro_installation_directory/bin/arm-linux-gnueabihf- $ mkdir -p ~/u-boot $ cd ~/u-boot $ git clone https://github.com/altera-opensource/u-boot-socfpga.git $ cd u-boot-socfpga $ git checkout rel_socfpga_v2017.09_18.06.02_pr # This tag is the latest of rel* $ make socfpga_arria5_config $ make  

 

On the make, I got the next messages. 

 

 

... LD u-boot drives/ddr/altera/built-in.o: In function `sdram_calculate_size': ~/u-boot/u-boot-sockfpga/drivers/ddr/altera/sdram.c:482: undefined reference to `socfpga_get_sdram_config' path/to/linaro_installation_directory/bin/arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2018.05) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/builder-arch/adm64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514 make: *** Error 1  

 

 

However, on a commit tagged with v2018.07-rc3, we successfully built u-boot. 

Could you tell me why this fails? 

Or is it enough to use u-boot from a commit “v2018.07-rc3”? 

 

 

Thank you.
0 Kudos
1 Reply
JosephC_Intel
Moderator
70 Views

Hi,

 

You actually can checkout the U-Boot based on branches.

 

For instant on Arria 5, you can checkout the latest mainstream with “git checkout master” command https://github.com/altera-opensource/u-boot-socfpga/tree/master. The latest mainstream should consist of latest code and updates.

 

Similarly, on the old branch which is well tested, you can run command “git checkout socfpga_v2013.01.01” https://github.com/altera-opensource/u-boot-socfpga/tree/socfpga_v2013.01.01.

 

I hope this helps.

 

Thanks,

Joseph,

Intel Customer Support

Sales Marketing Group

Reply