Jagan Teki | 1494cc8 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 1 | BTicino Mamoj board: |
| 2 | =================== |
| 3 | |
| 4 | Build: |
| 5 | |
| 6 | $ make mrproper |
| 7 | $ make imx6dl_mamoj_defconfig |
| 8 | $ make |
| 9 | |
| 10 | This will generate the SPL image called SPL and the u-boot-dtb.img. |
| 11 | |
| 12 | The following methods can be used for booting Mamoj boards: |
| 13 | |
| 14 | 1. USB SDP boot |
| 15 | |
Jagan Teki | 129ceda | 2018-05-07 11:21:38 +0530 | [diff] [blame^] | 16 | 2. eMMC boot (via DFU) |
| 17 | |
Jagan Teki | 1494cc8 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 18 | 1. USB SDP boot: |
| 19 | --------------- |
| 20 | |
| 21 | - Build imx_usb_loader |
| 22 | |
| 23 | $ git clone git://github.com/boundarydevices/imx_usb_loader.git |
| 24 | $ cd imx_usb_loader |
| 25 | $ make |
| 26 | |
| 27 | - Build the BSP and copy SPL, u-boot-dtb.img in imx_usb_loader directory |
| 28 | |
| 29 | - Put the board in "Serial Download Mode" |
| 30 | |
| 31 | - Plug-in USB-to-Serial, Open minicom 1152008N1 and USB OTG cables to Host |
| 32 | |
| 33 | - Turn-on board |
| 34 | |
| 35 | - Identify VID/PID using lsusb |
| 36 | |
| 37 | Bus 001 Device 010: ID 15a2:0061 Freescale Semiconductor, Inc. i.MX 6Solo/6DualLite SystemOnChip in RecoveryMode |
| 38 | |
| 39 | - Update the conf files |
| 40 | |
| 41 | imx_usb.conf |
| 42 | 0x15a2:0x0061, mx6_usb_rom.conf, 0x0525:0xb4a4, mx6_usb_sdp_spl.conf |
| 43 | |
| 44 | mx6_usb_rom.conf |
| 45 | mx6_usb |
| 46 | hid,1024,0x910000,0x10000000,512M,0x00900000,0x40000 |
| 47 | SPL:jump header2 |
| 48 | |
| 49 | mx6_usb_sdp_spl.conf |
| 50 | mx6_spl_sdp |
| 51 | hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000 |
| 52 | u-boot-dtb.img:jump header2 |
| 53 | |
| 54 | - Launch the loader |
| 55 | |
| 56 | $ ./imx_usb |
| 57 | |
| 58 | We can see U-Boot boot from USB SDP on minicom |
| 59 | |
Jagan Teki | 129ceda | 2018-05-07 11:21:38 +0530 | [diff] [blame^] | 60 | 2. eMMC boot via DFU: |
| 61 | -------------------- |
| 62 | |
| 63 | Once booted from USB SDP, program the eMMC as below(make sure to connect USB OTG) |
| 64 | |
| 65 | - Change eMMC partition config |
| 66 | |
| 67 | => mmc partconf 2 1 0 0 |
| 68 | |
| 69 | - Partition eMMC on host |
| 70 | |
| 71 | => ums 0 mmc 2 |
| 72 | |
| 73 | Host will able to detect the eMMC disk as UMS, partition the same. |
| 74 | |
| 75 | - Program SPL |
| 76 | |
| 77 | => setenv dfu_alt_info $dfu_alt_info_spl |
| 78 | => dfu 0 mmc 2 |
| 79 | |
| 80 | At Host |
| 81 | |
| 82 | # dfu-util -D SPL -a spl |
| 83 | |
| 84 | - Program u-boot-dtb.img |
| 85 | |
| 86 | => setenv dfu_alt_info $dfu_alt_info_uboot |
| 87 | => dfu 0 mmc 2 |
| 88 | |
| 89 | At Host |
| 90 | |
| 91 | # dfu-util -D u-boot-dtb.img -a u-boot |
| 92 | |
| 93 | Poweroff and Poweron the board and see U-Boot booting from eMMC. |
| 94 | |
Jagan Teki | 1494cc8 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 95 | -- |
| 96 | Jagan Teki <jagan@amarulasolutions.com> |
| 97 | 03/12/18 |