Hello!
I download uboot from git://git.freescale.com/imx/uboot-imx.git accroding to document "Android user's guide"(rev:M6.0.1_2.1.0),and porting it accroding to "BSP porting guide" based on sabresd.
Now i have a problem: transfer stop in fastboot mode.
log as below:
U-Boot 2015.04-dirty (Sep 18 2018 - 16:34:40)
CPU: Freescale i.MX6QP rev1.0 at 792 MHz
CPU: Temperature 37 C
Reset cause: WDOG
Board: MX6QP
I2C:ready
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment
Fastboot: Normal
flash target is MMC:1
Normal Boot
Hit any key to stop autoboot: 1
=> fastboot
ptn 0 name='mbr' start=0 len=1
ptn 1 name='bootloader_nor' start=1024 len=524288
ptn 2 name='kernel_nor' start=524288 len=7536640
ptn 3 name='recovery_nor' start=8060928 len=65536
ptn 4 name='burn_nor' start=0 len=8388608
ptn 5 name='boot' start=2048 len=20480
ptn 6 name='sdcard' start=40960 len=20480
ptn 7 name='system' start=63488 len=5242880
ptn 8 name='recovery' start=5306368 len=40960
ptn 9 name='data' start=5349376 len=11468800
ptn 10 name='cache' start=16820224 len=262144
ptn 11 name='private' start=17084416 len=1048576
ptn 12 name='resc' start=18135040 len=1048576
ptn 13 name='bootb' start=19185664 len=40960
ptn 14 name='recoveryb' start=19228672 len=40960
ptn 15 name='systemb' start=19271680 len=5242880
ptn 16 name='map' start=24516608 len=36450304
Starting download of 1293389240 bytes
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
....................................
no error report,not exit ,just stop transfer data. No error report in PC.
Anybody can help me?
Thanks!
My mistake!
We use EIM_D22 pin as ECSPI4_MISO in our board,which is not fit the sabresd board. So I mask USB code, which cause this problem.
Error port:
static iomux_v3_cfg_t const usb_otg_pads[] = {
/* Disable usb power control
*/
// MX6_PAD_EIM_D22__USB_OTG_PWR | MUX_PAD_CTRL(NO_PAD_CTRL),
// MX6_PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL),
};
static iomux_v3_cfg_t const usb_hc1_pads[] = {
/* Disable usb power control
*/
// MX6_PAD_ENET_TXD1__GPIO1_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
static void setup_usb(void)
{
/* Disable usb power control
*/
// imx_iomux_v3_setup_multiple_pads(usb_otg_pads,
// ARRAY_SIZE(usb_otg_pads));
//
// /*
// * set daisy chain for otg_pin_id on 6q.
// * for 6dl, this bit is reserved
// */
// imx_iomux_set_gpr_register(1, 13, 1, 0);
//
// imx_iomux_v3_setup_multiple_pads(usb_hc1_pads,
// ARRAY_SIZE(usb_hc1_pads));
}
Correct port:
static iomux_v3_cfg_t const usb_otg_pads[] = {
/* Disable usb power control
*/
// MX6_PAD_EIM_D22__USB_OTG_PWR | MUX_PAD_CTRL(NO_PAD_CTRL),
MX6_PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL),
};
static iomux_v3_cfg_t const usb_hc1_pads[] = {
MX6_PAD_ENET_TXD1__GPIO1_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
static void setup_usb(void)
{
imx_iomux_v3_setup_multiple_pads(usb_otg_pads,
ARRAY_SIZE(usb_otg_pads));
/*
* set daisy chain for otg_pin_id on 6q.
* for 6dl, this bit is reserved
*/
imx_iomux_set_gpr_register(1, 13, 1, 0);
imx_iomux_v3_setup_multiple_pads(usb_hc1_pads,
ARRAY_SIZE(usb_hc1_pads));
}
Hi min,
Its difficult to see which is the error, So please check:
https://community.nxp.com/thread/448862
Regards