Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#9169 closed defect (obsolete)

Staging driver rtl8192su

Reported by: Nicolas Le Falher <n.lefalher@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Staging driver rtl8192su Cc: 26412

Description

Hi,

Compilation return error with staging driver rtl8192su selected.
Trying with trunk version.

 CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-syms.lds
  LD      arch/x86/vdso/built-in.o
  LD      arch/x86/built-in.o
  CC      drivers/staging/rtl8192su/r8180_93cx6.o
  CC      drivers/staging/rtl8192su/r8192U_wx.o
  CC      drivers/staging/rtl8192su/r8192S_phy.o
  CC      drivers/staging/rtl8192su/r8192S_rtl6052.o
  CC      drivers/staging/rtl8192su/r8192S_rtl8225.o
  CC      drivers/staging/rtl8192su/r819xU_cmdpkt.o
  CC      drivers/staging/rtl8192su/r8192U_dm.o
  CC      drivers/staging/rtl8192su/r8192SU_HWImg.o
  CC      drivers/staging/rtl8192su/r8192S_firmware.o
  CC      drivers/staging/rtl8192su/r8192S_Efuse.o
  CC      drivers/staging/rtl8192su/r8192U_core.o
  CC      drivers/staging/rtl8192su/r8192U_pm.o
drivers/staging/rtl8192su/r8192U_core.c: In function 'rtl8192SU_MacConfigAfterFwDownload':
drivers/staging/rtl8192su/r8192U_core.c:4470:24: warning: comparison between 'rtl819xUsb_loopback_e' and 'enum _RTL8192SUSB_LOOPBACK'
drivers/staging/rtl8192su/r8192U_core.c:4472:30: warning: comparison between 'rtl819xUsb_loopback_e' and 'enum _RTL8192SUSB_LOOPBACK'
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_crypt.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_crypt_tkip.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_crypt_ccmp.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_crypt_wep.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_rx.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_tx.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_wx.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_module.o
  CC      drivers/staging/rtl8192su/ieee80211/ieee80211_softmac_wx.o
  CC      drivers/staging/rtl8192su/ieee80211/rtl819x_HTProc.o
drivers/staging/rtl8192su/ieee80211/ieee80211_module.c: In function 'store_debug_level':
drivers/staging/rtl8192su/ieee80211/ieee80211_module.c:265:22: warning: comparison of distinct pointer types lacks a cast
  CC      drivers/staging/rtl8192su/ieee80211/rtl819x_TSProc.o
  CC      drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.o
  CC      drivers/staging/rtl8192su/ieee80211/dot11d.o
drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c: In function 'ieee80211_rx_ADDBAReq':
drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c:342:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c: In function 'ieee80211_rx_ADDBARsp':
drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c:443:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c: In function 'ieee80211_rx_DELBA':
drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c:573:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
  LD      drivers/staging/rtl8192su/r8192s_usb.o
  LD      drivers/staging/rtl8192su/built-in.o
  LD      drivers/staging/built-in.o
  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
drivers/built-in.o: In function `rtl8192_tx_isr':
r8192U_core.c:(.text+0x311ca): undefined reference to `usb_free_urb'
drivers/built-in.o: In function `rtl8192_rx_isr':
r8192U_core.c:(.text+0x3148d): undefined reference to `usb_submit_urb'
r8192U_core.c:(.text+0x314b3): undefined reference to `usb_free_urb'
drivers/built-in.o: In function `write_nic_byte_E':
(.text+0x31fba): undefined reference to `usb_control_msg'
drivers/built-in.o: In function `read_nic_byte_E':
(.text+0x3201a): undefined reference to `usb_control_msg'
drivers/built-in.o: In function `write_nic_byte':
(.text+0x32074): undefined reference to `usb_control_msg'
drivers/built-in.o: In function `write_nic_word':
(.text+0x320d5): undefined reference to `usb_control_msg'
drivers/built-in.o: In function `write_nic_dword':
(.text+0x32134): undefined reference to `usb_control_msg'
drivers/built-in.o:(.text+0x32304): more undefined references to `usb_control_msg' follow
drivers/built-in.o: In function `rtl8192_rx_enable':
(.text+0x33039): undefined reference to `usb_submit_urb'
drivers/built-in.o: In function `rtl8192_rx_enable':
(.text+0x33078): undefined reference to `usb_alloc_urb'
drivers/built-in.o: In function `rtl8192_rx_enable':
(.text+0x330f9): undefined reference to `usb_submit_urb'
drivers/built-in.o: In function `rtl8192_rx_enable':
(.text+0x33136): undefined reference to `usb_alloc_urb'
drivers/built-in.o: In function `rtl8192_rtx_disable':
(.text+0x331f2): undefined reference to `usb_kill_urb'
drivers/built-in.o: In function `rtl8192_beacon_stop':
(.text+0x333fd): undefined reference to `usb_kill_urb'
drivers/built-in.o: In function `rtl8192SU_tx_cmd':
(.text+0x33c24): undefined reference to `usb_alloc_urb'
drivers/built-in.o: In function `rtl8192SU_tx_cmd':
(.text+0x33cb5): undefined reference to `usb_submit_urb'
drivers/built-in.o: In function `rtl8192SU_tx':
(.text+0x33dfb): undefined reference to `usb_alloc_urb'
drivers/built-in.o: In function `rtl8192SU_tx':
(.text+0x340e0): undefined reference to `usb_submit_urb'
drivers/built-in.o: In function `rtl8192SU_tx':
(.text+0x3410e): undefined reference to `usb_alloc_urb'
drivers/built-in.o: In function `rtl8192SU_tx':
(.text+0x34156): undefined reference to `usb_submit_urb'
drivers/built-in.o: In function `rtl8192_rx_isr':
r8192U_core.c:(.text+0x314ea): undefined reference to `usb_free_urb'
drivers/built-in.o: In function `rtl819xU_cmd_isr':
(.text+0x33b91): undefined reference to `usb_free_urb'
drivers/built-in.o: In function `rtl8192_usb_module_init':
r8192U_core.c:(.init.text+0x1965): undefined reference to `usb_register_driver'
drivers/built-in.o: In function `rtl8192_usb_module_exit':
r8192U_core.c:(.exit.text+0x15c): undefined reference to `usb_deregister'
make[5]: *** [vmlinux] Error 1
make[5]: Leaving directory `/data/Documents/informatique/Openwrt/src/trunk/build_dir/linux-rdc/linux-2.6.32.33'
make[4]: *** [/data/Documents/informatique/Openwrt/src/trunk/build_dir/linux-rdc/linux-2.6.32.33/.image] Error 2
make[4]: Leaving directory `/data/Documents/informatique/Openwrt/src/trunk/target/linux/rdc'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/data/Documents/informatique/Openwrt/src/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/data/Documents/informatique/Openwrt/src/trunk'
make[1]: *** [/data/Documents/informatique/Openwrt/src/trunk/staging_dir/target-i386_uClibc-0.9.32/stamp/.target_install] Error 2
make[1]: Leaving directory `/data/Documents/informatique/Openwrt/src/trunk'
make: *** [world] Erreur 2
nicolas@itx:~/Documents/informatique/Openwrt/src/trunk$ ^C
nicolas@itx:~/Documents/informatique/Openwrt/src/trunk$ make -j8 V=99
^Cmake[2]: *** [/data/Documents/informatique/Openwrt/src/trunk/tmp/info/.files-targetinfo.stamp] Interrupt
make[1]: *** [prepare-tmpinfo] Interrupt
make: *** [world] Interrompre

Attachments (0)

Change History (7)

comment:1 Changed 7 years ago by Nicolas Le Falher <n.lefalher@…>

Maybe a solution ?
http://www.serverphorums.com/read.php?12,55702,57591#msg-57591

When a make the change on Kconfig, entry for RTL8192SU disappear.

comment:2 Changed 7 years ago by Nicolas Le Falher <n.lefalher@…>

So i got a solution :
->Make an image for your device
->Go into linux source (for me build_dir/linux-rdc/linux-2.6.32.20/)
->Edit Kconfig for your driver (drivers/staging/rtl8192su/Kconfig) with these change ;

  • depends on PCI && WLAN

+ depends on PCI && WLAN && USB
->In build_dir/linux-rdc/linux-2.6.32.20/, launch a "make menuconfig" and select rtl8192su as <M> in Device Drivers -> Staging drivers.
->Launch a "make all"
->Scp drivers/staging/rtl8192su/r8192s_usb.ko to your device in /lib/modules
->Launch "insmod r8192s_usb" on your device.
->Verify you got a wlan0 with "iwconfig"

comment:3 Changed 7 years ago by Nicolas Le Falher <n.lefalher@…>

So i got a solution :
->Make an image for your device
->Go into linux source (for me build_dir/linux-rdc/linux-2.6.32.20/)
->Edit Kconfig for your driver (drivers/staging/rtl8192su/Kconfig) with these change ;

  • depends on PCI && WLAN
    + depends on PCI && WLAN && USB

->In build_dir/linux-rdc/linux-2.6.32.20/, launch a "make menuconfig" and select rtl8192su as <M> in Device Drivers -> Staging drivers.
->Launch a "make all" ->Scp drivers/staging/rtl8192su/r8192s_usb.ko to your device in /lib/modules
->Launch "insmod r8192s_usb" on your device. ->Verify you got a wlan0 with "iwconfig"

comment:4 Changed 7 years ago by Nicolas Le Falher <n.lefalher@…>

Just miss, before ifconfig up your wlan0, put firmware rtl8192sfw.bin in /lib/firmware/RTL8192SU/.
Firmware can be download here : http://launchpadlibrarian.net/37387612/rtl8192sfw.bin.gz

comment:5 Changed 7 years ago by Nicolas Le Falher <n.lefalher@…>

Ok, for have entry in make kernel_menuconfig you need to set as <*> this entry.
Device Drivers --->
[*] USB support --->
<*> Support for Host-side USB

comment:6 Changed 6 years ago by nbd

  • Resolution set to obsolete
  • Status changed from new to closed

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.