barebox_ivt.bd 932 B

12345678910111213141516171819202122232425262728293031323334
  1. // STMP378x ROM command script to load and run U-Boot
  2. sources {
  3. power_prep="./power_prep/power_prep";
  4. sdram_prep="./boot_prep/boot_prep";
  5. barebox="./barebox";
  6. }
  7. section (0) {
  8. //----------------------------------------------------------
  9. // Power Supply initialization
  10. //----------------------------------------------------------
  11. load power_prep;
  12. load ivt (entry = power_prep:_start) > 0x8000;
  13. hab call 0x8000;
  14. //----------------------------------------------------------
  15. // SDRAM initialization
  16. //----------------------------------------------------------
  17. load sdram_prep;
  18. load ivt (entry = sdram_prep:_start) > 0x8000;
  19. hab call 0x8000;
  20. //----------------------------------------------------------
  21. // Load and call u_boot - ELF ARM image
  22. //----------------------------------------------------------
  23. load barebox;
  24. load ivt (entry = barebox:start) > 0x8000;
  25. hab call 0x8000;
  26. }