您尚未登录。

楼主 # 2023-10-25 23:23:17

xuan132
会员
注册时间: 2023-10-17
已发帖子: 1
积分: 1

荔枝派zero 插入usb设备后无反应(摄像头,u盘都没反应)

用的是主线Uboot+linux5.2y
换了两块板子,还是不行(板子硬件应该没问题吧)
用的是单板,使用usb转ttl供电(别的供电方式也试过,结果也一样...)
内核打印信息

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero (book@book-virtual-machine) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01)) #7 SMP Wed Oct 25 22:46:11 CST 2023
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu s34560 r8192 d22784 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[    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: 51464K/64036K available (7168K kernel code, 317K rwdata, 1880K rodata, 1024K init, 266K bss, 12572K reserved, 0K 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 event tracing is enabled.
[    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] random: get_random_bytes called from start_kernel+0x2f8/0x48c with crng_init=0
[    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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000199] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000434] Console: colour dummy device 80x30
[    0.000493] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000509] pid_max: default: 32768 minimum: 301
[    0.000671] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000688] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001507] CPU: Testing write buffer coherency: ok
[    0.002026] /cpus/cpu@0 missing clock-frequency property
[    0.002053] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002831] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003050] rcu: Hierarchical SRCU implementation.
[    0.003601] smp: Bringing up secondary CPUs ...
[    0.003622] smp: Brought up 1 node, 1 CPU
[    0.003631] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003639] CPU: All CPU(s) started in SVC mode.
[    0.004724] devtmpfs: initialized
[    0.008300] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008613] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008648] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008914] pinctrl core: initialized pinctrl subsystem
[    0.010091] NET: Registered protocol family 16
[    0.010631] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011919] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011938] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.036863] SCSI subsystem initialized
[    0.037048] usbcore: registered new interface driver usbfs
[    0.037107] usbcore: registered new interface driver hub
[    0.037210] usbcore: registered new device driver usb
[    0.037423] mc: Linux media interface: v0.10
[    0.037471] videodev: Linux video capture interface: v2.00
[    0.037716] Advanced Linux Sound Architecture Driver Initialized.
[    0.039532] clocksource: Switched to clocksource arch_sys_counter
[    0.051908] NET: Registered protocol family 2
[    0.052721] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.052763] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052788] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.052812] TCP: Hash tables configured (established 1024 bind 1024)
[    0.052964] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.053018] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.053327] NET: Registered protocol family 1
[    0.054226] RPC: Registered named UNIX socket transport module.
[    0.054250] RPC: Registered udp transport module.
[    0.054256] RPC: Registered tcp transport module.
[    0.054262] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.056826] Initialise system trusted keyrings
[    0.057218] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.096136] Key type asymmetric registered
[    0.096162] Asymmetric key parser 'x509' registered
[    0.096273] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.096287] io scheduler mq-deadline registered
[    0.096295] io scheduler kyber registered
[    0.097265] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.101214] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.170994] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.173381] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.174527] printk: console [ttyS0] disabled
[    0.194845] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.726495] printk: console [ttyS0] enabled
[    0.755661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.762287] ehci-platform: EHCI generic platform driver
[    0.767824] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.773503] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.781454] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.809552] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.815926] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    0.824224] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.831454] usb usb1: Product: EHCI Host Controller
[    0.836328] usb usb1: Manufacturer: Linux 5.2.0-licheepi-zero ehci_hcd
[    0.842861] usb usb1: SerialNumber: 1c1a000.usb
[    0.848215] hub 1-0:1.0: USB hub found
[    0.852161] hub 1-0:1.0: 1 port detected
[    0.856791] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.863117] ohci-platform: OHCI generic platform driver
[    0.868665] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.875388] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.883383] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.953800] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.02
[    0.962123] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.969339] usb usb2: Product: Generic Platform OHCI controller
[    0.975274] usb usb2: Manufacturer: Linux 5.2.0-licheepi-zero ohci_hcd
[    0.981806] usb usb2: SerialNumber: 1c1a400.usb
[    0.989917] hub 2-0:1.0: USB hub found
[    0.993760] hub 2-0:1.0: 1 port detected
[    0.998425] usbcore: registered new interface driver cdc_acm
[    1.004199] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.012349] usbcore: registered new interface driver usb-storage
[    1.018477] usbcore: registered new interface driver usbserial_generic
[    1.025098] usbserial: USB Serial support registered for generic
[    1.031200] usbcore: registered new interface driver ch341
[    1.036712] usbserial: USB Serial support registered for ch341-uart
[    1.043049] usbcore: registered new interface driver cp210x
[    1.048662] usbserial: USB Serial support registered for cp210x
[    1.054664] usbcore: registered new interface driver ftdi_sio
[    1.060465] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.067888] usbcore: registered new interface driver pl2303
[    1.073536] usbserial: USB Serial support registered for pl2303
[    1.079563] usbcore: registered new interface driver usb_serial_simple
[    1.086130] usbserial: USB Serial support registered for carelink
[    1.092291] usbserial: USB Serial support registered for zio
[    1.097969] usbserial: USB Serial support registered for funsoft
[    1.104046] usbserial: USB Serial support registered for flashloader
[    1.110446] usbserial: USB Serial support registered for google
[    1.116384] usbserial: USB Serial support registered for libtransistor
[    1.122944] usbserial: USB Serial support registered for vivopay
[    1.128968] usbserial: USB Serial support registered for moto_modem
[    1.135291] usbserial: USB Serial support registered for motorola_tetra
[    1.141948] usbserial: USB Serial support registered for novatel_gps
[    1.148316] usbserial: USB Serial support registered for hp4x
[    1.154100] usbserial: USB Serial support registered for suunto
[    1.160059] usbserial: USB Serial support registered for siemens_mpi
[    1.167031] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
[    1.176764] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.186637] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.191824] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.196447] i2c /dev entries driver
[    1.201450] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.210722] usbcore: registered new interface driver uvcvideo
[    1.216472] USB Video Class driver (1.1.1)
[    1.220675] gspca_main: v2.14.0 registered
[    1.225576] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.234280] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.270764] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.278008] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.312659] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.320862] usbcore: registered new interface driver usbhid
[    1.326440] usbhid: USB HID core driver
[    1.332494] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.340131] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.347590] Initializing XFRM netlink socket
[    1.352026] NET: Registered protocol family 17
[    1.357174] Registering SWP/SWPB emulation handler
[    1.363297] Loading compiled-in X.509 certificates
[    1.373745] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0x(ptrval)
[    1.384407] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.400758] Console: switching to colour frame buffer device 100x30
[    1.413198] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.422008] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.433543] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.439311] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.447959] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    1.456326] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.463566] usb usb3: Product: MUSB HDRC host driver
[    1.468526] usb usb3: Manufacturer: Linux 5.2.0-licheepi-zero musb-hcd
[    1.475059] usb usb3: SerialNumber: musb-hdrc.1.auto
[    1.480968] hub 3-0:1.0: USB hub found
[    1.484853] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.493032] hub 3-0:1.0: 1 port detected
[    1.498356] using random self ethernet address
[    1.502946] using random host ethernet address
[    1.508022] usb0: HOST MAC 0a:c6:45:7e:5e:2f
[    1.512447] usb0: MAC b6:fa:e7:9b:0d:43
[    1.516329] using random self ethernet address
[    1.520811] using random host ethernet address
[    1.525342] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[    1.531985] g_ether gadget: g_ether ready
[    1.537357] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.546006] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    1.556167] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.563721] mmc0: new high speed SDXC card at address 5048
[    1.571334] mmcblk0: mmc0:5048 SD64G 58.0 GiB
[    1.578372]  mmcblk0: p1 p2
[    1.582416] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:15 UTC (15)
[    1.590734] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.603618] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.610400] vcc5v0: disabling
[    1.613377] ALSA device list:
[    1.616344]   #0: V3s Audio Codec
[    1.620520] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.629141] cfg80211: failed to load regulatory.db
[    1.657129] EXT4-fs (mmcblk0p2): recovery complete
[    1.662095] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.670359] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.678690] devtmpfs: mounted
[    1.683090] Freeing unused kernel memory: 1024K
[    1.687796] Run /sbin/init as init process
[    1.806971] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    2.045648] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting system message bus: [    2.107195] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[    2.114622] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
done
Starting network: OK
[    7.530674] random: fast init done
[  195.049622] random: crng init done
[  195.053044] random: 2 urandom warning(s) missed due to ratelimiting
Starting sshd: OK

这是设备树文件

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

&usbphy {
        usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
        status = "okay";
};

板子上lsusb的结果

Bus 003 Device 001: ID 1d6b:0002
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001

ls /dev | grep usb 无结果
4楼提到的usb相关模块都选上了
很多网站上说的内核选项也都选上了
求助各位大佬,已经换了几种方案了,几天了,还没搞好摄像头,实在是山穷水尽了qwq

离线

#1 2023-10-27 09:01:21

duanlin
会员
注册时间: 2023-10-09
已发帖子: 13
积分: 44

Re: 荔枝派zero 插入usb设备后无反应(摄像头,u盘都没反应)

带着载荷量下电压,是不是电源虚了,推不动
USB有插拔中断,找到内核代码加入打印,插拔看看是否有,有则是软件侧问题,无则是硬件侧问题。

离线

页脚

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

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