移植原厂wifi驱动

] mt7628: Unknown symbol ra_mtd_write_nm (err 0)
[ 16.240000] mt7628: Unknown symbol ra_mtd_read_nm (err 0)
[ 16.250000] mt7628: Unknown symbol procRegDir (err 0)
[ 16.260000] arp_tables: (C) 2002 David S. Miller
已邀请:

佐须之男 - 拥有10年Linux嵌入式开发经验,专注于网络设备解决方案

赞同来自: bear_218

读取Flash相关的函数没有移植过去。

bear_218 - 学习中,努力学习中

赞同来自:

内核打印信息如下: 发现文件系统启动完成时间很靠后,不知道是不是跟这个问题有关
[    0.000000] Linux version 3.18.29 (root@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49363) ) #100 Thu Dec 29 18:49:18 PST 2016
[    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] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is WRTnode2R
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[    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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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] Writing ErrCtl register=00078540
[    0.000000] Readback ErrCtl register=00078540
[    0.000000] Memory: 61232K/65536K available (2600K kernel code, 126K rwdata, 528K rodata, 192K init, 186K bss, 4304K 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] CPU Clock: 580MHz
[    0.000000] clocksource_of_init: no matching clocksources found
[    0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.200000] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.350000] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[    0.360000] mt7620-pci: probe of 10140000.pcie failed with error -1
[    0.380000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.390000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.400000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.410000] Switched to clocksource MIPS
[    0.420000] NET: Registered protocol family 2
[    0.420000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.440000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.450000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.460000] TCP: reno registered
[    0.470000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.480000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.490000] NET: Registered protocol family 1
[    0.500000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.530000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.540000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.570000] msgmni has been set to 119
[    0.570000] io scheduler noop registered
[    0.580000] io scheduler deadline registered (default)
[    0.590000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[336]
[    0.600000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[350]
[    0.620000] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
[    0.630000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.640000] console [ttyS0] disabled
[    0.650000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.670000] console [ttyS0] enabled
[    0.670000] console [ttyS0] enabled
[    0.680000] bootconsole [early0] disabled
[    0.680000] bootconsole [early0] disabled
[    0.700000] MT7628/7688 SPI Driver By WRTnode Team !
[    0.710000] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.730000] m25p80 spi0.0: found mx25l6405d, expected w25q256
[    0.740000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.750000] m25p80 spi0.0: using chunked io
[    0.760000] 4 ofpart partitions found on MTD device spi0.0
[    0.770000] Creating 4 MTD partitions on "spi0.0":
[    0.780000] 0x000000000000-0x000000030000 : "u-boot"
[    0.790000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.800000] 0x000000040000-0x000000050000 : "factory"
[    0.810000] 0x000000050000-0x000002000000 : "firmware"
[    0.820000] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0x7b0000
[    0.870000] 2 uimage-fw partitions found on MTD device firmware
[    0.880000] 0x000000050000-0x00000016eae9 : "kernel"
[    0.890000] 0x00000016eae9-0x000000800000 : "rootfs"
[    0.900000] mtd: device 5 (rootfs) set to be root filesystem
[    0.910000] 1 squashfs-split partitions found on MTD device rootfs
[    0.930000] 0x000000660000-0x000000800000 : "rootfs_data"
[    0.950000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.960000] mt7621_wdt 10000120.watchdog: Initialized
[    0.970000] TCP: cubic registered
[    0.980000] NET: Registered protocol family 17
[    0.990000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.010000] 8021q: 802.1Q VLAN Support v1.8
[    1.040000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.060000] Freeing unused kernel memory: 192K (80330000 - 80360000)
[    2.750000] init: Console is alive
[    2.760000] init: - watchdog -
[    5.930000] usbcore: registered new interface driver usbfs
[    5.940000] usbcore: registered new interface driver hub
[    5.950000] usbcore: registered new device driver usb
[    5.970000] gpio_rst_drv_init:Hello slic_gpio
[    5.980000] gpio_rst_drv_init:Hello gpio_rst
[    5.990000] spi_drv_init:Hello spi
[    5.990000] spi_drv_init:SIM_ENABLE
[    6.000000] gpio_rst_drv_init:Hello watchdog
[    6.020000] SCSI subsystem initialized
[    6.030000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.050000] ehci-platform: EHCI generic platform driver
[    6.210000] U2PHY P0 set SRCTRL calibration value: 6
[    6.210000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    6.230000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    6.240000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    6.270000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    6.280000] hub 1-0:1.0: USB hub found
[    6.290000] hub 1-0:1.0: 1 port detected
[    6.300000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.310000] ohci-platform: OHCI generic platform driver
[    6.320000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    6.330000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    6.350000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    6.420000] hub 2-0:1.0: USB hub found
[    6.430000] hub 2-0:1.0: 1 port detected
[    6.440000] usbcore: registered new interface driver usb-storage
[    6.610000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.790000] init: - preinit -
[    7.560000] rt305x-esw 10110000.esw: link changed 0x00
[    7.610000] random: procd urandom read with 12 bits of entropy available
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
[   10.900000] mount_root: loading kmods from internal overlay
[   11.470000] block: attempting to load /etc/config/fstab
[   11.480000] block: unable to load configuration (fstab: Entry not found)
[   11.490000] block: no usable configuration
[   11.500000] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.530000] procd: - early -
[   11.540000] procd: - watchdog -
[   11.600000] rt305x-esw 10110000.esw: link changed 0x01
[   12.420000] procd: - ubus -
[   13.450000] procd: - init -
Please press Enter to activate this console.
[   14.870000] NET: Registered protocol family 10
[   14.910000] ntfs: driver 2.1.31 [Flags: R/O MODULE].
[   14.930000] Initializing XFRM netlink socket
[   14.940000] NET: Registered protocol family 15
[   15.030000] l2tp_core: L2TP core driver, V2.0
[   15.040000] l2tp_netlink: L2TP netlink interface
[   15.050000] gre: GRE over IPv4 demultiplexor driver
[   15.070000] ip_gre: GRE over IPv4 tunneling driver
[   15.080000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.110000] i2c /dev entries driver
[   15.190000] u32 classifier
[   15.200000]     input device check on
[   15.200000]     Actions configured
[   15.210000] Mirror/redirect action on
[   15.230000] nf_conntrack version 0.5.0 (959 buckets, 3836 max)
[   16.220000] mt7628: Unknown symbol ra_mtd_write_nm (err 0)
[   16.240000] mt7628: Unknown symbol ra_mtd_read_nm (err 0)
[   16.250000] mt7628: Unknown symbol procRegDir (err 0)
[   16.260000] arp_tables: (C) 2002 David S. Miller
[   16.280000] usbcore: registered new interface driver cdc_wdm
[   16.290000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.380000] mt7628: Unknown symbol ra_mtd_write_nm (err 0)
[   16.390000] mt7628: Unknown symbol ra_mtd_read_nm (err 0)
[   16.400000] mt7628: Unknown symbol procRegDir (err 0)
[   16.490000] usbcore: registered new interface driver usbserial
[   16.500000] usbcore: registered new interface driver usbserial_generic
[   16.510000] usbserial: USB Serial support registered for generic
[   16.560000] xt_time: kernel timezone is -0000
[   16.640000] mt7628: Unknown symbol ra_mtd_write_nm (err 0)
[   16.650000] mt7628: Unknown symbol ra_mtd_read_nm (err 0)
[   16.660000] mt7628: Unknown symbol procRegDir (err 0)
[   16.700000] PPP generic driver version 2.4.2
[   16.710000] PPP MPPE Compression module registered
[   16.720000] NET: Registered protocol family 24
[   16.730000] PPTP driver version 0.8.5
[   16.740000] qmi_wwan: probe of 1-1:1.3 failed with error -1
[   16.750000] qmi_wwan: probe of 1-1:1.5 failed with error -1
[   16.760000] usbcore: registered new interface driver qmi_wwan
[   16.780000] SIM7600 device
[   16.780000] simcom usbnet bind here
[   16.790000] simcom_wwan 1-1:1.5 wwan0: register 'simcom_wwan' at usb-101c0000.ehci-1, SIMCOM wwan/QMI device, 1e:62:39:1d:1c:d2
[   16.820000] usbcore: registered new interface driver simcom_wwan
[   16.840000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   16.940000] mt7628: Unknown symbol ra_mtd_write_nm (err 0)
[   16.950000] mt7628: Unknown symbol ra_mtd_read_nm (err 0)
[   16.960000] mt7628: Unknown symbol procRegDir (err 0)
[   16.980000] usbcore: registered new interface driver option
[   16.990000] usbserial: USB Serial support registered for GSM modem (1-port)
[   17.010000] option 1-1:1.0: GSM modem (1-port) converter detected
[   17.020000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   17.030000] option 1-1:1.1: GSM modem (1-port) converter detected
[   17.050000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   17.060000] option 1-1:1.2: GSM modem (1-port) converter detected
[   17.070000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   17.090000] option 1-1:1.3: GSM modem (1-port) converter detected
[   17.100000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[   17.110000] option 1-1:1.4: GSM modem (1-port) converter detected
[   17.120000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
[   17.150000] usbcore: registered new interface driver qcserial
[   17.160000] usbserial: USB Serial support registered for Qualcomm USB modem
[   17.240000] mt7628: Unknown symbol ra_mtd_write_nm (err 0)
[   17.250000] mt7628: Unknown symbol ra_mtd_read_nm (err 0)
[   17.260000] mt7628: Unknown symbol procRegDir (err 0)
[   21.360000] rt305x-esw 10110000.esw: link changed 0x00
[   25.460000] rt305x-esw 10110000.esw: link changed 0x01
[   27.710000] device eth0.1 entered promiscuous mode
[   27.720000] device eth0 entered promiscuous mode
[   27.780000] br-lan: port 1(eth0.1) entered forwarding state
[   27.790000] br-lan: port 1(eth0.1) entered forwarding state
[   27.840000] simcom_wwan 1-1:1.5 wwan0: kevent 12 may have been dropped
[   29.790000] br-lan: port 1(eth0.1) entered forwarding state
[   35.940000] gpio_rst_drv_open:Hello gpio_rst
[   39.480000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   39.490000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   39.500000] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   48.820000] rt305x-esw 10110000.esw: link changed 0x00
[   51.730000] done.
[   51.740000] jffs2: notice: (1990) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   71.790000] random: nonblocking pool is initialized

xzmu - 10w

赞同来自:

原厂驱动移植建议还是咨询原厂,或者芯片代理

要回复问题请先登录注册