alfonder
Posts: 35
Joined: Sun Jul 06, 2014 9:19 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 03, 2015 9:49 pm

Eventually, I'm back from those soooo long New Year holidays :D . Now it's time to update.
Here is the driver for kernel 3.18.5+ #746.
How to install
Ssh to your RaspberryPi and enter the following commands (better copy-paste to avoid typos):

Code: Select all

cd /tmp
wget https://dl.dropboxusercontent.com/u/67643651/mt7601_3.18.5_746.tar.gz
sudo tar xf mt7601_3.18.5_746.tar.gz -C /
sudo depmod 3.18.5+
sudo reboot
To support me, register Dropbox account via invitation https://db.tt/xrV5BqTf

nishchay
Posts: 5
Joined: Wed Dec 17, 2014 10:58 am

Re: Dynamode USB Wifi Dongle issues

Wed Feb 04, 2015 10:51 am

i too was having the same problem for almost a month now the device 7601 ralink tech was not recognized. but as instructed in your post i downloaded the driver for 3.18.5+ and rebooted immediately the ra0 was up.
Thanks :D

alfonder
Posts: 35
Joined: Sun Jul 06, 2014 9:19 pm

Re: Dynamode USB Wifi Dongle issues

Wed Feb 04, 2015 8:42 pm

nishchay wrote: immediately the ra0 was up.
Thanks :D
Glad to know it helped.
For those, who prefer to compile the driver by themselves, I can post the patch, which makes Ralink's driver 3.0.0.4 compatible with kernel 3.18+
To support me, register Dropbox account via invitation https://db.tt/xrV5BqTf

MrEngman
Posts: 3946
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Dynamode USB Wifi Dongle issues

Wed Feb 04, 2015 9:40 pm

alfonder wrote:
nishchay wrote: immediately the ra0 was up.
Thanks :D
Glad to know it helped.
For those, who prefer to compile the driver by themselves, I can post the patch, which makes Ralink's driver 3.0.0.4 compatible with kernel 3.18+
Yes, please.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: Dynamode USB Wifi Dongle issues

Thu Feb 05, 2015 3:46 pm

Hi alfonder,

I'm using xiaomi wifi, using driver DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 , i follow your instruction my wifi usb was not working, possible to add in below command to /common/rtusb_dev_id.c and compile again?

{USB_DEVICE(0x2717,0x4106)}, /* Xiaomi Wifi */

Thanks

fburton
Posts: 1
Joined: Thu Feb 05, 2015 9:08 pm

Re: Dynamode USB Wifi Dongle issues

Thu Feb 05, 2015 9:11 pm

I have tried to install the driver following the last post. No issue to report in the actual installation process, but it's not working.

Details on my Pi:

[email protected] ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 148f:761a Ralink Technology, Corp.
Bus 001 Device 005: ID 045e:00b0 Microsoft Corp. Digital Media Pro Keyboard

[email protected] ~ $ lsmod
Module Size Used by
snd_bcm2835 21342 0
snd_pcm 93100 1 snd_bcm2835
snd_seq 61097 0
snd_seq_device 7209 1 snd_seq
snd_timer 23007 2 snd_pcm,snd_seq
snd 67211 5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
joydev 9766 0
evdev 11000 2
uio_pdrv_genirq 3666 0
uio 9897 1 uio_pdrv_genirq

[email protected]:/home/pi# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.5+ ([email protected]) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #748 PREEMPT Wed Feb 4 21:24:41 GMT 2015
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine model: Raspberry Pi Model B+
[ 0.000000] cma: Reserved 8 MiB at 0x1b800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 114688
[ 0.000000] free_area_init_node: node 0, pgdat c084d794, node_mem_map db474000
[ 0.000000] Normal zone: 896 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 114688 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113792
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1776 bcm2708_fb.fbheight=952 bcm2708.boardrev=0x10 bcm2708.serial=0x1333b35 smsc95xx.macaddr=B8:27:EB:33:3B:35 bcm2708_fb.fbswap=1 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 437208K/458752K available (5926K kernel code, 358K rwdata, 1876K rodata, 340K init, 734K bss, 21544K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
[ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc07a6a9c (7803 kB)
[ 0.000000] .init : 0xc07a7000 - 0xc07fc000 ( 340 kB)
[ 0.000000] .data : 0xc07fc000 - 0xc085582c ( 359 kB)
[ 0.000000] .bss : 0xc085582c - 0xc090d0c8 ( 735 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:522
[ 0.000026] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[ 0.000078] Switching to timer-based delay loop, resolution 1000ns
[ 0.000359] Console: colour dummy device 80x30
[ 0.001430] console [tty1] enabled
[ 0.001478] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001553] pid_max: default: 32768 minimum: 301
[ 0.001931] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001995] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003010] Initializing cgroup subsys memory
[ 0.003100] Initializing cgroup subsys devices
[ 0.003159] Initializing cgroup subsys freezer
[ 0.003213] Initializing cgroup subsys net_cls
[ 0.003263] Initializing cgroup subsys blkio
[ 0.003389] CPU: Testing write buffer coherency: ok
[ 0.003503] ftrace: allocating 19477 entries in 58 pages
[ 0.111310] Setting up static identity map for 0x55cbf8 - 0x55cc54
[ 0.114131] devtmpfs: initialized
[ 0.131694] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.134886] pinctrl core: initialized pinctrl subsystem
[ 0.137534] NET: Registered protocol family 16
[ 0.143069] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.171093] cpuidle: using governor ladder
[ 0.201152] cpuidle: using governor menu
[ 0.201668] bcm2708.uart_clock = 3000000
[ 0.204760] No ATAGs?
[ 0.204825] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.204888] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.204951] mailbox: Broadcom VideoCore Mailbox driver
[ 0.205117] bcm2708_vcio: mailbox at f200b880
[ 0.205265] bcm_power: Broadcom power driver
[ 0.205312] bcm_power_open() -> 0
[ 0.205341] bcm_power_request(0, 8)
[ 0.706091] bcm_mailbox_read -> 00000080, 0
[ 0.706138] bcm_power_request -> 0
[ 0.706333] Serial: AMBA PL011 UART driver
[ 0.706568] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 1.100824] console [ttyAMA0] enabled
[ 1.173896] SCSI subsystem initialized
[ 1.177999] usbcore: registered new interface driver usbfs
[ 1.183813] usbcore: registered new interface driver hub
[ 1.189324] usbcore: registered new device driver usb
[ 1.196532] Switched to clocksource stc
[ 1.228749] FS-Cache: Loaded
[ 1.232057] CacheFiles: Loaded
[ 1.252212] NET: Registered protocol family 2
[ 1.258152] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 1.265332] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 1.272117] TCP: Hash tables configured (established 4096 bind 4096)
[ 1.278639] TCP: reno registered
[ 1.281906] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 1.287831] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 1.294535] NET: Registered protocol family 1
[ 1.299622] RPC: Registered named UNIX socket transport module.
[ 1.305592] RPC: Registered udp transport module.
[ 1.310431] RPC: Registered tcp transport module.
[ 1.315163] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.322883] bcm2708_dma: DMA manager at f2007000
[ 1.327911] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 1.337812] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 1.344077] audit: initializing netlink subsys (disabled)
[ 1.349796] audit: type=2000 audit(1.100:1): initialized
[ 1.370643] VFS: Disk quotas dquot_6.5.2
[ 1.374982] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.384512] FS-Cache: Netfs 'nfs' registered for caching
[ 1.391697] NFS: Registering the id_resolver key type
[ 1.397006] Key type id_resolver registered
[ 1.401223] Key type id_legacy registered
[ 1.406781] msgmni has been set to 869
[ 1.413102] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.421120] io scheduler noop registered
[ 1.425104] io scheduler deadline registered (default)
[ 1.430839] io scheduler cfq registered
[ 1.437465] BCM2708FB: allocated DMA memory 5bc00000
[ 1.442537] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.472049] Console: switching to colour frame buffer device 222x59
[ 1.496404] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[ 1.504423] uart-pl011 dev:f1: no DMA platform data
[ 1.510370] vc-cma: Videocore CMA driver
[ 1.514427] vc-cma: vc_cma_base = 0x00000000
[ 1.519382] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.524908] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.544675] brd: module loaded
[ 1.555286] loop: module loaded
[ 1.559156] vchiq: vchiq_init_state: slot_zero = 0xdb800000, is_master = 0
[ 1.567515] Loading iSCSI transport class v2.0-870.
[ 1.574127] usbcore: registered new interface driver smsc95xx
[ 1.580470] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.786826] Core Release: 2.80a
[ 1.790086] Setting default values for core params
[ 1.795027] Finished setting default values for core params
[ 2.001045] Using Buffer DMA mode
[ 2.004475] Periodic Transfer Interrupt Enhancement - disabled
[ 2.010478] Multiprocessor Interrupt Enhancement - disabled
[ 2.016187] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.020696] Dedicated Tx FIFOs mode
[ 2.024718] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdbc14000 dma = 0x5bc14000 len=9024
[ 2.034860] FIQ FSM acceleration enabled for :
[ 2.034860] Non-periodic Split Transactions
[ 2.034860] Periodic Split Transactions
[ 2.034860] High-Speed Isochronous Endpoints
[ 2.061769] dwc_otg: Microframe scheduler enabled
[ 2.061967] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc0400d70
[ 2.072989] WARN::hcd_init_fiq:413: FIQ ASM at 0xc0401048 length 36
[ 2.084272] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc806000
[ 2.095182] dwc_otg bcm2708_usb: DWC OTG Controller
[ 2.105204] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 2.117638] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 2.128129] Init: Port Power? op_state=1
[ 2.137166] Init: Power Port (0)
[ 2.145799] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.157797] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.170126] usb usb1: Product: DWC OTG Controller
[ 2.179806] usb usb1: Manufacturer: Linux 3.18.5+ dwc_otg_hcd
[ 2.190598] usb usb1: SerialNumber: bcm2708_usb
[ 2.201424] hub 1-0:1.0: USB hub found
[ 2.210316] hub 1-0:1.0: 1 port detected
[ 2.219979] dwc_otg: FIQ enabled
[ 2.220004] dwc_otg: NAK holdoff enabled
[ 2.220017] dwc_otg: FIQ split-transaction FSM enabled
[ 2.220100] Module dwc_common_port init
[ 2.220676] usbcore: registered new interface driver usb-storage
[ 2.232337] mousedev: PS/2 mouse device common for all mice
[ 2.243890] bcm2835-cpufreq: min=700000 max=700000
[ 2.254304] sdhci: Secure Digital Host Controller Interface driver
[ 2.265729] sdhci: Copyright(c) Pierre Ossman
[ 2.275341] DMA channels allocated for the MMC driver
[ 2.316831] Load BCM2835 MMC driver
[ 2.330558] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.349629] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.360973] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.376106] usbcore: registered new interface driver usbhid
[ 2.386879] usbhid: USB HID core driver
[ 2.398395] TCP: cubic registered
[ 2.406851] Initializing XFRM netlink socket
[ 2.417507] Indeed it is in host mode hprt0 = 00021501
[ 2.429730] NET: Registered protocol family 17
[ 2.446829] Key type dns_resolver registered
[ 2.464478] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.478997] registered taskstats version 1
[ 2.499052] mmc0: new high speed SDHC card at address 0002
[ 2.509992] vc-sm: Videocore shared memory driver
[ 2.536622] [vc_sm_connected_init]: start
[ 2.546762] mmcblk0: mmc0:0002 00000 7.32 GiB
[ 2.568501] [vc_sm_connected_init]: end - returning 0
[ 2.580645] mmcblk0: p1 p2 < p5 p6 > p3
[ 2.614734] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[ 2.628417] VFS: Mounted root (ext4 filesystem) readonly on device 179:6.
[ 2.642042] devtmpfs: mounted
[ 2.651886] Freeing unused kernel memory: 340K (c07a7000 - c07fc000)
[ 2.706859] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.719470] Indeed it is in host mode hprt0 = 00001101
[ 2.937176] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 2.951239] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.965179] hub 1-1:1.0: USB hub found
[ 2.974515] hub 1-1:1.0: 5 ports detected
[ 3.256968] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.387215] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.411826] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.440026] smsc95xx v1.0.4
[ 3.524820] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:33:3b:35
[ 3.636946] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[ 3.793142] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a
[ 3.816781] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.845510] usb 1-1.3: Product: WiFi
[ 3.866760] usb 1-1.3: Manufacturer: MediaTek
[ 3.885913] usb 1-1.3: SerialNumber: 1.0
[ 4.146872] usb 1-1.5: new low-speed USB device number 5 using dwc_otg
[ 4.328182] usb 1-1.5: New USB device found, idVendor=045e, idProduct=00b0
[ 4.356745] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.386727] usb 1-1.5: Product: Microsoft\xffffffc2\xffffffae\xffffffae Digital Media Pro Keyboard
[ 4.403521] usb 1-1.5: Manufacturer: Microsoft
[ 4.457937] input: Microsoft Microsoft\xffffffc2\xffffffae\xffffffae Digital Media Pro Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:045E:00B0.0001/input/input0
[ 4.482595] hid-generic 0003:045E:00B0.0001: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Microsoft\xffffffc2\xffffffae\xffffffae Digital Media Pro Keyboard] on usb-bcm2708_usb-1.5/input0
[ 4.551442] input: Microsoft Microsoft\xffffffc2\xffffffae\xffffffae Digital Media Pro Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:045E:00B0.0002/input/input1
[ 4.587819] hid-generic 0003:045E:00B0.0002: input,hidraw1: USB HID v1.11 Device [Microsoft Microsoft\xffffffc2\xffffffae\xffffffae Digital Media Pro Keyboard] on usb-bcm2708_usb-1.5/input1
[ 4.722957] udevd[159]: starting version 175
[ 7.401507] random: nonblocking pool is initialized
[ 11.612889] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[ 12.107194] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[ 22.497591] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 24.014208] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
[ 31.857808] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS



Any ideas on what could be wrong??

ginner159
Posts: 8
Joined: Fri Dec 13, 2013 10:53 am

Re: Dynamode USB Wifi Dongle issues

Fri Feb 06, 2015 12:00 am

Well that last one seemed to compile for me with 3.2 ... for ras pi a+ onwards but im getting

association request to the driver failed

in wpa gui

MrEngman
Posts: 3946
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Dynamode USB Wifi Dongle issues

Fri Feb 06, 2015 12:48 am

fburton wrote:I have tried to install the driver following the last post. No issue to report in the actual installation process, but it's not working.

Details on my Pi:

[email protected] ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 148f:761a Ralink Technology, Corp.
Bus 001 Device 005: ID 045e:00b0 Microsoft Corp. Digital Media Pro Keyboard

[email protected] ~ $ lsmod
Module Size Used by
snd_bcm2835 21342 0
snd_pcm 93100 1 snd_bcm2835
snd_seq 61097 0
snd_seq_device 7209 1 snd_seq
snd_timer 23007 2 snd_pcm,snd_seq
snd 67211 5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
joydev 9766 0
evdev 11000 2
uio_pdrv_genirq 3666 0
uio 9897 1 uio_pdrv_genirq

......

Any ideas on what could be wrong??
The driver is not loading and I assume it is because it doesn't recognise the wifi module.

Looking at the mt7601 driver source codes I have the USB ID for your module is not included in any of them so is it included in the source you have and are you sure this is the right driver to use.

If it is the right driver and the USB ID is not included you could try adding the USB ID and re-compiling the driver. Looks like the file you need to edit is common/rtusb_dev_id.c.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: Dynamode USB Wifi Dongle issues

Fri Feb 06, 2015 1:13 am

I try all github mt7601u compile with https://github.com/raspberrypi/linux/ar ... 8.y.tar.gz

after make && sudo make install when run sudo modprobe mt7601Usta

I try to reboot but it fail, it just stuck in "loading kernel module snd-bcm2835"

Please help, how to make xiaomi wifi to support 3.18.5+ kernel?

It just show below:
Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.073823] Internal error: Oops: 5 [#1] PREEMPT ARM

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.182576] Process modprobe (pid: 9645, stack limit = 0xc3d221b0)

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.190549] Stack: (0xc3d23e88 to 0xc3d24000)

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.196655] 3e80: bf19cdcc 00007fff c00862f4 c02fe1a8 00000013 00000000

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.208291] 3ea0: de1e8000 c3d23f7c c3d23f50 c3d23eb8 00000000 bf19cdcc c3d22008 bf19ce08

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.220158] 3ec0: bf19cf28 00000000 b6d20000 c3d22000 00002db0 00000000 00000000 bf1665b8

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.232100] 3ee0: 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.244064] 3f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000080 000f64a0

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.256137] 3f20: b6c2d000 b6f4b948 00000080 c000eb44 c3d22000 00000000 c3d23fa4 c3d23f48

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.268456] 3f40: c0089970 c0087974 de1e8000 000f64a0 de29d898 de29d696 de2d5d20 000b2f84

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.280927] 3f60: 000c3014 00000000 00000000 00000000 00000030 00000031 00000026 0000002a

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.293556] 3f80: 00000016 00000000 00000000 00000000 00040000 b7ebac88 00000000 c3d23fa8

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.306271] 3fa0: c000e8c0 c0089890 00000000 00040000 b6c2d000 000f64a0 b6f4b948 b6c2d000

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.319091] 3fc0: 00000000 00040000 b7ebac88 00000080 b7ebad68 000f64a0 b6f4b948 00000000

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.331988] 3fe0: 00000000 bed7140c b6f42fb4 b6eae0d4 60000010 b6c2d000 00000000 0160e030

Message from [email protected] at Feb 6 08:57:53 ...
kernel:[ 6193.370380] Code: e51bc084 e15c0005 e2455008 0a000009 (e5953014)

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: Dynamode USB Wifi Dongle issues

Sat Feb 07, 2015 12:39 pm

alfonder wrote:Eventually, I'm back from those soooo long New Year holidays :D . Now it's time to update.
Here is the driver for kernel 3.18.5+ #746.
How to install
Ssh to your RaspberryPi and enter the following commands (better copy-paste to avoid typos):

Code: Select all

cd /tmp
wget https://dl.dropboxusercontent.com/u/67643651/mt7601_3.18.5_746.tar.gz
sudo tar xf mt7601_3.18.5_746.tar.gz -C /
sudo depmod 3.18.5+
sudo reboot
alfonder could you please make the driver for the latest update (3.18.5+ 748) available?

ginner159
Posts: 8
Joined: Fri Dec 13, 2013 10:53 am

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 1:47 pm

Any chance you can compile it for the a+ and pi 2

Ghoblin
Posts: 6
Joined: Mon Feb 09, 2015 1:44 pm

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 2:02 pm

alfonder wrote:
nishchay wrote: immediately the ra0 was up.
Thanks :D
Glad to know it helped.
For those, who prefer to compile the driver by themselves, I can post the patch, which makes Ralink's driver 3.0.0.4 compatible with kernel 3.18+
Thanks for the driver! I tried to compile the driver myself from source, but without patch it doesn't work with the 3.18.5 kernel (or any 3.x. kernel?)

It would be super great if you could post the patch. The mt7601 chipset driver problem seems to be very common. I have Sempre WU-150 dongle that's using mt7601.

alfonder
Posts: 35
Joined: Sun Jul 06, 2014 9:19 pm

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 9:57 pm

Here is the driver for kernel 3.18.6+ #753.
How to install
Ssh to your RaspberryPi and enter the following commands (better copy-paste to avoid typos):

Code: Select all

cd /tmp
wget https://dl.dropboxusercontent.com/u/67643651/mt7601_3.18.6_753.tar.gz
sudo tar xf mt7601_3.18.6_753.tar.gz -C /
sudo depmod 3.18.6+
sudo reboot
If you want to compile the driver by yourself, you should apply the following compatibility patch https://dl.dropboxusercontent.com/u/676 ... 3.xx.patch
Besides, in the driver I built and posted above there are additional changes:
  • Stripped off debug messages
  • Added device signatures 148f:760b and 148f:761a
To support me, register Dropbox account via invitation https://db.tt/xrV5BqTf

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 10:27 pm

alfonder wrote:Here is the driver for kernel 3.18.6+ #753.
How to install
Ssh to your RaspberryPi and enter the following commands (better copy-paste to avoid typos):

Code: Select all

cd /tmp
wget https://dl.dropboxusercontent.com/u/67643651/mt7601_3.18.6_753.tar.gz
sudo tar xf mt7601_3.18.6_753.tar.gz -C /
sudo depmod 3.18.6+
sudo reboot
If you want to compile the driver by yourself, you should apply the following compatibility patch https://dl.dropboxusercontent.com/u/676 ... 3.xx.patch
Besides, in the driver I built and posted above there are additional changes:
  • Stripped off debug messages
  • Added device signatures 148f:760b and 148f:761a
I have done an upgrade but it looks like the Foundation released 3.18.6+ 754 yesterday. Any chance of a driver or do I need to downgrade to 753?

alfonder
Posts: 35
Joined: Sun Jul 06, 2014 9:19 pm

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 10:33 pm

ginner159 wrote:Any chance you can compile it for the a+ and pi 2
It DOES work on A+, I've tested.
For pi2 it'll be more complicated since I don't have one. The kernel for pi2 is different. If you post /proc/config.gz file from pi2, I'll build the module for it, so you'll test it.

ilovemipi usually, a module is functional on all kernels with the same version and different builds. So just try it.
To support me, register Dropbox account via invitation https://db.tt/xrV5BqTf

alfonder
Posts: 35
Joined: Sun Jul 06, 2014 9:19 pm

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 10:41 pm

amazon83 wrote:I'm using xiaomi wifi, using driver DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 {USB_DEVICE(0x2717,0x4106)}, /* Xiaomi Wifi */
I seriously doubt that your dongle use the same MediaTek's chipset. It has too different ID.
Anyway, you can try this module (compiled with your ID): https://dl.dropboxusercontent.com/u/676 ... 601Usta.ko
To support me, register Dropbox account via invitation https://db.tt/xrV5BqTf

ginner159
Posts: 8
Joined: Fri Dec 13, 2013 10:53 am

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 10:55 pm

alfonder wrote: It DOES work on A+, I've tested.
For pi2 it'll be more complicated since I don't have one. The kernel for pi2 is different. If you post /proc/config.gz file from pi2, I'll build the module for it, so you'll test it.

ilovemipi usually, a module is functional on all kernels with the same version and different builds. So just try it.

unfortunately i haven't got a 2 yet but glad to hear its working on the A+

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: Dynamode USB Wifi Dongle issues

Mon Feb 09, 2015 11:15 pm

alfonder wrote:
ilovemipi usually, a module is functional on all kernels with the same version and different builds. So just try it.
Works fine, thanks for keeping us all updated with the drivers.

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 10, 2015 2:38 am

alfonder wrote:
amazon83 wrote:I'm using xiaomi wifi, using driver DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 {USB_DEVICE(0x2717,0x4106)}, /* Xiaomi Wifi */
I seriously doubt that your dongle use the same MediaTek's chipset. It has too different ID.
Anyway, you can try this module (compiled with your ID): https://dl.dropboxusercontent.com/u/676 ... 601Usta.ko
Hi Alfonder, possible to upload the full source code?

alfonder
Posts: 35
Joined: Sun Jul 06, 2014 9:19 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 10, 2015 6:52 am

amazon83 wrote: Hi Alfonder, possible to upload the full source code?
First of all, does it work for your dongle?
Secondly, what do you mean about "full source code"? AFAIK, the module's license doesn't allow to redistribute modified source, so I can post a patch.
Thirdly, I've already posted the compatibility patch. And if you add your device signature, you'll get almost similar kernel module. Or you meant something else?
To support me, register Dropbox account via invitation https://db.tt/xrV5BqTf

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 10, 2015 7:20 am

alfonder wrote:
amazon83 wrote: Hi Alfonder, possible to upload the full source code?
First of all, does it work for your dongle?
Secondly, what do you mean about "full source code"? AFAIK, the module's license doesn't allow to redistribute modified source, so I can post a patch.
Thirdly, I've already posted the compatibility patch. And if you add your device signature, you'll get almost similar kernel module. Or you meant something else?
I try using https://github.com/porjo/mt7601 source code to compile, I wonder what different between your source and porjo source code.

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 10, 2015 9:55 am

It work until 3.15.36+, 3.18.x up I'm getting kernel panic as below message.

[ 195.131026] Unable to handle kernel paging request at virtual address 7e303ab8
[ 195.141859] pgd = d91dc000
[ 195.146320] [7e303ab8] *pgd=00000000
[ 195.152961] Internal error: Oops: 5 [#1] PREEMPT ARM
[ 195.159523] Modules linked in: mt7601Usta(O+) arc4 ecb md4 md5 hmac nls_utf8 cifs snd_bcm2835 snd_pcm snd_seq snd_seq_device snd_timer snd uio_pdrv_genirq uio
[ 195.177261] CPU: 0 PID: 2480 Comm: modprobe Tainted: G O 3.18.6+ #753
[ 195.187977] task: d9089b40 ti: d9174000 task.ti: d9174000
[ 195.195130] PC is at load_module+0x1948/0x1f1c
[ 195.201316] LR is at load_module+0x1934/0x1f1c
[ 195.207445] pc : [<c00892e8>] lr : [<c00892d4>] psr: 30000013
[ 195.207445] sp : d9175e88 ip : bf19d578 fp : d9175f44
[ 195.222255] r10: bf19d410 r9 : 00000000 r8 : bf19d41c
[ 195.229125] r7 : c05613a8 r6 : d9176300 r5 : 7e303aa4 r4 : d9175f48
[ 195.237341] r3 : 00000000 r2 : 00000000 r1 : d9383ec8 r0 : c0824120
[ 195.245567] Flags: nzCV IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 195.254445] Control: 00c5387d Table: 191dc008 DAC: 00000015
[ 195.261964] Process modprobe (pid: 2480, stack limit = 0xd91741b0)
[ 195.269952] Stack: (0xd9175e88 to 0xd9176000)
[ 195.276075] 5e80: bf19d41c 00007fff c008632c c02fe588 00000013 00000000
[ 195.287755] 5ea0: de163000 d9175f7c d9175f50 d9175eb8 00000000 bf19d41c d9174008 bf19d458
[ 195.299664] 5ec0: bf19d578 00000000 b6cf0000 d9174000 00002db0 00000000 00000000 bf166580
[ 195.311640] 5ee0: 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 195.323621] 5f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000080 000f6ac0
[ 195.335726] 5f20: b6bfa000 b6f19948 00000080 c000eb44 d9174000 00000000 d9175fa4 d9175f48
[ 195.348081] 5f40: c00899a8 c00879ac de163000 000f6ac0 de218ee8 de218ce6 de251340 000b35d8
[ 195.360584] 5f60: 000c3668 00000000 00000000 00000000 00000030 00000031 00000026 0000002a
[ 195.373259] 5f80: 00000016 00000000 00000000 00000000 00040000 b8952c88 00000000 d9175fa8
[ 195.386039] 5fa0: c000e8c0 c00898c8 00000000 00040000 b6bfa000 000f6ac0 b6f19948 b6bfa000
[ 195.398915] 5fc0: 00000000 00040000 b8952c88 00000080 b8952d68 000f6ac0 b6f19948 00000000
[ 195.411847] 5fe0: 00000000 bebb240c b6f10fb4 b6e7bab4 60000010 b6bfa000 00000000 00000000
[ 195.424819] [<c00892e8>] (load_module) from [<c00899a8>] (SyS_init_module+0xec/0x100)
[ 195.437474] [<c00899a8>] (SyS_init_module) from [<c000e8c0>] (ret_fast_syscall+0x0/0x48)
[ 195.450356] Code: e51bc084 e15c0005 e2455008 0a000009 (e5953014)
[ 195.463278] ---[ end trace aab3b0cdfad69e78 ]---

Ghoblin
Posts: 6
Joined: Mon Feb 09, 2015 1:44 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 10, 2015 11:51 am

alfonder wrote:Here is the driver for kernel 3.18.6+ #753.
How to install
Ssh to your RaspberryPi and enter the following commands (better copy-paste to avoid typos):

Code: Select all

cd /tmp
wget https://dl.dropboxusercontent.com/u/67643651/mt7601_3.18.6_753.tar.gz
sudo tar xf mt7601_3.18.6_753.tar.gz -C /
sudo depmod 3.18.6+
sudo reboot
If you want to compile the driver by yourself, you should apply the following compatibility patch https://dl.dropboxusercontent.com/u/676 ... 3.xx.patch
Besides, in the driver I built and posted above there are additional changes:
  • Stripped off debug messages
  • Added device signatures 148f:760b and 148f:761a
Thanks. It works!

I compiled it first with gcc 4.6.3 but it said Ooops on insmod. Then I recompiled with gcc 4.8.2 and it worked! I'm not completely sure about the 4.6.3 being the problem because I had already ran "make" on the sources before patching until the point of

Code: Select all

...
error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
pOSFSInfo->fsuid = current_fsuid();
...
I made "make clean". Changed to 4.8.2 and recompiled perfectly (lots of warnings though).

--

Here's instructions for everybody else how to compile the driver with Rasbian 2015-01-31 (kernel 3.18.5+):

Download the base driver http://www.mediatek.com/en/downloads/mt7610u-usb/

Install and change to gcc 4.8

Code: Select all

# be root
sudo su

# install
apt-get install gcc-4.8 g++-4.8

# change the default gcc and g++ version to 4.8
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
Extract and apply the patch:

Code: Select all

tar jxvf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
wget https://dl.dropboxusercontent.com/u/67643651/fix_mt7601_3.xx.patch
patch -p1 < fix_mt7601_3.xx.patch
make
Then try to load the module with insmod:

Code: Select all

insmod os/linux/mt7601Usta.ko
If you get lots of text and something about "ooops..." the driver doesn't work. You have to reboot because the driver has failed :P Otherwise the command should not output anything. Then run "lsmod" and verify that you see mt7601Usta on the list.

After that you can install the module to be automatically loaded on boot. This will copy the .ko module file to /lib/modules/3.18.5+/kernel/drivers/net/wireless/. You still probably need /etc/Wireless/RT2870STA/RT2870STA.dat file. Afonder's .tar.gz file contains that also. It's the easiest. Alfonder's compiled module also contain other patches that can be useful for somebody.

Code: Select all

make install
After this you still need to figure out how to scan and connect to available network. For me the Raspbian's WLAN wizard doesn't see the WLAN device. I had to do it from command line:

Code: Select all

wpa_passphrase MY_WLAN_SSID >> /etc/wpa_supplicant/my-wlan.conf
[ password123 ]
wpa_supplicant -B -D wext -i ra0 -c /etc/wpa_supplicant/my-wlan.conf
Then ask for IP address

Code: Select all

dhclient ra0
For future reference, the patch is actually quite easy. In os/linux/rt_linux.c the lines like "pOSFSInfo->fsuid = current_fsuid()" are missing ".val" at the end. So they should be as "pOSFSInfo->fsuid = current_fsuid().val;" and so. Thanks alfonder! :)
Last edited by Ghoblin on Tue Feb 10, 2015 1:50 pm, edited 1 time in total.

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 10, 2015 1:15 pm

I got this error..

[email protected]:/home/pi# update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc
[email protected]:/home/pi# update-alternatives --config g++
update-alternatives: error: no alternatives for g++

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: Dynamode USB Wifi Dongle issues

Tue Feb 10, 2015 1:29 pm

amazon83 wrote:I got this error..

[email protected]:/home/pi# update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc
[email protected]:/home/pi# update-alternatives --config g++
update-alternatives: error: no alternatives for g++

Okie fix with this.

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50

Return to “Troubleshooting”