7 $ make imx6dl_mamoj_defconfig
10 This will generate the SPL image called SPL and the u-boot-dtb.img.
12 The following methods can be used for booting Mamoj boards:
16 2. eMMC boot (via DFU)
23 - Build imx_usb_loader
25 $ git clone git://github.com/boundarydevices/imx_usb_loader.git
29 - Build the BSP and copy SPL, u-boot-dtb.img in imx_usb_loader directory
31 - Put the board in "Serial Download Mode"
33 - Plug-in USB-to-Serial, Open minicom 1152008N1 and USB OTG cables to Host
37 - Identify VID/PID using lsusb
39 Bus 001 Device 010: ID 15a2:0061 Freescale Semiconductor, Inc. i.MX 6Solo/6DualLite SystemOnChip in RecoveryMode
41 - Update the conf files
44 0x15a2:0x0061, mx6_usb_rom.conf, 0x0525:0xb4a4, mx6_usb_sdp_spl.conf
48 hid,1024,0x910000,0x10000000,512M,0x00900000,0x40000
53 hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
54 u-boot-dtb.img:jump header2
60 We can see U-Boot boot from USB SDP on minicom
65 Once booted from USB SDP, program the eMMC as below(make sure to connect USB OTG)
67 - Change eMMC partition config
69 => mmc partconf 2 1 0 0
71 - Partition eMMC on host
75 Host will able to detect the eMMC disk as UMS, partition the same.
79 => setenv dfu_alt_info $dfu_alt_info_spl
84 # dfu-util -D SPL -a spl
86 - Program u-boot-dtb.img
88 => setenv dfu_alt_info $dfu_alt_info_uboot
93 # dfu-util -D u-boot-dtb.img -a u-boot
95 Poweroff and Poweron the board and see U-Boot booting from eMMC.
100 - Skip 10M space and create dual partitions for eMMC, start sector is 20480
102 Partition Map for MMC device 2 -- Partition Type: DOS
104 Part Start Sector Num Sectors UUID Type
105 1 20480 131072 c52e78be-01 83
106 2 151552 7581696 c52e78be-02 83
110 => fatload mmc 2:1 $kernel_addr_r uImage
111 => mmc write $kernel_addr_r 0x1000 0x4000
115 => setenv bootargs console=ttymxc2,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw quiet
116 => fatload mmc 2:1 $fdt_addr_r imx6dl-mamoj.dtb
117 => spl export fdt $kernel_addr_r - $fdt_addr_r
118 => mmc write 0x13000000 0x800 0x800
120 Poweroff and Poweron the board and see Linux booting directly after SPL.
123 Jagan Teki <jagan@amarulasolutions.com>