Welcome! Log In Create A New Profile

Advanced

Strange behaviors of Wheezy/Pogo Mobile with wifi dongle

Posted by twinclouds 
Re: Strange behaviors of Wheezy/Pogo Mobile with wifi dongle
October 12, 2014 11:33PM
Twinclouds,

I thought the Quick starts show a way to capture only this driver code. See the bold parts at the end. Did you run make_drv script?

Section 5 in Quick Start: Integrating Driver Source into Linux Kernel Tree
Quote

This paragraph is for integrating our driver source into Linux kernel tree and building system. If you have no need to do this, simply skip this paragraph.
For compound release driver source, make_drv should be execute to select chip type for the driver source. Please refer to:
“3. Selecting Chip Type with make_drv Script (for compound release)”.
For different chip types, we have different suggestions for <compile_flag> and
<folder_name> to use for the integration process:
5
Chip type

<compile_flag>
<folder_name>
RTL8192CU-series
CONFIG_RTL8192CU
rtl8192cu
RTL8192CE-series

CONFIG_RTL8192CE
rtl8192du

RTL8192DU-series
CONFIG_RTL8192DU
rtl8192du
RTL8192DE-series
CONFIG_RTL8192DE

rtl8192de
RTL8723AS-series
CONFIG_RTL8723AS

rtl8723as
RTL8723AU-series

CONFIG_RTL8723AU
rtl8723au

RTL8189ES-series
CONFIG_RTL8189ES
rtl8189es

RTL8188EU-series
CONFIG_RTL8188EU
rtl8188eu
RTL8723BS-series
CONFIG_RTL8723BS
rtl8723bs

RTL8723BU-series
CONFIG_RTL8723BU

rtl8723bu

Assuming the driver source is for RTL8192CU-series, to integrate driver source into kernel building system, go through the following steps:
1). Copy the driver source folder into drivers/net/wireless/ and rename it as <folder_name>, rtl8192cu.
2). Add the following line into drivers/net/wireless/Makefile, CONFIG_RTL8192CU is for <compile_flag>, rtl8192cu is for <folder_name>:
3). Add the following line into drivers/net/wireless/Kconfig, rtl8192cu is for <folder_name>:
4). Config kernel, for example, with ‘make menuconfig’ command to select ‘y’ or ‘m’ for our driver.
5). Now, you can build kernel with ‘make’ command.


All wireless drivers .c and .h files are stored in the kernel source tree follow this very simple convention. There is only one folder per driver variation, and the only thing should be added is one line to Kconfig and Make file.

For example, the current directory for rtl8192se in kernel source tree:
ll /usr/src/linux-3.14-tld/drivers/net/wireless/rtlwifi/rtl8192se
total 368
drwxrwxr-x 2 root root  4096 Aug 20 21:27 .
drwxrwxr-x 9 root root  4096 Aug 20 21:27 ..
-rw-rw-r-- 1 root root 20893 Mar 30  2014 def.h
-rw-rw-r-- 1 root root 21551 Mar 30  2014 dm.c
-rw-rw-r-- 1 root root  3201 Mar 30  2014 dm.h
-rw-rw-r-- 1 root root 17756 Mar 30  2014 fw.c
-rw-rw-r-- 1 root root  9249 Mar 30  2014 fw.h
-rw-rw-r-- 1 root root 72411 Mar 30  2014 hw.c
-rw-rw-r-- 1 root root  3238 Mar 30  2014 hw.h
-rw-rw-r-- 1 root root  4150 Mar 30  2014 led.c
-rw-rw-r-- 1 root root  1529 Mar 30  2014 led.h
-rw-rw-r-- 1 root root   188 Mar 30  2014 Makefile
-rw-rw-r-- 1 root root 49855 Mar 30  2014 phy.c
-rw-rw-r-- 1 root root  3503 Mar 30  2014 phy.h
-rw-rw-r-- 1 root root 33088 Mar 30  2014 reg.h
-rw-rw-r-- 1 root root 14875 Mar 30  2014 rf.c
-rw-rw-r-- 1 root root  1604 Mar 30  2014 rf.h
-rw-rw-r-- 1 root root 14208 Mar 30  2014 sw.c
-rw-rw-r-- 1 root root  1382 Mar 30  2014 sw.h
-rw-rw-r-- 1 root root 13995 Mar 30  2014 table.c
-rw-rw-r-- 1 root root  1909 Mar 30  2014 table.h
-rw-rw-r-- 1 root root 18543 Mar 30  2014 trx.c
-rw-rw-r-- 1 root root  1963 Mar 30  2014 trx.h

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Strange behaviors of Wheezy/Pogo Mobile with wifi dongle
October 13, 2014 12:05AM
Actually, I cannot find the make_drv script. I think the folder is already eu specific.
I added these two lines into Makefile and Kconfig respectively and run make. It still say there's no build directly as before.
Looking into the Makefile file, it as a platform related section:
###################### Platform Related #######################
CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_JB_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_FS_MX61 = n
CONFIG_PLATFORM_ACTIONS_ATJ227X = n
CONFIG_PLATFORM_TEGRA3_CARDHU = n
CONFIG_PLATFORM_TEGRA4_DALMORE = n
CONFIG_PLATFORM_ARM_TCC8900 = n
CONFIG_PLATFORM_ARM_TCC8920 = n
CONFIG_PLATFORM_ARM_TCC8920_JB42 = n
CONFIG_PLATFORM_ARM_RK2818 = n
CONFIG_PLATFORM_ARM_RK3066 = n
CONFIG_PLATFORM_ARM_RK3188 = n
CONFIG_PLATFORM_ARM_URBETTER = n
CONFIG_PLATFORM_ARM_TI_PANDA = n
CONFIG_PLATFORM_MIPS_JZ4760 = n
CONFIG_PLATFORM_DMP_PHILIPS = n
CONFIG_PLATFORM_TI_DM365 = n
CONFIG_PLATFORM_MSTAR_TITANIA12 = n
CONFIG_PLATFORM_MSTAR = n
CONFIG_PLATFORM_SZEBOOK = n
CONFIG_PLATFORM_ARM_SUNxI = n
CONFIG_PLATFORM_ARM_SUN6I = n
CONFIG_PLATFORM_ARM_SUN7I = n
CONFIG_PLATFORM_ARM_SUN8I = n
CONFIG_PLATFORM_ACTIONS_ATM702X = n
CONFIG_PLATFORM_ACTIONS_ATV5201 = n
CONFIG_PLATFORM_ARM_RTD299X = n
CONFIG_PLATFORM_ARM_SPREADTRUM_6820 = n
CONFIG_PLATFORM_ARM_SPREADTRUM_8810 = n
I386_PC was selected and that is not right obviously. There are so many ARM related lines, do you know which one corresponds to the processor used in Dockstar?
Re: Strange behaviors of Wheezy/Pogo Mobile with wifi dongle
October 13, 2014 12:59AM
Twinclouds,

I did not recognize any of the ARM configs in this file that can be used for Marvell Kirkwood.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Strange behaviors of Wheezy/Pogo Mobile with wifi dongle
October 13, 2014 01:22AM
I guess that's the problem.
Does RPi uses the same processor as Dockstar/Pogo Mobile?
Re: Strange behaviors of Wheezy/Pogo Mobile with wifi dongle
October 13, 2014 01:33AM
twinclouds Wrote:
-------------------------------------------------------
> I guess that's the problem.
> Does RPi uses the same processor as Dockstar/Pogo
> Mobile?

No, RPI is Broadcom.

But I think you should attempt to run make_drv. I hope it will prompt you for platform type, then you'll know for sure if it's support or not.

Other thought: did you check Realtek website for this driver?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 10/13/2014 01:35AM by bodhi.
Re: Strange behaviors of Wheezy/Pogo Mobile with wifi dongle
April 05, 2016 02:21PM
shared on forum.armbian.com
http://forum.armbian.com/index.php/topic/591-wlan0-only-works-when-eth0-plugged-in/#entry7290

twinclouds Wrote:
-------------------------------------------------------
> Gravelrash, Bodhi:
> Thank you both again.
> I tried a few of the suggestions. They mostly
> work when giving the commands but not after
> restarting. I found the most reliable way is put
> the following commands in the rc.local before
> exist:
>
> sleep 5
> if ifconfig wlan0 | grep "inet addr:" ; then
>   ifconfig eth0 down
>   route add default gw 192.168.2.1
> fi
>
> It may not be the proper way to program but it
> seems serving my purpose fine. I don't know why
> but I can still access my eth0 ip even the cable
> is not connected.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: