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++
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.
12409 Discussions

Building the preloader from U-BOOT socfpga 2018.01 sources

Honored Contributor II

I'm developing a bare metal application for a cyclone V FPGA. The application is loaded from QSPI flash into RAM by the preloader. 


I recently needed to try a new QSPI device. The U-BOOT 2013.01.01 that comes with the EDS doesn't support this device. However the U-BOOT 2018.01 from Altera-opensource GitHub does. So I downloaded the 2018.01 tar.gzip and placed it in Home:\intelFPGA\17.1\embedded\host_tools\altera\preloader. 


Then followed the steps for making a new preloader (bsp-editor, make). The build process didn't throw any errors an resulted in a preloader-mkpimage.bin file. 


This new preloader doesn't seem to do anything. The old 2013.01.01 outputs a bunch of information to the UART before loading the application. My new preloader doesn't output anything, so I assume it crashes before initializing the UART. 


Does anyone have experience with building the pre-loader from newer versions of the u-boot socfpga source? Is this even possible or is the 2013.01.01 version the only option. 


My only experience with u-boot so far has been building the standard preloader, so I'm a bit out of my depth with this. 


I'm using the EDS if that helps.
0 Kudos
3 Replies
Honored Contributor II

Did you check the uboot configuration before you compile it? Is the diagnostic output enabled, is it using the correct UART channel and configuration pins, and the correct baud rate? 

You can also try and debug the preloader and see if it gets stuck somewhere.
Honored Contributor II



I did enable UART output in the bsp-editor and the baud rate is correct. I have not checked the configuration pins yet. I will try debugging the preloader to see what happens. 


I'll post in this thread again when I get the debugger up and running. 


Best regards, 

Honored Contributor II

Hi Aldridge, 


Do you manage to boot your board ?