README 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. BTicino Mamoj board:
  2. ===================
  3. Build:
  4. $ make mrproper
  5. $ make imx6dl_mamoj_defconfig
  6. $ make
  7. This will generate the SPL image called SPL and the u-boot-dtb.img.
  8. The following methods can be used for booting Mamoj boards:
  9. 1. USB SDP boot
  10. 2. eMMC boot (via DFU)
  11. 3. Falcon mode
  12. 1. USB SDP boot:
  13. ---------------
  14. - Build imx_usb_loader
  15. $ git clone git://github.com/boundarydevices/imx_usb_loader.git
  16. $ cd imx_usb_loader
  17. $ make
  18. - Build the BSP and copy SPL, u-boot-dtb.img in imx_usb_loader directory
  19. - Put the board in "Serial Download Mode"
  20. - Plug-in USB-to-Serial, Open minicom 1152008N1 and USB OTG cables to Host
  21. - Turn-on board
  22. - Identify VID/PID using lsusb
  23. Bus 001 Device 010: ID 15a2:0061 Freescale Semiconductor, Inc. i.MX 6Solo/6DualLite SystemOnChip in RecoveryMode
  24. - Update the conf files
  25. imx_usb.conf
  26. 0x15a2:0x0061, mx6_usb_rom.conf, 0x0525:0xb4a4, mx6_usb_sdp_spl.conf
  27. mx6_usb_rom.conf
  28. mx6_usb
  29. hid,1024,0x910000,0x10000000,512M,0x00900000,0x40000
  30. SPL:jump header2
  31. mx6_usb_sdp_spl.conf
  32. mx6_spl_sdp
  33. hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
  34. u-boot-dtb.img:jump header2
  35. - Launch the loader
  36. $ ./imx_usb
  37. We can see U-Boot boot from USB SDP on minicom
  38. 2. eMMC boot via DFU:
  39. --------------------
  40. Once booted from USB SDP, program the eMMC as below(make sure to connect USB OTG)
  41. - Change eMMC partition config
  42. => mmc partconf 2 1 0 0
  43. - Partition eMMC on host
  44. => ums 0 mmc 2
  45. Host will able to detect the eMMC disk as UMS, partition the same.
  46. - Program SPL
  47. => setenv dfu_alt_info $dfu_alt_info_spl
  48. => dfu 0 mmc 2
  49. At Host
  50. # dfu-util -D SPL -a spl
  51. - Program u-boot-dtb.img
  52. => setenv dfu_alt_info $dfu_alt_info_uboot
  53. => dfu 0 mmc 2
  54. At Host
  55. # dfu-util -D u-boot-dtb.img -a u-boot
  56. Poweroff and Poweron the board and see U-Boot booting from eMMC.
  57. 3. Falcon mode:
  58. --------------
  59. - Skip 10M space and create dual partitions for eMMC, start sector is 20480
  60. Partition Map for MMC device 2 -- Partition Type: DOS
  61. Part Start Sector Num Sectors UUID Type
  62. 1 20480 131072 c52e78be-01 83
  63. 2 151552 7581696 c52e78be-02 83
  64. - Write uImage
  65. => fatload mmc 2:1 $kernel_addr_r uImage
  66. => mmc write $kernel_addr_r 0x1000 0x4000
  67. - Write dtb and args
  68. => setenv bootargs console=ttymxc2,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw quiet
  69. => fatload mmc 2:1 $fdt_addr_r imx6dl-mamoj.dtb
  70. => spl export fdt $kernel_addr_r - $fdt_addr_r
  71. => mmc write 0x13000000 0x800 0x800
  72. Poweroff and Poweron the board and see Linux booting directly after SPL.
  73. --
  74. Jagan Teki <jagan@amarulasolutions.com>
  75. 03/12/18