Forum Discussion
Altera_Forum
Honored Contributor
11 years agocycloneive boot from sd card
Hello to all! I'm working with a cycloneive board. I use the program university avalon sd card interface, and i can read and write a file (fat16) from/to a 2GB sd card. I would copy a .bin ...
Altera_Forum
Honored Contributor
11 years agoRead the program sections from the elf file itself isn't that hard (they are designed for simple loaders to process).
'objdump -p' will list the headers. So I would put the unmodified 'elf' file onto the SD card. For simple code that will read from FAT16(and FAT12) you could look at something like the NetBSD fatboot.S file. http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/fatboot/fatboot.s?annotate=1.4&only_with_tag=main It will need translating from x86 asm and needs a 'read sectors' command.