User avatar
QBall1977
Posts: 69
Joined: Thu Aug 09, 2012 10:06 am
Location: Hull, East Yorkshire
Contact: Website

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Mon Aug 12, 2013 10:27 pm

Anyone looking to get this working with RaspBMC should look here.

http://smhaziq.blogspot.co.uk/2013/06/c ... er-in.html

Compiled with the RaspBMC, just copy to the correct location in libs/...

do a depmod, then modprobe as listed in earlier posts.

Works a treat.

:D :D :D
____________________________________________
Looking for where to start - try Kernel Panic - http://goo.gl/EEQ5J

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Mon Aug 12, 2013 10:55 pm

Shinen wrote:Hello.
I have a D-Link TL-WN723N V3 and try to get it working with this driver and no luck.
http://wikidevi.com/wiki/TP-LINK_TL-WN723N_v3 says what this dongle based on RTL8188EUS.
Can anyone help me with this piece of dongle ? :)
ifconfig shows just eth0 and lo
seems like driver not loaded or not compatible.
lsusb shows Realtek Semiconductor Corp.
I try it on clean current image 2013-07-26-wheezy-raspbian.zip

p.s. I have another dongle also based on RT2870, but it doesn't work also :(
If command lsusb shows ID of 0bda:8179 for the wifi then you can load a working driver with the following commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20130209.tar.gz
tar -zxvf 8188eu-20130209.tar.gz
sudo install -p -m 644 8188eu.ko /lib/modules/3.6.11+/kernel/drivers/net/wireless
sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -a
Then look here, http://www.fars-robotics.net/, to see how to configure the file /etc/network/interfaces for the wifi.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

xleo
Posts: 1
Joined: Tue Aug 07, 2012 1:56 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 16, 2013 1:14 am

Thank you very much rpijet!

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 8:42 am

MrEngman wrote:You need to also get a copy of the Linux source code for raspBMC. I'm not sure where you can find that. You'll probably need to look on the RaspBMC site. This is not the same as the raspberry pi source code for Raspbian.

You also need two other files .config and Module.symvers You can get .config using command zcat /proc/config/gz > .config on your SD card in the Pi. For Raspbian the Module.symvers file is included in the source tree. I don't know if its available in the RaspBMC source. If not you will need to compile the Linux source and this can take a long time - 10hrs for Raspbian - probably similar for RaspBMC if using the Pi.

I usually install the Linux source in a directory in my home directory and can then compile with the following

# make directory for source
mkdir src
cd src

# set up symbolic link to Linux source
ln -s /home/pi/src/linux /lib/modules/3.6.11+/build

# now get linux source code which will be put in directory linux
git clone --depth 1 git://xxxxxxxx/linux.git # xxxxxxxx = RaspBMC source directory

# now initialise source
cd linux
make mrproper


# set up .config file and prepare for compiling module
zcat /proc/config.gz > .config
make modules_prepare


# now copy Modules.sysmvers to linux source directory
cp /path/to/Modules.symvers ./

# compile module
cd /home/pi/src/rtl8188eu_source
CONFIG_RTL8188EU=m make -C /path/to/linux M=`pwd` # char ` is under ¬ character on keyboard and is not single quote '.

And now install and load the module

sudo install -p -m 644 8188eu.ko /lib/modules/3.6.11+/kernel/drivers/net/wireless
sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -a


This how I compile for Raspbian. The same for RaspBMC except you need the RaspBMC source, and the right Module.symvers file.


MrEngman
Hi MrEngman, I'm trying to do the same with the last version of xbian... I was following this guide:

http://tech.enekochan.com/2013/05/29/co ... -raspbian/

which gives almost the instructions you gave. (the guide is for raspbian)
The problem is that when I give:

Code: Select all

make modules_prepare
it starts asking me lot of questions... the first is:

Code: Select all

scripts/kconfig/conf –silentoldconfig Kconfig
warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
*
* Restart config…
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW)
what do I have to do?

thank you

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 10:45 am

Hi robertjordan,

I think what you need to do is run an additional command after installing the file .config

Code: Select all

# set up .config file and prepare for compiling module
zcat /proc/config.gz > .config
make oldconfig          <-- run additional command
make modules_prepare
I think that is what you need to stop the list of question appearing but no guarantees.

This should use the default settings in the .config file instead of having to go though the list which is something I find very confusing. :?


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 11:26 am

MrEngman wrote:Hi robertjordan,

I think what you need to do is run an additional command after installing the file .config

Code: Select all

# set up .config file and prepare for compiling module
zcat /proc/config.gz > .config
make oldconfig          <-- run additional command
make modules_prepare
I think that is what you need to stop the list of question appearing but no guarantees.

This should use the default settings in the .config file instead of having to go though the list which is something I find very confusing. :?


MrEngman

Code: Select all

root@xbian:/home/xbian/rpi-linux# make oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW) 
:(

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 1:02 pm

Hmm. Sorry not sure what to suggest now. As far as I remember the Enter key will select the default setting, in this case N. Probably just need to go through the list responding with the Enter key.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 1:13 pm

MrEngman wrote:Hmm. Sorry not sure what to suggest now. As far as I remember the Enter key will select the default setting, in this case N. Probably just need to go through the list responding with the Enter key.


MrEngman
Ok, it ended with:

Code: Select all

#
# configuration written to .config
#
after that that's what happened:

Code: Select all

root@xbian:/home/xbian/rpi-linux# cp ../rpi-firmware/extra/Module.symvers .
root@xbian:/home/xbian/rpi-linux# cd ../rpi-rtl8188eu
root@xbian:/home/xbian/rpi-rtl8188eu# CONFIG_RTL8188EU=m make -C ../rpi-linux M=`pwd`
make: Entering directory `/home/xbian/rpi-linux'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

  Building modules, stage 2.
/home/xbian/rpi-linux/scripts/Makefile.modpost:42: include/config/auto.conf: No such file or directory
make[1]: *** No rule to make target `include/config/auto.conf'.  Stop.
make: *** [modules] Error 2
make: Leaving directory `/home/xbian/rpi-linux'
And so I tried with make oldconfig and make prepare, but:

Code: Select all

root@xbian:/home/xbian/rpi-rtl8188eu# make oldconfig
make: *** No rule to make target `oldconfig'.  Stop.
root@xbian:/home/xbian/rpi-rtl8188eu# make prepare
make: *** No rule to make target `prepare'.  Stop.
I don't know if you can help to go ahead, but anyway thank you for everything

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 1:30 pm

robertjordan wrote:

Code: Select all

ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.
And so I tried with make oldconfig and make prepare, but:

Code: Select all

root@xbian:/home/xbian/rpi-rtl8188eu# make oldconfig
make: *** No rule to make target `oldconfig'.  Stop.
root@xbian:/home/xbian/rpi-rtl8188eu# make prepare
make: *** No rule to make target `prepare'.  Stop.
I don't know if you can help to go ahead, but anyway thank you for everything
You get the error because it expects make oldconfig and make prepare to be run in the Linux source directory /home/xbian/rpi-linux.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 1:48 pm

Here's what happened:

Code: Select all

root@xbian:/home/xbian/rpi-rtl8188eu# cd /home/xbian/rpi-linux
root@xbian:/home/xbian/rpi-linux# make oldconfig
scripts/kconfig/conf --oldconfig Kconfig
warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
#
# configuration written to .config
#
root@xbian:/home/xbian/rpi-linux# make prepare
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
  WRAP    arch/arm/include/generated/asm/auxvec.h
  WRAP    arch/arm/include/generated/asm/bitsperlong.h
  WRAP    arch/arm/include/generated/asm/cputime.h
  WRAP    arch/arm/include/generated/asm/emergency-restart.h
  WRAP    arch/arm/include/generated/asm/errno.h
  WRAP    arch/arm/include/generated/asm/ioctl.h
  WRAP    arch/arm/include/generated/asm/irq_regs.h
  WRAP    arch/arm/include/generated/asm/kdebug.h
  WRAP    arch/arm/include/generated/asm/local.h
  WRAP    arch/arm/include/generated/asm/local64.h
  WRAP    arch/arm/include/generated/asm/percpu.h
  WRAP    arch/arm/include/generated/asm/poll.h
  WRAP    arch/arm/include/generated/asm/resource.h
  WRAP    arch/arm/include/generated/asm/sections.h
  WRAP    arch/arm/include/generated/asm/siginfo.h
  WRAP    arch/arm/include/generated/asm/sizes.h
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
root@xbian:/home/xbian/rpi-linux# cp ../rpi-firmware/extra/Module.symvers .
root@xbian:/home/xbian/rpi-linux# cd ../rpi-rtl8188eu
root@xbian:/home/xbian/rpi-rtl8188eu# CONFIG_RTL8188EU=m make -C ../rpi-linux M=`pwd`
make: Entering directory `/home/xbian/rpi-linux'
make: Entering directory `/home/xbian/rpi-linux'
  LD      /home/xbian/rpi-rtl8188eu/built-in.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_cmd.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_security.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_debug.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_io.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_ioctl_query.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_ioctl_set.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_ieee80211.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_mlme.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_mlme_ext.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_wlan_util.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_pwrctrl.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_rf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_recv.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_sta_mgt.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_xmit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_p2p.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_br_ext.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_iol.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_led.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/efuse/rtw_efuse.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/hal_intf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/hal_com.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_hal_init.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_phycfg.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_rf6052.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_dm.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_rxdesc.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_cmd.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/usb_halinit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/rtl8188eu_led.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/rtl8188eu_xmit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/rtl8188eu_recv.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/usb_ops_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_xmit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_sreset.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm_debug.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm_interface.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm_HWConfig.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/HalPhyRf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalHWImg8188E_MAC.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalHWImg8188E_BB.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalHWImg8188E_RF.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/Hal8188EFWImg_CE.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalPhyRf_8188e.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/odm_RegConfig8188E.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/Hal8188ERateAdaptive.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/odm_RTL8188E.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/HalPwrSeqCmd.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/Hal8188EPwrSeq.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/osdep_service.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/os_intfs.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/usb_intf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/ioctl_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/xmit_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/mlme_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/recv_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/rtw_android.o
  LD [M]  /home/xbian/rpi-rtl8188eu/8188eu.o
  Building modules, stage 2.
  MODPOST 1 modules
/bin/sh: 1: scripts/mod/modpost: not found
make[1]: *** [__modpost] Error 127
make: *** [modules] Error 2
make: Leaving directory `/home/xbian/rpi-linux'
root@xbian:/home/xbian/rpi-rtl8188eu# 
Edit:

googlin' the last part, I found this:

http://vishnulinux.wordpress.com/2012/0 ... not-found/

and that's what happened:

Code: Select all

root@xbian:/home/xbian/rpi-rtl8188eu# cd /home/xbian/rpi-linux
root@xbian:/home/xbian/rpi-linux# make modules_prepare
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/data.o
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  SHIPPED scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/util.o
  HOSTLD  scripts/dtc/dtc
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
root@xbian:/home/xbian/rpi-linux# cp ../rpi-firmware/extra/Module.symvers .
root@xbian:/home/xbian/rpi-linux# cd ../rpi-rtl8188eu
root@xbian:/home/xbian/rpi-rtl8188eu# CONFIG_RTL8188EU=m make -C ../rpi-linux M=`pwd`
make: Entering directory `/home/xbian/rpi-linux'
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/xbian/rpi-rtl8188eu/8188eu.mod.o
  LD [M]  /home/xbian/rpi-rtl8188eu/8188eu.ko
make: Leaving directory `/home/xbian/rpi-linux'
root@xbian:/home/xbian/rpi-rtl8188eu# sudo rmmod 8188eu
Error: Module 8188eu is not currently loaded
root@xbian:/home/xbian/rpi-rtl8188eu# 

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 2:36 pm

Looks like the driver module, 8188eu.ko, has finally been compiled so then you need to install it using the commands

Code: Select all

install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
depmod -a
These commands assume you are running as root user and are in the directory /home/xbian/rpi-rtl8188eu where the file 8188eu.ko is located.

If the driver is OK then the insmod command should complete without any error.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 2:40 pm

MrEngman wrote:Looks like the driver module, 8188eu.ko, has finally been compiled so then you need to install it using the commands

Code: Select all

install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
depmod -a
These commands assume you are running as root user and are in the directory /home/xbian/rpi-rtl8188eu where the file 8188eu.ko is located.

If the driver is OK then the insmod command should complete without any error.


MrEngman
I assume that probably the driver is not ok because:

Code: Select all

root@xbian:/home/xbian/rpi-rtl8188eu# install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
root@xbian:/home/xbian/rpi-rtl8188eu# insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
Error: could not insert module /lib/modules/3.9.8+/kernel/drivers/net/wireless/8188eu.ko: Invalid module format

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 3:24 pm

Correct. For some reason the running kernel doesn't like the driver.

I think the first thing to try is to recompile the driver. This is because you configured the kernel and then ran the driver compile that failed then ran the kernel config again then the driver compile again but did not completely recompile the driver.

To recompile the driver from scratch you first need to run the command make clean. This will re-initialise the driver source and then run the driver make command again. Then try installing it again.

I would also recommend using the full path name to the Linux source in the make command e.g.

Code: Select all

CONFIG_RTL8188EU=m make -C /home/xbian/rpi-linux M=`pwd`
If you continue to get the same error it is likely the kernel source you are using is not the same used to compile the kernel you are running or the .config or Module.symvers files may not be right.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 3:49 pm

It seems to have compiled correctly:

Code: Select all

root@xbian:/home/xbian/rpi-rtl8188eu# CONFIG_RTL8188EU=m make -C /home/xbian/rpi-linux M=`pwd`
make: Entering directory `/home/xbian/rpi-linux'
  LD      /home/xbian/rpi-rtl8188eu/built-in.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_cmd.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_security.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_debug.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_io.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_ioctl_query.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_ioctl_set.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_ieee80211.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_mlme.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_mlme_ext.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_wlan_util.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_pwrctrl.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_rf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_recv.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_sta_mgt.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_xmit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_p2p.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_br_ext.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_iol.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/rtw_led.o
  CC [M]  /home/xbian/rpi-rtl8188eu/core/efuse/rtw_efuse.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/hal_intf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/hal_com.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_hal_init.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_phycfg.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_rf6052.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_dm.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_rxdesc.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_cmd.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/usb_halinit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/rtl8188eu_led.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/rtl8188eu_xmit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/rtl8188eu_recv.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/usb/usb_ops_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_xmit.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/rtl8188e_sreset.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm_debug.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm_interface.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm_HWConfig.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/odm.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/HalPhyRf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalHWImg8188E_MAC.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalHWImg8188E_BB.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalHWImg8188E_RF.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/Hal8188EFWImg_CE.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/HalPhyRf_8188e.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/odm_RegConfig8188E.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/Hal8188ERateAdaptive.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/OUTSRC/rtl8188e/odm_RTL8188E.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/HalPwrSeqCmd.o
  CC [M]  /home/xbian/rpi-rtl8188eu/hal/rtl8188e/Hal8188EPwrSeq.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/osdep_service.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/os_intfs.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/usb_intf.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/ioctl_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/xmit_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/mlme_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/recv_linux.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/xbian/rpi-rtl8188eu/os_dep/linux/rtw_android.o
  LD [M]  /home/xbian/rpi-rtl8188eu/8188eu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/xbian/rpi-rtl8188eu/8188eu.mod.o
  LD [M]  /home/xbian/rpi-rtl8188eu/8188eu.ko
make: Leaving directory `/home/xbian/rpi-linux'
But after that:

Code: Select all

root@xbian:/home/xbian/rpi-rtl8188eu# rmmod 8188eu
Error: Module 8188eu is not currently loaded
root@xbian:/home/xbian/rpi-rtl8188eu# install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
root@xbian:/home/xbian/rpi-rtl8188eu# insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
Error: could not insert module /lib/modules/3.9.8+/kernel/drivers/net/wireless/8188eu.ko: Invalid module format

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 8:31 pm

This is a typical error if the Linux source is not the same as used to make the running kernel. However, it could also be caused by .config not matching the settings used to compile the running kernel or the Module.symvers file is not the same as the running kernel used.

Where did you get the Linux source from and the Module.symvers file?


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Fri Aug 30, 2013 8:51 pm

MrEngman wrote:This is a typical error if the Linux source is not the same as used to make the running kernel. However, it could also be caused by .config not matching the settings used to compile the running kernel or the Module.symvers file is not the same as the running kernel used.

Where did you get the Linux source from and the Module.symvers file?


MrEngman
The Linux source, if I understand your question, is the last version of xbian (xbian 1.0 beta 1.1), that you can find here http://www.xbian.org/download/.
For the Module.symvers file, actually when I first ran

Code: Select all

make modules_prepare
it couldn't find it, and I read somewhere that I should first ran

Code: Select all

make modules
. But I don't know where it comes from.

Edit:

I read it here: http://unix.stackexchange.com/questions ... le-symvers

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Sat Aug 31, 2013 3:05 pm

Well I tried downloading the Xbian Linux source from the github to try and compile the 8188eu driver and had various problems unzipping the source as it didn't appear to load correctly and generated some really odd errors. Tried compiling anyway and the tools needed to compile don't appear to be installed either so not much help.

Do you have a list of tools I need to load to compile code? And how did you get a copy of the source installed?

Anyway had a look at the Xbian forum and found this http://forum.xbian.org/thread-1114.html. At the end of the tread is a pointer to a compiled version 8188eu driver and it loads OK.

Save you having to compile your own, mind you I would find it useful to be able to do that somehow if I can get the source and necessary tools loaded.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Sat Aug 31, 2013 3:21 pm

MrEngman wrote:Well I tried downloading the Xbian Linux source from the github to try and compile the 8188eu driver and had various problems unzipping the source as it didn't appear to load correctly and generated some really odd errors. Tried compiling anyway and the tools needed to compile don't appear to be installed either so not much help.

Do you have a list of tools I need to load to compile code? And how did you get a copy of the source installed?
I had some problem trying to use the installer for osx that you finde in the link above... so I downloaded directly the xbian image (you can find the link at the bottom of the page of download in the website of xbian) and I installed it manually following the old instructions given by the RPI site before NOOBS.
After that I needed to install just git and the development tools to use make command.
MrEngman wrote:Anyway had a look at the Xbian forum and found this http://forum.xbian.org/thread-1114.html. At the end of the tread is a pointer to a compiled version 8188eu driver and it loads OK.

Save you having to compile your own, mind you I would find it useful to be able to do that somehow if I can get the source and necessary tools loaded.

MrEngman
I will give it a try then, to me the most important thing is to get the adapter working... also because actually I don't understand very well what I am doing when I give all those commands to compile the driver :roll:
Anyway thank you very much for your help... Now I will try to install this :D

robertjordan
Posts: 24
Joined: Tue Apr 09, 2013 8:09 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Sat Aug 31, 2013 5:18 pm

It works perfectly, thank you

animal
Posts: 10
Joined: Fri Jul 06, 2012 1:46 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Mon Sep 09, 2013 8:03 pm

Same problem here:

Retrieved:

> wget https://dl.dropboxusercontent.com/u/802 ... 209.tar.gz
---
> modprobe 8188eu
ERROR: could not insert '8188eu': Exec format error

> uname -a:
Linux raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux

I'm lost, does anybody have an idea where to get the correct driver ?

Regards
Gerd

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Mon Sep 09, 2013 8:14 pm

This is what you're looking for https://dl.dropboxusercontent.com/u/802 ... 830.tar.gz

Install with

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20130830.tar.gz
tar -zxvf 8188eu-20130830.tar.gz
sudo install -p -m 644 8188eu.ko /lib/modules/3.6.11+/kernel/drivers/net/wireless
sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -a
MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

animal
Posts: 10
Joined: Fri Jul 06, 2012 1:46 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Tue Sep 10, 2013 7:05 pm

Thank you so much MrEngman !

Works like a charm and saved me hours, highly appreciated !

Best regards
Gerd

Aiexis
Posts: 15
Joined: Tue Feb 19, 2013 1:54 pm

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Thu Sep 12, 2013 9:38 am

hello
still doesn't work for me :(
$ uname -a
Linux madeinvideo 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux

$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

No wlan appears in ifconfig.
$ sudo ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1

I have followed the tutorial above to install the last 8188eu.ko driver.
(no error occurs, and no dmesg error message with this new driver)

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Thu Sep 12, 2013 9:59 am

[quote="Aiexis"]hello
still doesn't work for me :(
$ uname -a
Linux madeinvideo 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux

$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

No wlan appears in ifconfig.
$ sudo ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1

I have followed the tutorial above to install the last 8188eu.ko driver.
(no error occurs, and no dmesg error message with this new driver)[/quote]

The wifi you have doesn't use the 8188eu.ko driver. it uses the RTL8188CUS. The driver is rtl8192cu and should appear in the list of modules displayed by command [b]lsmod[/b] as [b]8192cu[/b]

What is the Linux image you are using - I don't recognise it - although the date and time is the same as the standard raspbian image and the rtl8188cus driver is usually compiled in the standard raspbian image.

What do you see if you run command [b]sudo iwlist wlan0 scan[/b]?
What do you see if you run command [b]lsmod[/b]? Do you see 8192cu in the list?


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3523
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: TP-Link TL-WN725N V2 works out of the box on Raspbian

Thu Sep 12, 2013 10:17 am

Aiexis wrote:hello
still doesn't work for me :(
$ uname -a
Linux madeinvideo 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux

$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

No wlan appears in ifconfig.
$ sudo ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1

I have followed the tutorial above to install the last 8188eu.ko driver.
(no error occurs, and no dmesg error message with this new driver)
The wifi you have doesn't use the 8188eu.ko driver. it uses the RTL8188CUS. The driver is rtl8192cu and should appear in the list of modules displayed by command lsmod as 8192cu

What is the Linux image you are using - I don't recognise it - although the date and time is the same as the standard raspbian image and the rtl8188cus driver is usually compiled in the standard raspbian image.

What do you see if you run command sudo iwlist wlan0 scan?
What do you see if you run command lsmod? Do you see 8192cu in the list?


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “Beginners”

Who is online

Users browsing this forum: lmarmisa and 42 guests