modify first stage bootloader

Discussion in 'UDOO NEO' started by Aurel, Feb 26, 2016.

  1. Aurel

    Aurel New Member

    Joined:
    Feb 26, 2016
    Messages:
    3
    Likes Received:
    0
    Hi everyone,
    does it is possible to modify the first stage bootloader in order to use a custom one (send/get data only via serial port) ?
    Must JTAG be using for this or is there another way?
    I want to use FreeRTOS for A9 part and baremetal for M4 part (I want to test real-time capability and learn low level code)?

    Thanks for your information.
    Have a nice day.
     
  2. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
    I would suggest using u-boot and use it as a loader for A9/FreeRTOS. This way DRAM is setup, clocks are configured, etc. Just write to the UART register, for debugging.
     
  3. Aurel

    Aurel New Member

    Joined:
    Feb 26, 2016
    Messages:
    3
    Likes Received:
    0
    Should I have to keep the SD card to hold u-boot or is there a way to put it on the internal flash?
     
  4. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    There is no internal flash on Neo. You must use the SD card to load uboot.
     
  5. Aurel

    Aurel New Member

    Joined:
    Feb 26, 2016
    Messages:
    3
    Likes Received:
    0
    Hi what about the 96 ko of internal ROM?

    I wish use it to initialize the M4 part (copy code from SD to OCRAM, release reset,...) and then enable the A9 to boot on the SD in order to speed up the execution of M4 program.

    So can we boot automatically from this memory?
     
  6. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    We never did it. The only supported boot is from SD card. Then, from U-Boot, you can boot from anywhere you want.
    Please note U-Boot takes also care of initializing a lot of registers.
     
  7. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    The internal ROM can't be modified that is why is called ROM.

    A suggestion, to partially speed it up, why don't you include the M4 image inside uboot, providing its small enough. So that when uboot is built it includes the image and then get uboot to copy it OCRAM/DDR. You would have to roll your own code to do this inside uboot. You can also remove some of the peripheral initialisation code in uboot if you don't require them.
     
    graugans and Andrea Rovai like this.
  8. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    You could use a u-boot with SPL support and load the M4 Core like the Falcon mode for fast booting Linux. To get rid of mmc you may can connect a SPI flash. I am not sure if the required pins are exposed and boot mode can be influenced.

    Gesendet von meinem FP2 mit Tapatalk
     

Share This Page