Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Struggling with Ralink RT5370 card

  1. #1
    Join Date
    Oct 2009
    Beans
    6

    Unhappy Struggling with Ralink RT5370 card

    I've been trying to get this usb wifi adapter working on Ubuntu 11.10 but haven't had much success so far. I've downloaded and compiled the driver, and I can load the driver, but cannot bring up the interface. All I get is:


    Code:
    === pAd = c94fc000, size = 509880 ===
    
    <-- RTMPAllocTxRxRingMemory, Status=0
    <-- RTMPAllocAdapterBlock, Status=0
    usbcore: registered new interface driver rt2870
    (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
    NICLoadFirmware: MCU is not ready
    
    
    ERROR!!! NICLoadFirmware failed, Status[=0x00000001]
    !!! rt28xx Initialized fail !!!
    Note that I'm on PPC, but I'm assuming this shouldn't affect the firmware loading?

    Does anyone have any suggestions? Or any ideas on what I can try next? Any help would be appreciated.

    Thanks

    jpg

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Struggling with Ralink RT5370 card

    Please show us:
    Code:
    modinfo rt5370sta
    Let's see what firmware it wants. Also, let's see:
    Code:
    dmesg | grep -e rt5 -e firm
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  3. #3
    Join Date
    Oct 2009
    Beans
    6

    Re: Struggling with Ralink RT5370 card

    modinfo ra5370sta:

    Code:
    filename:       /lib/modules/3.0.14/kernel/drivers/net/wireless/rt5370sta.ko
    version:        2.5.0.3
    license:        GPL
    description:    RT2870 Wireless Lan Linux Driver
    author:         Paul Lin <paul_lin@ralinktech.com>
    srcversion:     BECD45954752CD686B2920E
    alias:          usb:v043Ep7A22d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v043Ep7A12d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v2001p3C19d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v2001p3C15d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v13D3p3329d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v13D3p3365d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v148Fp5372d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v148Fp5370d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DF6p0050d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v148Fp3370d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1EDAp2012d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0586p343Ed*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0586p341Ed*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0586p341Ad*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0789p0166d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07FAp7712d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v13D3p3321d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v13D3p3307d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v083ApA703d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v5A57p0282d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p821Ad*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p3821d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p822Ad*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p871Ad*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p3871d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p3822d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p6899d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p870Ad*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p3870d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p899Ad*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v203Dp14A9d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0B05p1784d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v20B8p8888d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v203Dp1480d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v04BBp0948d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v04BBp0947d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v04BBp0945d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v5A57p0283d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v5A57p5257d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1D4Dp0011d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1D4Dp000Ed*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1D4Dp000Cd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07D1p3C17d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07D1p3C16d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07D1p3C0Fd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07D1p3C0Ed*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07D1p3C0Dd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07D1p3C0Ad*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1EDAp2310d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1A32p0304d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v7392p4085d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v7392p7711d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07B8p3072d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07B8p3071d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v07B8p3070d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v2019p5201d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v2019pAB25d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1044p800Dd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v13D3p3305d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v13D3p3273d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1740p9709d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1740p9708d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1740p9707d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1740p9706d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1740p9705d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v1740p9703d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v083ApA702d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v083ApA701d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v083Ap7511d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v18C5p0012d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v14B2p3C12d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DF6p005Fd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DF6p0047d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DF6p0048d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DF6p0042d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DF6p003Ed*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p822Bd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p871Bd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p822Cd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p871Cd*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v0DB0p3820d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v148Fp3072d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v148Fp3071d*dc*dsc*dp*ic*isc*ip*
    alias:          usb:v148Fp3070d*dc*dsc*dp*ic*isc*ip*
    depends:
    vermagic:       3.0.14 mod_unload
    parm:           mac:rt28xx: wireless mac addr (charp)
    Nothing in dmesg about firmware; dmesg | grep -e firm gives nothing.

    Another thing to note here - I've built my own kernel - I don't think that the stock kernel supports my hardware.
    Last edited by _jpg_; January 5th, 2012 at 09:52 PM. Reason: Added note about kernel

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Struggling with Ralink RT5370 card

    I don't think that the stock kernel supports my hardware.
    Tell me more. Maybe so and maybe not.

    As you can see, rt5370sta does not ask for firmware. Can you confirm that no firmware is included in the package you built? You might be interested in this: http://ubuntuforums.org/showthread.p...highlight=5370

    The poster tricked rt2800usb to drive his 5370 device. Interestingly, rt2800usb requires firmware!
    Code:
    modinfo rt2800usb
    filename:       /lib/modules/3.0.0-14-generic/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
    license:        GPL
    firmware:       rt2870.bin
    description:    Ralink RT2800 USB Wireless LAN driver.
    version:        2.3.0
    author:         http://rt2x00.serialmonkey.com
    srcversion:     61CFBA7ACB6A210B48AA6CB
    alias:          usb:v0586p341Ad*dc*dsc*dp*ic*isc*ip*
    <snip>
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  5. #5
    Join Date
    Oct 2009
    Beans
    6

    Re: Struggling with Ralink RT5370 card

    Thanks for the info! I checked out the package which I got from the ralink website, and indeed there is firmware included, and it is the same as that other thread:

    Code:
    $ find . -name \*.bin
    ./common/rt2870.bin
    Any idea why this isn't getting referenced from my module?

    Also my hardware is a Kurobox HG. It's PPC, and requires some bits in the kernel to disable it's watchdog to make it not shut down. It also requires some DTC stuff, which I don't know much about - I'm not sure if it is required by the hardware, or by Uboot which I use to boot it. I'm happy to give a stock kernel a try if I can't get it working this way (but it's a bit of a pita as I have no display, not even a console).

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Struggling with Ralink RT5370 card

    Also my hardware is a Kurobox HG. It's PPC, and requires some bits in the kernel to disable it's watchdog to make it not shut down. It also requires some DTC stuff, which I don't know much about - I'm not sure if it is required by the hardware, or by Uboot which I use to boot it. I'm happy to give a stock kernel a try if I can't get it working this way (but it's a bit of a pita as I have no display, not even a console).
    Is this Chinese or Klingon?? Seriously, I have little to no understanding of these matters. Better to ask in General Help.
    Any idea why this isn't getting referenced from my module?
    None. Is the file in the place where modules usually look; i.e. /lib/firmware?
    Code:
    $ locate rt2870.bin
    /lib/firmware/rt2870.bin
    Can you please try copying it there and unload/reload the module and check dmesg again?

    I have abbreviated my suggestion; you know what you're doing!
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  7. #7
    Join Date
    Oct 2009
    Beans
    6

    Re: Struggling with Ralink RT5370 card

    Don't worry about the hardware! I know it's somewhat foreign but it does seem to be working ok - support was added to linux mainline a while back so it's currently running fine.

    Just checked and the firmware _is_ in the /lib/firmware directory, it's 8192 bytes (and has symlinks pointing to it from rt3070 and rt3090 in there too). So it looks like for some reason my module is failing to recognised that the firmware is required?

  8. #8
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Struggling with Ralink RT5370 card

    I'm not at all sure it is a firmware issue. Your modinfo makes no mention of firmware. I built a copy of the package and mine is identical. Even if it wants firmware and modinfo is incorrect, the firmware is there.

    When I built the package, there were many and numerous warnings and I wonder if all the inconsistencies add up to not allow the driver to function on this later kernel. I have no idea how to mend it.

    If you'd like to try, instead, to get rt2800usb to drive your device, I'll be glad to help.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  9. #9
    Join Date
    Oct 2009
    Beans
    6

    Re: Struggling with Ralink RT5370 card

    I'm happy to give the rt2800usb driver a go, and would certainly appreciate your help!

    I'm not at home this weekend, but I'll give it a go on mon/tues.

    Thanks again!

  10. #10
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Struggling with Ralink RT5370 card

    Quote Originally Posted by _jpg_ View Post
    I'm happy to give the rt2800usb driver a go, and would certainly appreciate your help!

    I'm not at home this weekend, but I'll give it a go on mon/tues.

    Thanks again!
    If you need some assistance, post back and I'll be happy to help.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •