Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
989 Views

u-boot-altera environment?

i've been looking some yesterday for the cyclone v handbook, and when i found it and had a look at it, the one thing im looking for it not mentioned, its the environment variables. 

 

i've been toying some but very limited before with u-boot for the sunxi arch, and they had a config file with the kernel, where you specify kernel args and so on, but the question is,  

is all that hardcoded in u-boot-altera or is it supposed to work the same way?  

 

the spl bit of uboot (the preloader) does have a hardcoded link to where to find the 0xA2 partition for the bootloader, that has place for 4 bootloaders (this is coverd int the handbook) but the bootloader where it looks for bootpartition/kernel and naming and so on, that i cant find, i guess its hardcoded.. 

 

the end game with this is something like Linux from scratch embedded edition to get a look into embedded linux ( i know i can use uClinux, arch linux arm, ubuntu etc and get a full rootfs but i want to see if i can get it running myself on the HPS on my DE1-SoC.. 

 

 

found this link: 

http://xillybus.com/tutorials/u-boot-image-altera-soc 

 

it goes through some of uboots env variables.. 

 

 

 

update: 

 

if i understood socfpga_cyclone5.h correct its partition 1 is the 0xA2 raw partition with uboot, and partition 2 on the mmc is root + boot partition as linux ext3/4 partition.. so its a one partition layout for linux but a extra raw partition for uboot..
0 Kudos
5 Replies
Altera_Forum
Honored Contributor I
35 Views

Some quick reference can be found at http://rocketboards.org/foswiki/documentation/preloaderubootcustomization131#preloader_build_paramet... 

Those parameters are configured through the Preloader Generator 

A quick guide about Preloader Generator can be found at https://www.google.com.my/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ccaqfjaa&url=... 

Hope this helps!
Altera_Forum
Honored Contributor I
35 Views

i think the best is flash with the ghrd SD card image version with winimage, and use the preconfigured partitions as base platform, and just update what ever you need whether uboot, preloder or application image. Manual build partition with third party tool may cause unnecessary problems.

Altera_Forum
Honored Contributor I
35 Views

Yup, we have that supported too.  

If you enable the FAT support in Preloader, it will look for the file name that is specified (which is u-boot.img by default). 

User can use any image by just renaming it.
Altera_Forum
Honored Contributor I
35 Views

The spl preloader generation is quite direct as already come with more gui basis, but is the u-boot/boot loader that which is with more manual step required for the generation .

Altera_Forum
Honored Contributor I
35 Views

Or you can just use the prebuild Sd from rocketboard.org. Is in the installation example is very basic , in order to support more examples , the updated in the web is better choice.