Module Installation Problem WLAN ASUS N13 [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Module Installation Problem WLAN ASUS N13 [Solved]

Postby fire_dragon » Wed Oct 24, 2012 13:26

Dear friends,
I am using Sabayon 10 with KDE.

The card did never work well with the provided driver support from the Sabayon distro.

I can always see the router, can connect to the router, the speed is normal for my line and equally fast like in Windows (where the card works without any problems), but after a while, the connection seems to be cutted. The network management icon in the systemtray still sais I am connected, but no data will transfer anymore. If I reboot now, or disconnect, plug out the USB dongle and plug it back in, it will connect again, and will work for some while again, either 1 minute or 2 hours, depending. One the Rigo updater wanted to load an update of about 70MB, and it did not succeed twice, at the third time it succeeded loading. On the other side I downloaded also an over 2GB linux iso from an ftp without any problems at fullspeed (my w-lan full speed which is equally fast as in Windows).

So I decided to try to update the driver. (I have to mention the I've never installed a driver before in Linux and I am not as familiar with Linux yet)

My card is a ASUS N13 USB WIFI card. The following lsusb give me this:

Code: Select all
#lsusb
Bus 001 Device 002: ID 0b05:17ab ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL8192CU]


Because of this, I downloaded the following driver from the Reaktec website:

RTL819xC_USB_linux_v3.4.4_4749.20120806.zip

Inside this they recommend to use the sh script, so I tried:

Code: Select all
#sh install.sh
localhost RTL8188C_8192C # sh install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
        rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730.tar.gz
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/clean
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/ieee80211.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_ht.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/sdio_osintf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_ioctl.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_event.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_rf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_rf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_sreset.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_hal.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/recv_osdep.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_recv.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_cmd.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/byteorder/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/byteorder/generic.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/byteorder/little_endian.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/byteorder/swabb.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/byteorder/swab.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/byteorder/big_endian.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/pci_osintf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/sdio_ops.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192CPhyReg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/osdep_service.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/usb_osintf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_spec.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/pci_hal.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192CPhyCfg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_pwrctrl.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_cmd.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192DETestHWImg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_version.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/ethernet.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_br_ext.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_qos.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_p2p.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_xmit.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/xmit_osdep.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_mp_ioctl.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_xmit.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_spec.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/usb_hal.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/pci_ops.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_mp.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192CEHWImg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/mlme_osdep.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/h2clbk.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/sdio_ops_xp.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/usb_vendor_req.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_eeprom.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/farray.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192DPhyCfg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/ioctl_cfg80211.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_dm.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/if_ether.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/drv_types_ce.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_security.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_ioctl_rtl.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192DUHWImg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192CUHWImg_wowlan.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_led.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_led.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/wlan_bssdef.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_mlme_ext.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192DPhyReg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/wifi.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192d_recv.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_event.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192DEHWImg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192CUHWImg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/nic_spec.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/osdep_intf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/sdio_ops_ce.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/sdio_ops_linux.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/circ_buf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_byteorder.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_xmit.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192DUHWImg_wowlan.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_ioctl_set.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_recv.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_dm.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_mlme.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/mp_custom_oid.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/ip.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_ioctl_query.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/hal_init.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/drv_conf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/Hal8192DUTestHWImg.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/drv_types_linux.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/autoconf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/osdep_ce_service.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_efuse.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_cmd.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/sdio_hal.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_io.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_led.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/ieee80211_ext.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/cmd_osdep.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/drv_types.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/sta_info.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_iol.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/usb_ops.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_hal.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_debug.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/drv_types_xp.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtl8192c_rf.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_android.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/basic_types.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/include/rtw_mp_phy_regdef.h
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_rf.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_mlme.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_eeprom.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_io.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_br_ext.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_mp_ioctl.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_iol.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_p2p.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_ioctl_set.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_debug.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_xmit.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_ieee80211.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_mlme_ext.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_cmd.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_pwrctrl.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_security.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_ioctl_query.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_ioctl_rtl.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_sta_mgt.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_wlan_util.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_mp.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/efuse/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/efuse/rtw_efuse.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/core/rtw_recv.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/Makefile
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/ifcfg-wlan0
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/wlan0dhcp
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/osdep_service.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/pci_intf.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/usb_intf.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/ioctl_cfg80211.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/xmit_linux.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/mlme_linux.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/ioctl_linux.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/os_intfs.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/recv_linux.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/sdio_intf.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/os_dep/linux/rtw_android.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/Kconfig
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_sreset.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_dm.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_hal_init.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_cmd.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_phycfg.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/rtl8192cu_xmit.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/usb_ops_ce.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/rtl8192cu_led.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/Hal8192CUHWImg.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/usb_halinit.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/Hal8192CUHWImg_wowlan.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/usb_ops_linux.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/usb_ops_xp.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/usb/rtl8192cu_recv.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_rxdesc.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_rf6052.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/rtl8192c/rtl8192c_mp.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730/hal/hal_init.c
rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730
Authentication requested [root] for make 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/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:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.5.0-sabayon/build M=/mnt/e/RTL8188C_8192C/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730  modules
make[1]: Entering directory `/usr/src/linux-3.5.0-sabayon'
Makefile:323: /usr/src/linux-3.5.0-sabayon/scripts/Kbuild.include: No such file or directory
Makefile:564: /usr/src/linux-3.5.0-sabayon/arch/x86/Makefile: No such file or directory
/bin/sh: /usr/src/linux-3.5.0-sabayon/scripts/gcc-goto.sh: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.5.0-sabayon/arch/x86/Makefile'.  Stop.
make[1]: Leaving directory `/usr/src/linux-3.5.0-sabayon'
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
localhost RTL8188C_8192C #


Now I have no clue what the script did or how can I install the driver elseway.

/usr/src/linux-3.5.0-sabayon exists (I have kernel 3.5.0)
/lib/modules/3.5.0-sabayon/build exists
/usr/src/linux-3.5.0-sabayon/scripts does not exist so /Kbuild.include also not
/usr/src/linux-3.5.0-sabayon/arch does not exist so /x86/Makefile also not

Tried to search for Kbuild.include but its nowhere on my computer

The install.sh contains the following lines:

Code: Select all
#!/bin/bash
# Auto install for 8192cu
# September, 1 2010 v1.0.0, willisTang
#
# Add make_drv to select chip type
# Novembor, 21 2011 v1.1.0, Jeff Hung
################################################################################

echo "##################################################"
echo "Realtek Wi-Fi driver Auto installation script"
echo "Novembor, 21 2011 v1.1.0"
echo "##################################################"

################################################################################
#         Decompress the driver source tal ball
################################################################################
cd driver
Drvfoulder=`ls |grep .tar.gz`
echo "Decompress the driver source tar ball:"
echo "   "$Drvfoulder
tar zxvf $Drvfoulder

Drvfoulder=`ls |grep -iv '.tar.gz'`
echo "$Drvfoulder"
cd  $Drvfoulder

################################################################################
#         If makd_drv exixt, execute it to select chip type
################################################################################
if [ -e ./make_drv ]; then
   ./make_drv
fi

################################################################################
#                       make clean
################################################################################
echo "Authentication requested [root] for make clean:"
if [ "`uname -r |grep fc`" == " " ]; then
        sudo su -c "make clean"; Error=$?
else
        su -c "make clean"; Error=$?
fi

################################################################################
#         Compile the driver
################################################################################
echo "Authentication requested [root] for make driver:"
if [ "`uname -r |grep fc`" == " " ]; then
   sudo su -c make; Error=$?
else
   su -c make; Error=$?
fi
################################################################################
#         Check whether or not the driver compilation is done
################################################################################
module=`ls |grep -i 'ko'`
echo "##################################################"
if [ "$Error" != 0 ];then
   echo "Compile make driver error: $Error"
   echo "Please check error Mesg"
   echo "##################################################"
   exit
else
   echo "Compile make driver ok!!"
   echo "##################################################"
fi

if [ "`uname -r |grep fc`" == " " ]; then
   echo "Authentication requested [root] for remove driver:"
   sudo su -c "rmmod $module"
   echo "Authentication requested [root] for insert driver:"
   sudo su -c "insmod $module"
   echo "Authentication requested [root] for install driver:"
   sudo su -c "make install"
else
   echo "Authentication requested [root] for remove driver:"
   su -c "rmmod $module"
   echo "Authentication requested [root] for insert driver:"
   su -c "insmod $module"
   echo "Authentication requested [root] for install driver:"
   su -c "make install"
fi
echo "##################################################"
echo "The Setup Script is completed !"
echo "##################################################"


I see that they use sudo in the script, but I use su + password to go to root before I installed the script, I never used sudo in Sabayon.

So did it install the driver? Is my system using the new driver? I have no clue how to see all this since I'm not very familar with Linux yet.

How should I proceed to make my w-lan card work properly?

Thank you.

Moderator Edit: Added BBCode Code delimiters. Please use the Code button when posting lengthy console/terminal output.
Last edited by fire_dragon on Tue Nov 06, 2012 13:18, edited 1 time in total.
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22

Re: Driver Installation Asus N13 problem

Postby joost » Wed Oct 24, 2012 13:36

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.5.0-sabayon/build M=/mnt/e/RTL8188C_8192C/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20120730 modules
make[1]: Entering directory `/usr/src/linux-3.5.0-sabayon'
Makefile:323: /usr/src/linux-3.5.0-sabayon/scripts/Kbuild.include: No such file or directory
Makefile:564: /usr/src/linux-3.5.0-sabayon/arch/x86/Makefile: No such file or directory
/bin/sh: /usr/src/linux-3.5.0-sabayon/scripts/gcc-goto.sh: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.5.0-sabayon/arch/x86/Makefile'. Stop.


No.
We do not really support this, but, make sure you have gcc base-gcc and sabayon-sources installed before attempting this.
User avatar
joost
Sagely Hen
 
Posts: 2332
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: Driver Installation Asus N13 problem

Postby fire_dragon » Wed Oct 24, 2012 14:21

gcc was already installed.

I installed base-gcc and sabayon sources.

Exactly the same behavior after running

#sh install.sh

If Sabayon does not support this, how can I install the driver?
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22

Re: Driver Installation Asus N13 problem

Postby fire_dragon » Thu Oct 25, 2012 12:03

I disabled the kernel included driver rtl8192cu in the file #/etc/modprobe.d/blacklist.conf

I did this because according to several forum entries for other distributions, the kernel internal driver is buggy and the developers driver is supposed to be stable.

The command #./make did not work.

I tried to install the driver manually with the command
#make

Code: Select all
localhost ~/Downloads/RTL $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.5.0-sabayon/build M=/home/ebo/Downloads/RTL  modules
make[1]: Entering directory `/usr/src/linux-3.5.0-sabayon'
Makefile:323: /usr/src/linux-3.5.0-sabayon/scripts/Kbuild.include: No such file or directory
Makefile:564: /usr/src/linux-3.5.0-sabayon/arch/x86/Makefile: No such file or directory
/bin/sh: /usr/src/linux-3.5.0-sabayon/scripts/gcc-goto.sh: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.5.0-sabayon/arch/x86/Makefile'.  Stop.
make[1]: Leaving directory `/usr/src/linux-3.5.0-sabayon'
make: *** [modules] Error 2
localhost ~/Downloads/RTL $



So it is the same output like the script gave me.

How come some commands are modified? Is there an overview about this modified commands?

I think the makefile. is problematic and needs to be adjusted to Sabayon.

Here is the makefile:


Code: Select all
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
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 = n

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_I386_PC = y
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
ifneq ($(CONFIG_WAKE_ON_WLAN), n)
FW_FILES += hal/$(RTL871X)/usb/Hal8192DUHWImg_wowlan.o
endif
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_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-2/telechips/ics_sdk/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



No clue how to proceed now, the makefile. looks quite complex to me.

Maybe I can use an already adjusted version of a driver makefile suitable for Sabayon if availible?
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22

Re: Driver Installation Asus N13 problem

Postby fire_dragon » Mon Oct 29, 2012 12:32

If I use the command:

Code: Select all
#make install


It will show the following message:

Code: Select all
install -p -m 644 8192cu.ko  /lib/modules/3.5.0-sabayon/kernel/drivers/net/wireless/
install: cannot stat ‘8192cu.ko’: No such file or directory
make: *** [install] Error 1


The directory /lib/modules/3.5.0-sabayon/kernel/drivers/net/wireless/ exists.

Under /lib/modules/3.5.0-sabayon/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/ is the file rtl8192cu.ko
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22

Re: Driver Installation Asus N13 problem

Postby fire_dragon » Mon Oct 29, 2012 15:26

I updated the kernel to 3.6.0-rc1 using the kernel-switcher, hope the kernel driver will work better.

Is after a kernel update the new driver automatically used?
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22

Re: Driver Installation Asus N13 problem

Postby fire_dragon » Mon Oct 29, 2012 16:53

Unfortunately the kernel update did not change the problem.
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22

Re: Driver Installation Asus N13 problem

Postby fire_dragon » Wed Oct 31, 2012 13:59

It seems that it is a general make modules_install problem, the error is similar if I try to install another module. I suspect I am doing something wrong in general here and it is not driver related. Should I start a new thread which is non wireless/network connected in a different part of this forum?
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22

Re: Driver Installation Asus N13 problem

Postby fire_dragon » Tue Nov 06, 2012 13:16

Thread continues here:

https://forum.sabayon.org/viewtopic.php?f=86&t=28331&p=154767#p154767

Solving steps were:

Install the sources for my current kernel:

Code: Select all
equo install sabayon-sources-3.6-r1


Then installed the module:

Code: Select all
make modules


then

Code: Select all
make modules install


and blacklisted the kernel module

Thanks to everybody who helped.
fire_dragon
Simple Hen
 
Posts: 47
Joined: Wed Oct 24, 2012 13:22


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 0 guests