Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12602 Discussions

using spl built from altera-opensource/u-boot-socfpga

Altera_Forum
Honored Contributor II
1,233 Views

Hello, 

 

I need to re-build the SPL and u-boot.img for my Terasic board. There are a lot of tutorials on the rocketboards.org site and elsewhere about using Qsys and Quartus tools to do this (like this one: http://xillybus.com/tutorials/u-boot-image-altera-soc).  

 

I am not a Quartus user.  

 

I notice that if I check out and build the code from the altera-opensource/u-boot-socfpga github repository: 

 

https://github.com/altera-opensource/u-boot-socfpga/tree/v2016.01 

 

 

and do  

make socfpga_sockit_defconfig (<-- cfg for terasic board) 

 

 

and then in a cross-tools environment (provided by yocto "pokey"), do: 

make all 

 

this generates: 

u-boot.img in the u-boot top level directory, and  

u-boot-spl.bin in the spl sub-directory.  

 

 

Can someone confirm or comment if I should be able to simply take these components and copy them to the a2 partition using something like: 

 

dd if=u-boot-spl.bin of=/dev/sdx3 bs=64k seek=0 

dd if=u-boot.img of=/dev/sdx3 bs=64k seek=4 

 

 

 

so that I can avoid the involvement of Qsys/Quartus? Are there any steps I'm missing? 

 

If I can't use these make file products for that purpose, what is their intended use? (e.g. an additional step that gets them where they need to be still without Quartus involvement.) 

 

 

Thanks for any help! 

--George Broz 

Moog Industrial Group
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
457 Views

Hi, 

 

Did you finally figure this out? 

Are you able to use 

* u-boot.img in the u-boot top level directory, and  

* u-boot-spl.bin in the spl sub-directory.  

for you Terasic board? 

Maybe you tried different version, e.g. socfpga_v2013.01.01? 

 

Btw, which Terasic board you are using? 

 

 

Thanks
0 Kudos
Reply