完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 一只耳朵怪 于 2018-6-5 09:35 编辑
使用sdk8.0,u***1配置为host接口,下边接hub芯片。遇到的问题是,在系统启动之前插U盘可以识别,启动后,拔掉U盘有打印信息,但是再插上就没有反应了。使用fdisk -l命令查看无U盘信息。 背景:同一块板子,使用之前的4.6的sdk一切正常。所以可以排除硬件问题。 能否给个调试思路?? linux启动部分log信息如下: [ 2.374847] rtc-pcf8563 2-0051: setting system clock to 2015-03-20 11:18:33 UTC (1426850313)[ 2.386963] ALSA device list:[ 2.390099] No soundcards found.[ 2.572839] u*** 2-1: new high-speed USB device number 2 using mu***-hdrc[ 2.653262] kjournald starting. Commit interval 5 seconds[ 2.666801] EXT3-fs (mmcblk0p2): using internal journal[ 2.679779] EXT3-fs (mmcblk0p2): recovery complete[ 2.684925] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode[ 2.692327] VFS: Mounted root (ext3 filesystem) on device 179:2.[ 2.702766] devtmpfs: mounted[ 2.707038] Freeing unused kernel memory: 268K (c07ca000 - c080d000)[ 2.714160] u*** 2-1: New USB device found, idVendor=0424, idProduct=2514[ 2.721299] u*** 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0[ 2.735521] hub 2-1:1.0: USB hub found[ 2.740565] hub 2-1:1.0: 4 ports detectedINIT: version 2.88 booting[ 3.022684] u*** 2-1.3: new high-speed USB device number 3 using mu***-hdrc[ 3.143382] u*** 2-1.3: New USB device found, idVendor=0781, idProduct=5567[ 3.150715] u*** 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 3.158465] u*** 2-1.3: Product: Cruzer Blade[ 3.162997] u*** 2-1.3: Manufacturer: SanDisk[ 3.167496] u*** 2-1.3: SerialNumber: 20044317430CE4D08886[ 3.185146] u***-storage 2-1.3:1.0: USB Mass Storage device detected[ 3.203437] scsi0 : u***-storage 2-1.3:1.0Starting udev[ 3.373951] udev[944]: starting version 164[ 3.620705] remoteproc0: failed to load am335x-pm-firmware.elf[ 3.627025] remoteproc0: powering up wkup_m3[ 3.631622] remoteproc0: Direct firmware load failed with error -2[ 3.638183] remoteproc0: Falling back to user helper[ 4.204429] scsi 0:0:0:0: Direct-Access SanDisk Cruzer Blade 1.26 PQ: 0 ANSI: 6[ 4.314675] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)[ 4.328993] sd 0:0:0:0: Attached scsi generic sg0 type 0[ 4.389663] sd 0:0:0:0: [sda] Write Protect is off[ 4.446534] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA[ 4.688173] remoteproc0: request_firmware failed: -2[ 4.693608] wkup_m3 44d00000.wkup_m3: rproc_boot failed[ 4.753132] sda: sda1[ 4.895792] sd 0:0:0:0: [sda] Attached SCSI disk[ 6.459825] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.[ 6.556499] random: nonblocking pool is initialized[ 6.668975] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. |
|
相关推荐
12个回答
|
|
重新测试插拔,并使用dmesg | grep USB,把log信息贴上来。
|
|
|
|
首先感谢您的回复,下面是log信息,第二次dmesg | grep u*** 已做过热插拔 root@am335x-evm:~# dmesg | grep u***[ 0.246882] u***core: registered new interface driver u***fs[ 0.247081] u***core: registered new interface driver hub[ 0.247283] u***core: registered new device driver u***[ 1.204842] u***core: registered new interface driver asix[ 1.210757] u***core: registered new interface driver ax88179_178a[ 1.217351] u***core: registered new interface driver cdc_ether[ 1.223698] u***core: registered new interface driver smsc95xx[ 1.229915] u***core: registered new interface driver net1080[ 1.236025] u***core: registered new interface driver cdc_subset[ 1.242422] u***core: registered new interface driver zaurus[ 1.248501] u***core: registered new interface driver cdc_ncm[ 1.295644] u***core: registered new interface driver cdc_wdm[ 1.301802] u***core: registered new interface driver u***-storage[ 1.310389] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/u***@47400000/u***-phy@47401300[0]'[ 1.310459] 47401300.u***-phy supply vcc not found, using dummy regulator[ 1.320264] mu***-hdrc mu***-hdrc.0.auto: Failed to request rx1.[ 1.326590] mu***-hdrc mu***-hdrc.0.auto: mu***_init_controller failed with status -517[ 1.334804] platform mu***-hdrc.0.auto: Driver mu***-hdrc requests probe deferral[ 1.343210] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/u***@47400000/u***-phy@47401b00[0]'[ 1.343263] 47401b00.u***-phy supply vcc not found, using dummy regulator[ 1.352902] mu***-hdrc mu***-hdrc.1.auto: Failed to request rx1.[ 1.359199] mu***-hdrc mu***-hdrc.1.auto: mu***_init_controller failed with status -517[ 1.367397] platform mu***-hdrc.1.auto: Driver mu***-hdrc requests probe deferral[ 1.484349] u***core: registered new interface driver u***hid[ 1.490216] u***hid: USB HID core driver[ 2.093981] mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)[ 2.093999] mu***-hdrc: MHDRC RTL version 2.0 [ 2.094008] mu***-hdrc: setup fifo_mode 4[ 2.094025] mu***-hdrc: 28/31 max ep, 16384/16384 memory[ 2.094134] mu***-hdrc mu***-hdrc.0.auto: MUSB HDRC host driver[ 2.100680] mu***-hdrc mu***-hdrc.0.auto: new USB bus registered, assigned bus number 1[ 2.109207] u*** u***1: New USB device found, idVendor=1d6b, idProduct=0002[ 2.116373] u*** u***1: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.123981] u*** u***1: Product: MUSB HDRC host driver[ 2.129200] u*** u***1: Manufacturer: Linux 3.14.26 mu***-hcd[ 2.134977] u*** u***1: SerialNumber: mu***-hdrc.0.auto[ 2.153815] mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)[ 2.153834] mu***-hdrc: MHDRC RTL version 2.0 [ 2.153842] mu***-hdrc: setup fifo_mode 4[ 2.153858] mu***-hdrc: 28/31 max ep, 16384/16384 memory[ 2.153984] mu***-hdrc mu***-hdrc.1.auto: MUSB HDRC host driver[ 2.160500] mu***-hdrc mu***-hdrc.1.auto: new USB bus registered, assigned bus number 2[ 2.168995] u*** u***2: New USB device found, idVendor=1d6b, idProduct=0002[ 2.176161] u*** u***2: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.183762] u*** u***2: Product: MUSB HDRC host driver[ 2.188983] u*** u***2: Manufacturer: Linux 3.14.26 mu***-hcd[ 2.194757] u*** u***2: SerialNumber: mu***-hdrc.1.auto[ 2.623602] u*** 2-1: new high-speed USB device number 2 using mu***-hdrc[ 2.763701] u*** 2-1: New USB device found, idVendor=0424, idProduct=2514[ 2.770776] u*** 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0[ 3.063598] u*** 2-1.3: new high-speed USB device number 3 using mu***-hdrc[ 3.184171] u*** 2-1.3: New USB device found, idVendor=0781, idProduct=5567[ 3.191429] u*** 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 3.199162] u*** 2-1.3: Product: Cruzer Blade[ 3.203707] u*** 2-1.3: Manufacturer: SanDisk[ 3.208215] u*** 2-1.3: SerialNumber: 20044317430CE4D08886[ 3.216514] u***-storage 2-1.3:1.0: USB Mass Storage device detected[ 3.224088] scsi0 : u***-storage 2-1.3:1.0root@am335x-evm:~# dfFilesystem 1K-blocks Used Available Use% Mounted on/dev/root 7372044 655836 6335068 9% /devtmpfs 112128 4 112124 0% /devtmpfs 124552 188 124364 0% /runtmpfs 16384 328 16056 2% /var/volatile/dev/mmcblk0p1 71133 4697 66436 7% /run/media/mmcblk0p1/dev/sda1 7800304 2143340 5656964 27% /run/media/sda1root@am335x-evm:~# [ 71.336305] u*** 2-1.3: USB disconnect, device number 3root@am335x-evm:~# dmesg | grep u***[ 0.246882] u***core: registered new interface driver u***fs[ 0.247081] u***core: registered new interface driver hub[ 0.247283] u***core: registered new device driver u***[ 1.204842] u***core: registered new interface driver asix[ 1.210757] u***core: registered new interface driver ax88179_178a[ 1.217351] u***core: registered new interface driver cdc_ether[ 1.223698] u***core: registered new interface driver smsc95xx[ 1.229915] u***core: registered new interface driver net1080[ 1.236025] u***core: registered new interface driver cdc_subset[ 1.242422] u***core: registered new interface driver zaurus[ 1.248501] u***core: registered new interface driver cdc_ncm[ 1.295644] u***core: registered new interface driver cdc_wdm[ 1.301802] u***core: registered new interface driver u***-storage[ 1.310389] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/u***@47400000/u***-phy@47401300[0]'[ 1.310459] 47401300.u***-phy supply vcc not found, using dummy regulator[ 1.320264] mu***-hdrc mu***-hdrc.0.auto: Failed to request rx1.[ 1.326590] mu***-hdrc mu***-hdrc.0.auto: mu***_init_controller failed with status -517[ 1.334804] platform mu***-hdrc.0.auto: Driver mu***-hdrc requests probe deferral[ 1.343210] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/u***@47400000/u***-phy@47401b00[0]'[ 1.343263] 47401b00.u***-phy supply vcc not found, using dummy regulator[ 1.352902] mu***-hdrc mu***-hdrc.1.auto: Failed to request rx1.[ 1.359199] mu***-hdrc mu***-hdrc.1.auto: mu***_init_controller failed with status -517[ 1.367397] platform mu***-hdrc.1.auto: Driver mu***-hdrc requests probe deferral[ 1.484349] u***core: registered new interface driver u***hid[ 1.490216] u***hid: USB HID core driver[ 2.093981] mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)[ 2.093999] mu***-hdrc: MHDRC RTL version 2.0 [ 2.094008] mu***-hdrc: setup fifo_mode 4[ 2.094025] mu***-hdrc: 28/31 max ep, 16384/16384 memory[ 2.094134] mu***-hdrc mu***-hdrc.0.auto: MUSB HDRC host driver[ 2.100680] mu***-hdrc mu***-hdrc.0.auto: new USB bus registered, assigned bus number 1[ 2.109207] u*** u***1: New USB device found, idVendor=1d6b, idProduct=0002[ 2.116373] u*** u***1: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.123981] u*** u***1: Product: MUSB HDRC host driver[ 2.129200] u*** u***1: Manufacturer: Linux 3.14.26 mu***-hcd[ 2.134977] u*** u***1: SerialNumber: mu***-hdrc.0.auto[ 2.153815] mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)[ 2.153834] mu***-hdrc: MHDRC RTL version 2.0 [ 2.153842] mu***-hdrc: setup fifo_mode 4[ 2.153858] mu***-hdrc: 28/31 max ep, 16384/16384 memory[ 2.153984] mu***-hdrc mu***-hdrc.1.auto: MUSB HDRC host driver[ 2.160500] mu***-hdrc mu***-hdrc.1.auto: new USB bus registered, assigned bus number 2[ 2.168995] u*** u***2: New USB device found, idVendor=1d6b, idProduct=0002[ 2.176161] u*** u***2: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.183762] u*** u***2: Product: MUSB HDRC host driver[ 2.188983] u*** u***2: Manufacturer: Linux 3.14.26 mu***-hcd[ 2.194757] u*** u***2: SerialNumber: mu***-hdrc.1.auto[ 2.623602] u*** 2-1: new high-speed USB device number 2 using mu***-hdrc[ 2.763701] u*** 2-1: New USB device found, idVendor=0424, idProduct=2514[ 2.770776] u*** 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0[ 3.063598] u*** 2-1.3: new high-speed USB device number 3 using mu***-hdrc[ 3.184171] u*** 2-1.3: New USB device found, idVendor=0781, idProduct=5567[ 3.191429] u*** 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 3.199162] u*** 2-1.3: Product: Cruzer Blade[ 3.203707] u*** 2-1.3: Manufacturer: SanDisk[ 3.208215] u*** 2-1.3: SerialNumber: 20044317430CE4D08886[ 3.216514] u***-storage 2-1.3:1.0: USB Mass Storage device detected[ 3.224088] scsi0 : u***-storage 2-1.3:1.0[ 71.336305] u*** 2-1.3: USB disconnect, device number 3root@am335x-evm:~# |
|
|
|
另外这是我使用的dts,u***相关: &u*** [ status = "okay"; control@44e10620 [ status = "okay"; ]; u***-phy@47401300 [ status = "okay"; ]; u***-phy@47401b00 [ status = "okay"; ]; u***@47401000 [ status = "okay"; ]; u***@47401800 [ status = "okay"; dr_mode = "host"; ]; dma-controller@47402000 [ status = "okay"; ];];盼复 |
|
|
|
以下是板子的硬件电路原理图: 其中,DM与DP引脚连接到u***hub芯片端。另外未对u***驱动程序做任何改动。 |
|
|
|
这是USB的VBUS是直接连载系统5V供电上面,没有通过drvVBUS来做的吧,是的话有打过这个patch吗? diff --git a/arch/arm/mach-omap2/omap_phy_internal.c b/arch/arm/mach-omap2/omap_phy_internal.cindex 13bfef3..e41b224 100644--- a/arch/arm/mach-omap2/omap_phy_internal.c+++ b/arch/arm/mach-omap2/omap_phy_internal.c@@ -288,8 +288,17 @@ void ti81xx_mu***_phy_power(u8 id, u8 on , bool wkup) TI816X_USBPHY0_NORMAL_MODE; u***phycfg &= ~TI816X_USBPHY_REFCLK_OSC; ] else if (cpu_is_am33xx()) [- u***phycfg &= ~(USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN);- u***phycfg |= (USBPHY_OTGVDET_EN | USBPHY_OTGSESSEND_EN);+ u***phycfg &= ~(USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN | USBPHY_OTGVDET_EN);++ /* HACK: If USB0 port is in host-only mode, clear its+ * USBPHY_OTGVDET_EN bit to ignore first VBUS sensing.+ * Change 0 to 1 if USB1 port is in host-only mode.+ */+ if (id == 0)+ u***phycfg |= USBPHY_OTGSESSEND_EN;+ else+ u***phycfg |= (USBPHY_OTGVDET_EN | USBPHY_OTGSESSEND_EN);+ u***wkupctrl = AM33XX_USB_WKUP_CTRL_DISABLE; ] 来源:http://e2e.ti.com/support/arm/sitara_arm/f/791/p/333490/1163908 另外,这个帖子里面也有描述:http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/47199.aspx |
|
|
|
hwjj940056201 发表于 2018-6-4 04:18 您好,Steven Liu。sdk8.0中的/arch/arm/mach-omap2/omap_phy_internal.c 文件中与您给的patch包有些出入,具体 void ti81xx_mu***_phy_power函数如下: void ti81xx_mu***_phy_power(u8 on)[ void __iomem *scm_base = NULL; u32 u***phycfg; scm_base = ioremap(TI81XX_SCM_BASE, SZ_2K); if (!scm_base) [ pr_err("system control module ioremap failedn"); return; ] u***phycfg = __raw_readl(scm_base + USBCTRL0); if (on) [ if (cpu_is_ti816x()) [ u***phycfg |= TI816X_USBPHY0_NORMAL_MODE; u***phycfg &= ~TI816X_USBPHY_REFCLK_OSC; ] else if (cpu_is_ti814x()) [ u***phycfg &= ~(USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN | USBPHY_DPINPUT | USBPHY_DMINPUT); u***phycfg |= (USBPHY_OTGVDET_EN | USBPHY_OTGSESSEND_EN | USBPHY_DPOPBUFCTL | USBPHY_DMOPBUFCTL); ] ] else [ if (cpu_is_ti816x()) u***phycfg &= ~TI816X_USBPHY0_NORMAL_MODE; else if (cpu_is_ti814x()) u***phycfg |= USBPHY_CM_PWRDN | USBPHY_OTG_PWRDN; ] __raw_writel(u***phycfg, scm_base + USBCTRL0); iounmap(scm_base);] 想请教您一下有sdk8.0的patch包吗?万分感谢您的回复。 |
|
|
|
hwjj940056201 发表于 2018-6-4 04:18 刚才在官网上找到一个Sitara_Linux_SDK_MUSB_Issues 但是链接打不开。。。也不知是不是这个,能否给往出贴一下。实在是打不开,尝试了好多次,好长时间了。谢谢了。 |
|
|
|
tianyu5655 发表于 2018-6-4 04:34 在官网上找到了这个patch,但是我这边一直打不开,已经尝试了很多次,能否麻烦贴出来,万分感谢!!! |
|
|
|
你好!见附件。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
677 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
599 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1052 浏览 1 评论
736 浏览 0 评论
普中科技F28335开发板每次上电复位后数码管都会显示,如何熄灭它?
523 浏览 1 评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
160浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
125浏览 14评论
在使用3254进行录音的时候出现一个奇怪的现象,右声道有吱吱声,请教一下,是否是什么寄存器设置存在问题?
126浏览 13评论
TLV320芯片内部自带数字滤波功能,请问linein进来的模拟信号是否是先经过ADC的超采样?
122浏览 12评论
TPA6304-Q1: TPA6304 两片公用一组I2C的话,其中一片配置不成功怎么办
167浏览 10评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 05:28 , Processed in 0.745759 second(s), Total 68, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号