bl4ckc00k1e Posted January 7, 2016 Posted January 7, 2016 (edited) Hi all, I try to compile the driver mt7610u from TP-Link AC600 Archer T2UH USB on BPI-M2 and i have this error: root@bananapim2:~/mt7610u_wifi_sta_v3002_dpo_20130916# make clean && make cp -f os/linux/Makefile.clean os/linux/Makefile make -C os/linux clean make[1]: Entering directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' rm -f ../../common/*.o rm -f ../../common/.*.cmd .*.flags .*.d rm -f ../../os/linux/*.o *.ko *.mod.o *.mod.c rm -f ../../os/linux/.*.cmd .*.flags .*.d rm -fr ../../os/linux/.tmp_versions rm -f ../../os/linux/Module.symvers rm -f ../../os/linux/Modules.symvers rm -f ../../os/linux/Module.markers rm -f ../../os/linux/modules.order rm -f ../../chips/*.o rm -f ../../chips/.*.cmd .*.flags .*.d rm -f ../../rate_ctrl/*.o rm -f ../../rate_ctrl/.*.cmd .*.flags .*.d rm -f ../../ate/common/*.o rm -f ../../ate/common/.*.cmd .*.flags .*.d rm -f ../../ate/chips/*.o rm -f ../../ate/chips/.*.cmd .*.flags .*.d rm -f ../../phy/*.o rm -f ../../phy/.*.cmd .*.flags .*.d rm -f ../../mac/*.o rm -f ../../mac/.*.cmd .*.flags .*.d rm -f ../../mcu/*.o rm -f ../../mcu/.*.cmd .*.flags .*.d rm -f ../../mgmt/*.o rm -f ../../mgmt/.*.cmd .*.flags .*.d rm -f ../../naf/*.o rm -f ../../naf/.*.cmd .*.flags .*.d rm -f ../../sta/*.o rm -f ../../sta/.*.cmd .*.flags .*.d make[1]: Leaving directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' rm -rf os/linux/Makefile make -C tools make[1]: Entering directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools' /root/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h chipset = mt7650u chipset = mt7630u chipset = mt7610u cp -f os/linux/Makefile.6 /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile make -C /lib/modules/4.3.3-sunxi/build SUBDIRS=/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules make[1]: Entering directory '/usr/src/linux-headers-4.3.3-sunxi' CC [M] /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’: /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:334:16: warning: unused variable ‘pAd’ [-Wunused-variable] RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc; ^ /bin/sh: 1: scripts/basic/fixdep: not found scripts/Makefile.build:258: recipe for target '/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o' failed make[2]: *** [/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o] Error 127 Makefile:1378: recipe for target '_module_/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' failed make[1]: *** [_module_/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.3.3-sunxi' Makefile:405: recipe for target 'LINUX' failed make: *** [LINUX] Error 2 I install dkms wpasupplicant build-essential linux-headers-sunxi gcc... I am still searching and trying install old drivers with out any good result. Try search fixdep and nothing Here the driver: http://www.mediatek.com/en/downloads1/downloads/mt7601u-usb/ Thanks Edited January 8, 2016 by wildcat_paris added [spoiler]
Igor Posted January 7, 2016 Posted January 7, 2016 cd /usr/src/linux-headers-4.3.3-sunxi make scripts And try again. BTW: this driver is already inside kernel. 2
zador.blood.stained Posted January 7, 2016 Posted January 7, 2016 Try executing this: cd /usr/src/linux-headers-4.3.3-sunxi make scripts and if there are no errors then repeat your module compilation Edit: I see only mt7601u in mainline source tree, don't know if it supports this wireless module. 2
bl4ckc00k1e Posted January 8, 2016 Author Posted January 8, 2016 cd /usr/src/linux-headers-4.3.3-sunxi make scripts And try again. BTW: this driver is already inside kernel. Try executing this: cd /usr/src/linux-headers-4.3.3-sunxi make scripts and if there are no errors then repeat your module compilation Edit: I see only mt7601u in mainline source tree, don't know if it supports this wireless module. Solved! thanks! Now the driver dont load on the startup, dont know why, but i compiled the drives sucesfull
zador.blood.stained Posted January 8, 2016 Posted January 8, 2016 Now the driver dont load on the startup Add its name to /etc/modules to load it automatically
bl4ckc00k1e Posted January 8, 2016 Author Posted January 8, 2016 Add its name to /etc/modules to load it automatically Hi, I try to add to /etc/modules, but still not charging.... I try with this 3 names: mt7610u mt7610 RT2870STA root@bananapim2:~# cat /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. brcmfmac bonding mt7610u mt7610 RT2870STA Not sure if i put the real name or what the 3º name i get it from the driver install, but nothing works..
zador.blood.stained Posted January 8, 2016 Posted January 8, 2016 You need only mt7610u I think. Remove 2 other lines, especially since module names are case sensitive. If you can load it manually with modprobe, it should work with the line in /etc/modules, check output of "dmesg" for possible errors.
bl4ckc00k1e Posted January 8, 2016 Author Posted January 8, 2016 (edited) You need only mt7610u I think. Remove 2 other lines, especially since modile names are case sensitive. If you can load it manually with modprobe, it should work with the line in /etc/modules, check output of "dmesg" for possible errors. dmesg output: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 4.3.3-sunxi (root@production) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #3 SMP Mon Dec 28 11:27:16 CET 2015 [ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine model: Banana Pi BPI-M2 [ 0.000000] cma: Reserved 16 MiB at 0x7f000000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 262144 [ 0.000000] free_area_init_node: node 0, pgdat c0a6d140, node_mem_map eeef8000 [ 0.000000] Normal zone: 1710 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 194560 pages, LIFO batch:31 [ 0.000000] HighMem zone: 67584 pages, LIFO batch:15 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: Using PSCI v0.1 Function IDs from DT [ 0.000000] PERCPU: Embedded 12 pages/cpu @eeeb0000 s19584 r8192 d21376 u49152 [ 0.000000] pcpu-alloc: s19584 r8192 d21376 u49152 alloc=12*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260434 [ 0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 1010864K/1048576K available (7931K kernel code, 344K rwdata, 2024K rodata, 348K init, 311K bss, 21328K reserved, 16384K cma-reserved, 253952K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) lowmem : 0xc0000000 - 0xef800000 ( 760 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc09c0f28 (9956 kB) .init : 0xc09c1000 - 0xc0a18000 ( 348 kB) .data : 0xc0a18000 - 0xc0a6e100 ( 345 kB) .bss : 0xc0a71000 - 0xc0abef24 ( 312 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] Architected 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.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000016] Switching to timer-based delay loop, resolution 41ns [ 0.000231] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000349] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns [ 0.000555] Console: colour dummy device 80x30 [ 0.000676] console [tty1] enabled [ 0.000700] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000713] pid_max: default: 32768 minimum: 301 [ 0.000817] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000826] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001432] Initializing cgroup subsys io [ 0.001458] Initializing cgroup subsys memory [ 0.001489] Initializing cgroup subsys devices [ 0.001501] Initializing cgroup subsys freezer [ 0.001513] Initializing cgroup subsys net_cls [ 0.001523] Initializing cgroup subsys perf_event [ 0.001554] CPU: Testing write buffer coherency: ok [ 0.001830] /cpus/cpu@0 missing clock-frequency property [ 0.001843] /cpus/cpu@1 missing clock-frequency property [ 0.001854] /cpus/cpu@2 missing clock-frequency property [ 0.001865] /cpus/cpu@3 missing clock-frequency property [ 0.001875] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.001925] Setting up static identity map for 0x400082c0 - 0x40008318 [ 0.003355] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.003880] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.004409] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.004456] Brought up 4 CPUs [ 0.004474] SMP: Total of 4 processors activated (192.00 BogoMIPS). [ 0.004480] CPU: All CPU(s) started in HYP mode. [ 0.004484] CPU: Virtualization extensions available. [ 0.005204] devtmpfs: initialized [ 0.011111] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3 [ 0.011395] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.012039] xor: measuring software checksum speed [ 0.110023] arm4regs : 1374.400 MB/sec [ 0.210076] 8regs : 853.600 MB/sec [ 0.310128] 32regs : 875.600 MB/sec [ 0.310135] xor: using function: arm4regs (1374.400 MB/sec) [ 0.310236] pinctrl core: initialized pinctrl subsystem [ 0.311098] NET: Registered protocol family 16 [ 0.312140] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.340163] cpuidle: using governor ladder [ 0.370178] cpuidle: using governor menu [ 0.375186] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.375195] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.550627] raid6: int32x1 gen() 153 MB/s [ 0.720378] raid6: int32x1 xor() 122 MB/s [ 0.890467] raid6: int32x2 gen() 205 MB/s [ 1.060587] raid6: int32x2 xor() 132 MB/s [ 1.230732] raid6: int32x4 gen() 217 MB/s [ 1.400770] raid6: int32x4 xor() 134 MB/s [ 1.570790] raid6: int32x8 gen() 198 MB/s [ 1.741003] raid6: int32x8 xor() 128 MB/s [ 1.741010] raid6: using algorithm int32x4 gen() 217 MB/s [ 1.741015] raid6: .... xor() 134 MB/s, rmw enabled [ 1.741021] raid6: using intx1 recovery algorithm [ 1.741755] reg-fixed-voltage vmmc2: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/vmmc2_pin@0, deferring probe [ 1.742149] SCSI subsystem initialized [ 1.742309] libata version 3.00 loaded. [ 1.742569] usbcore: registered new interface driver usbfs [ 1.742626] usbcore: registered new interface driver hub [ 1.742695] usbcore: registered new device driver usb [ 1.742802] media: Linux media interface: v0.10 [ 1.742859] Linux video capture interface: v2.00 [ 1.742948] pps_core: LinuxPPS API ver. 1 registered [ 1.742955] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 1.742979] PTP clock support registered [ 1.744611] clocksource: Switched to clocksource arch_sys_counter [ 1.753306] NET: Registered protocol family 2 [ 1.753874] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 1.753954] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 1.754068] TCP: Hash tables configured (established 8192 bind 8192) [ 1.754125] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 1.754170] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 1.754358] NET: Registered protocol family 1 [ 1.754633] RPC: Registered named UNIX socket transport module. [ 1.754642] RPC: Registered udp transport module. [ 1.754647] RPC: Registered tcp transport module. [ 1.754652] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.755310] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available [ 1.756358] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 1.766240] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.767885] NFS: Registering the id_resolver key type [ 1.767932] Key type id_resolver registered [ 1.767938] Key type id_legacy registered [ 1.768431] Key type cifs.idmap registered [ 1.768620] fuse init (API version 7.23) [ 1.769476] JFS: nTxBlock = 8025, nTxLock = 64203 [ 1.777640] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 1.783407] bounce: pool size: 64 pages [ 1.783475] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 1.783586] io scheduler noop registered [ 1.783599] io scheduler deadline registered [ 1.783639] io scheduler cfq registered (default) [ 1.785767] sun6i-a31-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver [ 1.786037] sun6i-a31-r-pinctrl 1f02c00.pinctrl: Reset controller missing [ 1.836171] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 1.858655] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 41, base_baud = 1500000) is a U6_16550A [ 1.865191] loop: module loaded [ 1.866131] Loading iSCSI transport class v2.0-870. [ 1.866934] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) [ 1.869156] tun: Universal TUN/TAP device driver, 1.6 [ 1.869163] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 1.869590] PPP generic driver version 2.4.2 [ 1.869756] PPP BSD Compression module registered [ 1.869769] PPP Deflate Compression module registered [ 1.869794] PPP MPPE Compression module registered [ 1.869813] NET: Registered protocol family 24 [ 1.869846] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.869856] ehci-platform: EHCI generic platform driver [ 1.870071] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.870090] ohci-platform: OHCI generic platform driver [ 1.870312] usbcore: registered new interface driver usb-storage [ 1.870322] ftdi_elan: driver ftdi-elan [ 1.870588] usbcore: registered new interface driver ftdi-elan [ 1.871155] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0 [ 1.871165] sun6i-rtc 1f00000.rtc: RTC enabled [ 1.871326] i2c /dev entries driver [ 1.873065] IR NEC protocol handler initialized [ 1.873077] IR RC5(x/sz) protocol handler initialized [ 1.873087] IR RC6 protocol handler initialized [ 1.873097] IR JVC protocol handler initialized [ 1.873107] IR Sony protocol handler initialized [ 1.873117] IR SANYO protocol handler initialized [ 1.873127] IR Sharp protocol handler initialized [ 1.873138] IR MCE Keyboard/mouse protocol handler initialized [ 1.873148] IR XMP protocol handler initialized [ 1.873850] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 1.874343] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found [ 1.874722] sunxi-mmc 1c0f000.mmc: Got CD GPIO [ 1.914725] sunxi-mmc 1c0f000.mmc: base:0xf0532000 irq:28 [ 1.915549] leds-gpio g40_leds: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/g40_pins@0, deferring probe [ 1.915717] ledtrig-cpu: registered to indicate activity on CPUs [ 1.915965] usbcore: registered new interface driver usbhid [ 1.915971] usbhid: USB HID core driver [ 1.917147] ipip: IPv4 over IPv4 tunneling driver [ 1.917810] Initializing XFRM netlink socket [ 1.918585] NET: Registered protocol family 10 [ 1.919487] NET: Registered protocol family 17 [ 1.919516] NET: Registered protocol family 15 [ 1.919559] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 1.919572] can: controller area network core (rev 20120528 abi 9) [ 1.919626] NET: Registered protocol family 29 [ 1.919706] 8021q: 802.1Q VLAN Support v1.8 [ 1.919761] Key type dns_resolver registered [ 1.920486] cpu cpu0: running cpufreq without cooling device: -38 [ 1.920523] Registering SWP/SWPB emulation handler [ 1.921131] registered taskstats version 1 [ 1.921439] zswap: zpool zbud not available, using default zbud [ 1.921548] zpool: no driver for type zbud [ 1.921555] zswap: zbud zpool not available [ 1.921560] zswap: pool creation failed [ 1.924034] Btrfs loaded [ 1.924827] Key type encrypted registered [ 1.925010] reg-fixed-voltage vmmc2: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/vmmc2_pin@0, deferring probe [ 1.925766] sun6i-a31-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver [ 1.927378] sunxi-mmc 1c11000.mmc: No vqmmc regulator found [ 1.951698] mmc0: host does not support reading read-only switch, assuming write-enable [ 1.954111] mmc0: new high speed SDHC card at address 0007 [ 1.954592] mmcblk0: mmc0:0007 SD8GB 7.42 GiB [ 1.955847] mmcblk0: p1 [ 1.964638] sunxi-mmc 1c11000.mmc: base:0xf0540000 irq:29 [ 1.968300] vcc3v3: disabling [ 1.968315] vcc5v0: disabling [ 1.970523] sunxi-mmc 1c11000.mmc: smc 1 err, cmd 8, RTO !! [ 1.970612] EXT4-fs (mmcblk0p1): INFO: recovery required on readonly filesystem [ 1.970620] EXT4-fs (mmcblk0p1): write access will be enabled during recovery [ 1.979722] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 1.981208] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.982690] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.985363] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 2.000419] mmc1: new high speed SDIO card at address 0001 [ 2.282683] random: nonblocking pool is initialized [ 4.021463] EXT4-fs (mmcblk0p1): recovery complete [ 4.099395] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null) [ 4.099468] VFS: Mounted root (ext4 filesystem) readonly on device 179:1. [ 4.100748] devtmpfs: mounted [ 4.101465] Freeing unused kernel memory: 348K (c09c1000 - c0a18000) [ 4.969887] systemd-udevd[217]: starting version 215 [ 5.189715] sun4i-ss 1c15000.crypto-engine: Die ID 5 [ 5.189741] sun4i-ss 1c15000.crypto-engine: Fail to register md5 [ 5.189798] sun4i-ss: probe of 1c15000.crypto-engine failed with error -22 [ 5.251233] ehci-platform 1c1a000.usb: EHCI Host Controller [ 5.251310] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1 [ 5.253109] ehci-platform 1c1a000.usb: irq 30, io mem 0x01c1a000 [ 5.262839] sun7i-dwmac 1c30000.ethernet: no regulator found [ 5.262954] Ring mode enabled [ 5.262967] No HW DMA feature register supported [ 5.262975] Normal descriptors [ 5.262983] TX Checksum insertion supported [ 5.265076] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00 [ 5.265476] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 5.265494] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.265508] usb usb1: Product: EHCI Host Controller [ 5.265521] usb usb1: Manufacturer: Linux 4.3.3-sunxi ehci_hcd [ 5.265539] usb usb1: SerialNumber: 1c1a000.usb [ 5.266521] hub 1-0:1.0: USB hub found [ 5.266599] hub 1-0:1.0: 1 port detected [ 5.267653] ohci-platform 1c1a400.usb: Generic Platform OHCI controller [ 5.267702] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2 [ 5.274440] ohci-platform 1c1a400.usb: irq 31, io mem 0x01c1a400 [ 5.331723] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001 [ 5.331761] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.331775] usb usb2: Product: Generic Platform OHCI controller [ 5.331810] usb usb2: Manufacturer: Linux 4.3.3-sunxi ohci_hcd [ 5.331851] usb usb2: SerialNumber: 1c1a400.usb [ 5.333465] hub 2-0:1.0: USB hub found [ 5.334252] hub 2-0:1.0: 1 port detected [ 5.347134] libphy: stmmac: probed [ 5.347155] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active [ 5.347163] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01) [ 5.584686] usb 1-1: new high-speed USB device number 2 using ehci-platform [ 5.632987] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Apr 22 2013 14:50:00 version 5.90.195.89.6 FWID 01-b30a427d [ 5.647368] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code [ 5.735303] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101 [ 5.735326] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 5.735338] usb 1-1: Product: USB 2.0 Hub [ 5.736317] hub 1-1:1.0: USB hub found [ 5.736408] hub 1-1:1.0: 4 ports detected [ 6.014650] usb 1-1.1: new high-speed USB device number 3 using ehci-platform [ 6.145554] usb 1-1.1: New USB device found, idVendor=0cf3, idProduct=9271 [ 6.145576] usb 1-1.1: New USB device strings: Mfr=16, Product=32, SerialNumber=48 [ 6.145589] usb 1-1.1: Product: USB2.0 WLAN [ 6.145601] usb 1-1.1: Manufacturer: ATHEROS [ 6.145613] usb 1-1.1: SerialNumber: 12345 [ 6.224658] usb 1-1.2: new high-speed USB device number 4 using ehci-platform [ 6.307768] usb 1-1.1: ath9k_htc: Firmware htc_9271.fw requested [ 6.307954] usbcore: registered new interface driver ath9k_htc [ 6.341690] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8187 [ 6.341718] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.341737] usb 1-1.2: Product: RTL8187_Wireless [ 6.341755] usb 1-1.2: Manufacturer: Manufacturer_Realtek_RTL8187_ [ 6.341773] usb 1-1.2: SerialNumber: 00C0CA61ACB6 [ 6.424702] usb 1-1.3: new high-speed USB device number 5 using ehci-platform [ 6.558925] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a [ 6.558949] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.558960] usb 1-1.3: Product: WiFi [ 6.558970] usb 1-1.3: Manufacturer: MediaTek [ 6.558980] usb 1-1.3: SerialNumber: 1.0 [ 6.608316] usb 1-1.1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272 [ 6.736149] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' [ 6.737065] ieee80211 phy1: hwaddr 00:c0:ca:61:ac:b6, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2 [ 6.757537] rtl8187: Customer ID is 0xFF [ 6.760043] rtl8187: wireless switch is on [ 6.760220] usbcore: registered new interface driver rtl8187 [ 6.844808] ath9k_htc 1-1.1:1.0: ath9k_htc: HTC initialized with 33 credits [ 7.584134] rtusb init rt2870 ---> [ 7.584877] === pAd = f1b01000, size = 849456 === [ 7.584911] <-- ERROR in Alloc Bulk buffer for HTTxContext! [ 7.584917] ---> RTMPFreeTxRxRingMemory [ 7.584934] <--- RTMPFreeTxRxRingMemory [ 7.584940] ERROR!!! Failed to allocate memory - TxRxRing [ 7.585470] <-- RTMPAllocAdapterBlock, Status=3 [ 7.585507] rt2870: probe of 1-1.3:1.0 failed with error -1 [ 7.585636] usbcore: registered new interface driver rt2870 [ 8.132298] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code [ 8.132320] cfg80211: World regulatory domain updated: [ 8.132326] cfg80211: DFS Master region: unset [ 8.132333] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 8.132343] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 8.132351] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 8.132359] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 8.132369] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A) [ 8.132379] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s) [ 8.132387] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 8.132395] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 8.132403] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 9.066423] ath9k_htc 1-1.1:1.0: ath9k_htc: FW Version: 1.3 [ 9.066443] ath9k_htc 1-1.1:1.0: FW RMW support: Off [ 9.066451] ath: EEPROM regdomain: 0x809c [ 9.066456] ath: EEPROM indicates we should expect a country code [ 9.066464] ath: doing EEPROM country->regdmn map search [ 9.066470] ath: country maps to regdmn code: 0x52 [ 9.066477] ath: Country alpha2 being used: CN [ 9.066481] ath: Regpair used: 0x52 [ 9.071454] ieee80211 phy2: Atheros AR9271 Rev:1 [ 9.081967] ath9k_htc 1-1.1:1.0 wlan3: renamed from wlan2 [ 9.125017] systemd-udevd[239]: renamed network interface wlan2 to wlan3 [ 9.219389] cfg80211: Regulatory domain changed to country: CN [ 9.219419] cfg80211: DFS Master region: FCC [ 9.219428] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 9.219440] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 9.219452] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (N/A) [ 9.219462] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s) [ 9.219470] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A) [ 9.219479] cfg80211: (57240000 KHz - 59400000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A) [ 9.219488] cfg80211: (59400000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4400 mBm), (N/A) [ 9.219497] cfg80211: (63720000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A) [ 11.328673] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=writeback,commit=600,errors=remount-ro [ 11.827207] Adding 131068k swap on /var/swap. Priority:-1 extents:5 across:565244k SSFS [ 13.500592] RX IPC Checksum Offload disabled [ 13.500614] No MAC Management Counters available [ 15.484992] sun7i-dwmac 1c30000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 41.337891] Bluetooth: Core ver 2.20 [ 41.337962] NET: Registered protocol family 31 [ 41.337970] Bluetooth: HCI device and connection manager initialized [ 41.337990] Bluetooth: HCI socket layer initialized [ 41.338002] Bluetooth: L2CAP socket layer initialized [ 41.338029] Bluetooth: SCO socket layer initialized [ 41.449418] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 41.449438] Bluetooth: BNEP filters: protocol multicast [ 41.449463] Bluetooth: BNEP socket layer initialized [ 42.770127] ip_tables: (C) 2000-2006 Netfilter Core Team Looks like driver is rt2870, but i have this errors... i see that i have errors too in the internal wifi of bpi-m2 (AP6181 - brcmfmac) [ 7.584134] rtusb init rt2870 ---> [ 7.584877] === pAd = f1b01000, size = 849456 === [ 7.584911] <-- ERROR in Alloc Bulk buffer for HTTxContext! [ 7.584917] ---> RTMPFreeTxRxRingMemory [ 7.584934] <--- RTMPFreeTxRxRingMemory [ 7.584940] ERROR!!! Failed to allocate memory - TxRxRing I tried too try use modprobe, but unsucesfull output... odprobe: FATAL: Module rt2870 not found. root@bananapim2:~# modprobe rt2870sta modprobe: FATAL: Module rt2870sta not found. root@bananapim2:~# modprobe mt7610u modprobe: FATAL: Module mt7610u not found. root@bananapim2:~# modprobe mt7610 modprobe: FATAL: Module mt7610 not found. Next step? :S Thanks for the help Edited January 8, 2016 by wildcat_paris added [spoiler]
bl4ckc00k1e Posted January 8, 2016 Author Posted January 8, 2016 Well i did some steps more, but still not working: root@bananapim2:~# find / -name "mt7601*" /lib/firmware/mt7601u.bin /lib/firmware/mt7601.bin /lib/modules/4.3.3-sunxi/kernel/drivers/net/wireless/mediatek/mt7601u /lib/modules/4.3.3-sunxi/kernel/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko /usr/src/linux-headers-4.3.3-sunxi/include/config/mt7601u.h /usr/src/linux-headers-4.3.3-sunxi/drivers/net/wireless/mediatek/mt7601u insmod /lib/modules/4.3.3-sunxi/kernel/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko I adding manually the mt7601u to /etc/modules (NOT mt7610u, before was bad) modprobe mt7601u reboot lsmod: root@bananapim2:~# lsmod Module Size Used by mt7601u 47305 0 iptable_mangle 1390 0 ip_tables 11445 1 iptable_mangle x_tables 10594 2 ip_tables,iptable_mangle bnep 9892 2 bluetooth 299705 5 bnep mt7650u_sta 863562 0 rtl8187 48505 0 eeprom_93cx6 2518 1 rtl8187 ath9k_htc 49631 0 ath9k_common 19782 1 ath9k_htc ath9k_hw 403460 2 ath9k_common,ath9k_htc ath 17577 3 ath9k_common,ath9k_htc,ath9k_hw mac80211 353408 3 rtl8187,mt7601u,ath9k_htc realtek 2455 0 brcmfmac 159423 0 brcmutil 4893 1 brcmfmac sun4i_ts 3734 0 dwmac_sunxi 2175 0 phy_sun4i_usb 7218 2 sun4i_ss 14914 0 extcon 8900 1 phy_sun4i_usb Well, now i see the usb there: mac80211 353408 3 rtl8187,mt7601u,ath9k_htc But still have not Wireless working
zador.blood.stained Posted January 8, 2016 Posted January 8, 2016 If we are talking about this device [ 6.424702] usb 1-1.3: new high-speed USB device number 5 using ehci-platform [ 6.558925] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a [ 6.558949] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.558960] usb 1-1.3: Product: WiFi [ 6.558970] usb 1-1.3: Manufacturer: MediaTek [ 6.558980] usb 1-1.3: SerialNumber: 1.0 it's not supported by mt7601u that is present in current kernel sources. Edit: you can try solution from this page or from driver github page directly and hope that this driver works.
bl4ckc00k1e Posted January 12, 2016 Author Posted January 12, 2016 what you get: iwconfig If we are talking about this device [ 6.424702] usb 1-1.3: new high-speed USB device number 5 using ehci-platform [ 6.558925] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a [ 6.558949] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.558960] usb 1-1.3: Product: WiFi [ 6.558970] usb 1-1.3: Manufacturer: MediaTek [ 6.558980] usb 1-1.3: SerialNumber: 1.0 it's not supported by mt7601u that is present in current kernel sources. Edit: you can try solution from this page or from driver github page directly and hope that this driver works. @Igor My output of Iwfconfig is: root@bananapim2:~# iwconfig wlan3 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry short limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off wlan0 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Retry short limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on lo no wireless extensions. eth0 no wireless extensions. wlan1 IEEE 802.11bg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry short limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on bond0 no wireless extensions. tunl0 no wireless extensions. @zador.blood.stained just that source is the driver that i have installed before... i did again that steps and still dont working... Thanks guys for your time and help
greenbag Posted February 28, 2016 Posted February 28, 2016 You have to watch that Mediatek site.. it has the mt7610u link on the mt7601u page, and the mt7601u link on the mt7610u page. I'm not an Armbian user.. I'm just passing through, but if it has the ability to install linux-firmware-nonfree or firmware-linux-nonfree, then the driver's already there. It's in Ubuntu's repos, and it's also in Jessie. I get full 5G in Ubuntu using that package, but we're stuck at 2.4g on the Rapsberry Pi 2 when installed by compiling. And when modprobing this driver, you need to add _sta at the end of it... modprobe mt7610u_sta.
Recommended Posts