README.mx6qsabrelite 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. U-Boot for the Freescale i.MX6q SabreLite board
  2. ===============================================
  3. This file contains information for the port of U-Boot to the Freescale
  4. i.MX6q SabreLite board.
  5. 1. Build
  6. --------
  7. To build U-Boot for the SabreLite board:
  8. make mx6qsabrelite_config
  9. make
  10. 2. Boot from SD card
  11. --------------------
  12. The SabreLite boards boot from the SPI NOR flash. These boards need their SPI
  13. to be reflashed with a small SD card loader to support boot from SD card. The
  14. board will still boot from SPI NOR, but the loader will in turn request the
  15. BootROM to load the U-Boot from SD card.
  16. The SD card loader is available from
  17. https://wiki.linaro.org/Boards/MX6QSabreLite
  18. This is provided under a open-source 3-clause BSD license.
  19. To following procedure can be used to update the SPI-NOR on the SabreLite
  20. board:
  21. 1. Write this SD card loader onto a large SD card using:
  22. sudo dd if=iMX6DQ_SPI_to_uSDHC3.bin of=/dev/sXx
  23. Note: Replace sXx with the device representing the SD card in your system.
  24. Note: This writes SD card loader at address 0
  25. 2. Put this SD card into the slot for the large SD card (SD3 on the bottom of
  26. the board). Make sure SW1 switch is at position "00", so that it can boot
  27. from the fuses.
  28. 3. Power-up the SabreLite, press 'space' to enter command mode in the U-Boot
  29. (the default one the board is shipped with, starting from the SPI NOR) and
  30. enter the following commands:
  31. MX6Q SABRELITE U-Boot > mmc dev 0
  32. MX6Q SABRELITE U-Boot > mmc read 0x10800000 0 200
  33. MX6Q SABRELITE U-Boot > sf probe
  34. MX6Q SABRELITE U-Boot > sf erase 0 0x40000
  35. MX6Q SABRELITE U-Boot > sf write 0x10800000 0 0x40000
  36. 4. Write the u-boot.imx produced during the U-Boot build to the SD card:
  37. sudo dd if=u-boot.imx of=/dev/sXx bs=512 seek=2 && sudo sync
  38. Note: Replace sXx with the device representing the SD card in your system.
  39. 5. Re-insert the SD card back in the slot for the large SD card and power-cycle
  40. the board.
  41. Note: The board now boots from full size SD3 on the bottom of the board. NOT
  42. the micro SD4/BOOT slot on the top of the board. I.e. you have to use
  43. full size SD cards.
  44. This information originally taken from:
  45. https://wiki.linaro.org/Boards/MX6QSabreLite
  46. 3. Boot from SPI NOR
  47. --------------------
  48. The SabreLite board can also boot U-Boot directly from the SPI NOR flash:
  49. 1. Power-up the SabreLite, press 'space' to enter command mode in the U-Boot
  50. and enter the following commands:
  51. => mmc dev 0
  52. => mmc read 0x10800000 0x400 0x80000
  53. => sf probe 0
  54. => sf erase 0 0xc0000
  55. => sf write 0x10800000 0x400 0x80000
  56. Note: This procedure assumes you have booted using the desired U-Boot from an
  57. SD card as prepared in the previous section. Alternative mechanisms, such
  58. as using tftpboot to copy an alternative U-Boot image into memory can
  59. also be used.
  60. 4. Recovering SPI-NOR
  61. ---------------------
  62. In case you somehow do not succeed with this procedure you can upload U-Boot
  63. via USB:
  64. 1. Download and install the imx_loader following the instructions provided:
  65. https://github.com/boundarydevices/imx_usb_loader
  66. 2. Connect the board to USB via the USB OTG port.
  67. 3. Make sure SW1 switch is at position "01", so that it can boot from USB OTG.
  68. 4. Power-up the SabreLite and run the imx_loader to upload the U-Boot image:
  69. sudo imx_usb u-boot.imx
  70. Note: This will upload and run the U-Boot image in memory, the SPI will not be
  71. reprogrammed and this procedure will need to be repeated if the board is
  72. reset.
  73. 5. Use one of previous descriptions to re-flash the SPI-NOR as required.
  74. 6. Ensure SW1 is returned to "00" to boot from the fuses once done.