您尚未登录。

楼主 # 2021-11-30 22:54:57

树莓学LINUX
会员
注册时间: 2021-10-28
已发帖子: 91
积分: 101
个人网站

V3S插入USB设备没有反应

在使用别的大佬已经编译好的设备树,能监测到USB设备插入正常使用,但是自己编译的设备树,插上USB键盘摄像头之类什么显示都没有,有没有大佬帮我看看可能是哪里出了问题?

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.0-licheepi-zero (shumei@ubuntu) (arm-linux-gnueabihf-gcc (Linaro GCC 6.3-2017.02) 6.3.1 20170109, GNU ld (Linaro_Binutils-2017.02) 2.27.0.20161019) #35 SMP Sat Nov 20 21:49:32 PST 2021
[    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] 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 15 pages/cpu s30924 r8192 d22324 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=tty0 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: 51544K/65536K available (8192K kernel code, 725K rwdata, 1964K rodata, 1024K init, 264K bss, 13992K 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+0x328/0x4bc 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000023] Switching to timer-based delay loop, resolution 41ns
[    0.000246] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000506] Console: colour dummy device 80x30
[    0.000901] printk: console [tty0] enabled
[    0.000968] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001007] pid_max: default: 32768 minimum: 301
[    0.001189] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001226] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002136] CPU: Testing write buffer coherency: ok
[    0.002602] /cpus/cpu@0 missing clock-frequency property
[    0.002657] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003554] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003832] rcu: Hierarchical SRCU implementation.
[    0.004417] smp: Bringing up secondary CPUs ...
[    0.004471] smp: Brought up 1 node, 1 CPU
[    0.004492] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.004509] CPU: All CPU(s) started in SVC mode.
[    0.005209] devtmpfs: initialized
[    0.008921] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009328] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009387] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.009664] pinctrl core: initialized pinctrl subsystem
[    0.010968] NET: Registered protocol family 16
[    0.011578] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012834] thermal_sys: Registered thermal governor 'step_wise'
[    0.013237] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.013304] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.033419] SCSI subsystem initialized
[    0.033631] usbcore: registered new interface driver usbfs
[    0.033729] usbcore: registered new interface driver hub
[    0.033858] usbcore: registered new device driver usb
[    0.034091] mc: Linux media interface: v0.10
[    0.034154] videodev: Linux video capture interface: v2.00
[    0.034452] Advanced Linux Sound Architecture Driver Initialized.
[    0.035892] clocksource: Switched to clocksource arch_sys_counter
[    0.048249] NET: Registered protocol family 2
[    0.049137] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.049219] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.049273] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.049309] TCP: Hash tables configured (established 1024 bind 1024)
[    0.049479] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.049549] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.049847] NET: Registered protocol family 1
[    0.052650] Initialise system trusted keyrings
[    0.053080] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.139186] Key type asymmetric registered
[    0.139249] Asymmetric key parser 'x509' registered
[    0.139359] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.139389] io scheduler mq-deadline registered
[    0.139405] io scheduler kyber registered
[    0.140356] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.144223] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.214668] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.217425] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    0.218722] printk: console [ttyS0] disabled
[    0.239087] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 40, base_baud = 1500000) is a U6_16550A
[    0.796317] printk: console [ttyS0] enabled
[    0.825614] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    0.836027] usbcore: registered new interface driver rtl8xxxu
[    0.842158] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.848795] ehci-platform: EHCI generic platform driver
[    0.854222] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.860500] ohci-platform: OHCI generic platform driver
[    0.865962] usbcore: registered new interface driver cdc_wdm
[    0.871706] usbcore: registered new interface driver usb-storage
[    0.879744] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.884892] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:29:49 UTC (1789)
[    0.893152] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.897870] i2c /dev entries driver
[    0.901623] usbcore: registered new interface driver zr364xx
[    0.907469] usbcore: registered new interface driver stkwebcam
[    0.913372] usbcore: registered new interface driver s2255
[    0.919050] usbcore: registered new interface driver uvcvideo
[    0.924809] USB Video Class driver (1.1.1)
[    0.929026] usbcore: registered new interface driver Philips webcam
[    0.935302] cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
[    0.941653] usbcore: registered new interface driver cpia2
[    0.947953] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.956710] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    0.966895] usbcore: registered new interface driver usbhid
[    0.972509] usbhid: USB HID core driver
[    0.976798] fb_st7789v spi0.0: fbtft_property_value: buswidth = 8
[    0.982927] fb_st7789v spi0.0: fbtft_property_value: debug = 0
[    0.988832] fb_st7789v spi0.0: fbtft_property_value: rotate = 270
[    0.994938] fb_st7789v spi0.0: fbtft_property_value: fps = 60
[    1.000994] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.036293] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.078523] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.088517] mmc0: new high speed SDHC card at address 59b4
[    1.095209] mmcblk0: mmc0:59b4 SDU1  29.5 GiB
[    1.103107]  mmcblk0: p1 p2
[    1.549160] random: fast init done
[    1.574169] Console: switching to colour frame buffer device 40x30
[    1.582164] graphics fb0: fb_st7789v frame buffer, 320x240, 150 KiB video memory, 4 KiB buffer memory, fps=100, spi0.0 at 96 MHz
[    1.602630] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.624327] Initializing XFRM netlink socket
[    1.630064] NET: Registered protocol family 17
[    1.653090] Registering SWP/SWPB emulation handler
[    1.659353] Loading compiled-in X.509 certificates
[    1.678988] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[    1.691243] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[    1.698595] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 1
[    1.735072] hub 1-0:1.0: USB hub found
[    1.740531] hub 1-0:1.0: 1 port detected
[    1.756372] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.789705] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.802765] random: crng init done
[    1.818453] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.826772] ALSA device list:
[    1.830495]   #0: V3s Audio Codec
[    1.835309] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.846074] cfg80211: failed to load regulatory.db
[    1.882990] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.893438] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.930659] devtmpfs: mounted
[    1.939018] Freeing unused kernel memory: 1024K
[    1.945326] Run /sbin/init as init process
[    2.070902] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Belive Youself Forever
buildroot login: root
Password:
Login incorrect
buildroot login: root
Password:
# lsusb
Bus 001 Device 001: ID 1d6b:0002

离线

#1 2021-12-03 08:47:30

benlypan
会员
注册时间: 2021-07-08
已发帖子: 49
积分: 133.5

Re: V3S插入USB设备没有反应

我在 dts 中这么配置了就能用了

/ {
	soc {
		ehci0: usb@01c1a000 {
			compatible = "allwinner,sun8i-v3s-ehci", "generic-ehci";
			reg = <0x01c1a000 0x100>;
			interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
			resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
			status = "okay";
		};

		ohci0: usb@01c1a400 {
			compatible = "allwinner,sun8i-v3s-ohci", "generic-ohci";
			reg = <0x01c1a400 0x100>;
			interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
			<&ccu CLK_USB_OHCI0>;
			resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
			status = "okay";
		};
	};
}

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

&usbphy {
	status = "okay";
};

最近编辑记录 benlypan (2021-12-03 08:53:45)

离线

楼主 #2 2021-12-03 13:15:34

树莓学LINUX
会员
注册时间: 2021-10-28
已发帖子: 91
积分: 101
个人网站

Re: V3S插入USB设备没有反应

@benlypan
看样子ehci与ohci是必须的

离线

#3 2024-04-24 16:51:52

gentle_kwok
会员
注册时间: 2024-03-19
已发帖子: 1
积分: 1

Re: V3S插入USB设备没有反应

照着二楼的改了就能用了太感谢了困扰了挺久的

离线

页脚

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

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