Build for MT7630E

Issue #1 resolved
Anto Damic created an issue

Hello, first of all thank you for all the time and effort you have put into this. I'm trying to figure out what to edit within these files Makefile os/linux/config.mk common/rtusb_dev_id.c in order to correctly build the driver agaisnt the MT7630E chipset. (ok, in the first one I already figured it out). Can you please give some indication about it?

Comments (5)

  1. Sanjit Rath repo owner

    hi Anto,

    Thanks for looking into the code. The following changes are needed for your chipset

    File: Makefile Code: ifeq ($(CHIPSET),) CHIPSET = mt7610u -> change it to m7630u endif

    File: os/linux/config.mk Code: No changes required, it is fixed already

    Now the important part, setting your devides VENDOR ID and PRODUCT ID

    • connect your device to your computer
    • run command lsusb
    • note down vendor id and product id
      • ex: $ lsusb
      • Bus 002 Device 007: ID 13b1:003e Linksys
      • here VENDOR_ID = 0x13B1 and PRODUCT_ID = 0x003E
    • replace the vendor and product ids in the file common/rtusb_dev_id.c
    • replace the line {USB_DEVICE(0x13B1,0x003E)}, / MT7610U Cisco Linksys AE6000 AC580 / first hex is VENDOR ID and second hex is PRODUCT ID
  2. Sanjit Rath repo owner

    hi, please follow the instructions in the comment, check if it resolves the issues. Other code remains the same except for the changes mentioned in the comment..

  3. Anto Damic reporter

    Hello Sanjit,

    thanks for replying. Something is unclear to me, because my wifi card is not on an external peripheral, but it is internal (pci) so I do not understand how to edit common/rtusb_dev_id.c (if I need to do it).

    Here are the description of my chipset, gotten with lspci -vv: 03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter

    Subsystem: Foxconn International, Inc. Device e074

    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    
    
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    
    
    Latency: 0, Cache Line Size: 64 bytes
    
    
    Interrupt: pin A routed to IRQ 255
    
    Region 0: Memory at f7900000 (32-bit, non-prefetchable) [size=1M]
    
    Capabilities: <access denied>
    

    Thanks

    Regards

  4. Sanjit Rath repo owner

    Hi Anto,

    Thanks for the details. You are having a PCIe card, it would require a different driver. The code I have fixed is for all USB drivers, mt7610u, mt7630u, mt7650u.

    I believe you need to download a different driver source code from mediatek website for all pcie cards. I could locate driver sources for your PCIe card from mediatek website at

    http://www.mediatek.com/en/downloads/mt7630-pcie/

    The driver looks to be recent 24th May 14, hope it will compile and work for your card. You can check if your driver is not loaded by running command $lsmod | grep -i mt7630

    if not loaded check for errors by running $mesg | grep -i mt7630

    If the driver is not recognized and not loaded at all, it means the hardware ids are not setup. You might start by making changes to common/rtusb_dev_id.c by setting up the product id and vendor id.

    Please let me know how it goes.. :)

    Regards, Sanjit

  5. Log in to comment