View Single Post
Old 10-02-2015, 05:40 PM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by hjalfi View Post
Actually, I *am* looking for system level customisations; I want to use USB downloader mode to drop a binary into memory and jump to it.
- - - - -
I am pretty sure USB downloader mode only writes to flash.

Boot to u-boot, select bist, then use one of the binary transfer protocols to transfer to ram.
Then you can jump to it.

When you get it completed to your satisfaction, then burn it into flash and set-up u-boot to load and run it.

Duplicating the initialization done by u-boot is a big waste of time.
Plus, you will be limiting the size of your application to the size set aside for u-boot in the flash.
These SoCs boot from a reserved (fixed size) 'hidden' partition of the flash.

Just use the existing bootloader to load your bare metal application (as if it was a kernel, which is also a bare metal application).
This way you will not be limited to the size of the reserved, bootable, partition.

Also, if you don't like u-boot - Freescale also supports red-boot.

Last edited by knc1; 10-02-2015 at 05:44 PM.
knc1 is offline   Reply With Quote