Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Preloader and bare metal application run

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

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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 ?