I am currently writing an application (a very simple and basic hello world program in C) on a 64-bit Linux machine. I compiled the application using the built-in gcc toolchain from ARM from Linero to compile the application on my board. For information, I use a FOX G20 V board with an ATMEL AT91SAM9G20 processor.
So, I compiled my application using:, arm-none-eabi-gccadding a few parameters that allow me to use standard C functions (like printf, etc.). This compiled successfully, and I was able to get a binary file ready to download to my board.
The next step was to compile and build U-Boot to load my application onto my board. I compiled and built using
do ARCH = arm CROSS_COMPILE = $ {CC} distclean
do ARCH = arm CROSS_COMPILE = $ {CC} at91sam9g20ek_mmc_config
make ARCH = arm CROSS_COMPILE = $ {CC}
telling the compiler where the path is arm-none-eabi-gcc. It compiled and was successfully executed.
Now that I have the application binary and my U-Boot is built and ready to download, how do I download the application to the board? I tried to follow textbooks online, but was rather unsuccessful. Ideally, I would like to upload my application to the SD card of my board. Any advice would be greatly appreciated.
source
share