Page 3 of 4

Re: Wifi adapter

Posted: Thu Jun 07, 2012 5:28 pm
by thom_thumb
Lorian wrote:

Code: Select all

ipv6: disagrees about version of symbol module_layout
The last error message is the one we have been trying to re-compile the drivers to fix.
Yes there was a similar error posted on the first page of this thread where that message is reported from 8192cu. But this error is coming from the ipv6 driver - just from running rpi-update on hexxeh's stock raspbian-r3 image before installing any 8192cu drivers. So I think there may be problems with the latest kernel/ firmware that rpi-update is pulling down.

Re: Wifi adapter

Posted: Thu Jun 07, 2012 5:29 pm
by thom_thumb
So using stock raspbian-r3 and the original install script (no rpi-update,) wlan0 comes up and it finds the AP but wpa_supplicant can't associate. Not sure if this is a pebcak but I've followed the wpa_supplicant.conf instructions. Here's a snippet of output when I run wpa_supplicant manually with the -dd flag (so at this point it found the AP I listed in wap_supplicant.conf):

Code: Select all

wlan0: No keys have been configured - skip key clearing
wlan0: State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_drop_unencrypted
ioctl[SIOCSIWAP]: Operation not permitted
wpa_driver_wext_set_psk
ioctl[SIOCSIWESSID]: Operation not permitted
wlan0: Association request to the driver failed
wlan0: Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
Full output is here: https://gist.github.com/2890146

Re: Wifi adapter

Posted: Thu Jun 07, 2012 9:33 pm
by MrEngman
Hi Jimmer,

Well I don't know what's happening here but I can't get the driver to compile.

I've had to make some alterations to the symlinks to even get the linux source compiled but still cannot get the driver compiled.
Jimmer wrote:

Code: Select all

mkdir /root/src
cd /root/src
git clone –depth 1 https://github.com/raspberrypi/linux.git
ln -s linux /lib/modules/3.1.9+/build
cd /lib/modules/3.1.9+/build
ln -s arch/arm arch/armv6l
make mrproper
gzip -dc /proc/config.gz > .config
make prepare
make modules_prepare
make && make modules
Changes are:

Code: Select all

mkdir /root/src
cd /root/src
git clone –depth 1 https://github.com/raspberrypi/linux.git
ln -s /root/src/linux /lib/modules/3.1.9+/build
cd /lib/modules/3.1.9+/build
ln -s /root/src/linux/arch/arm /root/src/linux/arch/armv6l
The output I get when executing the driver compile script is:

Code: Select all

sh install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
	rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404.tar.gz
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/autoconf_rtl8192c_usb_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_xmit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ioctl_query.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/efuse/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/efuse/rtw_efuse.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_recv.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_br_ext.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_eeprom.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_debug.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_p2p.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ieee80211.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_security.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_cmd.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mlme.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_sta_mgt.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_rf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_pwrctrl.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_wlan_util.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mlme_ext.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_io.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ioctl_rtl.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mp_ioctl.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ioctl_set.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_iol.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/wlan0dhcp
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/autoconf_rtl8192d_usb_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/osdep_service.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/ioctl_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/recv_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/os_intfs.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/usb_intf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/mlme_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/pci_intf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/sdio_intf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/rtw_android.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/xmit_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/ioctl_cfg80211.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/wlan_bssdef.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/cmd_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_recv.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mlme_ext.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/wifi.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_led.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_recv.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/farray.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CPhyReg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DPhyCfg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_dm.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_rf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_android.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_recv.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/nic_spec.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_osintf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_dm.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_xmit.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_event.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_qos.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_pwrctrl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_xmit.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_spec.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/osdep_ce_service.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ieee80211.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/recv_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_efuse.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CUHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops_ce.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DUTestHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_ops.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ht.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ioctl_cfg80211.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ethernet.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/mp_custom_oid.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl_rtl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DUHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_spec.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mlme.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/hal_init.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DEHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ieee80211_ext.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types_ce.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CPhyCfg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_led.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/swab.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/swabb.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/big_endian.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/little_endian.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/generic.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mp_ioctl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops_xp.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CUHWImg_wowlan.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DETestHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_osintf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CEHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_p2p.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/pci_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_conf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_vendor_req.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/osdep_service.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl_query.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_eeprom.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types_xp.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_byteorder.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_xmit.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_version.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_cmd.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl_set.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/h2clbk.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/pci_osintf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_cmd.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_rf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/pci_ops.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_cmd.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_event.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/mlme_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_debug.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/osdep_intf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sta_info.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_iol.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mp_phy_regdef.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_rf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/autoconf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_security.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_io.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DPhyReg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_br_ext.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/circ_buf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/basic_types.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ip.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_led.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/if_ether.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/xmit_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_sreset.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mp.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/ifcfg-wlan0
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/Makefile
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/make_drv
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/Kconfig
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/hal_init.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_cmd.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_phycfg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_dm.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_mp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_rxdesc.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_rf6052.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/rtl8192cu_led.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_halinit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/rtl8192cu_recv.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/Hal8192CUHWImg_wowlan.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_ops_ce.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/Hal8192CUHWImg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_ops_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/rtl8192cu_xmit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_ops_xp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_sreset.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_hal_init.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_rxdesc.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_cmd.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_phycfg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_mp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_dm.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_rf6052.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/Hal8192DUTestHWImg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/rtl8192du_recv.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/usb_halinit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/rtl8192du_xmit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/Hal8192DUHWImg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/rtl8192du_led.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/usb_ops_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_hal_init.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/clean
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404
Please select card type(1/2):
1) RTL8192cu
2) RTL8192du
#? You have selected RTL8192cu
rtw_version.h has existed!
Authentication requested [root] for make clean:
[: 42: unexpected operator
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm .tmp_versions -fr ; rm Module.symvers -fr
rm -fr Module.markers ; rm -fr modules.order
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd hal/rtl8192c/usb ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd hal/rtl8192c ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
Authentication requested [root] for make driver:
[: 52: unexpected operator
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/3.1.9+/build M=/root/src/RTL8188C_8192C_8192D_USB_linux_v3.4.2_3727.20120404/driver/rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404  modules
make[1]: Entering directory `/root/src/linux'
Makefile:567: /root/src/linux/arch/armv6l/Makefile: No such file or directory
make[1]: *** No rule to make target `/root/src/linux/arch/armv6l/Makefile'.  Stop.
make[1]: Leaving directory `/root/src/linux'
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
This doesn't make any sense when this command shows Makefile is where it is expected to be.

Code: Select all

ls -lH /root/src/linux/arch/armv61/M*
-rw-r--r-- 1 root root 11564 Jun  7 04:26 /root/src/linux/arch/armv61/Makefile
Help! Any ideas? I just don't understand why this should be happening. Doesn't make any sense to me. The directory is there and the file so what's wrong - the script? It does output a couple of minor warnings before it fails.


UPDATE: IT'S WORKING - I've just recompiled the driver manually and installed it and amazingly - IT'S WORKING - Hurray!!

I cd-ed into the driver directory and ran the commands

Code: Select all

cd /root/src/RTL8188C_8192C_8192D_USB_linux_v3.4.2_3727.20120404/driver/rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- KSRC=/root/src/linux KVER=3.1.9+ MODDESTDIR=/lib/modules/3.1.9+/kernel/drivers/net/wireless
install -p -m 644 8192cu.ko /lib/modules/3.1.9+/kernel/drivers/net/wireless
depmod -a
I then removed the wifi adapter from the USB socket and plugged it back in and UP IT CAME!!! I'd enabled hot-plugging in /etc/network/interfaces

Code: Select all

allow-hotplug wlan0
so don't need to run

Code: Select all

/etc/init.d/networking restart
Haven't tried rebooting yet - not sure I want to in case it doesn't restart ;)

Re: Wifi adapter

Posted: Thu Jun 07, 2012 9:53 pm
by Lorian
Pretty much what I did. I didn't run the install.sh I just unpacked the driver folder, added raspbian as a target in the makefile and built it.

Note there is also a new wpa_supplicant to compile if required too (I'm not using it).

After rebooting it and doing a dmesg you should see it's busy reporting the card going in and out of power save mode as required, this is new :mrgreen:

I notice 3.4.2 supports soft AP mode too, but I haven't tried it.

I found realtek's documentation (in the documentation folder) is pretty good.

Here is the Makefile I used:

Code: Select all

EXTRA_CFLAGS += -O1 
#EXTRA_CFLAGS += -O3
#EXTRA_CFLAGS += -Wall 
#EXTRA_CFLAGS += -Wextra 
#EXTRA_CFLAGS += -Werror
#EXTRA_CFLAGS += -pedantic
#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes 

EXTRA_CFLAGS += -Wno-unused-variable 
EXTRA_CFLAGS += -Wno-unused-value 
EXTRA_CFLAGS += -Wno-unused-label 
EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wno-unused

EXTRA_CFLAGS += -Wno-uninitialized

EXTRA_CFLAGS += -I$(src)/include

CONFIG_AUTOCFG_CP = y

CONFIG_RTL8192C = y
CONFIG_RTL8192D = n

CONFIG_USB_HCI = y
CONFIG_PCI_HCI = n
CONFIG_SDIO_HCI = n

CONFIG_MP_INCLUDED = n
CONFIG_POWER_SAVING                     =       y
CONFIG_USB_AUTOSUSPEND                  =       n
CONFIG_HW_PWRP_DETECTION                =       n
CONFIG_WIFI_TEST                                                =       n
CONFIG_BT_COEXISTENCE                           = n
CONFIG_RTL8192CU_REDEFINE_1X1 =n
CONFIG_WAKE_ON_WLAN                             =       n

CONFIG_PLATFORM_RASPBIAN = y
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_TI_AM3517 = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
CONFIG_PLATFORM_ARM_PXA2XX = n
CONFIG_PLATFORM_ARM_S3C6K4 = n
CONFIG_PLATFORM_MIPS_RMI = n
CONFIG_PLATFORM_RTD2880B = n
CONFIG_PLATFORM_MIPS_AR9132 = n
CONFIG_PLATFORM_RTK_DMP = n
CONFIG_PLATFORM_MIPS_PLM = n
CONFIG_PLATFORM_MSTAR389 = n
CONFIG_PLATFORM_MT53XX = n
CONFIG_PLATFORM_ARM_MX51_241H = n
CONFIG_PLATFORM_ACTIONS_ATJ227X = n
CONFIG_PLATFORM_ARM_TEGRA3 = n
CONFIG_PLATFORM_ARM_TCC8900 = n
CONFIG_PLATFORM_ARM_TCC8920 = n
CONFIG_PLATFORM_ARM_RK2818 = n
CONFIG_PLATFORM_ARM_TI_PANDA = n
CONFIG_PLATFORM_MIPS_JZ4760 = n
CONFIG_PLATFORM_DMP_PHILIPS = n
CONFIG_PLATFORM_TI_DM365        =       n
CONFIG_PLATFORM_MN10300 = n
CONFIG_PLATFORM_MSTAR_TITANIA12 = n

CONFIG_DRVEXT_MODULE = n

export TopDIR ?= $(shell pwd)


ifeq ($(CONFIG_RTL8712), y)

RTL871X = rtl8712

ifeq ($(CONFIG_SDIO_HCI), y)
MODULE_NAME = 8712s
endif
ifeq ($(CONFIG_USB_HCI), y)
MODULE_NAME = 8712u
endif

endif

ifeq ($(CONFIG_RTL8192C), y)

RTL871X = rtl8192c

ifeq ($(CONFIG_SDIO_HCI), y)
MODULE_NAME = 8192cs
endif
ifeq ($(CONFIG_USB_HCI), y)
MODULE_NAME = 8192cu
FW_FILES := hal/$(RTL871X)/usb/Hal8192CUHWImg.o
ifneq ($(CONFIG_WAKE_ON_WLAN), n)
FW_FILES += hal/$(RTL871X)/usb/Hal8192CUHWImg_wowlan.o
endif
endif
ifeq ($(CONFIG_PCI_HCI), y)
MODULE_NAME = 8192ce
FW_FILES := hal/$(RTL871X)/pci/Hal8192CEHWImg.o
endif

CHIP_FILES := hal/$(RTL871X)/$(RTL871X)_sreset.o
CHIP_FILES += $(FW_FILES)
endif

ifeq ($(CONFIG_RTL8192D), y)

RTL871X = rtl8192d

ifeq ($(CONFIG_SDIO_HCI), y)
MODULE_NAME = 8192ds
endif
ifeq ($(CONFIG_USB_HCI), y)
MODULE_NAME = 8192du
FW_FILES := hal/$(RTL871X)/usb/Hal8192DUHWImg.o \
                        hal/$(RTL871X)/usb/Hal8192DUTestHWImg.o
endif
ifeq ($(CONFIG_PCI_HCI), y)
MODULE_NAME = 8192de
FW_FILES := hal/$(RTL871X)/pci/Hal8192DEHWImg.o \
                        hal/$(RTL871X)/pci/Hal8192DETestHWImg.o
endif

CHIP_FILES += $(FW_FILES)
endif

ifeq ($(CONFIG_SDIO_HCI), y)

HCI_NAME = sdio

_OS_INTFS_FILES :=      os_dep/osdep_service.o \
                        os_dep/linux/os_intfs.o \
                        os_dep/linux/sdio_intf.o \
                        os_dep/linux/ioctl_linux.o \
                        os_dep/linux/xmit_linux.o \
                        os_dep/linux/mlme_linux.o \
                        os_dep/linux/recv_linux.o \
                        os_dep/linux/rtw_android.o

_HAL_INTFS_FILES := hal/$(RTL871X)/hal_init.o \
                    hal/$(RTL871X)/sdio_halinit.o \
                    hal/$(RTL871X)/sdio_ops.o \
                    hal/$(RTL871X)/sdio_ops_linux.o     

endif


ifeq ($(CONFIG_USB_HCI), y)

HCI_NAME = usb

_OS_INTFS_FILES :=      os_dep/osdep_service.o \
                        os_dep/linux/os_intfs.o \
                        os_dep/linux/$(HCI_NAME)_intf.o \
                        os_dep/linux/ioctl_linux.o \
                        os_dep/linux/xmit_linux.o \
                        os_dep/linux/mlme_linux.o \
                        os_dep/linux/recv_linux.o       \
                        os_dep/linux/ioctl_cfg80211.o \
                        os_dep/linux/rtw_android.o

_HAL_INTFS_FILES :=     hal/hal_init.o \
                        hal/$(RTL871X)/$(RTL871X)_hal_init.o \
                        hal/$(RTL871X)/$(RTL871X)_phycfg.o \
                        hal/$(RTL871X)/$(RTL871X)_rf6052.o \
                        hal/$(RTL871X)/$(RTL871X)_dm.o \
                        hal/$(RTL871X)/$(RTL871X)_rxdesc.o \
                        hal/$(RTL871X)/$(RTL871X)_cmd.o \
                        hal/$(RTL871X)/$(RTL871X)_mp.o \
                        hal/$(RTL871X)/usb/usb_ops_linux.o \
                        hal/$(RTL871X)/usb/usb_halinit.o \
                        hal/$(RTL871X)/usb/rtl$(MODULE_NAME)_led.o \
                        hal/$(RTL871X)/usb/rtl$(MODULE_NAME)_xmit.o \
                        hal/$(RTL871X)/usb/rtl$(MODULE_NAME)_recv.o
                        
_HAL_INTFS_FILES += $(CHIP_FILES)

endif


ifeq ($(CONFIG_PCI_HCI), y)
 
HCI_NAME = pci

_OS_INTFS_FILES :=      os_dep/osdep_service.o \
                        os_dep/linux/os_intfs.o \
                        os_dep/linux/$(HCI_NAME)_intf.o \
                        os_dep/linux/ioctl_linux.o \
                        os_dep/linux/xmit_linux.o \
                        os_dep/linux/mlme_linux.o \
                        os_dep/linux/recv_linux.o \
                        os_dep/linux/rtw_android.o

_HAL_INTFS_FILES :=     hal/hal_init.o \
                        hal/$(RTL871X)/$(RTL871X)_hal_init.o \
                        hal/$(RTL871X)/$(RTL871X)_phycfg.o \
                        hal/$(RTL871X)/$(RTL871X)_rf6052.o \
                        hal/$(RTL871X)/$(RTL871X)_dm.o \
                        hal/$(RTL871X)/$(RTL871X)_rxdesc.o \
                        hal/$(RTL871X)/$(RTL871X)_cmd.o \
                        hal/$(RTL871X)/$(RTL871X)_mp.o \
                        hal/$(RTL871X)/pci/pci_ops_linux.o \
                        hal/$(RTL871X)/pci/pci_halinit.o \
                        hal/$(RTL871X)/pci/rtl$(MODULE_NAME)_led.o \
                        hal/$(RTL871X)/pci/rtl$(MODULE_NAME)_xmit.o \
                        hal/$(RTL871X)/pci/rtl$(MODULE_NAME)_recv.o

_HAL_INTFS_FILES += $(CHIP_FILES)

endif

ifeq ($(CONFIG_AUTOCFG_CP), y)
$(shell cp $(TopDIR)/autoconf_$(RTL871X)_$(HCI_NAME)_linux.h $(TopDIR)/include/autoconf.h)
endif


ifeq ($(CONFIG_USB_HCI), y)
ifeq ($(CONFIG_USB_AUTOSUSPEND), y)
EXTRA_CFLAGS += -DCONFIG_USB_AUTOSUSPEND
endif
endif

ifeq ($(CONFIG_POWER_SAVING), y)
EXTRA_CFLAGS += -DCONFIG_POWER_SAVING
endif

ifeq ($(CONFIG_HW_PWRP_DETECTION), y)
EXTRA_CFLAGS += -DCONFIG_HW_PWRP_DETECTION
endif

ifeq ($(CONFIG_WIFI_TEST), y)
EXTRA_CFLAGS += -DCONFIG_WIFI_TEST
endif

ifeq ($(CONFIG_BT_COEXISTENCE), y)
EXTRA_CFLAGS += -DCONFIG_BT_COEXISTENCE
endif 

ifeq ($(CONFIG_RTL8192CU_REDEFINE_1X1), y)
EXTRA_CFLAGS += -DRTL8192C_RECONFIG_TO_1T1R
endif 

ifeq ($(CONFIG_WAKE_ON_WLAN), y)
EXTRA_CFLAGS += -DCONFIG_WAKE_ON_WLAN
endif

ifeq ($(CONFIG_PLATFORM_RASPBIAN), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN 
ARCH := arm
CROSS_COMPILE := arm-linux-gnueabihf-
KVER  := 2.6.34.1
KSRC ?= /lib/modules/3.1.9+/build
MODULE_NAME := 8192cu
endif

ifeq ($(CONFIG_PLATFORM_I386_PC), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER  := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
endif

ifeq ($(CONFIG_PLATFORM_TI_AM3517), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ANDROID -DCONFIG_PLATFORM_SHUTTLE
CROSS_COMPILE := arm-eabi-
KSRC := $(shell pwd)/../../../Android/kernel
ARCH := arm
endif

ifeq ($(CONFIG_PLATFORM_MSTAR_TITANIA12), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR_TITANIA12
ARCH:=mips
CROSS_COMPILE:= /work/mstar/mips-4.3/bin/mips-linux-gnu-
KVER:= 2.6.28.9
KSRC:= /work/mstar/2.6.28.9/
endif

ifeq ($(CONFIG_PLATFORM_ANDROID_X86), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
ARCH := $(SUBARCH)
CROSS_COMPILE := /media/DATA-2/android-x86/ics-x86_20120130/prebuilt/linux-x86/toolchain/i686-unknown-linux-gnu-4.2.1/bin/i686-unknown-linux-gnu-
KSRC := /media/DATA-2/android-x86/ics-x86_20120130/out/target/product/generic_x86/obj/kernel
MODULE_NAME :=wlan
endif

ifeq ($(CONFIG_PLATFORM_ARM_PXA2XX), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-none-linux-gnueabi-
KVER  := 2.6.34.1
KSRC ?= /usr/src/linux-2.6.34.1
endif

ifeq ($(CONFIG_PLATFORM_ARM_S3C2K4), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-linux-
KVER  := 2.6.24.7_$(ARCH)
KSRC := /usr/src/kernels/linux-$(KVER)
endif

ifeq ($(CONFIG_PLATFORM_ARM_S3C6K4), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-none-linux-gnueabi-
KVER  := 2.6.34.1
KSRC ?= /usr/src/linux-2.6.34.1
endif

ifeq ($(CONFIG_PLATFORM_RTD2880B), y)
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTD2880B
ARCH:=
CROSS_COMPILE:=
KVER:=
KSRC:=
endif

ifeq ($(CONFIG_PLATFORM_MIPS_RMI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH:=mips
CROSS_COMPILE:=mipsisa32r2-uclibc-
KVER:= 
KSRC:= /root/work/kernel_realtek
endif

ifeq ($(CONFIG_PLATFORM_MIPS_PLM), y)
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
ARCH:=mips
CROSS_COMPILE:=mipsisa32r2-uclibc-
KVER:= 
KSRC:= /root/work/kernel_realtek
endif

ifeq ($(CONFIG_PLATFORM_MSTAR389), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR389
ARCH:=mips
CROSS_COMPILE:= mips-linux-gnu-
KVER:= 2.6.28.10
KSRC:= /home/mstar/mstar_linux/2.6.28.9/
endif

ifeq ($(CONFIG_PLATFORM_MIPS_AR9132), y)
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
ARCH := mips
CROSS_COMPILE := mips-openwrt-linux-
KSRC := /home/alex/test_openwrt/tmp/linux-2.6.30.9
endif

ifeq ($(CONFIG_PLATFORM_DMP_PHILIPS), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DRTK_DMP_PLATFORM
ARCH := mips
#CROSS_COMPILE:=/usr/local/msdk-4.3.6-mips-EL-2.6.12.6-0.9.30.3/bin/mipsel-linux-
CROSS_COMPILE:=/usr/local/toolchain_mipsel/bin/mipsel-linux-
KSRC ?=/usr/local/Jupiter/linux-2.6.12
endif

ifeq ($(CONFIG_PLATFORM_RTK_DMP), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DRTK_DMP_PLATFORM
ARCH:=mips
CROSS_COMPILE:=mipsel-linux-
KVER:= 
KSRC ?= /usr/src/work/DMP_Kernel/jupiter/linux-2.6.12
endif

ifeq ($(CONFIG_PLATFORM_MT53XX), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MT53XX
ARCH:= arm
CROSS_COMPILE:= arm11_mtk_le-
KVER:= 2.6.27
KSRC?= /proj/mtk00802/BD_Compare/BDP/Dev/BDP_V301/BDP_Linux/linux-2.6.27
endif

ifeq ($(CONFIG_PLATFORM_ARM_MX51_241H), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_WISTRON_PLATFORM
ARCH := arm
CROSS_COMPILE := /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
KVER  := 2.6.31
KSRC ?= /lib/modules/2.6.31-770-g0e46b52/source
endif
 
ifeq ($(CONFIG_PLATFORM_ACTIONS_ATJ227X), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ACTIONS_ATJ227X
ARCH := mips
CROSS_COMPILE := /home/cnsd4/project/actions/tools-2.6.27/bin/mipsel-linux-gnu-
KVER  := 2.6.27
KSRC := /home/cnsd4/project/actions/linux-2.6.27.28
endif

ifeq ($(CONFIG_PLATFORM_TI_DM365), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_TI_DM365
ARCH := arm
CROSS_COMPILE := /home/cnsd4/Appro/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-
KVER  := 2.6.18
KSRC := /home/cnsd4/Appro/mv_pro_5.0/montavista/pro/devkit/lsp/ti-davinci/linux-dm365
endif

ifeq ($(CONFIG_PLATFORM_ARM_TEGRA3), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN #-DCONFIG_MINIMAL_MEMORY_USAGE
ARCH ?= arm
CROSS_COMPILE ?= /media/DATA-1/nvidia/gingerbread/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
KSRC ?= /media/DATA-1/nvidia/gingerbread/out/debug/target/product/cardhu/obj/KERNEL
MODULE_NAME := wlan
endif

ifeq ($(CONFIG_PLATFORM_ARM_TCC8900), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_MINIMAL_MEMORY_USAGE
ARCH ?= arm
CROSS_COMPILE ?= /media/DATA-1/telechips/SDK_2302_20110425/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
KSRC ?=/media/DATA-1/telechips/SDK_2302_20110425/kernel
MODULE_NAME := wlan
endif

ifeq ($(CONFIG_PLATFORM_ARM_TCC8920), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN #-DCONFIG_MINIMAL_MEMORY_USAGE
ARCH := arm
CROSS_COMPILE ?= /media/DATA-1/telechips/SDK_2302_20110425/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
KSRC := /media/DATA-2/telechips/ics_sdk/kernel
MODULE_NAME := wlan
endif

ifeq ($(CONFIG_PLATFORM_ARM_RK2818), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ANDROID -DCONFIG_PLATFORM_ROCKCHIPS -DCONFIG_MINIMAL_MEMORY_USAGE
ARCH := arm
CROSS_COMPILE := /usr/src/release_fae_version/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
KSRC := /usr/src/release_fae_version/kernel25_A7_281x
MODULE_NAME := wlan
endif

ifeq ($(CONFIG_PLATFORM_ARM_TI_PANDA), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN #-DCONFIG_MINIMAL_MEMORY_USAGE
ARCH := arm
#CROSS_COMPILE := /media/DATA-1/aosp/ics-aosp_20111227/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
#KSRC := /media/DATA-1/aosp/android-omap-panda-3.0_20120104
CROSS_COMPILE := /media/DATA-1/android-4.0/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
KSRC := /media/DATA-1/android-4.0/panda_kernel/omap
MODULE_NAME := wlan
endif

ifeq ($(CONFIG_PLATFORM_MIPS_JZ4760), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_MINIMAL_MEMORY_USAGE
ARCH ?= mips
CROSS_COMPILE ?= /mnt/sdb5/Ingenic/Umido/mips-4.3/bin/mips-linux-gnu-
KSRC ?= /mnt/sdb5/Ingenic/Umido/kernel
endif

#Add setting for MN10300
ifeq ($(CONFIG_PLATFORM_MN10300), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MN10300
ARCH := mn10300
CROSS_COMPILE := mn10300-linux-
KVER := 2.6.32.2
KSRC := /home/winuser/work/Plat_sLD2T_V3010/usr/src/linux-2.6.32.2
INSTALL_PREFIX :=
endif

ifeq ($(CONFIG_MP_INCLUDED), y)
MODULE_NAME := $(MODULE_NAME)_mp
EXTRA_CFLAGS += -DCONFIG_MP_INCLUDED
endif

ifneq ($(KERNELRELEASE),)


rtk_core :=     core/rtw_cmd.o \
                core/rtw_security.o \
                core/rtw_debug.o \
                core/rtw_io.o \
                core/rtw_ioctl_query.o \
                core/rtw_ioctl_set.o \
                core/rtw_ieee80211.o \
                core/rtw_mlme.o \
                core/rtw_mlme_ext.o \
                core/rtw_wlan_util.o \
                core/rtw_pwrctrl.o \
                core/rtw_rf.o \
                core/rtw_recv.o \
                core/rtw_sta_mgt.o \
                core/rtw_xmit.o \
                core/rtw_p2p.o \
                core/rtw_br_ext.o \
                core/rtw_iol.o

$(MODULE_NAME)-y += $(rtk_core)
                                                                        
$(MODULE_NAME)-y += core/efuse/rtw_efuse.o

$(MODULE_NAME)-y += $(_HAL_INTFS_FILES)

$(MODULE_NAME)-y += $(_OS_INTFS_FILES)


$(MODULE_NAME)-$(CONFIG_MP_INCLUDED) += core/rtw_mp.o \
                                        core/rtw_mp_ioctl.o \
                                        core/rtw_ioctl_rtl.o

obj-$(CONFIG_RTL8192CU) := $(MODULE_NAME).o

else

export CONFIG_RTL8192CU = m

all: modules

modules:
        $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)  modules

strip:
        $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded

install:
        install -p -m 644 $(MODULE_NAME).ko  $(MODDESTDIR)
        /sbin/depmod -a ${KVER}

uninstall:
        rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
        /sbin/depmod -a ${KVER}
        
        
config_r:
        @echo "make config"
        /bin/bash script/Configure script/config.in
        
.PHONY: modules clean

clean:
        rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
        rm .tmp_versions -fr ; rm Module.symvers -fr
        rm -fr Module.markers ; rm -fr modules.order
        cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
        cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
        cd hal/$(RTL871X)/$(HCI_NAME) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
        cd hal/$(RTL871X) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
        cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
        cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
        cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
endif

Re: Wifi adapter

Posted: Thu Jun 07, 2012 11:09 pm
by MrEngman
Hi Lorian,

Interesting. I'd taken a look at the documentation and especially about editing the Makefile. However, not seeing anyone mention editing it I have been compiling with it as it came in the driver source, unedited.

When I originally compiled the driver I could only get it to work on one SD card. I tried it on another card after rpi-update killed the original wifi driver and it didn't work. I loaded the source onto that card and compiled the kernel and then recompiled the driver and it now works on that card as well. I'm now going to look at adding the new driver to another SD card after updating the new card with the latest from rpi-update which will kill the old wifi driver.
Well just loaded the new driver on another SD card with old broken wifi driver and that is now working again.
I've just compared the two recompiled drivers. Although they are identical sizes the driver I could not get to work on some SD cards has a large area that is just filled with zeroes. The newer version is working on all the cards I have now updated.
I duno, maybe the first driver wasn't compiled properly. Oh well, never mind. The newer version is working fine.

Re: Wifi adapter

Posted: Fri Jun 08, 2012 1:10 am
by thom_thumb
So can one of you guys post a compiled driver that works with the current kernel? I'm currently compiling the kernel per previous instructions but as we all know that takes forever...

Or is that a necessary step to getting the driver to work?

Re: Wifi adapter

Posted: Fri Jun 08, 2012 7:54 am
by Lorian
thom_thumb wrote:So can one of you guys post a compiled driver that works with the current kernel? I'm currently compiling the kernel per previous instructions but as we all know that takes forever...

Or is that a necessary step to getting the driver to work?
Here is mine, works for me with the current kernel delivered by rpi-update, YMMV.

wget http://www.bug-byte.co.uk/pi/8192cu.ko

You shuldn't need to actually compile the kernel first before building your own driver (5hours+) but its a good test for the pi :mrgreen:

Re: Wifi adapter

Posted: Fri Jun 08, 2012 9:38 am
by Jimmer
make && make modules creates the system.map and module.symvers that kernel headers normally contain. All I know is that I get no compilation complaints and no module loading complaints when kernel modules are compiled against a properly prepared source. I do agree that it's a massive PITA, and wish the kernel source contained proper headers to build against.

I guess that will be available with time! There are going to be a whole lot of modules people are going to want to compile themselves before too long and a proper set of prepared kernel headers would be a massive step forward..... I guess they can be copied from the /lib/modules/3.1.9+ root into the kernel source for a short cut, although I haven't tested this approach yet, so I don't know if that works.....

Re: Wifi adapter

Posted: Sat Jun 09, 2012 1:45 am
by MarrsAttax
MrEngman wrote:Hi Jimmer,

Well I don't know what's happening here but I can't get the driver to compile.

I've had to make some alterations to the symlinks to even get the linux source compiled but still cannot get the driver compiled.
Jimmer wrote:

Code: Select all

mkdir /root/src
cd /root/src
git clone –depth 1 https://github.com/raspberrypi/linux.git
ln -s linux /lib/modules/3.1.9+/build
cd /lib/modules/3.1.9+/build
ln -s arch/arm arch/armv6l
make mrproper
gzip -dc /proc/config.gz > .config
make prepare
make modules_prepare
make && make modules
Changes are:

Code: Select all

mkdir /root/src
cd /root/src
git clone –depth 1 https://github.com/raspberrypi/linux.git
ln -s /root/src/linux /lib/modules/3.1.9+/build
cd /lib/modules/3.1.9+/build
ln -s /root/src/linux/arch/arm /root/src/linux/arch/armv6l
The output I get when executing the driver compile script is:

Code: Select all

sh install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
	rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404.tar.gz
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/autoconf_rtl8192c_usb_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_xmit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ioctl_query.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/efuse/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/efuse/rtw_efuse.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_recv.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_br_ext.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_eeprom.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_debug.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_p2p.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ieee80211.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_security.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_cmd.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mlme.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_sta_mgt.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_rf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_pwrctrl.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_wlan_util.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mlme_ext.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_io.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ioctl_rtl.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_mp_ioctl.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_ioctl_set.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/core/rtw_iol.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/wlan0dhcp
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/autoconf_rtl8192d_usb_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/osdep_service.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/ioctl_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/recv_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/os_intfs.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/usb_intf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/mlme_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/pci_intf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/sdio_intf.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/rtw_android.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/xmit_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/os_dep/linux/ioctl_cfg80211.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/wlan_bssdef.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/cmd_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_recv.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mlme_ext.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/wifi.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_led.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_recv.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/farray.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CPhyReg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DPhyCfg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_dm.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_rf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_android.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_recv.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/nic_spec.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_osintf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_dm.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_xmit.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_event.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_qos.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_pwrctrl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_xmit.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_spec.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/osdep_ce_service.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ieee80211.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/recv_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_efuse.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CUHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops_ce.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DUTestHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_ops.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ht.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ioctl_cfg80211.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ethernet.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/mp_custom_oid.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl_rtl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops_linux.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DUHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_spec.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mlme.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/hal_init.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DEHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ieee80211_ext.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types_ce.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CPhyCfg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_led.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/swab.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/swabb.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/big_endian.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/little_endian.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/byteorder/generic.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mp_ioctl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_ops_xp.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CUHWImg_wowlan.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DETestHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_osintf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192CEHWImg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_p2p.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/pci_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_conf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_vendor_req.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/osdep_service.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl_query.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_eeprom.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/drv_types_xp.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_byteorder.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_xmit.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_version.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_cmd.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl_set.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/h2clbk.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/pci_osintf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_cmd.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192d_rf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/pci_ops.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_cmd.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_event.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/mlme_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_debug.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/osdep_intf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sta_info.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_iol.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mp_phy_regdef.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_rf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/usb_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/autoconf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_security.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/sdio_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_io.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/Hal8192DPhyReg.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_br_ext.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/circ_buf.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/basic_types.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_hal.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/ip.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_led.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/if_ether.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/xmit_osdep.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtl8192c_sreset.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_mp.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/include/rtw_ioctl.h
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/ifcfg-wlan0
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/Makefile
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/make_drv
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/Kconfig
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/hal_init.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_cmd.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_phycfg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_dm.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_mp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_rxdesc.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_rf6052.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/rtl8192cu_led.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_halinit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/rtl8192cu_recv.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/Hal8192CUHWImg_wowlan.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_ops_ce.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/Hal8192CUHWImg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_ops_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/rtl8192cu_xmit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/usb/usb_ops_xp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_sreset.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192c/rtl8192c_hal_init.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_rxdesc.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_cmd.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_phycfg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_mp.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_dm.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_rf6052.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/Hal8192DUTestHWImg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/rtl8192du_recv.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/usb_halinit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/rtl8192du_xmit.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/Hal8192DUHWImg.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/rtl8192du_led.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/usb/usb_ops_linux.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/hal/rtl8192d/rtl8192d_hal_init.c
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404/clean
rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404
Please select card type(1/2):
1) RTL8192cu
2) RTL8192du
#? You have selected RTL8192cu
rtw_version.h has existed!
Authentication requested [root] for make clean:
[: 42: unexpected operator
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm .tmp_versions -fr ; rm Module.symvers -fr
rm -fr Module.markers ; rm -fr modules.order
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd hal/rtl8192c/usb ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd hal/rtl8192c ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
Authentication requested [root] for make driver:
[: 52: unexpected operator
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/3.1.9+/build M=/root/src/RTL8188C_8192C_8192D_USB_linux_v3.4.2_3727.20120404/driver/rtl8188C_8192C_8192D_usb_linux_v3.4.2_3727.20120404  modules
make[1]: Entering directory `/root/src/linux'
Makefile:567: /root/src/linux/arch/armv6l/Makefile: No such file or directory
make[1]: *** No rule to make target `/root/src/linux/arch/armv6l/Makefile'.  Stop.
make[1]: Leaving directory `/root/src/linux'
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
This doesn't make any sense when this command shows Makefile is where it is expected to be.

Code: Select all

ls -lH /root/src/linux/arch/armv61/M*
-rw-r--r-- 1 root root 11564 Jun  7 04:26 /root/src/linux/arch/armv61/Makefile
Help! Any ideas? I just don't understand why this should be happening. Doesn't make any sense to me. The directory is there and the file so what's wrong - the script? It does output a couple of minor warnings before it fails.
I discovered what this problem is if anyone is still doing it this way. The soft link 'armv61' that is created by the script ends in a number '1' (one) but in the script the path to the Makefile ends in the lowercase letter 'L' .

So the soft link is armv61 but the path is armv6l. Or was it the other way round? Whichever way round it is they are spelled differently, although it is very hard to spot this in the console :)

Anyway, adding a second link with the alternative spelling should fix the problem.

Code: Select all

 ln -sf arm armv6l

Re: Wifi adapter

Posted: Sat Jun 09, 2012 2:10 am
by normal
Does anyone happen to have a r8712u.ko for Pisces-r2? I tried to build a kernel myself in squeeze to fix this exact problem and it didn't work out so well..

Re: Wifi adapter

Posted: Sat Jun 09, 2012 7:48 am
by Lorian
normal wrote:Does anyone happen to have a r8712u.ko for Pisces-r2? I tried to build a kernel myself in squeeze to fix this exact problem and it didn't work out so well..
Have you tried the 8192 driver? Many of their usb wifi devices use the same driver.
.

Re: Wifi adapter

Posted: Sun Jun 10, 2012 8:55 am
by MarrsAttax
I'm at the stage now where I believe the driver is installed and working but I cannot connect to my router.

The driver appears to be able to scan available networks and can find my router. It appears on the list when I run

Code: Select all

iwlist wlan0 scan
I'm just wondering if anyone can spot anything from my dmesg file that might give me a clue? My SSID is Bebox723722. Thanks in advance.

Code: Select all

Initializing cgroup subsys cpu
Linux version 3.1.9+ ([email protected]) (gcc version 4.5.1 (Broadcom-2708) ) #101 PREEMPT Mon Jun 4 17:19:44 BST 2012
CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: BCM2708
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 57344
free_area_init_node: node 0, pgdat c03fff60, node_mem_map c044e000
  Normal zone: 448 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 56896 pages, LIFO batch:15
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 56896
Kernel command line: dma.dmachans=0x3c bcm2708_fb.fbwidth=960 bcm2708_fb.fbheight=720 bcm2708.boardrev=0x2 bcm2708.serial=0xce3560b0 smsc95xx.macaddr=B8:27:EB:35:60:B0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 224MB = 224MB total
Memory: 222928k/222928k available, 6448k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xce800000 - 0xd8000000   ( 152 MB)
    lowmem  : 0xc0000000 - 0xce000000   ( 224 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc03c4000   (3824 kB)
      .init : 0xc03c4000 - 0xc03e2000   ( 120 kB)
      .data : 0xc03e2000 - 0xc04005e0   ( 122 kB)
       .bss : 0xc0400604 - 0xc044d078   ( 307 kB)
NR_IRQS:85
timer_set_mode: unhandled mode:1
timer_set_mode: unhandled mode:3
Console: colour dummy device 80x30
console [tty1] enabled
Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
vc-mem: mm_vc_mem_phys_addr = 0x00000000
vc-mem: mm_vc_mem_size      = 0x10000000 (256 MiB)
mailbox: Broadcom VideoCore Mailbox driver
bcm2708_vcio: mailbox at f200b880
bcm_power: Broadcom power driver
bcm_power_open() -> 0
bcm_power_request(0, 8)
bcm_mailbox_read -> 00000080, 0
bcm_power_request -> 0
Serial: AMBA PL011 UART driver
dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
console [ttyAMA0] enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource stc
FS-Cache: Loaded
CacheFiles: Loaded
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
bcm2708_dma: DMA manager at ce808000
bcm2708_gpio: bcm2708_gpio_probe c03e7dc8
vc-mem: Videocore memory driver
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
FS-Cache: Netfs 'nfs' registered for caching
msgmni has been set to 435
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
BCM2708FB: registering framebuffer ([email protected])
bcm2708_fb_set_par info(cd88a000) 960x720 (960x720), 0, 16
BCM2708FB: start = cea00000,4f387000 width=960, height=720, bpp=16, pitch=1920 size=1384448 success=0
Console: switching to colour frame buffer device 120x45
BCM2708FB: register framebuffer (0)
brd: module loaded
loop: module loaded
vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
vcos: [1]: vchiq_init_state: called
vcos: [1]: vchiq: initialised - version 2 (min 2), device 253.0
usbcore: registered new interface driver smsc95xx
cdc_ncm: 04-Aug-2011
usbcore: registered new interface driver cdc_ncm
dwc_otg: version 2.90b 6-MAY-2010 (platform bus)
Core Release: 2.80a
Setting default values for core params
Finished setting default values for core params
ce840008 -> 1
Using Buffer DMA mode
Periodic Transfer Interrupt Enhancement - disabled
Multiprocessor Interrupt Enhancement - disabled
Dedicated Tx FIFOs mode
dwc_otg bcm2708_usb: DWC OTG Controller
dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
dwc_otg bcm2708_usb: irq 75, io mem 0x00000000
Init: Port Power? op_state=1
Init: Power Port (0)
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DWC OTG Controller
usb usb1: Manufacturer: Linux 3.1.9+ dwc_otg_hcd
usb usb1: SerialNumber: bcm2708_usb
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Module dwc_common_port init
usbcore: registered new interface driver uas
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
mousedev: PS/2 mouse device common for all mice
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
bcm_power_open() -> 1
Registered led device: mmc0::
mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
sdhci-pltfm: SDHCI platform and OF driver helper
Registered led device: led0
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
Waiting for root device /dev/mmcblk0p2...
mmc0: problem reading SD Status register.
mmc0: new SDHC card at address e624
mmcblk0: mmc0:e624 SD08G 7.40 GiB 
 mmcblk0: p1 p2 p3
EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
Freeing init memory: 120K
usb 1-1: new high speed USB device number 2 using dwc_otg
usb 1-1: New USB device found, idVendor=0424, idProduct=9512
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 3 ports detected
usb 1-1.1: new high speed USB device number 3 using dwc_otg
usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
smsc95xx v1.0.4
smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:35:60:b0
usb 1-1.2: new high speed USB device number 4 using dwc_otg
usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0608
usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-1.2: Product: USB2.0 Hub
hub 1-1.2:1.0: USB hub found
hub 1-1.2:1.0: 4 ports detected
usb 1-1.2.1: new low speed USB device number 5 using dwc_otg
usb 1-1.2.1: New USB device found, idVendor=093a, idProduct=2510
usb 1-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.2.1: Product: USB OPTICAL MOUSE
usb 1-1.2.1: Manufacturer: PIXART
input: PIXART USB OPTICAL MOUSE as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/input/input0
generic-usb 0003:093A:2510.0001: input: USB HID v1.11 Mouse [PIXART USB OPTICAL MOUSE] on usb-bcm2708_usb-1.2.1/input0
usb 1-1.2.2: new low speed USB device number 6 using dwc_otg
usb 1-1.2.2: New USB device found, idVendor=04d9, idProduct=1203
usb 1-1.2.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
input: HID 04d9:1203 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2:1.0/input/input1
generic-usb 0003:04D9:1203.0002: input: USB HID v1.11 Keyboard [HID 04d9:1203] on usb-bcm2708_usb-1.2.2/input0
input: HID 04d9:1203 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2:1.1/input/input2
generic-usb 0003:04D9:1203.0003: input: USB HID v1.11 Device [HID 04d9:1203] on usb-bcm2708_usb-1.2.2/input1
usb 1-1.2.3: new high speed USB device number 7 using dwc_otg
usb 1-1.2.3: New USB device found, idVendor=0bda, idProduct=8176
usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2.3: Product: 802.11n WLAN Adapter
usb 1-1.2.3: Manufacturer: Realtek
usb 1-1.2.3: SerialNumber: 00e04c000001
rtw driver version=v3.4.2_3727.20120404 
Build at: Jun  7 2012 08:49:57
register rtw_netdev_ops to netdev_ops
CHIP TYPE: RTL8188C_8192C

usb_endpoint_descriptor(0):
bLength=7
bDescriptorType=5
bEndpointAddress=81
wMaxPacketSize=200
bInterval=0
RT_usb_endpoint_is_bulk_in = 1

usb_endpoint_descriptor(1):
bLength=7
bDescriptorType=5
bEndpointAddress=2
wMaxPacketSize=200
bInterval=0
RT_usb_endpoint_is_bulk_out = 2

usb_endpoint_descriptor(2):
bLength=7
bDescriptorType=5
bEndpointAddress=3
wMaxPacketSize=200
bInterval=0
RT_usb_endpoint_is_bulk_out = 3

usb_endpoint_descriptor(3):
bLength=7
bDescriptorType=5
bEndpointAddress=84
wMaxPacketSize=40
bInterval=1
RT_usb_endpoint_is_int_in = 4, Interval = 1
nr_endpoint=4, in_num=2, out_num=2

USB_SPEED_HIGH
Chip Version ID: VERSION_NORMAL_TSMC_CHIP_88C.
RF_Type is 3!!
EEPROM type is E-FUSE
====> ReadAdapterInfo8192C
Boot from EFUSE, Autoload OK !
EEPROMVID = 0x0bda
EEPROMPID = 0x8176
EEPROMCustomerID : 0x00
EEPROMSubCustomerID: 0x00
RT_CustomerID: 0x00
_ReadMACAddress MAC Address from EFUSE = 00:23:13:00:07:90
EEPROMRegulatory = 0x0
_ReadBoardType(0)
BT Coexistance = disable
RT_ChannelPlan: 0x0a
_ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
### PS params=>  power_mgnt(1),usbss_enable(0) ###
### AntDivCfg(0)
readAdapterInfo_8192CU(): REPLACEMENT = 1
<==== ReadAdapterInfo8192C in 270 ms
rtw_macaddr_cfg MAC Address  = 00:23:13:00:07:90
MAC Address from pnetdev->dev_addr= 00:23:13:00:07:90
bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
usbcore: registered new interface driver rtl8192cu
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
### snd_bcm2835_alsa_probe c03e8488 ############### PROBING FOR bcm2835 ALSA device (0):(1) ###############
Creating card...
Creating device/chip ..
Adding controls ..
Registering card ....
bcm2835 ALSA CARD CREATED!
### BCM2835 ALSA driver init OK ### 
NET: Registered protocol family 10
ADDRCONF(NETDEV_UP): eth0: link is not ready
+871x_drv - drv_open, bup=0
 ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
FirmwareDownload92C accquire FW from embedded image
fw_ver=v80, fw_subver=0, sig=0x88c0
fw download ok!
Set RF Chip ID to RF_6052 and RF type to 1T1R.
IQK:Start!!!
Path A IQK Success!!
Path A IQK Success!!
IQK: final_candidate is 0
IQK: RegE94=100 RegE9C=11 RegEA4=fe RegEAC=2 RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
 Path A IQ Calibration Success !
pdmpriv->TxPowerTrackControl = 1
MAC Address from REG_MACID = 00:23:13:00:07:90
rtl8192cu_hal_init in 730ms
MAC Address = 00:23:13:00:07:90
-871x_drv - drv_open, bup=1
ADDRCONF(NETDEV_UP): wlan0: link is not ready
[rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
set_mode = IW_MODE_INFRA
=>rtw_wx_set_essid
ssid=g\xffffffc6isQ\xffffffffJ\xffffffec)\xffffffcd\xffffffba\xffffffab\xfffffff2\xfffffffb\xffffffe3F|\xffffffc2T\xfffffff8\x1b\xffffffe8\xffffffe7\xffffff8dvZ.c3\xffffff9f\xffffffc9\xffffff9a\xffffff80z\xffffffa3\xffffffcd\xffffff80y\xffffffa3\xffffffcd, len=32
Set SSID under fw_state=0x00000008
<=rtw_wx_set_essid, ret 0
[rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
set_mode = IW_MODE_INFRA

 wpa_ie(length:22):
0x30 0x14 0x01 0x00 0x00 0x0f 0xac 0x04 
0x01 0x00 0x00 0x0f 0xac 0x04 0x01 0x00 
0x00 0x0f 0xac 0x02 0x00 0x00 0x04 0xc0 
=>rtw_wx_set_essid
ssid=Bebox723722, len=11
Set SSID under fw_state=0x00000808
<=rtw_wx_set_essid, ret 0
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
survey done event(17)
[by_bssid:0][assoc_ssid:Bebox723722][to_roaming:0] new candidate: Bebox723722(00:26:44:0a:9d:c7) rssi:-89
rtw_select_and_join_from_scanned_queue: candidate: Bebox723722(00:26:44:0a:9d:c7)
link to Broadcom AP
link to Broadcom AP
issue_deauth to 00:26:44:0a:9d:c7
OnAuthClient
network.SupportedRates[0]=82
network.SupportedRates[1]=84
network.SupportedRates[2]=8B
network.SupportedRates[3]=96
network.SupportedRates[4]=24
network.SupportedRates[5]=30
network.SupportedRates[6]=48
network.SupportedRates[7]=6C
network.SupportedRates[8]=0C
network.SupportedRates[9]=12
network.SupportedRates[10]=18
network.SupportedRates[11]=60
bssrate_len = 12
OnAssocRsp
report_join_res(2)
rtw_joinbss_update_network
rtw_joinbss_update_stainfo
HW_VAR_BASIC_RATE: BrateCfg(0x15d)
HTOnAssocRsp
update raid entry, mask=0x40000fff, arg=0x80
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
rtl8192c_set_FwJoinBssReport_cmd mstatus(1)
SetFwRsvdPagePkt
Set RSVD page location to Fw.

 ~~~~stastakey:unicastkey
=>mlmeext_joinbss_event_callback
=>rtw_wx_set_essid
ssid=f2
\xffffffb71X\xffffffa3Z%]\x05\x17X\xffffffe9^\xffffffd4\xffffffab\xffffffb2\xffffffcd\xffffffc6\xffffff9b\xffffffb4T\x11\x0e\xffffff82tA!=\xffffffdc\xffffff87\x01, len=32
Set SSID under fw_state=0x00000008
rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
<=rtw_wx_set_essid, ret 0
issue_deauth to 00:26:44:0a:9d:c7
rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
set_mode = IW_MODE_INFRA

 wpa_ie(length:22):
0x30 0x14 0x01 0x00 0x00 0x0f 0xac 0x04 
0x01 0x00 0x00 0x0f 0xac 0x04 0x01 0x00 
0x00 0x0f 0xac 0x02 0x00 0x00 0x8b 0xcc 
=>rtw_wx_set_essid
ssid=Bebox723722, len=11
Set SSID under fw_state=0x00000808
<=rtw_wx_set_essid, ret 0
survey done event(16)
[by_bssid:0][assoc_ssid:Bebox723722][to_roaming:0] new candidate: Bebox723722(00:26:44:0a:9d:c7) rssi:-87
rtw_select_and_join_from_scanned_queue: candidate: Bebox723722(00:26:44:0a:9d:c7)
link to Broadcom AP
link to Broadcom AP
issue_deauth to 00:26:44:0a:9d:c7
OnAuthClient
network.SupportedRates[0]=82
network.SupportedRates[1]=84
network.SupportedRates[2]=8B
network.SupportedRates[3]=96
network.SupportedRates[4]=24
network.SupportedRates[5]=30
network.SupportedRates[6]=48
network.SupportedRates[7]=6C
network.SupportedRates[8]=0C
network.SupportedRates[9]=12
network.SupportedRates[10]=18
network.SupportedRates[11]=60
bssrate_len = 12
OnAssocRsp
report_join_res(2)
rtw_joinbss_update_network
rtw_joinbss_update_stainfo
HW_VAR_BASIC_RATE: BrateCfg(0x15d)
HTOnAssocRsp
update raid entry, mask=0x40000fff, arg=0x80
rtl8192c_set_FwJoinBssReport_cmd mstatus(1)

 ~~~~stastakey:unicastkey
SetFwRsvdPagePkt
Set RSVD page location to Fw.
=>rtw_wx_set_essid
ssid=p\xffffffe9>\xffffffa1A\xffffffe1\xfffffffcg>\x01~\xffffff97\xffffffea\xffffffdck\xffffff96\xffffff8f8\*\xffffffec\xffffffb0;\xfffffffb2\xffffffaf<T\xffffffec\x18\xffffffdb\\xffffffe0\x1f\xffffff80\xffffffcd\xffffffe0\x1f\xffffff80\xffffffcd, len=32
Set SSID under fw_state=0x00000008
rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
<=rtw_wx_set_essid, ret 0
=>mlmeext_joinbss_event_callback
issue_deauth to 00:26:44:0a:9d:c7
rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
set_mode = IW_MODE_INFRA

 wpa_ie(length:22):
0x30 0x14 0x01 0x00 0x00 0x0f 0xac 0x04 
0x01 0x00 0x00 0x0f 0xac 0x04 0x01 0x00 
0x00 0x0f 0xac 0x02 0x00 0x00 0xa3 0xcd 
=>rtw_wx_set_essid
ssid=Bebox723722, len=11
Set SSID under fw_state=0x00000808
<=rtw_wx_set_essid, ret 0
survey done event(1d)
[by_bssid:0][assoc_ssid:Bebox723722][to_roaming:0] new candidate: Bebox723722(00:26:44:0a:9d:c7) rssi:-86
rtw_select_and_join_from_scanned_queue: candidate: Bebox723722(00:26:44:0a:9d:c7)
link to Broadcom AP
link to Broadcom AP
issue_deauth to 00:26:44:0a:9d:c7
OnAuthClient
network.SupportedRates[0]=82
network.SupportedRates[1]=84
network.SupportedRates[2]=8B
network.SupportedRates[3]=96
network.SupportedRates[4]=24
network.SupportedRates[5]=30
network.SupportedRates[6]=48
network.SupportedRates[7]=6C
network.SupportedRates[8]=0C
network.SupportedRates[9]=12
network.SupportedRates[10]=18
network.SupportedRates[11]=60
bssrate_len = 12
OnAssocRsp
report_join_res(2)
rtw_joinbss_update_network
rtw_joinbss_update_stainfo
HW_VAR_BASIC_RATE: BrateCfg(0x15d)
HTOnAssocRsp
update raid entry, mask=0x40000fff, arg=0x80

 ~~~~stastakey:unicastkey
=>rtw_wx_set_essid
ssid=\x02\x1a\xfffffffeC\xfffffffb\xfffffffa\xffffffaa:\xfffffffb)\xffffffd1\xffffffe6\x05<|\xffffff94u\xffffffd8\xffffffbea\xffffff89\xfffffff9\\xffffffbb\xffffffa8\xffffff99\x0f\xffffff95\xffffffb1\xffffffeb\xfffffff1\xffffffb3\xffffffe0\x1f\xffffff80\xffffffcd\xffffffe0\x1f\xffffff80\xffffffcd, len=32
Set SSID under fw_state=0x00000008
rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
<=rtw_wx_set_essid, ret 0
rtl8192c_set_FwJoinBssReport_cmd mstatus(1)
SetFwRsvdPagePkt
Set RSVD page location to Fw.
=>mlmeext_joinbss_event_callback
issue_deauth to 00:26:44:0a:9d:c7
rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
set_mode = IW_MODE_INFRA

 wpa_ie(length:22):
0x30 0x14 0x01 0x00 0x00 0x0f 0xac 0x04 
0x01 0x00 0x00 0x0f 0xac 0x04 0x01 0x00 
0x00 0x0f 0xac 0x02 0x00 0x00 0x8b 0xcc 
=>rtw_wx_set_essid
ssid=Bebox723722, len=11
Set SSID under fw_state=0x00000808
<=rtw_wx_set_essid, ret 0
survey done event(19)
[by_bssid:0][assoc_ssid:Bebox723722][to_roaming:0] new candidate: Bebox723722(00:26:44:0a:9d:c7) rssi:-86
rtw_select_and_join_from_scanned_queue: candidate: Bebox723722(00:26:44:0a:9d:c7)
link to Broadcom AP
link to Broadcom AP
issue_deauth to 00:26:44:0a:9d:c7
OnAuthClient
network.SupportedRates[0]=82
network.SupportedRates[1]=84
network.SupportedRates[2]=8B
network.SupportedRates[3]=96
network.SupportedRates[4]=24
network.SupportedRates[5]=30
network.SupportedRates[6]=48
network.SupportedRates[7]=6C
network.SupportedRates[8]=0C
network.SupportedRates[9]=12
network.SupportedRates[10]=18
network.SupportedRates[11]=60
bssrate_len = 12
OnAssocRsp
report_join_res(2)
rtw_joinbss_update_network
rtw_joinbss_update_stainfo
HW_VAR_BASIC_RATE: BrateCfg(0x15d)
HTOnAssocRsp
update raid entry, mask=0x40000fff, arg=0x80
rtl8192c_set_FwJoinBssReport_cmd mstatus(1)
SetFwRsvdPagePkt
Set RSVD page location to Fw.

 ~~~~stastakey:unicastkey
=>rtw_wx_set_essid
ssid=\x05\xffffffef\xfffffff7, len=32
Set SSID under fw_state=0x00000008
rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
<=rtw_wx_set_essid, ret 0
=>mlmeext_joinbss_event_callback
issue_deauth to 00:26:44:0a:9d:c7
rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.2
survey done event(25)
rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
try_to_join, but select scanning queue fail, to_roaming:0
==>pwr_state_check_handler .fw_state(8)
==> rtw_ps_cmd  , enqueue CMD 
==>rtw_ps_processor .fw_state(8)
==>ips_enter cnts:1
==>power_saving_ctrl_wk_hdl change rf to OFF...LED(0x00020808).... 

===> rtw_ips_pwr_down...................
====> rtw_ips_dev_unload...
usb_read_port_cancel 
usb_write_port_cancel 
==> rtl8192cu_hal_deinit 
bkeepfwalive(0)
card disble without HWSM...........
<=== rtw_ips_pwr_down..................... in 140ms
eth0: no IPv6 routers present

Re: Wifi adapter

Posted: Sun Jun 10, 2012 11:54 am
by MrEngman
MarrsAttax wrote:I discovered what this problem is if anyone is still doing it this way.

Still doing it this way? I do, but it sounds like I may be rather out of date :? - what other ways are there?
MarrsAttax wrote:The soft link 'armv61' that is created by the script ends in a number '1' (one) but in the script the path to the Makefile ends in the lowercase letter 'L' .

So the soft link is armv61 but the path is armv6l. Or was it the other way round? Whichever way round it is they are spelled differently, although it is very hard to spot this in the console :)

Anyway, adding a second link with the alternative spelling should fix the problem.

Code: Select all

 ln -sf arm armv6l
Thanks, changing the link to "armv6l" - lowercase L - solved the problem. Maybe I should get some new spectacles. :D

I actually did a search through the whole of the source, wifi driver and linux, and couldn't find any reference to "armv6l" (lowercase L) anywhere which I find a little odd. I'm curious, where is it referenced?

Re: Wifi adapter

Posted: Sun Jun 10, 2012 1:08 pm
by MarrsAttax
MrEngman wrote: Still doing it this way? I do, but it sounds like I may be rather out of date :? - what other ways are there?
I meant as opposed to compiling the driver yourself. I was trying this at the time and then went back to running the install.sh when that proved to be too hard :)
MrEngman wrote: Thanks, changing the link to "armv6l" - lowercase L - solved the problem. Maybe I should get some new spectacles. :D

I actually did a search through the whole of the source, wifi driver and linux, and couldn't find any reference to "armv6l" (lowercase L) anywhere which I find a little odd. I'm curious, where is it referenced?
No idea where it's referenced. Just spotted the difference in the output from the install script. It actually took two of us to spot after much scratching of heads.

Re: Wifi adapter

Posted: Sun Jun 10, 2012 2:34 pm
by Lorian
MarrsAttax wrote:I'm at the stage now where I believe the driver is installed and working but I cannot connect to my router.
Try specifying the WPA key in plain-text, and of course ensure it's not being blocked by MAC address filtering on the router.

Re: Wifi adapter

Posted: Sun Jun 10, 2012 2:46 pm
by MrEngman
Hi MarrsAttax,

OK. I have compiled directly, in fact that was how I did it to start with. One thing I found odd though. In the driver documentation it goes through modifying the Makefile to suit the proccessor or whatever. I didn't touch the file and just compiled using make ARCH=arm .... etc. It compiled and I ended up with a new working driver. Still don't understand how and if it worked without changing the Makefile why all the stuff about editing it. Really strange. Even now using the script I still haven't altered the Makefile. Think maybe I should and see what happens. Hmmm.

I did have a look through the Makefiles and some others and noticed things like armv5x and armv6x - x being some letter or other rather than a number, but no armv6l, lowercase L. Seems like a good clue I guess. :)

Re: Wifi adapter

Posted: Sun Jun 10, 2012 6:08 pm
by MrEngman
Hi MarrsAttax,

So just to see what happened I changed the Makefile and recompiled the driver. And ended up with a pretty much identical driver except for some changes to two small areas of the code.

In the Makefile I changed this line

Code: Select all

CONFIG_PLATFORM_I386 = n
added this line to the platform targets

Code: Select all

CONFIG_PLATFORM_ARM_BCM2708 = y
and added this section to the platform settings section

Code: Select all

ifeq ($CONFIG_PLATFORM_ARM_BCM2708), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-linux-gnueabi-
KVER := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
endif
then cd'd into the driver directory and compiled, this time using the command

Code: Select all

make clean && make modules && make install
And suprise, suprise the new wifi driver is installed and is running just fine :D

Module size remained exactly the same as previously compiled with the original unedited Makefile although there were two small areas in the module that had changed - one the compile time/date, naturally - and a section of 18 bytes just before a section of the code filled with a load of copies of the text string

Code: Select all

GCC: (Debian 4_4_5-8) 4_4_5
what ever that is for. Recompiling several more times and the same two areas changed again every time so I expect not important.

Reverting back to the original Makefile configured with I386 as the target platform I recompiled using the identical command line above and ended up with similar results. Same size module file and the same two areas with differences, and the wifi is still running OK.

So as far as I'm concerned changing the Makefile is a bit of a waste of time, on the Pi anyway. May be significant if I cross-compile on a PC for use on the Pi but I shall have to leave that for another time.

Re: Wifi adapter

Posted: Mon Jun 11, 2012 11:56 am
by colin B
I've just followed Jimmers instructions, everything seemed to go allright until I restarted networking, text streamed up the screen and then I got a reboot notification and now all I get is a blank screen - network link light is on an dflickering, power LED all LED's in fact and now no video at all.

The only part I changed was the WPA instructions as I use WEP.

I take it I'm going to have to re-image the SD card back to square one?

Trying to get wireless lan going in Linux is most frustrating, I've failed in all the distros I've downloaded so far :(

Re: Wifi adapter

Posted: Mon Jun 11, 2012 3:10 pm
by MarrsAttax
Is the wifi dongle plugged straight into the Pi? If so it could be a power issue. Use a powered hub if you're not already.

Are you able to ssh into the Pi? If you can take a look in /var/log/dmesg to see if there are any errors. It's possible that doing an update has caused an issue with your existing setup. Check that the values in /boot/config.txt are correct - see http://elinux.org/RPi_config.txt for more detail

I think I had a similar problem a few days ago. Try booting without the hdmi lead in and then plugging it in once after you've logged in via ssh, see if that helps.

You could also try booting with the hdmi lead in but no keyboard, mouse or dongle plugged in.

Re: Wifi adapter

Posted: Mon Jun 11, 2012 3:49 pm
by thom_thumb
Lorian wrote: Here is mine, works for me with the current kernel delivered by rpi-update, YMMV.

wget http://www.bug-byte.co.uk/pi/8192cu.ko
Unfortunately I did an rpi-update this morning and tried your build but it didn't work for me :(

I get this:

Code: Select all

[email protected]:~# modprobe 8192cu
ERROR: could not insert '8192cu': Exec format error
And in dmesg:

Code: Select all

[  783.909342] 8192cu: disagrees about version of symbol module_layout
Although it looks like the kernel might have been updated over the weekend?

Re: Wifi adapter

Posted: Mon Jun 11, 2012 3:52 pm
by Lorian
I've kicked it off rebuilding and wil post it up when I get back in later to see if it helps, unless someone else beats me to it.

Re: Wifi adapter

Posted: Mon Jun 11, 2012 10:09 pm
by MrEngman
I've just downloaded a new RTL8188CUS driver here. Hopefully it takes care of the latest rpi-update firmware and code downloads for you. Working with my Pi at the moment.

MrEngman

Re: Wifi adapter

Posted: Tue Jun 12, 2012 9:07 am
by MarrsAttax
Thanks MrEngman. That new driver fixed the problem for me.

Re: Wifi adapter

Posted: Tue Jun 12, 2012 4:54 pm
by thom_thumb
MrEngman wrote:I've just downloaded a new RTL8188CUS driver here.
So I swear I got it working once, but now it just keeps trying to associate but never completes. It sees the AP (and a couple others in the area.) Doesn't give a clear (to me) error why it's failing either. Attached dmesg output and `wpa_supplicant -dd -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf` output.... Probably a pebcak but I can't figure it out.

https://gist.github.com/2918674
https://gist.github.com/2918674#file_wpa_supplicant.out

Re: Wifi adapter

Posted: Wed Jun 13, 2012 6:54 am
by MarrsAttax
I had similar problems. In my case I had misconfigured my wpa_supplicant.conf file. I had AP scanning/selection set to 2 (ap_scan=2) but had more than one option listed in my proto and group fields (you're only allowed one option if ap_scan=2. Although it doesn't look like that's the case here.

Have a read through of this example wpa_supplicant.conf file. It helped me.

http://hostap.epitest.fi/gitweb/gitweb. ... cant.conf

Also make sure you have rfkill installed as your wpa output appears to be complaining it can't find it.

Code: Select all

apt-get install rfkill
I'd also suggest getting your Pi as close to the WAP as possible just to rule out any interference.