Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hi austin, hi aignacio I post in this thread since I think I'm stuck in a similar situation and I hope someone of you can help me. I have a cyclone V de0 nano soc board and I want to boot a bare metal application from SD card. This is what I could do so far: - I built a working baremetal application and I can debug via jtag - I created the u-boot.scr script file to load fpga configuration and baremetal application - I copied the .scr on SD card and it get executed, as I can see in the serial port output log - during the boot process, FPGA can successfullly configure from the .rbf file I copied in the FAT partition of SD card - when the script tries to load the application (fatload mmc 0:1 0x00100040 app_image.bin) I clearly get an error, since I still don't have the app_image.bin which is supposed to contain my application. The point is that I don't understand how to generate it from the .axf file I get from the build tools! I read this and other threads and I believe I simply need this .bin file on the SD card I used objcopy as someone suggested, but this creates a 4GB file! Moreover mkimage then tells me it can't read it. I'm missing some point? --- Quote End --- Hello Cris72, to generate the .bin file you'll need to use this command after generate your .axf: arm-altera-eabi-objcopy -o binary baremetal.axf baremetal.bin Also as I was stucked in this generation steps, I decided to make a big tutorial for my blog to explain all the process after understand the required files to generate a bootable SD card. As my post is not complete yet I'll paste here a preview that's only accessible through this link (https://blog.aignacio.com/p/b0ed896e-9982-4b40-a3e9-cc8cabea31ff/), try to read my tutorial and check if this could help you through the steps and if you find any error just reply. :)