10 [bug] 将openwrt移植到mt7628dan(SoC)上,USB识别问题

从openwrt.org上下载了一份代码,其它的都还好,就是USB总是无法使用(如图),不知原因,请老师们伙伴们帮忙看下~~

attachments-2021-08-j07eOEku611f677f563d4.png

dmesg:

root@OpenWrt:/# dmesg

[    0.000000] Linux version 5.4.138 (oti@ubuntu) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r17311-7057e05485)) #0 Sun Aug 8 23:17:06 2021

[    0.000000] Board has DDR2

[    0.000000] Analog PMU set to hw control

[    0.000000] Digital PMU set to hw control

[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2

[    0.000000] printk: bootconsole [early0] enabled

[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)

[    0.000000] MIPS: machine is Mediatek MT7628AN evaluation board

[    0.000000] Initrd not found or empty - disabling initrd

[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.

[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes

[    0.000000] Zone ranges:

[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]

[    0.000000] Movable zone start for each node

[    0.000000] Early memory node ranges

[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]

[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]

[    0.000000] On node 0 totalpages: 16384

[    0.000000]   Normal zone: 144 pages used for memmap

[    0.000000]   Normal zone: 0 pages reserved

[    0.000000]   Normal zone: 16384 pages, LIFO batch:3

[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

[    0.000000] pcpu-alloc: [0] 0 

[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240

[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2

[    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] Writing ErrCtl register=00008550

[    0.000000] Readback ErrCtl register=00008550

[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off

[    0.000000] Memory: 53676K/65536K available (5096K kernel code, 206K rwdata, 1188K rodata, 4444K init, 202K bss, 11860K reserved, 0K cma-reserved)

[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS: 256

[    0.000000] intc: using register map from devicetree

[    0.000000] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0

[    0.000000] CPU Clock: 580MHz

[    0.000000] timer_probe: no matching timers found

[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns

[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns

[    0.015387] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)

[    0.087584] pid_max: default: 32768 minimum: 301

[    0.096909] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)

[    0.111239] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)

[    0.132619] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

[    0.152002] futex hash table entries: 256 (order: -1, 3072 bytes, linear)

[    0.165506] pinctrl core: initialized pinctrl subsystem

[    0.176900] NET: Registered protocol family 16

[    0.221283] usbcore: registered new interface driver usbfs

[    0.232155] usbcore: registered new interface driver hub

[    0.242624] usbcore: registered new device driver usb

[    0.252794] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512

[    0.276877] clocksource: Switched to clocksource MIPS

[    0.288203] NET: Registered protocol family 2

[    0.296967] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)

[    0.311857] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)

[    0.328333] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)

[    0.343410] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)

[    0.357339] TCP: Hash tables configured (established 1024 bind 1024)

[    0.370038] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)

[    0.382881] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)

[    0.396966] NET: Registered protocol family 1

[    0.405462] PCI: CLS 0 bytes, default 32

[    2.646883] random: fast init done

[    6.811361] workingset: timestamp_bits=14 max_order=14 bucket_order=0

[    6.832765] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[    6.844221] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.

[    6.879576] ================(null)          // 这是我自己加的printk

[    6.887106] mt7621_gpio 10000600.gpio: registering 32 gpios

[    6.898309] mt7621_gpio 10000600.gpio: registering 32 gpios

[    6.909541] mt7621_gpio 10000600.gpio: registering 32 gpios

[    6.920768] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled

[    6.934428] printk: console [ttyS0] disabled

[    6.942863] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A

[    6.960662] printk: console [ttyS0] enabled

[    6.977149] printk: bootconsole [early0] disabled

[    6.997084] spi-mt7621 10000b00.spi: sys_freq: 193333333

[    7.014345] spi-nor spi0.0: mx25l12805d (16384 Kbytes)

[    7.024640] 4 fixed-partitions partitions found on MTD device spi0.0

[    7.037238] Creating 4 MTD partitions on "spi0.0":

[    7.046725] 0x000000000000-0x000000030000 : "u-boot"

[    7.057752] 0x000000030000-0x000000040000 : "u-boot-env"

[    7.069434] 0x000000040000-0x000000050000 : "factory"

[    7.080601] 0x000000050000-0x000000800000 : "firmware"

[    7.097376] libphy: Fixed MDIO Bus: probed

[    7.145038] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized

[    7.160320] mtk_soc_eth 10100000.ethernet: generated random MAC address f6:9e:b1:76:8c:ce

[    7.177314] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5

[    7.193959] usbcore: registered new interface driver cdc_ether

[    7.205603] usbcore: registered new interface driver cdc_subset

[    7.217415] usbcore: registered new interface driver sierra_net

[    7.229248] usbcore: registered new interface driver cdc_ncm

[    7.240544] usbcore: registered new interface driver huawei_cdc_ncm

[    7.252965] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[    7.265890] ehci-pci: EHCI PCI platform driver

[    7.274763] ehci-platform: EHCI generic platform driver

[    7.295437] phy phy-10120000.usbphy.0: remote usb device wakeup disabled

[    7.308722] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz

[    7.319075] ehci-platform 101c0000.ehci: EHCI Host Controller

[    7.330520] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1

[    7.346360] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000

[    7.386900] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00

[    7.400261] hub 1-0:1.0: USB hub found

[    7.408211] hub 1-0:1.0: 1 port detected

[    7.417145] usbcore: registered new interface driver cdc_acm

[    7.428391] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

[    7.444320] usbcore: registered new interface driver cdc_wdm

[    7.455746] usbcore: registered new interface driver usbserial_generic

[    7.468778] usbserial: USB Serial support registered for generic

[    7.480763] usbcore: registered new interface driver option

[    7.491870] usbserial: USB Serial support registered for GSM modem (1-port)

[    7.507686] NET: Registered protocol family 10

[    7.522252] Segment Routing with IPv6

[    7.529731] NET: Registered protocol family 17

[    7.538618] 8021q: 802.1Q VLAN Support v1.8

[    7.573617] Freeing unused kernel memory: 4444K

[    7.582621] This architecture does not have kernel memory protection.

[    7.595371] Run /init as init process

[    8.417059] init: Console is alive

[    8.424070] init: - watchdog -

[    8.461754] kmodloader: loading kernel modules from /etc/modules-boot.d/*

[    8.515738] ehci-fsl: Freescale EHCI Host controller driver

[    8.532321] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

[    8.546271] ohci-platform: OHCI generic platform driver

[    8.556993] ohci-platform 101c1000.ohci: Generic Platform OHCI controller

[    8.570494] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2

[    8.586302] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000

[    8.671869] hub 2-0:1.0: USB hub found

[    8.679831] hub 2-0:1.0: 1 port detected

[    8.690696] uhci_hcd: USB Universal Host Controller Interface driver

[    8.706303] kmodloader: done loading kernel modules from /etc/modules-boot.d/*

[    8.731205] init: - preinit -

[    8.985984] random: jshn: uninitialized urandom read (4 bytes read)

[    9.085565] random: jshn: uninitialized urandom read (4 bytes read)

[    9.265715] random: jshn: uninitialized urandom read (4 bytes read)

[   12.754488] procd: - early -

[   12.760757] procd: - watchdog -

[   13.029076] urandom_read: 3 callbacks suppressed

[   13.029086] random: jshn: uninitialized urandom read (4 bytes read)

[   13.268378] random: jshn: uninitialized urandom read (4 bytes read)

[   13.345060] procd: - watchdog -

[   13.357421] procd: - ubus -

[   13.387771] random: ubusd: uninitialized urandom read (4 bytes read)

[   13.417734] procd: - init -

[   13.849740] rt3050-esw 10110000.esw: port 0 link up

[   14.286346] kmodloader: loading kernel modules from /etc/modules.d/*

[   14.564849] hidraw: raw HID events driver (C) Jiri Kosina

[   14.600266] usbcore: registered new interface driver cdc_mbim

[   14.637570] usbcore: registered new interface driver ipw

[   14.648272] usbserial: USB Serial support registered for IPWireless converter

[   14.705085] usbcore: registered new interface driver qcserial

[   14.716647] usbserial: USB Serial support registered for Qualcomm USB modem

[   14.758641] usbcore: registered new interface driver qmi_wwan

[   14.781625] urngd: v1.0.2 started.

[   14.792669] usbcore: registered new interface driver usbhid

[   14.803782] usbhid: USB HID core driver

[   14.850409] xt_time: kernel timezone is -0000

[   14.919851] PPP generic driver version 2.4.2

[   14.938272] NET: Registered protocol family 24

[   14.981605] kmodloader: done loading kernel modules from /etc/modules.d/*

[   15.115084] random: crng init done

[   15.121861] random: 1 urandom warning(s) missed due to ratelimiting

[   36.014966] rt3050-esw 10110000.esw: port 0 link down

[   39.049787] rt3050-esw 10110000.esw: port 0 link up

[   43.672358] br-lan: port 1(eth0.1) entered blocking state

[   43.683142] br-lan: port 1(eth0.1) entered disabled state

[   43.694431] device eth0.1 entered promiscuous mode

[   43.703984] device eth0 entered promiscuous mode

[   43.784674] br-lan: port 1(eth0.1) entered blocking state

[   43.795441] br-lan: port 1(eth0.1) entered forwarding state

[   44.717443] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

请先 登录 后评论

1 个回答

百问网-黄老师
擅长:嵌入式开发

你好,我们课程不涉及mt7628dan相关教程,相关问题请自行网上搜索或者调试尝试

请先 登录 后评论
  • 1 关注
  • 0 收藏,187 浏览
  • 提出于 2021-08-20 16:11

相似问题