← Back to team overview

kernel-packages team mailing list archive

[Bug 1049466] Re: Need support of Ralink RT3290 wifi support

 

Distributor ID: Ubuntu
Description:    Ubuntu Trusty Tahr (development branch)
Release:        14.04
Codename:       trusty

Kernel 3.13.0-12
 
I upgraded this morning hoping there would be support for the rt3290 native support but it was not there. Booted in to the 3.13 kernel I thought I'd try compiling the patched version in hopes that maybe I could get the dkms stuff working but the build fails. Here is the output from the make log:

DKMS make.log for rt3290sta-2.6.0.0 for kernel 3.13.0-12-generic (x86_64)
Thu Feb 27 10:23:51 CST 2014
make: Entering directory `/var/lib/dkms/rt3290sta/2.6.0.0/build/src'
make -C tools
make[1]: Entering directory `/var/lib/dkms/rt3290sta/2.6.0.0/build/src/tools'
gcc -g bin2h.c -o bin2h
chmod +x bin2h
make[1]: Leaving directory `/var/lib/dkms/rt3290sta/2.6.0.0/build/src/tools'
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/tools/bin2h
cp -f os/linux/Makefile.6 /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/Makefile
make -C /lib/modules/3.13.0-12-generic/build SUBDIRS=/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-12-generic'
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_md5.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_sha2.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_hmac.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_aes.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Wrap’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_aes.c:1466:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
      DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
      ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Unwrap’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_aes.c:1561:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
      DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
      ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/crypt_arc4.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/mlme.o
In file included from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/rtmp_os.h:42:0,
                 from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/rtmp_comm.h:56,
                 from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/rt_config.h:36,
                 from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/mlme.c:30:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/mlme.c: In function ‘MlmeResetRalinkCounters’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/mlme.c:529:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       (UINT32)&pAd->RalinkCounters.OneSecEnd -
       ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/os/rt_linux.h:463:76: note: in definition of macro ‘NdisZeroMemory’
 #define NdisZeroMemory(Destination, Length)         memset(Destination, 0, Length)
                                                                            ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/mlme.c:530:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       (UINT32)&pAd->RalinkCounters.OneSecStart);
       ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/os/rt_linux.h:463:76: note: in definition of macro ‘NdisZeroMemory’
 #define NdisZeroMemory(Destination, Length)         memset(Destination, 0, Length)
                                                                            ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_wep.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/action.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_data.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rtmp_init.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rtmp_init_inf.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rtmp_init_inf.c: In function ‘rt28xx_init’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rtmp_init_inf.c:162:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘ULONG’ [-Wformat=]
   DBGPRINT(RT_DEBUG_OFF,("PllCtrl:0x%x\n",PllCtrl.word));
   ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rtmp_init_inf.c:178:10: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
          AUTO_WAKEUP_STRUC AutoWakeupCfg;
          ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_tkip.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_aes.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_sync.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/eeprom.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_sanity.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_info.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_cfg.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_wpa.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_wpa.c: In function ‘PeerPairMsg3Action’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_wpa.c:1032:13: warning: unused variable ‘Cancelled’ [-Wunused-variable]
  BOOLEAN    Cancelled;
             ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_radar.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/spectrum.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/spectrum.c: In function ‘PeerMeasureReportAction’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/spectrum.c:1972:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
   DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", __FUNCTION__, sizeof(MEASURE_RPI_REPORT)));
   ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rtmp_timer.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rt_channel.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_profile.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_asic.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/cmm_cmd.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/ps.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/uapsd.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../rate_ctrl/ra_ctrl.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../rate_ctrl/alg_legacy.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../rate_ctrl/alg_ags.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_profile.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_profile.c:409:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
         DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
         ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../chips/rtmp_chip.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/assoc.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/auth.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/auth_rsp.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/sync.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/sanity.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/rtmp_data.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/rtmp_data.c:283:17: warning: unused variable ‘pFmeCtrl’ [-Wunused-variable]
  FRAME_CONTROL *pFmeCtrl = &pHeader->FC;
                 ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/rtmp_data.c:282:8: warning: unused variable ‘OldPwrMgmt’ [-Wunused-variable]
  UCHAR OldPwrMgmt = PWR_ACTIVE;
        ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxMgmtFrame’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/rtmp_data.c:766:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     UCHAR uRSSI2;
     ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/connect.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/wpa.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/sta_cfg.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/sta_cfg.c: In function ‘RTMPQueryInformation’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/sta_cfg.c:3956:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
    DBGPRINT(RT_DEBUG_TRACE, ("sizeof UCHAR=%d, channel=%d \n", sizeof(UCHAR), pAd->CommonCfg.Channel));
    ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_private_get_statistics’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../sta/sta_cfg.c:7220:1: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘EEPROM_NIC_CONFIG3_STRUC’ [-Wformat=]
 sprintf(extra+strlen(extra), "pAd->NicConfig3.field.CoexAnt == 0x%x\n\n",pAd->NicConfig3);
 ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../common/rt_os_util.o
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/sta_ioctl.o
In file included from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/os/rt_linux.h:40:0,
                 from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/rtmp_os.h:42,
                 from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/include/rtmp_comm.h:56,
                 from /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/sta_ioctl.c:33:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_giwscan’:
include/net/iw_handler.h:542:9: warning: array subscript is below array bounds [-Warray-bounds]
   memcpy(stream + point_len, extra, iwe->u.data.length);
         ^
  CC [M]  /var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_linux.o
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_linux.c:1136:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
   pOSFSInfo->fsuid = current_fsuid();
                    ^
/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_linux.c:1137:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
   pOSFSInfo->fsgid = current_fsgid();
                    ^
make[2]: *** [/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/var/lib/dkms/rt3290sta/2.6.0.0/build/src/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-12-generic'
make: *** [LINUX] Error 2
make: Leaving directory `/var/lib/dkms/rt3290sta/2.6.0.0/build/src'


Any ideas or a direction on a supported kernel and how to get it on 14.04?? I'm currently on my old 3.2.0-59 kernel (which I have a working rt3290sta driver on) so I can connect to the 'net to post here ;-)  Any ideas?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-firmware in Ubuntu.
https://bugs.launchpad.net/bugs/1049466

Title:
  Need support of Ralink RT3290 wifi support

Status in The Linux Kernel:
  New
Status in “linux” package in Ubuntu:
  Confirmed
Status in “linux-firmware” package in Ubuntu:
  Fix Released
Status in “linux” source package in Precise:
  Invalid
Status in “linux-firmware” source package in Precise:
  Fix Released
Status in “linux” source package in Quantal:
  Invalid
Status in “linux-firmware” source package in Quantal:
  Won't Fix
Status in “linux” source package in Raring:
  Fix Released
Status in “linux-firmware” source package in Raring:
  Fix Released
Status in “linux” package in Baltix:
  Opinion
Status in “linux” package in Gentoo Linux:
  New

Bug description:
  RT3290 wifi chip is becoming common on consumer notebooks. Its support
  starts from 3.6 so support on 12.10 may need lbm-cw.

  commit a89534edaaa7008992b878680490e9b02a665563
  Author: Woody Hung <Woody.Hung@xxxxxxxxxxxx>
  Date:   Wed Jun 13 15:01:16 2012 +0800

      rt2x00 : RT3290 chip support v4
      
      This patch support the new chipset rt3290 wifi implementation in rt2x00.
      It initailize the related mac, bbp and rf register in startup phase.
      And this patch modify the efuse read/write method for the different efuse data offset of rt3290.
      
      Signed-off-by: Woody Hung <Woody.Hung@xxxxxxxxxxxx>
      Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx>

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1049466/+subscriptions