Hi freescale:
I have a usb download issue about IMX6QP platform(android L5.1.1).
When I downloaded bootimg using fastboot. PC fastboot's results are both ok. But If usb interface is EHCI, kernel can bootup. If usb interface is XHCI, kernel can't bootup.It's very strange.
Bellowed log is PC's dmegs:
[ 1588.358598] usb 3-2: new high-speed USB device number 14 using xhci_hcd <<====kernel can't bootup
[ 1588.374842] usb 3-2: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 1588.375195] usb 3-2: New USB device found, idVendor=18d1, idProduct=0d02
[ 1588.375202] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1588.375207] usb 3-2: Product: USB download gadget
[ 1588.375212] usb 3-2: Manufacturer: FSL
[ 1588.375217] usb 3-2: SerialNumber: 4703339083809901242
[ 1592.195285] usb 3-2: USB disconnect, device number 14
[ 1601.012994] usb 1-1.2: new high-speed USB device number 20 using ehci-pci <===========kernel is ok
[ 1601.105475] usb 1-1.2: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 1601.105967] usb 1-1.2: New USB device found, idVendor=18d1, idProduct=0d02
[ 1601.105973] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1601.105979] usb 1-1.2: Product: USB download gadget
[ 1601.105984] usb 1-1.2: Manufacturer: FSL
[ 1601.105989] usb 1-1.2: SerialNumber: 4703339083809901242
U-Boot 2015.04-14410-g952ccc3-dirty (May 10 2016 - 14:07:34)
CPU: Freescale i.MX6QP rev1.0 at 792 MHz
CPU: Temperature 45 C
Reset cause: POR
Board: MX6-Asteroid
I2C: ready
DRAM: 2 GiB
PMIC: PFUZE100 ID=0x10
pmic init
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
In: serial
Out: serial
Err: serial
--dev_no:1
unsupported boot devices
check_and_clean: reg 0, flag_set 0
Fastboot: Normal
flash target is MMC:1
ptn 0 name='mbr' start=0 len=1
ptn 1 name='bootloader_nor' start=0 len=524288
ptn 2 name='kernel_nor' start=262144 len=3670016
ptn 3 name='recovery_nor' start=3932160 len=4194304
ptn 4 name='burn_nor' start=0 len=8388608
ptn 5 name='bootloader' start=2 len=510
ptn 6 name='kernel' start=2048 len=10240
ptn 7 name='uramdisk' start=12288 len=2048
ptn 8 name='kernelb' start=14336 len=10240
ptn 9 name='uramdiskb' start=24576 len=2048
ptn 10 name='testsuitdisk' start=26624 len=4096
ptn 11 name='params' start=30720 len=2048
ptn 12 name='reserved' start=32768 len=8192
ptn 13 name='boot' start=40960 len=4874240
ptn 14 name='system' start=4915200 len=2097152
ptn 15 name='recovery' start=7012352 len=40960
ptn 16 name='data' start=7053313 len=1048575
ptn 17 name='cache' start=8101889 len=262143
ptn 18 name='keyinfo' start=8364033 len=3137535
ptn 19 name='private' start=11501569 len=1048575
ptn 20 name='systemb' start=12550145 len=2097151
ptn 21 name='recoveryb' start=14647297 len=40959
ptn 22 name='testsuit' start=14688257 len=204799
ptn 23 name='map' start=14893057 len=107126783
Net: Board Net Initialization Failed
No ethernet found.
Normal Boot
Hit any key to stop autoboot: 0
boota mmc1
ptn 0 name='mbr' start=0 len=1
ptn 1 name='bootloader_nor' start=0 len=524288
ptn 2 name='kernel_nor' start=262144 len=3670016
ptn 3 name='recovery_nor' start=3932160 len=4194304
ptn 4 name='burn_nor' start=0 len=8388608
ptn 5 name='bootloader' start=2 len=510
ptn 6 name='kernel' start=2048 len=10240
ptn 7 name='uramdisk' start=12288 len=2048
ptn 8 name='kernelb' start=14336 len=10240
ptn 9 name='uramdiskb' start=24576 len=2048
ptn 10 name='testsuitdisk' start=26624 len=4096
ptn 11 name='params' start=30720 len=2048
ptn 12 name='reserved' start=32768 len=8192
ptn 13 name='boot' start=40960 len=4874240
ptn 14 name='system' start=4915200 len=2097152
ptn 15 name='recovery' start=7012352 len=40960
ptn 16 name='data' start=7053313 len=1048575
ptn 17 name='cache' start=8101889 len=262143
ptn 18 name='keyinfo' start=8364033 len=3137535
ptn 19 name='private' start=11501569 len=1048575
ptn 20 name='systemb' start=12550145 len=2097151
ptn 21 name='recoveryb' start=14647297 len=40959
ptn 22 name='testsuit' start=14688257 len=204799
ptn 23 name='map' start=14893057 len=107126783
kernel @ 14008000 (7274432)
ramdisk @ 15000000 (867690)
fdt @ 14f00000 (42667)
## Booting Android Image at 0x12000000 ...
Kernel load addr 0x14008000 size 7104 KiB
Kernel command line: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled
## Flattened Device Tree blob at 14f00000
Booting using the fdt blob at 0x14f00000
Loading Kernel Image ... OK
Using Device Tree in place at 14f00000, end 14f0d6aa
Starting kernel ...
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.14.52-141250-ge6729e0 (qg@qg-ThinkPad-Edge-E430c) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #6 SMP PREEMPT Wed May 11 06:48:17 CST 2016
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 Quad Plus SABRE Smart Device Board
cma: CMA: reserved 384 MiB at 26000000
Memory policy: Data cache writealloc
=============================This log is ok==========================
U-Boot 2015.04-14410-g952ccc3-dirty (May 10 2016 - 14:07:34)
CPU: Freescale i.MX6QP rev1.0 at 792 MHz
CPU: Temperature 45 C
Reset cause: POR
Board: MX6-Asteroid
I2C: ready
DRAM: 2 GiB
PMIC: PFUZE100 ID=0x10
pmic init
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
In: serial
Out: serial
Err: serial
--dev_no:1
unsupported boot devices
check_and_clean: reg 0, flag_set 0
Fastboot: Normal
flash target is MMC:1
ptn 0 name='mbr' start=0 len=1
ptn 1 name='bootloader_nor' start=0 len=524288
ptn 2 name='kernel_nor' start=262144 len=3670016
ptn 3 name='recovery_nor' start=3932160 len=4194304
ptn 4 name='burn_nor' start=0 len=8388608
ptn 5 name='bootloader' start=2 len=510
ptn 6 name='kernel' start=2048 len=10240
ptn 7 name='uramdisk' start=12288 len=2048
ptn 8 name='kernelb' start=14336 len=10240
ptn 9 name='uramdiskb' start=24576 len=2048
ptn 10 name='testsuitdisk' start=26624 len=4096
ptn 11 name='params' start=30720 len=2048
ptn 12 name='reserved' start=32768 len=8192
ptn 13 name='boot' start=40960 len=4874240
ptn 14 name='system' start=4915200 len=2097152
ptn 15 name='recovery' start=7012352 len=40960
ptn 16 name='data' start=7053313 len=1048575
ptn 17 name='cache' start=8101889 len=262143
ptn 18 name='keyinfo' start=8364033 len=3137535
ptn 19 name='private' start=11501569 len=1048575
ptn 20 name='systemb' start=12550145 len=2097151
ptn 21 name='recoveryb' start=14647297 len=40959
ptn 22 name='testsuit' start=14688257 len=204799
ptn 23 name='map' start=14893057 len=107126783
Net: Board Net Initialization Failed
No ethernet found.
Normal Boot
Hit any key to stop autoboot: 0
boota mmc1
ptn 0 name='mbr' start=0 len=1
ptn 1 name='bootloader_nor' start=0 len=524288
ptn 2 name='kernel_nor' start=262144 len=3670016
ptn 3 name='recovery_nor' start=3932160 len=4194304
ptn 4 name='burn_nor' start=0 len=8388608
ptn 5 name='bootloader' start=2 len=510
ptn 6 name='kernel' start=2048 len=10240
ptn 7 name='uramdisk' start=12288 len=2048
ptn 8 name='kernelb' start=14336 len=10240
ptn 9 name='uramdiskb' start=24576 len=2048
ptn 10 name='testsuitdisk' start=26624 len=4096
ptn 11 name='params' start=30720 len=2048
ptn 12 name='reserved' start=32768 len=8192
ptn 13 name='boot' start=40960 len=4874240
ptn 14 name='system' start=4915200 len=2097152
ptn 15 name='recovery' start=7012352 len=40960
ptn 16 name='data' start=7053313 len=1048575
ptn 17 name='cache' start=8101889 len=262143
ptn 18 name='keyinfo' start=8364033 len=3137535
ptn 19 name='private' start=11501569 len=1048575
ptn 20 name='systemb' start=12550145 len=2097151
ptn 21 name='recoveryb' start=14647297 len=40959
ptn 22 name='testsuit' start=14688257 len=204799
ptn 23 name='map' start=14893057 len=107126783
kernel @ 14008000 (7274432)
ramdisk @ 15000000 (867690)
fdt @ 14f00000 (42667)
## Booting Android Image at 0x12000000 ...
Kernel load addr 0x14008000 size 7104 KiB
Kernel command line: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled
## Flattened Device Tree blob at 14f00000
Booting using the fdt blob at 0x14f00000
Loading Kernel Image ... OK
Using Device Tree in place at 14f00000, end 14f0d6aa
Starting kernel ...
===============this kernel is hang