您尚未登录。

楼主 # 2022-09-02 16:34:23

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

V3S的USB无法检测到设备

前提:
   -自制硬件
       -调试串口1
       -通讯串口2
       -FT5036电容触摸,用了TWI1,原串口0
   -u-boot
       -荔枝PI2017
       -修改过串口1的GPIO
   -内核
       -5.18.8版本


现象
   -不插入SD卡时,用USB线连接电脑,电脑能识别到主板
   -插入SD卡,正常启动登陆之后。插入U盘,没弹任何信息,/dev里面也找不到sdb等

问题:
   -能否确认USB硬件已经没问题,原因是连接PC是正常的
   -如何配置menuconfig


PS 启动log:


[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.18.8 (root@ubuntu) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #22 SMP Fri Sep 2 01:46:12 PDT 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x43000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000] percpu: Embedded 11 pages/cpu s15380 r8192 d21484 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS1,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] Unknown kernel command line parameters "earlyprintk", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 34968K/65536K available (8192K kernel code, 914K rwdata, 2072K rodata, 1024K init, 242K bss, 14184K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000022] Switching to timer-based delay loop, resolution 41ns
[    0.000266] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000701] Console: colour dummy device 80x30
[    0.000795] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000821] pid_max: default: 32768 minimum: 301
[    0.001069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001105] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001948] CPU: Testing write buffer coherency: ok
[    0.002552] /cpus/cpu@0 missing clock-frequency property
[    0.002616] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003964] Setting up static identity map for 0x40100000 - 0x40100060
[    0.004308] rcu: Hierarchical SRCU implementation.
[    0.005115] smp: Bringing up secondary CPUs ...
[    0.005154] smp: Brought up 1 node, 1 CPU
[    0.005170] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.005183] CPU: All CPU(s) started in SVC mode.
[    0.006001] devtmpfs: initialized
[    0.010122] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.010473] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010520] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.011461] pinctrl core: initialized pinctrl subsystem
[    0.013422] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.014699] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015963] thermal_sys: Registered thermal governor 'step_wise'
[    0.016330] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.016374] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.035344] SCSI subsystem initialized
[    0.036277] usbcore: registered new interface driver usbfs
[    0.036366] usbcore: registered new interface driver hub
[    0.036439] usbcore: registered new device driver usb
[    0.036585] mc: Linux media interface: v0.10
[    0.036678] videodev: Linux video capture interface: v2.00
[    0.036803] pps_core: LinuxPPS API ver. 1 registered
[    0.036818] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.036845] PTP clock support registered
[    0.039054] clocksource: Switched to clocksource arch_sys_counter
[    0.050212] NET: Registered PF_INET protocol family
[    0.050568] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.051227] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.051300] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.051325] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051361] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.051391] TCP: Hash tables configured (established 1024 bind 1024)
[    0.051540] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051607] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051897] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.053167] RPC: Registered named UNIX socket transport module.
[    0.053218] RPC: Registered udp transport module.
[    0.053229] RPC: Registered tcp transport module.
[    0.053237] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.055791] Initialise system trusted keyrings
[    0.056532] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.064456] NFS: Registering the id_resolver key type
[    0.064591] Key type id_resolver registered
[    0.064606] Key type id_legacy registered
[    0.064681] Key type asymmetric registered
[    0.064695] Asymmetric key parser 'x509' registered
[    0.064945] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.064971] io scheduler mq-deadline registered
[    0.064983] io scheduler kyber registered
[    0.132534] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.140787] CAN device driver interface
[    0.141516] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.141563] ohci-platform: OHCI generic platform driver
[    0.142174] usbcore: registered new interface driver uas
[    0.142270] usbcore: registered new interface driver usb-storage
[    0.142339] usbcore: registered new interface driver ums-realtek
[    0.142471] usbcore: registered new interface driver ch341
[    0.142521] usbserial: USB Serial support registered for ch341-uart
[    0.144053] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.144138] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T03:17:37 UTC (11857)
[    0.144169] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.144499] i2c_dev: i2c /dev entries driver
[    0.146265] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.147378] sun4i-ss 1c15000.crypto: Die ID 7
[    0.149347] NET: Registered PF_PACKET protocol family
[    0.149420] can: controller area network core
[    0.149554] NET: Registered PF_CAN protocol family
[    0.149576] can: raw protocol
[    0.149592] can: broadcast manager protocol
[    0.149608] can: netlink gateway - max_hops=1
[    0.149954] Key type dns_resolver registered
[    0.150131] Registering SWP/SWPB emulation handler
[    0.150296] Loading compiled-in X.509 certificates
[    0.164607] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.165193] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    0.187197] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 42, base_baud = 1500000) is a U6_16550A
[    0.188338] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.210318] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 43, base_baud = 1500000) is a U6_16550A
[    0.951015] printk: console [ttyS1] enabled
[    0.977430] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 44, base_baud = 1500000) is a U6_16550A
[    0.988461] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    0.998701] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.012086] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.019727] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.028426] cfg80211: failed to load regulatory.db
[    1.045957] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.053360] Waiting for root device /dev/mmcblk0p2...
[    1.094025] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.105256] mmc0: new high speed SDXC card at address aaaa
[    1.112182] mmcblk0: mmc0:aaaa SD64G 59.5 GiB
[    1.120275]  mmcblk0: p1 p2
[    1.161228] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.
[    1.170388] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.178349] devtmpfs: mounted
[    1.182615] Freeing unused kernel image (initmem) memory: 1024K
[    1.188760] Run /sbin/init as init process
[    1.320649] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: disabled.

最近编辑记录 大头鬼 (2022-09-02 16:51:10)

离线

楼主 #2 2022-09-04 17:54:58

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

Re: V3S的USB无法检测到设备

参考zero-4.10.y这个分支的配置

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.18.8 (root@ubuntu) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #30 SMP Sun Sep 4 02:35:16 PDT 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x43000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000] percpu: Embedded 11 pages/cpu s15380 r8192 d21484 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS1,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] Unknown kernel command line parameters "earlyprintk", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 34968K/65536K available (8192K kernel code, 916K rwdata, 2096K rodata, 1024K init, 244K bss, 14184K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000022] Switching to timer-based delay loop, resolution 41ns
[    0.000268] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000699] Console: colour dummy device 80x30
[    0.000796] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000824] pid_max: default: 32768 minimum: 301
[    0.001069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001110] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001935] CPU: Testing write buffer coherency: ok
[    0.002536] /cpus/cpu@0 missing clock-frequency property
[    0.002603] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003923] Setting up static identity map for 0x40100000 - 0x40100060
[    0.004247] rcu: Hierarchical SRCU implementation.
[    0.005038] smp: Bringing up secondary CPUs ...
[    0.005077] smp: Brought up 1 node, 1 CPU
[    0.005094] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.005107] CPU: All CPU(s) started in SVC mode.
[    0.005923] devtmpfs: initialized
[    0.009785] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.010222] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010272] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.011197] pinctrl core: initialized pinctrl subsystem
[    0.013190] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.014463] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015749] thermal_sys: Registered thermal governor 'step_wise'
[    0.016138] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.016184] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.020214] platform 1c0c000.lcd-controller: Fixing up cyclic dependency with 1100000.mixer
[    0.026952] platform panel: Fixing up cyclic dependency with 1c0c000.lcd-controller
[    0.038193] SCSI subsystem initialized
[    0.039132] usbcore: registered new interface driver usbfs
[    0.039208] usbcore: registered new interface driver hub
[    0.039279] usbcore: registered new device driver usb
[    0.039525] mc: Linux media interface: v0.10
[    0.039610] videodev: Linux video capture interface: v2.00
[    0.039738] pps_core: LinuxPPS API ver. 1 registered
[    0.039754] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.039782] PTP clock support registered
[    0.042249] clocksource: Switched to clocksource arch_sys_counter
[    0.053127] NET: Registered PF_INET protocol family
[    0.053460] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.054120] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.054189] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.054217] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054249] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.054279] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054430] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.054500] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.054813] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.056120] RPC: Registered named UNIX socket transport module.
[    0.056170] RPC: Registered udp transport module.
[    0.056181] RPC: Registered tcp transport module.
[    0.056189] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.058743] Initialise system trusted keyrings
[    0.059461] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.067387] NFS: Registering the id_resolver key type
[    0.067519] Key type id_resolver registered
[    0.067536] Key type id_legacy registered
[    0.067606] Key type asymmetric registered
[    0.067621] Asymmetric key parser 'x509' registered
[    0.067859] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.067885] io scheduler mq-deadline registered
[    0.067897] io scheduler kyber registered
[    0.136328] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.143130] panel-simple panel: supply power not found, using dummy regulator
[    0.143452] panel-simple panel: Specify missing connector_type
[    0.147568] CAN device driver interface
[    0.148365] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.148395] ehci-platform: EHCI generic platform driver
[    0.148530] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.148563] ohci-platform: OHCI generic platform driver
[    0.148746] ehci-fsl: Freescale EHCI Host controller driver
[    0.149731] usbcore: registered new interface driver uas
[    0.149838] usbcore: registered new interface driver usb-storage
[    0.149891] usbcore: registered new interface driver ums-realtek
[    0.150040] usbcore: registered new interface driver ch341
[    0.150083] usbserial: USB Serial support registered for ch341-uart
[    0.151990] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.152075] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T01:02:25 UTC (3745)
[    0.152111] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.152584] i2c_dev: i2c /dev entries driver
[    0.154538] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.155740] sun4i-ss 1c15000.crypto: Die ID 7
[    0.157840] NET: Registered PF_PACKET protocol family
[    0.157916] can: controller area network core
[    0.158045] NET: Registered PF_CAN protocol family
[    0.158067] can: raw protocol
[    0.158081] can: broadcast manager protocol
[    0.158099] can: netlink gateway - max_hops=1
[    0.158480] Key type dns_resolver registered
[    0.158667] Registering SWP/SWPB emulation handler
[    0.158808] Loading compiled-in X.509 certificates
[    0.173388] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.173852] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function pwm on pin PB4
[    0.173887] sun4i-pwm 1c21400.pwm: there is not valid maps for state default
[    0.174476] pwm-backlight backlight: supply power not found, using dummy regulator
[    0.175310] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.177080] printk: console [ttyS1] disabled
[    0.197509] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 44, base_baud = 1500000) is a U6_16550A
[    0.993650] printk: console [ttyS1] enabled
[    0.998809] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    1.030810] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 45, base_baud = 1500000) is a U6_16550A
[    1.065136] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc09521f0)
[    1.072906] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc094e470)
[    1.081834] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.135165] Console: switching to colour frame buffer device 60x53
[    1.159854] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device
[    1.172089] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.182673] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[    1.191729] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[    1.202070] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[    1.208020] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 1
[    1.216188] edt_ft5x06 0-0038: supply vcc not found, using dummy regulator
[    1.223416] edt_ft5x06 0-0038: supply iovcc not found, using dummy regulator
[    1.234547] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    1.245273] edt_ft5x06 0-0038: touchscreen probe failed
[    1.251980] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    1.260396] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.267699] usb usb1: Product: MUSB HDRC host driver
[    1.272701] usb usb1: Manufacturer: Linux 5.18.8 musb-hcd
[    1.278101] usb usb1: SerialNumber: musb-hdrc.2.auto
[    1.284271] hub 1-0:1.0: USB hub found
[    1.288131] hub 1-0:1.0: 1 port detected
[    1.293708] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.301785] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.309065] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.321221] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.328873] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.337699] cfg80211: failed to load regulatory.db
[    1.343013] Waiting for root device /dev/mmcblk0p2...
[    1.360984] mmc1: new high speed SDIO card at address 0001
[    1.379511] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.390793] mmc0: new high speed SDXC card at address aaaa
[    1.397811] mmcblk0: mmc0:aaaa SD64G 59.5 GiB
[    1.406389]  mmcblk0: p1 p2
[    1.469927] EXT4-fs (mmcblk0p2): recovery complete
[    1.476227] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.
[    1.485320] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.493330] devtmpfs: mounted
[    1.497575] Freeing unused kernel image (initmem) memory: 1024K
[    1.503814] Run /sbin/init as init process
[    1.635515] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: disabled.

出现了
[    1.251980] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    1.260396] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.267699] usb usb1: Product: MUSB HDRC host driver
[    1.272701] usb usb1: Manufacturer: Linux 5.18.8 musb-hcd
[    1.278101] usb usb1: SerialNumber: musb-hdrc.2.auto

尝试设置模式
# cat /sys/devices/platform/soc/1c19000.usb/musb-hdrc.2.auto/mode
a_wait_bcon
# echo host > /sys/devices/platform/soc/1c19000.usb/musb-hdrc.2.auto/mode
# cat /sys/devices/platform/soc/1c19000.usb/musb-hdrc.2.auto/mode
a_wait_bcon


在sun8i-v3s-licheepi-zero.dts文件中已经指定为Host

&usb_otg {
    dr_mode = "host";
    status = "okay";
};

目前还是无法识别U盘

离线

楼主 #3 2022-09-04 22:34:02

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

Re: V3S的USB无法检测到设备

参考这个贴子,补充了dts
https://whycan.com/t_7459.html

出现插入U盘或鼠标
# [   71.942945] usb 2-1: new low-speed USB device number 10 using ohci-platform
[   72.162930] usb 2-1: device descriptor read/64, error -62
[   72.492967] usb 2-1: device descriptor read/64, error -62
[   72.822928] usb 2-1: new low-speed USB device number 11 using ohci-platform
[   73.042945] usb 2-1: device descriptor read/64, error -62
[   73.372966] usb 2-1: device descriptor read/64, error -62
[   73.493006] usb usb2-port1: attempt power cycle
[   73.762935] usb 2-1: new low-speed USB device number 12 using ohci-platform
[   74.202936] usb 2-1: device not accepting address 12, error -62
[   74.412956] usb 2-1: new low-speed USB device number 13 using ohci-platform
[   74.852929] usb 2-1: device not accepting address 13, error -62
[   74.858970] usb usb2-port1: unable to enumerate USB device

网上贴子很多是三星的,他们的问题点在于USB的时钟配置上,需要48MHz。而我主板用的是24M的晶振,串口能正常输出,应该属于官标了。
发现一个疑惑点,我的设备没有low-speed。目前DP和DM是直接到USB-A口的,这里是否需要上位或下拉?

最近编辑记录 大头鬼 (2022-09-04 23:01:37)

离线

楼主 #5 2022-09-05 09:45:33

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

Re: V3S的USB无法检测到设备

unturned3 说:

发一下你荔枝派用的dts?是主线内核5.18自带的dts吗

sun8i-v3s-licheepi-zero.rar

不是5.18自带的。参考了论坛的一些贴子改过来的。

离线

楼主 #7 2022-09-05 14:41:59

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

Re: V3S的USB无法检测到设备

由目前OTG的HOST配置来看,ID脚应该是对的。因为接上设备已经有反应了。只是枚举失败。

现在怀疑只做HOST。DP、DM是否需要加15K的上拉或下拉电阻。配置里面是否还有其他地方需要设置内部IO上下拉之类的。

离线

楼主 #8 2022-09-07 00:36:20

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

Re: V3S的USB无法检测到设备

有哪位大佬传个镜像试一下(zImage + dtb )。打印输出串品是UART1(PE21 PE22)。USB的ID脚是PF6。

离线

楼主 #9 2022-09-07 14:26:09

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

Re: V3S的USB无法检测到设备

硬件验证
1.ID(PF6)引脚经过1K与SD卡座的DET连接,SD卡座接地,带有10K上位3.3V,插入卡时,ID引脚被下拉,电压为(1/11)*3.3
2.ID引脚飞线,短接到3.3V。让USB OTG工作在外设状态

结果
b8945a5e3484de2468d701e40517121.jpg79a1dc2e756aeb8e850d4d18c3b5e47.jpg

设备已经连接到PC,高速设备,发送数据没问题。
这样是否验证硬件没有问题?

离线

楼主 #10 2022-09-07 18:26:38

大头鬼
会员
注册时间: 2022-09-02
已发帖子: 10
积分: 40

Re: V3S的USB无法检测到设备

最终在内核配置中加上这个

1662545906790.png

64G 闪迪U盘枚举成功

_20220907182429.png

USB摄相头也是可以的。需要在内核配置中加入V4L2。

但是还有问题,就是有些U盘无法识别,像512G的U盘,USB hub

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn