Announcement

Collapse
No announcement yet.

Force boot from SD card

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • robertferanec
    replied
    BCVegas you can find a lot of information about "How to ..." on our iMX6 Rex website :
    https://www.imx6rex.com/open-rex/openrex-content/

    Programming fuses:
    https://www.imx6rex.com/open-rex/sof...-fuse-command/

    Leave a comment:


  • BCVegas
    replied
    Hi Robert. Thanks for your feedback. We have the SPI programmed with the Uboot, but we don't have the ability to program the fuses. Is there some way we can force the board to boot from SPI flash?

    Leave a comment:


  • robertferanec
    replied
    It depends ... if I remember right, one is with offset and the other one not (if you open the files in hex editor, you should see there difference where they start). So it depends how you are writing the file into the CPU or FLASH.

    This may help: https://www.imx6rex.com/open-rex/sof...ot_empty_board

    Leave a comment:


  • BCVegas
    replied
    What is the correct Uboot file for the OpenRex board? The software section has a .bin file and a .imx file.

    The .bin file is titled OpenRex_u-boot_2GB.bin

    The .imx file is titled u-boot-imx6s-openrex_22-MAR-2016.imx

    Leave a comment:


  • robertferanec
    replied
    Unfortunately our first custom board doesn't have OTG USB, but we should still be able to boot uboot from SD card and bring the board up, is that correct ?
    It depends what are your fuse / boot option settings and if / how you can change them.

    Leave a comment:


  • surfbytes
    commented on 's reply
    Thanks for your quick response.
    Unfortunately our first custom board doesn't have OTG USB, but we should still be able to boot uboot from SD card and bring the board up, is that correct ?

  • robertferanec
    replied
    You really would like to have OTG USB flashing option available on your board.

    PS: You could flash SPI before it is fitted on the board. Also, you can for example boot uBoot from SD card (if that is possible) and flash SPI. It all depends how your board is designed.

    Leave a comment:


  • surfbytes
    commented on 's reply
    Hello,
    I have the same question, so just to clarify ..
    OpenRex boots from SPI flash so there must be some code in SPI flash (uboot) to boot, correct ?

    And, for fresh boards with blank SPI flash, code must be uploaded to SPI flash, correct ?

    If all true, is OTG USB the only way to upload code to SPI flash or is there another method ?
    If true, then my custom board MUST have OTG USB installed, correct ?

    Thanks,

    -Randy

  • robertferanec
    replied
    Is there any other way to program the SPI Flash memory on an OpenRex board beside through the USB OTG port?
    - I do not remember exactly (it was long time ago), but I believe you can program SPI from uBoot.

    Leave a comment:


  • BCVegas
    commented on 's reply
    Thanks, Robert. I have an additional question. Is there any other way to program the SPI Flash memory on an OpenRex board beside through the USB OTG port?

  • robertferanec
    replied
    If you are using iMX6, and you would like to test booting from SD card, this may help: https://www.imx6rex.com/open-rex/sof...with-software/

    Especially the text at the end of the page:

    Testing uBoot (optional)
    OpenRex always starts booting from SPI. If you would like to test the uBoot on SD card, go to uBoot and run following commands:
    Code:
    mw.l 0x020d8040 0x2840; mw.l 0x020d8044 0x10000000; reset

    Leave a comment:


  • BCVegas
    started a topic Force boot from SD card

    Force boot from SD card

    Greetings. Is there any way to force an unprogrammed board to boot from the SD card? I have a blank SPI Flash device and default fuses on the processor.
Working...
X