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