we have custom board which is designed same as iMX6SLEVK.
we compiled and flashed Android KItkat images to sdcard using Mfgtools successfully.
Now we want to flash Android KItkat images to eMMC .Part no of eMMC we used in our design is SDIN5C2-16G.
But sdcard is a 4-bit & eMMC is a 8-bit and uses same SDMMC2 interface .
In kernel../../board-mx6sl_common.h configured IOMUX pads as follows:
MX6SL_PAD_SD2_RST__USDHC2_RST, |
MX6SL_PAD_SD2_CLK__USDHC2_CLK_50MHZ,
MX6SL_PAD_SD2_CMD__USDHC2_CMD_50MHZ,
MX6SL_PAD_SD2_DAT0__USDHC2_DAT0_50MHZ,
MX6SL_PAD_SD2_DAT1__USDHC2_DAT1_50MHZ,
MX6SL_PAD_SD2_DAT2__USDHC2_DAT2_50MHZ,
MX6SL_PAD_SD2_DAT3__USDHC2_DAT3_50MHZ,
MX6SL_PAD_SD2_DAT4__USDHC2_DAT4_50MHZ,
MX6SL_PAD_SD2_DAT5__USDHC2_DAT5_50MHZ,
MX6SL_PAD_SD2_DAT6__USDHC2_DAT6_50MHZ,
MX6SL_PAD_SD2_DAT7__USDHC2_DAT7_50MHZ,
In the board initialization file, i.e. board-mx6sl_evk.c
static const struct esdhc_platform_data mx6_evk_sd2_data_emmc __initconst = {
.cd_type = ESDHC_CD_PERMANENT,
.always_present = 1,
.keep_power_at_suspend = 1,
.support_8bit = 1,
.delay_line = 0,
.support_18v = 1,
.platform_pad_change = plt_sd_pad_change,
};
In the main initialization function, i.e.,
static void __init mx6_evk_init(void)
{
...
...
..
imx6q_add_sdhci_usdhc_imx(1, &mx6_evk_sd2_data_emmc);
....
}
In myandroid/bootable/bootloader/uboot-imx/board/freescale/mx6sl_evk/mx6sl_evk.c configured the usdhc_pads as follows:
iomux_v3_cfg_t usdhc2_pads[] = {
/* boot SD */
MX6SL_PAD_SD2_RST__USDHC2_RST,
MX6SL_PAD_SD2_CLK__USDHC2_CLK,
MX6SL_PAD_SD2_CMD__USDHC2_CMD,
MX6SL_PAD_SD2_DAT0__USDHC2_DAT0,
MX6SL_PAD_SD2_DAT1__USDHC2_DAT1,
MX6SL_PAD_SD2_DAT2__USDHC2_DAT2,
MX6SL_PAD_SD2_DAT3__USDHC2_DAT3,
MX6SL_PAD_SD2_DAT4__USDHC2_DAT4,
MX6SL_PAD_SD2_DAT5__USDHC2_DAT5,
MX6SL_PAD_SD2_DAT6__USDHC2_DAT6,
MX6SL_PAD_SD2_DAT7__USDHC2_DAT7,
};
Compiled the Android images and copied to Mfgtool of Kitkat at partition level it is getting failed.
changed the DIP swiches as :
a.) Boot_mode0 : 1
Boot_mode1 : 0
b.) SW3[1:8] 01100000
SW4[1:8] 11001000
SW5[1:8] 00000000
for reference i attached cfg.ini and ucl2.xml file which i used in Mfgtools.
when kernel is booting i am unable to see the block devices.
1.)Is any changes required inside Mfgtools to flash images to eMMC?
2.)Any changes required in kernel/uboot/filesystem?
Original Attachment has been moved to: ucl2.xml.zip
Original Attachment has been moved to: cfg.ini.zip
Hello Jansi Rani,
Is the eMMC support added on your kernel? Have you tested it outside Manufacturing Tools?
You should be able to use the same Manufacturing Tools as for the i.MX6SL provided that the eMMC support is working. Since you are using 8-bit eMMC you would need to make sure that both the kernel and u-Boot do support 8-bit eMMC, which is the biggest difference between the i.MX6SL EVK and your custom board.
Regards,
Thanks for the reply,
Now i can able to flash images to eMMC using Mfgtools.