Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21594 Discussions

Preloader and bare metal application run

Altera_Forum
Honored Contributor II
1,926 Views

Hi i have built preloader by using the GHRD for cyclone V SOC and now i want to write the preloader image to microsd along with the bare metal image of the hello world example and then boot up... please suggest me how to do this... 

 

i think i need to merge both images and make it into a one image...
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,041 Views

Hello, 

 

The pre-loader and bare metal image need to be programmed onto the SD card seperately.  

There's a description of how to make bootable images and where to progran them in the "Altera SoC embedded design suite user guide". You can find this document here: www.altera.com/literature/ug/ug_soc_eds.pdf. 

 

Read chapter 8 of this guide, particularly the paragraph titled "Loading Next Image from FAT partition on SD Card". 

 

I hope this helps
0 Kudos
Altera_Forum
Honored Contributor II
1,041 Views

Chapter 8 is too big and complex for Baremetal Users, need be writed 8-BM for we! :) 

On my SD card lie 4 files: soc_system.rbf, socfpga.dtb, u-boot.scr and zImage. 

If I rename zImage, then Linux not boot, preloader or u-boon can`t find it ! 

May I convert and write my test program to zImage and boot it from SD successful ? 

Quickly, which chain of tools and it keys may I run to make good zImage from hwlib.axf ?
0 Kudos
Reply