Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi jwdonal & all,
I'm struggling myself to have a small bare-metal demo loading from SD card, and I'm actually not interested in having uboot. The steps I followed are: 1. Got the GHRD for my platform (DE0-Nano) 2. Created a BSP using BSP editor. I'm booting from SD and enabled FAT support. 3. Build preloader successfully 4. Used alt-boot-disk-util to write pre-loader image to the relevant partition on the SD card 5. I have a small "hello world" application that I was able to load via DS5. 6. Using 'mkimage' tool I've created an *.img file and copied it to the FAT partition Unfortunately, the small app wouldn't load. I forgot mentioning that in the BSP editor I'v modified the FAT_LOAD_PAYLOAD_NAME to the *.img file. It seems like preloader loads the file but can't jump to it. I might be using mkimage in a wrong manner, I'm not sure. I see you are mentioning that you were able to load a bare-metal application without uboot, so I'd really appreciate if you can share your steps or at least point out what I was missing in mine. Thanks.