USB WiFi RT5370 driver help


tony.pigram

Member
Joined
Jun 28, 2012
Messages
50
Location
Bath, UK
I was going to purchase the USB WiFi dongle from Dragon Box, but they are not instock. Being impatient, I purchased what I believed was the same thing from eBay.


On the Dragon Box site it states the following: "

This is a tiny WiFi stick that fits into the USB port of your Pandora.




The drivers re included in the latest firmware, so you can simply Plug and Play."



So I assumed that these two WiFi USBs were pretty much the same and I could just follow the same Plug and Play approach.


I did not enable the onboard WiFi, I enabled the USB Host. Then I plugged in the usb wifi to the Pandora. I ran lsusb and it shows me the device is detected. I ran dmesg and it shows me that it does detect this and assigns it to wlan1.


If I try and do anything with wlan1 it disconnects the device, as running dmesg again shows an error. If I unplug and plug back in and run dmesg I get the positive results.


I scanned this forum for suggestions and found a couple of posts:


http://boards.openpa...-external-wifi/


http://boards.openpa...e1000-usb-wifi/


The second post/link was looking promising, what with it having a link to a .PND that I could potentially use as the driver.


I tried this, no luck.


Then I did what I should have done at the start. I looked at the USB WiFi adapters on the wiki.


The closest match I could see is: "Cisco/Linksys AE1000 High Performance Wireless-N USB Adapter"


I see it references the RT3572 chip.


I did some investigation (okay, I re-read the eBay page as saw the big bold letters telling me the USB WiFi is using RT5370). So the .PND above is using the earlier chip driver and not the one I need.


On my linux laptop, I followed the instructions to make the driver for the USB WiFi, I think I did it correctly (linux isn't my first language - so to speak). It outputs the rt5370sta.* files, so it seems to make them okay.


My question is... how do I get the correct driver from my linux laptop into the Pandora and config the Pandora to use it?


(I have a 512Mb Pandora running the latest SuperZaxxon firmware and I have a 802.11g wifi router than I need to connect to - I can connect okay using the built-in WiFi, but it is not strong enough to work when I am at the end of the garden, where I want to use my Pandora)


(lsusb and dmesg from device included below)


lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp.


dmesg

[ 0.000000] Linux version 3.2.21 (notaz@pixelinis) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #663 Tue Jun 26 14:31:20 EEST 2012


[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387d


[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache


[ 0.000000] Machine: Pandora Handheld Console


[ 0.000000] Reserving 8388608 bytes SDRAM for VRAM


[ 0.000000] Memory policy: ECC disabled, Data cache writeback


[ 0.000000] On node 0 totalpages: 127488


[ 0.000000] free_area_init_node: node 0, pgdat c050a7c8, node_mem_map c0531000


[ 0.000000] Normal zone: 1024 pages used for memmap


[ 0.000000] Normal zone: 0 pages reserved


[ 0.000000] Normal zone: 126464 pages, LIFO batch:31


[ 0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )


[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz


[ 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: 126464


[ 0.000000] Kernel command line: ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K mmc_core.removable=0 quiet


[ 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: 498MB = 498MB total


[ 0.000000] Memory: 500104k/500104k available, 24184k reserved, 0K highmem


[ 0.000000] Virtual kernel memory layout:


[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)


[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)


[ 0.000000] vmalloc : 0xe0800000 - 0xf8000000 ( 376 MB)


[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)


[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)


[ 0.000000] .text : 0xc0008000 - 0xc049e018 (4697 kB)


[ 0.000000] .init : 0xc049f000 - 0xc04cf000 ( 192 kB)


[ 0.000000] .data : 0xc04d0000 - 0xc050ae80 ( 236 kB)


[ 0.000000] .bss : 0xc050aea4 - 0xc0530024 ( 149 kB)


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


[ 0.000000] NR_IRQS:410


[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts


[ 0.000000] Total of 96 interrupts on 1 active controller


[ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz


[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms


[ 0.000000] Console: colour dummy device 80x30


[ 0.000000] console [tty0] enabled


[ 0.000244] Calibrating delay loop... 497.82 BogoMIPS (lpj=1941504)


[ 0.039093] pid_max: default: 32768 minimum: 301


[ 0.039489] Mount-cache hash table entries: 512


[ 0.040039] Initializing cgroup subsys devices


[ 0.040100] CPU: Testing write buffer coherency: ok


[ 0.040374] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available


[ 0.041412] devtmpfs: initialized


[ 0.054748] print_constraints: dummy:


[ 0.055328] NET: Registered protocol family 16


[ 0.055786] GPMC revision 5.0


[ 0.060150] OMAP GPIO hardware version 2.5


[ 0.065032] omap_mux_init: Add partition: #1: core, flags: 0


[ 0.073669] Reprogramming SDRC clock to 332000000 Hz


[ 0.076751] hw-breakpoint: debug architecture 0x4 unsupported.


[ 0.086700] omap-mcbsp.2: alias fck already exists


[ 0.087127] omap-mcbsp.3: alias fck already exists


[ 0.089172] OMAP DMA hardware revision 4.0


[ 0.112182] bio: create slab <bio-0> at 0


[ 0.113861] print_constraints: vwlan: 1800 mV


[ 0.116088] SCSI subsystem initialized


[ 0.119598] usbcore: registered new interface driver usbfs


[ 0.119964] usbcore: registered new interface driver hub


[ 0.120300] usbcore: registered new device driver usb


[ 0.122253] omap_i2c omap_i2c.1: bus 1 rev1.3.12 at 2600 kHz


[ 0.126403] twl4030: PIH (irq 7) chaining IRQs 368..375


[ 0.126525] twl4030: power (irq 373) chaining IRQs 376..383


[ 0.127258] twl4030: gpio (irq 368) chaining IRQs 384..401


[ 0.127868] _omap_mux_init_gpio: Could not set gpio192


[ 0.129302] _omap_mux_init_gpio: Could not set gpio193


[ 0.132904] print_constraints: VUSB1V5: 1500 mV normal standby


[ 0.133819] print_constraints: VUSB1V8: 1800 mV normal standby


[ 0.134735] print_constraints: VUSB3V1: 3100 mV normal standby


[ 0.136718] twl4030_usb twl4030_usb: Initialized TWL4030 USB module


[ 0.138580] print_constraints: vdd_mpu_iva: 600 <--> 1450 mV normal


[ 0.139465] print_constraints: vdd_core: 600 <--> 1450 mV normal


[ 0.140472] print_constraints: VMMC1: 1850 <--> 3150 mV at 3150 mV normal standby


[ 0.141448] print_constraints: VDAC: 1800 mV normal standby


[ 0.142425] print_constraints: VAUX2: 1800 mV normal standby


[ 0.143371] print_constraints: VPLL2: 1800 mV normal standby


[ 0.144378] print_constraints: VMMC2: 1850 <--> 3150 mV at 3150 mV normal standby


[ 0.145355] print_constraints: VSIM: 2800 mV normal standby


[ 0.146301] print_constraints: VAUX1: 3000 mV normal standby


[ 0.147216] print_constraints: VAUX4: 2800 mV normal standby


[ 0.156372] omap_i2c omap_i2c.3: bus 3 rev1.3.12 at 100 kHz


[ 0.159912] Advanced Linux Sound Architecture Driver Version 1.0.24.


[ 0.161071] Switching to clocksource 32k_counter


[ 0.193756] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)


[ 0.199127] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)


[ 0.199157] musb-hdrc: MHDRC RTL version 1.400


[ 0.199157] musb-hdrc: setup fifo_mode 4


[ 0.199188] musb-hdrc: 28/31 max ep, 16384/16384 memory


[ 0.199920] musb-hdrc musb-hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92


[ 0.201202] NET: Registered protocol family 2


[ 0.201416] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)


[ 0.201843] TCP established hash table entries: 16384 (order: 5, 131072 bytes)


[ 0.202392] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)


[ 0.202728] TCP: Hash tables configured (established 16384 bind 16384)


[ 0.202758] TCP reno registered


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


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


[ 0.203186] NET: Registered protocol family 1


[ 0.203491] NetWinder Floating Point Emulator V0.97 (double precision)


[ 0.205718] omap_dsp_init: 600000 bytes @ 9f200000


[ 0.247436] VFS: Disk quotas dquot_6.5.2


[ 0.248016] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)


[ 0.254577] msgmni has been set to 976


[ 0.257354] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)


[ 0.257354] io scheduler noop registered


[ 0.257385] io scheduler deadline registered


[ 0.257446] io scheduler cfq registered (default)


[ 0.272552] OMAP DSS rev 2.0


[ 0.276184] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled


[ 0.279174] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0


[ 0.279785] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1


[ 0.280364] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2


[ 0.297637] brd: module loaded


[ 0.306427] loop: module loaded


[ 0.306488] OMAP overclocker loaded.


[ 0.309631] omap2-nand driver initializing


[ 0.309875] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)


[ 0.310485] Creating 5 MTD partitions on "omap2-nand.0":


[ 0.310516] 0x000000000000-0x000000080000 : "xloader"


[ 0.311584] 0x000000080000-0x000000260000 : "uboot"


[ 0.312805] 0x000000260000-0x000000280000 : "uboot-env"


[ 0.313659] 0x000000280000-0x000000c80000 : "boot"


[ 0.316375] 0x000000c80000-0x000020000000 : "rootfs"


[ 0.410217] UBI: attaching mtd4 to ubi0


[ 0.410247] UBI DBG (pid 1): ubi_attach_mtd_dev: sizeof(struct ubi_ainf_peb) 48


[ 0.410278] UBI DBG (pid 1): ubi_attach_mtd_dev: sizeof(struct ubi_wl_entry) 20


[ 0.410308] UBI DBG (pid 1): io_init: min_io_size 2048


[ 0.410308] UBI DBG (pid 1): io_init: max_write_size 2048


[ 0.410339] UBI DBG (pid 1): io_init: hdrs_min_io_size 512


[ 0.410339] UBI DBG (pid 1): io_init: ec_hdr_alsize 512


[ 0.410369] UBI DBG (pid 1): io_init: vid_hdr_alsize 512


[ 0.410369] UBI DBG (pid 1): io_init: vid_hdr_offset 512


[ 0.410400] UBI DBG (pid 1): io_init: vid_hdr_aloffset 512


[ 0.410400] UBI DBG (pid 1): io_init: vid_hdr_shift 0


[ 0.410430] UBI DBG (pid 1): io_init: leb_start 2048


[ 0.410461] UBI DBG (pid 1): io_init: max_erroneous 399


[ 0.410461] UBI: physical eraseblock size: 131072 bytes (128 KiB)


[ 0.410491] UBI: logical eraseblock size: 129024 bytes


[ 0.410491] UBI: smallest flash I/O unit: 2048


[ 0.410522] UBI: sub-page size: 512


[ 0.410522] UBI: VID header offset: 512 (aligned 512)


[ 0.410552] UBI: data offset: 2048


[ 1.509307] UBI DBG (pid 1): scan_all: scanning is finished


[ 1.509948] UBI: max. sequence number: 5945


[ 1.527618] UBI: attached mtd4 to ubi0


[ 1.527648] UBI: MTD device name: "rootfs"


[ 1.527679] UBI: MTD device size: 499 MiB


[ 1.527679] UBI: number of good PEBs: 3996


[ 1.527709] UBI: number of bad PEBs: 0


[ 1.527709] UBI: number of corrupted PEBs: 0


[ 1.527709] UBI: max. allowed volumes: 128


[ 1.527740] UBI: wear-leveling threshold: 4096


[ 1.527740] UBI: number of internal volumes: 1


[ 1.527770] UBI: number of user volumes: 1


[ 1.527770] UBI: available PEBs: 0


[ 1.527801] UBI: total number of reserved PEBs: 3996


[ 1.527801] UBI: number of PEBs reserved for bad PEB handling: 39


[ 1.527832] UBI: max/mean erase counter: 25/4


[ 1.527832] UBI: image sequence number: 541215031


[ 1.527893] UBI: attaching mtd3 to ubi1


[ 1.527893] UBI DBG (pid 1): ubi_attach_mtd_dev: sizeof(struct ubi_ainf_peb) 48


[ 1.527923] UBI DBG (pid 1): ubi_attach_mtd_dev: sizeof(struct ubi_wl_entry) 20


[ 1.527954] UBI DBG (pid 1): io_init: min_io_size 2048


[ 1.527954] UBI DBG (pid 1): io_init: max_write_size 2048


[ 1.527984] UBI DBG (pid 1): io_init: hdrs_min_io_size 512


[ 1.527984] UBI DBG (pid 1): io_init: ec_hdr_alsize 512


[ 1.528015] UBI DBG (pid 1): io_init: vid_hdr_alsize 512


[ 1.528045] UBI DBG (pid 1): io_init: vid_hdr_offset 512


[ 1.528045] UBI DBG (pid 1): io_init: vid_hdr_aloffset 512


[ 1.528076] UBI DBG (pid 1): io_init: vid_hdr_shift 0


[ 1.528076] UBI DBG (pid 1): io_init: leb_start 2048


[ 1.528106] UBI DBG (pid 1): io_init: max_erroneous 16


[ 1.528106] UBI: physical eraseblock size: 131072 bytes (128 KiB)


[ 1.528137] UBI: logical eraseblock size: 129024 bytes


[ 1.528137] UBI: smallest flash I/O unit: 2048


[ 1.528167] UBI: sub-page size: 512


[ 1.528167] UBI: VID header offset: 512 (aligned 512)


[ 1.528198] UBI: data offset: 2048


[ 1.528808] UBI: background thread "ubi_bgt0d" started, PID 561


[ 1.551055] UBI DBG (pid 1): scan_all: scanning is finished


[ 1.551086] UBI: max. sequence number: 795


[ 1.560272] UBI: attached mtd3 to ubi1


[ 1.560272] UBI: MTD device name: "boot"


[ 1.560302] UBI: MTD device size: 10 MiB


[ 1.560302] UBI: number of good PEBs: 80


[ 1.560333] UBI: number of bad PEBs: 0


[ 1.560333] UBI: number of corrupted PEBs: 0


[ 1.560363] UBI: max. allowed volumes: 128


[ 1.560363] UBI: wear-leveling threshold: 4096


[ 1.560394] UBI: number of internal volumes: 1


[ 1.560394] UBI: number of user volumes: 1


[ 1.560394] UBI: available PEBs: 0


[ 1.560424] UBI: total number of reserved PEBs: 80


[ 1.560424] UBI: number of PEBs reserved for bad PEB handling: 2


[ 1.560455] UBI: max/mean erase counter: 29/9


[ 1.560455] UBI: image sequence number: 1690511722


[ 1.560729] UBI: background thread "ubi_bgt1d" started, PID 566


[ 1.560852] usbcore: registered new interface driver libusual


[ 1.561767] mousedev: PS/2 mouse device common for all mice


[ 1.562561] input: keypad as /devices/platform/omap_i2c.1/i2c-1/1-004a/twl4030_keypad/input/input0


[ 1.566253] input: power-button as /devices/platform/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1


[ 1.567810] input: nub0 as /devices/platform/omap_i2c.3/i2c-3/3-0066/input/input2


[ 1.569549] input: nub1 as /devices/platform/omap_i2c.3/i2c-3/3-0067/input/input3


[ 1.574920] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0


[ 1.575805] i2c /dev entries driver


[ 1.580963] bq27x00-battery 3-0055: support ver. 1.2.0 enabled


[ 1.605407] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec


[ 1.605987] twl4030_wdt twl4030_wdt: Failed to register misc device


[ 1.606048] twl4030_wdt: probe of twl4030_wdt failed with error -16


[ 1.606750] voltdm_scale: No voltage scale API registered for vdd_mpu_iva


[ 1.606811] platform mpu.0: omap_target: unable to scale voltage up.


[ 1.607269] cpuidle: using governor ladder


[ 1.607269] cpuidle: using governor menu


[ 1.837890] Registered led device: pandora::sd1


[ 1.838195] Registered led device: pandora::sd2


[ 1.838500] Registered led device: pandora::bluetooth


[ 1.838806] Registered led device: pandora::wifi


[ 1.840118] Registered led device: pandora::keypad_bl


[ 1.841278] Registered led device: pandora::power


[ 1.843933] Registered led device: pandora::charger


[ 1.845245] usbcore: registered new interface driver usbhid


[ 1.845275] usbhid: USB HID core driver


[ 1.847900] OMAP3 Pandora SoC init


[ 1.948669] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok


[ 1.950164] asoc: twl4030-hifi <-> omap-mcbsp-dai.3 mapping ok


[ 1.953033] ALSA device list:


[ 1.953033] #0: omap3pandora


[ 1.953247] TCP cubic registered


[ 1.953247] NET: Registered protocol family 17


[ 1.953338] NET: Registered protocol family 15


[ 1.953369] Registering the dns_resolver key type


[ 1.953430] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1


[ 1.953460] ThumbEE CPU extension supported.


[ 1.953491] Registering SWP/SWPB emulation handler


[ 1.961334] clock: disabling unused clocks to save power


[ 1.996368] Console: switching to colour frame buffer device 100x30


[ 2.179656] regulator_init_complete: VAUX4: incomplete constraints, leaving on


[ 2.180664] regulator_init_complete: VAUX2: incomplete constraints, leaving on


[ 2.184936] input: gpio-keys as /devices/platform/gpio-keys/input/input4


[ 2.186889] twl_rtc twl_rtc: setting system clock to 2012-08-17 16:18:11 UTC (1345220291)


[ 2.189056] UBIFS DBG (pid 660): ubifs_bg_thread: background thread "ubifs_bgt0_0" started, PID 660


[ 2.276062] UBIFS: mounted UBI device 0, volume 0, name "rootfs"


[ 2.276062] UBIFS: file system size: 508612608 bytes (496692 KiB, 485 MiB, 3942 LEBs)


[ 2.276092] UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)


[ 2.276123] UBIFS: media format: w4/r0 (latest is w4/r0)


[ 2.276123] UBIFS: default compressor: lzo


[ 2.276153] UBIFS: reserved for root: 0 bytes (0 KiB)


[ 2.276153] UBIFS DBG (pid 1): mount_ubifs: compiled on: Jun 21 2012 at 16:19:52


[ 2.276184] UBIFS DBG (pid 1): mount_ubifs: min. I/O unit size: 2048 bytes


[ 2.276184] UBIFS DBG (pid 1): mount_ubifs: max. write size: 2048 bytes


[ 2.276214] UBIFS DBG (pid 1): mount_ubifs: LEB size: 129024 bytes (126 KiB)


[ 2.276214] UBIFS DBG (pid 1): mount_ubifs: data journal heads: 1


[ 2.276245] UBIFS DBG (pid 1): mount_ubifs: UUID: 4357D06B-FD4F-419F-8FD9-0D673432E794


[ 2.276275] UBIFS DBG (pid 1): mount_ubifs: big_lpt 0


[ 2.276275] UBIFS DBG (pid 1): mount_ubifs: log LEBs: 5 (3 - 7)


[ 2.276306] UBIFS DBG (pid 1): mount_ubifs: LPT area LEBs: 2 (8 - 9)


[ 2.276306] UBIFS DBG (pid 1): mount_ubifs: orphan area LEBs: 1 (10 - 10)


[ 2.276336] UBIFS DBG (pid 1): mount_ubifs: main area LEBs: 3942 (11 - 3952)


[ 2.276367] UBIFS DBG (pid 1): mount_ubifs: index LEBs: 91


[ 2.276367] UBIFS DBG (pid 1): mount_ubifs: total index bytes: 6629992 (6474 KiB, 6 MiB)


[ 2.276397] UBIFS DBG (pid 1): mount_ubifs: key hash type: 0


[ 2.276397] UBIFS DBG (pid 1): mount_ubifs: tree fanout: 8


[ 2.276428] UBIFS DBG (pid 1): mount_ubifs: reserved GC LEB: 3170


[ 2.276428] UBIFS DBG (pid 1): mount_ubifs: first main LEB: 11


[ 2.276458] UBIFS DBG (pid 1): mount_ubifs: max. znode size 240


[ 2.276458] UBIFS DBG (pid 1): mount_ubifs: max. index node size 192


[ 2.276489] UBIFS DBG (pid 1): mount_ubifs: node sizes: data 48, inode 160, dentry 56


[ 2.276519] UBIFS DBG (pid 1): mount_ubifs: node sizes: trun 56, sb 4096, master 512


[ 2.276519] UBIFS DBG (pid 1): mount_ubifs: node sizes: ref 64, cmt. start 32, orph 32


[ 2.276550] UBIFS DBG (pid 1): mount_ubifs: max. node sizes: data 4144, inode 4256 dentry 312, idx 188


[ 2.276580] UBIFS DBG (pid 1): mount_ubifs: dead watermark: 2048


[ 2.276580] UBIFS DBG (pid 1): mount_ubifs: dark watermark: 6144


[ 2.276611] UBIFS DBG (pid 1): mount_ubifs: LEB overhead: 560


[ 2.276611] UBIFS DBG (pid 1): mount_ubifs: max. dark space: 24219648 (23652 KiB, 23 MiB)


[ 2.276641] UBIFS DBG (pid 1): mount_ubifs: maximum bud bytes: 8388608 (8192 KiB, 8 MiB)


[ 2.276672] UBIFS DBG (pid 1): mount_ubifs: BG commit bud bytes: 6815744 (6656 KiB, 6 MiB)


[ 2.276672] UBIFS DBG (pid 1): mount_ubifs: current bud bytes 147456 (144 KiB, 0 MiB)


[ 2.276702] UBIFS DBG (pid 1): mount_ubifs: max. seq. number: 638215


[ 2.276702] UBIFS DBG (pid 1): mount_ubifs: commit number: 426


[ 2.278930] VFS: Mounted root (ubifs filesystem) on device 0:13.


[ 2.280578] devtmpfs: mounted


[ 2.281036] Freeing init memory: 192K


[ 2.677642] mmc0: host does not support reading read-only switch. assuming write-enable.


[ 2.681335] mmc0: new high speed SDHC card at address 0007


[ 2.689819] mmcblk0: mmc0:0007 SD16G 15.0 GiB


[ 2.692810] mmcblk0: p1


[ 3.078002] mmc1: host does not support reading read-only switch. assuming write-enable.


[ 3.079803] mmc1: new high speed SDHC card at address 0001


[ 3.080993] mmcblk1: mmc1:0001 00000 7.46 GiB


[ 3.084442] mmcblk1: p1


[ 3.192871] mmc2: card claims to support voltages below the defined range. These will be ignored.


[ 3.193908] mmc2: new SDIO card at address 0001


[ 3.386627] udev: starting version 151


[ 3.387329] udevd (719): /proc/719/oom_adj is deprecated, please use /proc/719/oom_score_adj instead.


[ 5.904388] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.


[ 9.586242] ads7846 spi1.0: touchscreen, irq 254


[ 9.587249] input: touchscreen as /devices/platform/omap2_mcspi.1/spi_master/spi1/spi1.0/input/input5


[ 10.666870] fuse init (API version 7.17)


[ 11.951477] NET: Registered protocol family 10


[ 13.053192] FAT-fs (mmcblk1): bogus number of reserved sectors


[ 13.053222] FAT-fs (mmcblk1): Can't find a valid FAT filesystem


[ 13.083129] FAT-fs (mmcblk0): bogus number of reserved sectors


[ 13.083160] FAT-fs (mmcblk0): Can't find a valid FAT filesystem


[ 13.271026] UBIFS DBG (pid 1340): ubifs_bg_thread: background thread "ubifs_bgt1_0" started, PID 1340


[ 13.437866] UBIFS: mounted UBI device 1, volume 0, name "boot"


[ 13.437896] UBIFS: file system size: 8386560 bytes (8190 KiB, 7 MiB, 65 LEBs)


[ 13.437927] UBIFS: journal size: 1032193 bytes (1008 KiB, 0 MiB, 6 LEBs)


[ 13.437927] UBIFS: media format: w4/r0 (latest is w4/r0)


[ 13.437957] UBIFS: default compressor: lzo


[ 13.437957] UBIFS: reserved for root: 396117 bytes (386 KiB)


[ 13.437988] UBIFS DBG (pid 1337): mount_ubifs: compiled on: Jun 21 2012 at 16:19:52


[ 13.438018] UBIFS DBG (pid 1337): mount_ubifs: min. I/O unit size: 2048 bytes


[ 13.438018] UBIFS DBG (pid 1337): mount_ubifs: max. write size: 2048 bytes


[ 13.438049] UBIFS DBG (pid 1337): mount_ubifs: LEB size: 129024 bytes (126 KiB)


[ 13.438049] UBIFS DBG (pid 1337): mount_ubifs: data journal heads: 1


[ 13.438079] UBIFS DBG (pid 1337): mount_ubifs: UUID: E2D2B3E9-CB09-4E53-8BFC-B1069D97D42B


[ 13.438110] UBIFS DBG (pid 1337): mount_ubifs: big_lpt 0


[ 13.438110] UBIFS DBG (pid 1337): mount_ubifs: log LEBs: 3 (3 - 5)


[ 13.438140] UBIFS DBG (pid 1337): mount_ubifs: LPT area LEBs: 2 (6 - 7)


[ 13.438140] UBIFS DBG (pid 1337): mount_ubifs: orphan area LEBs: 1 (8 - 8)


[ 13.438171] UBIFS DBG (pid 1337): mount_ubifs: main area LEBs: 65 (9 - 73)


[ 13.438201] UBIFS DBG (pid 1337): mount_ubifs: index LEBs: 1


[ 13.438201] UBIFS DBG (pid 1337): mount_ubifs: total index bytes: 47384 (46 KiB, 0 MiB)


[ 13.438232] UBIFS DBG (pid 1337): mount_ubifs: key hash type: 0


[ 13.438232] UBIFS DBG (pid 1337): mount_ubifs: tree fanout: 8


[ 13.438262] UBIFS DBG (pid 1337): mount_ubifs: reserved GC LEB: 66


[ 13.438262] UBIFS DBG (pid 1337): mount_ubifs: first main LEB: 9


[ 13.438293] UBIFS DBG (pid 1337): mount_ubifs: max. znode size 240


[ 13.438293] UBIFS DBG (pid 1337): mount_ubifs: max. index node size 192


[ 13.438323] UBIFS DBG (pid 1337): mount_ubifs: node sizes: data 48, inode 160, dentry 56


[ 13.438354] UBIFS DBG (pid 1337): mount_ubifs: node sizes: trun 56, sb 4096, master 512


[ 13.438354] UBIFS DBG (pid 1337): mount_ubifs: node sizes: ref 64, cmt. start 32, orph 32


[ 13.438385] UBIFS DBG (pid 1337): mount_ubifs: max. node sizes: data 4144, inode 4256 dentry 312, idx 188


[ 13.438415] UBIFS DBG (pid 1337): mount_ubifs: dead watermark: 2048


[ 13.438415] UBIFS DBG (pid 1337): mount_ubifs: dark watermark: 6144


[ 13.438446] UBIFS DBG (pid 1337): mount_ubifs: LEB overhead: 560


[ 13.438446] UBIFS DBG (pid 1337): mount_ubifs: max. dark space: 399360 (390 KiB, 0 MiB)


[ 13.438476] UBIFS DBG (pid 1337): mount_ubifs: maximum bud bytes: 645121 (630 KiB, 0 MiB)


[ 13.438507] UBIFS DBG (pid 1337): mount_ubifs: BG commit bud bytes: 516097 (504 KiB, 0 MiB)


[ 13.438507] UBIFS DBG (pid 1337): mount_ubifs: current bud bytes 210944 (206 KiB, 0 MiB)


[ 13.438537] UBIFS DBG (pid 1337): mount_ubifs: max. seq. number: 6516


[ 13.438568] UBIFS DBG (pid 1337): mount_ubifs: commit number: 654


[ 14.253692] FAT-fs (mmcblk0): bogus number of reserved sectors


[ 14.253723] FAT-fs (mmcblk0): Can't find a valid FAT filesystem


[ 14.254119] FAT-fs (mmcblk1): bogus number of reserved sectors


[ 14.254150] FAT-fs (mmcblk1): Can't find a valid FAT filesystem


[ 15.476318] input: nub0 as /devices/platform/omap_i2c.3/i2c-3/3-0066/input/input6


[ 15.557434] input: nub1 as /devices/platform/omap_i2c.3/i2c-3/3-0067/input/input7


[ 19.300109] SGX clock rate 110 MHz


[ 36.251220] Bluetooth: Core ver 2.16


[ 36.256805] NET: Registered protocol family 31


[ 36.256835] Bluetooth: HCI device and connection manager initialized


[ 36.256835] Bluetooth: HCI socket layer initialized


[ 36.256866] Bluetooth: L2CAP socket layer initialized


[ 36.258453] Bluetooth: SCO socket layer initialized


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


[ 39.290863] aufs 3.2-20120109


[ 39.956512] aufs test_add:261:mount[2036]: uid/gid/perm /mnt/pnd/Conky 1000/1001/0755, 0/0/0777


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


[ 1548.395568] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller


[ 1548.395629] sched: RT throttling activated


[ 1548.396575] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1


[ 1548.396759] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800


[ 1548.411956] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00


[ 1548.412109] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002


[ 1548.412109] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1


[ 1548.412139] usb usb1: Product: OMAP-EHCI Host Controller


[ 1548.412139] usb usb1: Manufacturer: Linux 3.2.21 ehci_hcd


[ 1548.412139] usb usb1: SerialNumber: ehci-omap.0


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


[ 1548.417541] hub 1-0:1.0: 3 ports detected


[ 1592.817840] usb 1-2: new high-speed USB device number 2 using ehci-omap


[ 1592.993133] usb 1-2: New USB device found, idVendor=148f, idProduct=5370


[ 1592.993164] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3


[ 1592.993164] usb 1-2: Product: 802.11 n WLAN


[ 1592.993194] usb 1-2: Manufacturer: Ralink


[ 1592.993194] usb 1-2: SerialNumber: 1.0


[ 1593.245697] cfg80211: Calling CRDA to update world regulatory domain


[ 1593.512847] usb 1-2: reset high-speed USB device number 2 using ehci-omap


[ 1593.711822] ieee80211 phy0: Selected rate control algorithm 'pid'


[ 1593.713714] Registered led device: rt2800usb-phy0::radio


[ 1593.714019] Registered led device: rt2800usb-phy0::assoc


[ 1593.714263] Registered led device: rt2800usb-phy0::quality


[ 1593.715545] usbcore: registered new interface driver rt2800usb


[ 1594.048889] udev: renamed network interface wlan0 to wlan1
 
Last edited by a moderator:
nope, you didn't miss it. I didn't post it as it's the same error shown by other users in the other threads. It's not relevant is it? as the driver is the issue - if I use the wrong driver it doesn't work (that makes perfect sense). I was asking "how do I get the correct driver installed into the Pandora?"


I plugged into a windows laptop, installed the drivers from the install app, the hardware works fine, so no issue there.


[EDIT] The error message that it does show (after installing and trying to use the RT3572USB_pandora.pnd drivers is):


[456.126953] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


[517.127075] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


I'm posting this edit now using the USB WiFi dongle on a Windows laptop - the hardware is working absolutely fine, I just want it working from the Pandora instead.
 
Last edited by a moderator:
Drivers are not so easy with the linux kernel, if you need a driver not included the module needs to be compiled and then you could load it. Usually the drivers look for specific hardware ids to pick a driver, so strange that the driver being loaded doesnt work.
 
the module needs to be compiled and then you could load it.
I have compiled the driver on a linux laptop, using the instructions provided by Ralink. I have the compiled drivers available to me. I just don't know where to put them on the Pandora or how to use them. Any ideas?
 
wrong arch's, your linux laptop is x86 and not ARM like the pandora is. You would have to cross compile the module. Notaz has been nicely including drivers into the firmware, he may help if asked.
 
d'oh! yes, good point. I suppose what I was looking for was some tutorial like this....


I shall await to see if we hear anything from Notaz ;)
 
Last edited by a moderator:
[EDIT] The error message that it does show (after installing and trying to use the RT3572USB_pandora.pnd drivers is):


[456.126953] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


[517.127075] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
That means additional firmware files are needed in /lib/firmware/ I guess, doesn't it say what files exactly it wants? You should be able to find these files on PC Linux distributions, many are here too:


http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree
 
[EDIT] The error message that it does show (after installing and trying to use the RT3572USB_pandora.pnd drivers is):


[456.126953] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


[517.127075] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
That means additional firmware files are needed in /lib/firmware/ I guess, doesn't it say what files exactly it wants? You should be able to find these files on PC Linux distributions, many are here too:


http://git.kernel.or...ware.git;a=tree

hah, i didnt see that edit, thats makes this pretty simple to solve.
 
okay, I used PNDTools to take a look inside the RT3572USB_Pandora.pnd. The install.sh was very educational for me. I now understand what is being copied to where and how things are supposed to work. I also saw that it was hardcode referencing the kernel version for 2.6 and I have v3.2.21 after my reflash.


I went through the manual process of doing what the .pnd above was executing, except I was using the driver that I had made for my linux laptop. I expected it to fail, but I wanted to make sure I had the correct steps worked out. As expected when I ran update-modules it threw an error:


insmod: error inserting '/lib/modules/3.2.21/kernel/drivers/net/wireless/rt5370sta.ko: -1 Invalid module format


The bit that is stumping me is: how do I compile my rt5370sta.ko file to be "pandora format"? Do I need special libraries / changes to the makefile? I apologise if this is a known thing to those in the know. I'm still in the darkness....trying to find the light :)
 
I don't know why you want to use that rt5370sta.ko so much.


According to modinfo, rt2800usb.ko also supports your device, and it is already included in pandora's firmware, and from what you say it's even autoloaded for you. What you need is wifi chip's firmware, quick glance at the source says that you most likely need rt2870.bin file, it must be copied to /lib/firmware/ from another Linux machine or the link I posted above.
 
Last edited by a moderator:
I can see in the /lib/modules/3.2.21/drivers/net/wireless/ folders that there are plenty of files that should do he job for me. (mainly in the /rt2x00 sub-folder)


I did as you initially suggested and downloaded the rt2870.bin file from the git folder and copied it to the /lib/firmware folder. It didn't seem to make any difference though, hence the obsession with trying to use the rt5370sta.ko file.


I'll go back to square-one, re-flash the Pandora again (just incase something is left in a folder and causing me a conflict) and I'll try again.


[EDIT1:]


file rt2870.bin copied to /lib/firmware (as root)


Start Pandora. Not WiFi enabled. Enabled USB Host. Plug-in usb WiFi.


type lsusb, I see the device detected & listed.


type dmesg, I see the output:


New USB device found, idVendor=148f, idProduct=5370


New USB device strings: Mfr=1, Product=2, SerialNumber=3


Product: 802.11 n WLAN


Manufacturer: Ralink


SerialNumber: 1.0


cfg80211: Calling CRDA to update world regulatory domain


usb 1-2: reset high-speed USB device number 2 using ehci-omap


ieee80211 phy0: Selected rate control algorithm 'pid'


Registered led device: rt2800usb-phy0::radio


Registered led device: rt2800usb-phy0::assoc


Registered led device: rt2800usb-phy0::quality


usbscore: registered new interface driver rt2800usb


udev: renamed network interface wlan0 to wlan1


phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


>usbscore: registered new interface driver rt2800usb


That looks positive!? It's loading the driver as Notaz indicated it would by having the firmware file.


If I unplug the usb WiFi and plug it back in again, and type dmesg I get the same as the above but no error message.


Although if I do an ifconfig, wlan1 doesn't show in the list. If I wait a few more seconds and run dmesg I'm back to the 1st error as shown above.


hmmm....


[EDIT2:]


AH!!!! okay, now I see the problem! The rt2870.bin that I downloaded and copied to the Pandora was '0 bytes'. rookie error, not noticing that....
 
Last edited by a moderator:
Thanks for your help (and perseverance) Pickle & notaz!


After noticing that the rt2870.bin file I'd downloaded to my laptop was 0 bytes (I think I must have clicked on the blob link and it downloaded an empty file rather than the raw link that downloads an 8.2bytes file), I copied the proper file to my Pandora. Rebooted.


Activated USB Host. Plugged in the USB WiFi and I didn't have to do anything further! The Pandora then operated as Plug and Play, it detected the usb wifi, connected it, associated it as wlan1 and connected to the existing wifi connection. SUPERB! everything is now up and running as it should.


Can't believe that I didn't notice that empty file until now.... well, it's been a learning lesson along the way, so there is that benefit. Right, I'm off to the end of the garden to see if after all this the USB WiFi dongle is powerful enough to work with my Pandora!


Thanks again :rolleyes:
 
Small adapters with this chipset have become common. I was able to make mine work from the above thread, but would like to request/suggest that this firmware file be added to the default image to make these just work.


Thanks!
 
rt2870.bin is now included by default in SZ1.60, doesn't it work?
I haven't updated in a while. That is probably it and you're already there. Just checked. I'm on 1.54.

Sorry - I should have updated my own Kernel before asking.

Thank you!
 
Back
Top