How to download an application using u-boot for an ARM processor

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.

+4
source share
1 answer

Why don't you start with the program the word hello by default, specified only in the u-boot source code.

u-boot/examples/hello_world.c

, , . . http://www.denx.de/wiki/view/DULG/UBootStandalone

+1

Source: https://habr.com/ru/post/1536768/


All Articles