您尚未登录。

楼主 # 2021-12-22 08:25:03

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

V3s 在openwrt上, usb 无法正常工作

V3s 在openwrt上, usb 无法正常工作 ,搞了2周没有搞好,插usb没反应,各位兄弟帮忙看看.

硬件没问题, 用其它固件插usb设备进去会有提示, 但是编译这个openwrt固件usb搞不出来, 不知道是不是哪里没有配置好,



从 @zhangjink 的固件编译.
https://whycan.com/t_6980.html
https://github.com/zhangjinke/openwrt.git

驱动配置[usb] -- ehci + ohci
内核配置[kod-usb-core]

启动日志

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.221 (my@my_ubuntu) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11306-c4a6851c72)) #0 SMP PREEMPT Mon Feb 15 15:22:37 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[    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: CAN Gateway 4
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: get_random_bytes called from start_kernel+0x88/0x3c0 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s30732 r8192 d22516 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 53948K/65536K available (5288K kernel code, 344K rwdata, 1488K rodata, 2048K init, 242K bss, 11588K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc072a008   (7305 kB)
[    0.000000]       .init : 0xc0a00000 - 0xc0c00000   (2048 kB)
[    0.000000]       .data : 0xc0c00000 - 0xc0c56040   ( 345 kB)
[    0.000000]        .bss : 0xc0c5d154 - 0xc0c99a48   ( 243 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    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 (phys).
[    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.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000227] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000448] Console: colour dummy device 80x30
[    0.000495] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000513] pid_max: default: 32768 minimum: 301
[    0.000657] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000672] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001252] CPU: Testing write buffer coherency: ok
[    0.001685] /cpus/cpu@0 missing clock-frequency property
[    0.001711] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.040129] Setting up static identity map for 0x40200000 - 0x40200060
[    0.060129] Hierarchical SRCU implementation.
[    0.100234] smp: Bringing up secondary CPUs ...
[    0.100259] smp: Brought up 1 node, 1 CPU
[    0.100268] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.100276] CPU: All CPU(s) started in HYP mode.
[    0.100282] CPU: Virtualization extensions available.
[    0.103341] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.103918] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103955] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.104111] pinctrl core: initialized pinctrl subsystem
[    0.105253] NET: Registered protocol family 16
[    0.105701] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.106787] No ATAGs?
[    0.162743] SCSI subsystem initialized
[    0.163173] usbcore: registered new interface driver usbfs
[    0.163242] usbcore: registered new interface driver hub
[    0.163324] usbcore: registered new device driver usb
[    0.163461] pps_core: LinuxPPS API ver. 1 registered
[    0.163472] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.163499] PTP clock support registered
[    0.170132] clocksource: Switched to clocksource arch_sys_counter
[    0.195633] NET: Registered protocol family 2
[    0.196344] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.196378] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.196403] TCP: Hash tables configured (established 1024 bind 1024)
[    0.196539] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.196592] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.196851] NET: Registered protocol family 1
[    0.197309] kvm [1]: 8-bit VMID
[    0.198124] kvm [1]: vgic interrupt IRQ16
[    0.198230] kvm [1]: Hyp mode initialized successfully
[    0.201287] No memory allocated for crashlog
[    0.202171] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.219114] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.219646] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.246366] io scheduler noop registered
[    0.246391] io scheduler deadline registered
[    0.246667] io scheduler cfq registered (default)
[    0.253756] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.272321] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.276749] console [ttyS0] disabled
[    0.298093] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.842812] console [ttyS0] enabled
[    0.858298] loop: module loaded
[    0.865685] libphy: Fixed MDIO Bus: probed
[    0.872031] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.877837] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.884342] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 38000 (expect 58000)
[    0.894062] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.899726] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.907059] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.912805] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.920021] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.925003] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.931817] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address b2:30:62:94:db:ff
[    0.942659] libphy: stmmac: probed
[    0.947399] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    0.954273] libphy: mdio_mux: probed
[    0.957896] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    0.964537] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    0.971981] libphy: mdio_mux: probed
[    0.976562] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.983515] ehci-platform: EHCI generic platform driver
[    0.989507] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.995550] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.003735] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    1.030145] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.036481] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.043317] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.050548] usb usb1: Product: EHCI Host Controller
[    1.055421] usb usb1: Manufacturer: Linux 4.14.221 ehci_hcd
[    1.060999] usb usb1: SerialNumber: 1c1a000.usb
[    1.066425] hub 1-0:1.0: USB hub found
[    1.070589] hub 1-0:1.0: 1 port detected
[    1.075693] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.082410] ohci-platform: OHCI generic platform driver
[    1.088057] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.094882] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.103022] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.174419] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.181781] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.189000] usb usb2: Product: Generic Platform OHCI controller
[    1.194957] usb usb2: Manufacturer: Linux 4.14.221 ohci_hcd
[    1.200539] usb usb2: SerialNumber: 1c1a400.usb
[    1.205984] hub 2-0:1.0: USB hub found
[    1.210062] hub 2-0:1.0: 1 port detected
[    1.215598] usbcore: registered new interface driver usb-storage
[    1.222622] usbcore: registered new interface driver usbserial
[    1.228903] usbcore: registered new interface driver usbserial_generic
[    1.235883] usbserial: USB Serial support registered for generic
[    1.242503] usbcore: registered new interface driver ftdi_sio
[    1.248598] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.257128] mousedev: PS/2 mouse device common for all mice
[    1.264701] i2c /dev entries driver
[    1.270669] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.340201] sunxi-mmc 1c0f000.mmc: base:0xc48c5000 irq:23
[    1.352586] NET: Registered protocol family 10
[    1.370042] Segment Routing with IPv6
[    1.374289] NET: Registered protocol family 17
[    1.378847] 8021q: 802.1Q VLAN Support v1.8
[    1.383500] Registering SWP/SWPB emulation handler
[    1.394601] hctosys: unable to open rtc device (rtc0)
[    1.400096] vcc3v0: disabling
[    1.403358] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.411536] vcc5v0: disabling
[    1.415038] Waiting for root device /dev/mmcblk0p2...
[    1.422259] mmc0: new high speed SD card at address 2101
[    1.428364] mmcblk0: mmc0:2101 APPSD 240 MiB 
[    1.434760]  mmcblk0: p1 p2
[    1.456490] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    1.466215] Freeing unused kernel memory: 2048K
[    1.911521] init: Console is alive
[    1.915269] init: - watchdog -
[    2.134075] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.178225] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.196291] init: - preinit -
[    2.872210] random: jshn: uninitialized urandom read (4 bytes read)
[    2.943308] random: jshn: uninitialized urandom read (4 bytes read)
[    2.974134] random: jshn: uninitialized urandom read (4 bytes read)
[    3.138029] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[    3.149344] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    3.157193] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    3.165907] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.723496] random: fast init done
[    6.784108] EXT4-fs (loop0): recovery complete
[    6.834883] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[    6.843712] mount_root: switching to ext4 overlay
[    7.022755] urandom-seed: Seeding with /etc/urandom.seed
[    7.161471] procd: - early -
[    7.164603] procd: - watchdog -
[    7.912688] procd: - watchdog -
[    7.916229] procd: - ubus -
[    7.996792] urandom_read: 1 callbacks suppressed
[    7.996805] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.037185] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.044277] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.051835] procd: - init -
Please press Enter to activate this console.
[    8.574800] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.607401] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.633461] urngd: v1.0.2 started.
[    8.648096] hidraw: raw HID events driver (C) Jiri Kosina
[    8.670543] usbcore: registered new interface driver ch341
[    8.680485] usbserial: USB Serial support registered for ch341-uart
[    8.701918] usbcore: registered new interface driver cp210x
[    8.708183] usbserial: USB Serial support registered for cp210x
[    8.725046] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.739870] random: crng init done
[    8.751526] random: 3 urandom warning(s) missed due to ratelimiting
[    8.760483] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.826276] usbcore: registered new interface driver ums-alauda
[    8.852270] usbcore: registered new interface driver ums-cypress
[    8.870426] usbcore: registered new interface driver ums-datafab
[    8.878597] usbcore: registered new interface driver ums-freecom
[    8.900556] usbcore: registered new interface driver ums-isd200
[    8.908683] usbcore: registered new interface driver ums-jumpshot
[    8.932231] usbcore: registered new interface driver ums-karma
[    8.940513] usbcore: registered new interface driver ums-sddr09
[    8.962064] usbcore: registered new interface driver ums-sddr55
[    8.980450] usbcore: registered new interface driver ums-usbat
[    8.989582] usbcore: registered new interface driver usbhid
[    9.000458] usbhid: USB HID core driver
[    9.061621] xt_time: kernel timezone is -0000
[    9.086938] PPP generic driver version 2.4.2
[    9.103474] NET: Registered protocol family 24
[    9.120875] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.640284] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[   14.676171] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[   14.731265] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[   14.789443] br-lan: port 1(eth0) entered blocking state
[   14.818150] br-lan: port 1(eth0) entered disabled state
[   14.877399] device eth0 entered promiscuous mode
[   14.921080] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready

dts

&ehci0 {
	 phys = <&usbphy 0>;
	 phy-names = "usb";
	 status = "okay";
};


&ohci0 {
	 phys = <&usbphy 0>;
	 phy-names = "usb";
	 status = "okay";
};


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

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

离线

楼主 #2 2021-12-23 19:12:20

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

谢谢哈, 核对了好多次.... 太郁闷了.

离线

楼主 #4 2021-12-24 12:43:41

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

大概是这样的,不知道是不是我哪里缺了啥...

那位兄弟有空帮忙测试一下,谢谢.

make kernel_menuconfig

 Device Drivers  --->
     [*] USB support  ---> 

                                                                                                              |
  | +----------------------------------------------------------------------------------------------------------+ |
  | |                  --- USB support                                                                         | |
  | |                  <*>   Support for Host-side USB                                                         | |
  | |                  [*]   USB announce new devices                                                          | |
  | |                        *** Miscellaneous USB options ***                                                 | |
  | |                  [ ]   Enable USB persist by default                                                     | |
  | |                  [ ]   Dynamic USB minor allocation                                                      | |
  | |                  [*]   OTG support                                                                       | |
  | |                  [ ]   Rely on OTG and EH Targeted Peripherals List                                      | |
  | |                  [ ]   Disable external hubs                                                             | |
  | |                  < >   USB 2.0 OTG FSM implementation                                                    | |
  | |                  < >   USB port LED trigger                                                              | |
  | |                  < >   USB Monitor                                                                       | |
  | |                  < >   Support WUSB Cable Based Association (CBA)                                        | |
  | |                        *** USB Host Controller Drivers ***                                               | |
  | |                  < >   Cypress C67x00 HCD support                                                        | |
  | |                  < >   xHCI HCD (USB 3.0) support                                                        | |
  | |                  <*>   EHCI HCD (USB 2.0) support                                                        | |
  | |                  [*]     Root Hub Transaction Translators                                                | |
  | |                  [ ]     Improved Transaction Translator scheduling                                      | |
  | |                  <*>     Generic EHCI driver for a platform device                                       | |
  | |                  < >   OXU210HP HCD support                                                              | |
  | |                  < >   ISP116X HCD support                                                               | |
  | |                  < >   ISP1362 HCD support                                                               | |
  | |                  < >   FOTG210 HCD support                                                               | |
  | |                  <*>   OHCI HCD (USB 1.1) support                                                        | |
  | |                  <*>     Generic OHCI driver for a platform device                                       | |
  | |                  < >   SL811HS HCD support                                                               | |
  | |                  < >   R8A66597 HCD support                                                              | |
  | |                  [ ]   HCD test mode support                                                             | |
  | |                        *** USB Device Class drivers ***                                                  | |
  | |                  < >   USB Modem (CDC ACM) support                                                       | |
  | |                  < >   USB Printer support                                                               | |
  | |                  < >   USB Wireless Device Management support                                            | |
  | |                  < >   USB Test and Measurement Class support                                            | |
  | |                        *** NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may ***                      | |
  | |                        *** also be needed; see USB_STORAGE Help for more info ***                        | |
  | |                  <*>   USB Mass Storage support                                                          | |
  | |                  [*]     USB Mass Storage verbose debug                                                  | |
  | |                  < >     Realtek Card Reader support                                                     | |
  | |                  < >     Datafab Compact Flash Reader support                                            | |
  | |                  < >     Freecom USB/ATAPI Bridge support                                                | |
  | |                  < >     ISD-200 USB/ATA Bridge support                                                  | |
  | |                  < >     USBAT/USBAT02-based storage support                                             | |
  | |                  < >     SanDisk SDDR-09 (and other SmartMedia, including DPCM) support                  | |
  | |                  < >     SanDisk SDDR-55 SmartMedia support                                              | |
  | |                  < >     Lexar Jumpshot Compact Flash Reader                                             | |
  | |                  < >     Olympus MAUSB-10/Fuji DPC-R1 support                                            | |
  | |                  < >     Support OneTouch Button on Maxtor Hard Drives                                   | |
  | |                  < >     Support for Rio Karma music player                                              | |
  | |                  < >     SAT emulation on Cypress USB/ATA Bridge with ATACB                              | |
  | |                  < >     USB ENE card reader support                                                     | |
  | |                  < >     USB Attached SCSI                                                               | |
  | |                        *** USB Imaging devices ***                                                       | |
  | |                  < >   USB Mustek MDC800 Digital Camera support                                          | |
  | |                  < >   Microtek X6USB scanner support                                                    | |
  | |                  < >   USB/IP support                                                                    | |
  | |                  <*>   Inventra Highspeed Dual Role Controller (TI, ADI, AW, ...)                        | |
  | |                          MUSB Mode Selection (Host only mode)  --->                                      | |
  | |                          *** Platform Glue Layer ***                                                     | |
  | |                          *** MUSB DMA mode ***                                                           | |
  | |                  [ ]     Disable DMA (always use PIO)                                                    | |
  | |                  < >   DesignWare USB3 DRD Core Support                                                  | |
  | |                  < >   DesignWare USB2 DRD Core Support                                                  | |
  | |                  < >   ChipIdea Highspeed Dual Role Controller                                           | |
  | |                  < >   NXP ISP 1760/1761 support                                                         | |
  | |                        *** USB port drivers ***                                                          | |
  | |                  <*>   USB Serial Converter support  --->                                                | |
  | |                        *** USB Miscellaneous drivers ***                                                 | |
  | |                  < >   EMI 6|2m USB Audio interface support                                              | |
  | |                  < >   EMI 2|6 USB Audio interface support                                               | |
  | |                  < >   ADU devices from Ontrak Control Sy

   USB Physical Layer drivers  --->   
     

  | +------------------+(+)------------------------------------------------------------------------------------+ 

离线

楼主 #6 2021-12-24 13:23:14

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

@阿黄
好的,感谢,我重新下载再试试:)

离线

楼主 #7 2021-12-24 13:33:44

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

兄弟,帮我看看这里, 我的少了红色这个玩意....

  │ │                                                                              <*>   Inventra Highspeed Dual Role Controller (TI, ADI, AW, ...)                                                                                     │ │ 
  │ │                                                                                      MUSB Mode Selection (Dual Role mode)  --->                                                                                                   │ │ 
  │ │                                                                                      *** Platform Glue Layer ***                                                                                                                  │ │ 
  │ │                                                                            <*>     Allwinner (sunxi)         

                                                                                                                      │ │ 
  │ │                                                                                      *** MUSB DMA mode ***                                                                                                                        │ │ 
  │ │                                                                              [ ]     Disable DMA (always use PIO)

离线

楼主 #10 2021-12-24 14:17:42

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

@阿黄
十分感谢, 漏选了 NOP USB Transceiver Driver


 

  USB Physical Layer drivers  ---> 
  | +-------------------------------------------------------------------------------------------------------------+ |
  | |                   <*> NOP USB Transceiver Driver                                                            | |
  | |                   < > AM335x USB PHY Driver                                                                 | |
  | |                   < > GPIO based peripheral-only VBUS sensing 'transceiver'                                 | |
  | |                   < > NXP ISP1301 USB transceiver support                                                   | |
  | |                   [ ] Generic ULPI Transceiver Driver                                                       | |
  | |                                                          

晚上下班再回去测试,十分感谢哈.

离线

楼主 #11 2021-12-24 14:18:30

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

@varzhou
好的哦,谢谢,晚上我回去再测试一下,!

离线

楼主 #12 2021-12-24 17:38:45

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

感谢 @阿黄  @varzhou 内核打开 MUSB  可以了:)  我主要是漏了 

 USB Physical Layer drivers  ---> 
<*> NOP USB Transceiver Driver

离线

楼主 #14 2021-12-26 14:38:05

kwongwo
会员
注册时间: 2020-11-17
已发帖子: 37
积分: 19

Re: V3s 在openwrt上, usb 无法正常工作

vmao 说:

楼主测试可以了吗?


测试ok了, musb没有配置好, 按照上面哥们提供的参数,重新配置好了.

离线

页脚

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

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