[U-Boot] getting usb working
Frank Wunderlich
frank-w at public-files.de
Wed Dec 19 14:08:34 UTC 2018
it seems that "Enable driver model for USB" (DM_USB) is needed for this...after enabling this i can build it, but uboot hangs after autoboot-message
CPU: MediaTek MT7623 E3
DRAM: 2 GiB
MMC: Loading Environment from MMC... board/mediatek/mt7623/mt7623_rfb.c:39 mmv
Boot From SD(id:1)
*** Warning - No MMC card found, using default environment
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
any thoughts?
after disabling usb (cli+driver), my env can be read from MMC (i had not selected usb-env) and bootcmd works as expected. seems initialization of usb breaks mmc-initialization and bootup
CPU: MediaTek MT7623 E3
DRAM: 2 GiB
MMC: mmc at 11230000: 0, mmc at 11240000: 1
Loading Environment from MMC... board/mediatek/mt7623/mt7623_rfb.c:39 mmc_get_ev
Boot From SD(id:1)
OK
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
Interface: MMC
Device 1: Vendor: Man 00001b Snr a42cb700 Rev: 7.8 Prod: 00000
Type: Removable Hard Disk
Capacity: 7788.0 MB = 7.6 GB (15949824 x 512)
Filesystem: FAT16 "BPI-BOOT "
Boot from SD
960 bytes read in 6 ms (156.3 KiB/s)
i guess the hang results in mmc-init (which seems to fail) and my bootcmd-chain
U-Boot> printenv bootcmd
bootcmd=setenv bootdelay 3; run reloadmenu;
U-Boot> printenv reloadmenu
reloadmenu=run selectmmc;if run checkenv; then run loadbootenv; else echo file not found; fi;bootmenu;
U-Boot> printenv selectmmc
selectmmc=if run checksd; then echo Boot from SD ; setenv partition 1:1;else echo Boot from eMMC; setenv partition 0:1 ; fi;
U-Boot> printenv checksd
checksd=fatinfo ${device} 1:1
U-Boot> printenv checkenv
checkenv=test -e ${device} ${partition} ${bpi}/${board}/${service}/${bootenv}
why does usb influence mmc-init? what else is needed to get USB working (DTS-nodes,driver,..)?
regards Frank
More information about the U-Boot
mailing list