Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#16
No joy using ksplice

Code: Select all

root@antiX1:/aufs/home/demo# exit
exit
demo@antiX1:/aufs/home/demo$ ksplice-create --build-modules --git=*COMMIT* *Kernel_Source
Can't locate Git.pm in @INC (@INC contains: /usr/share/ksplice /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 .) at /usr/bin/ksplice-create line 58.
demo@antiX1:/aufs/home/demo$ ksplice-create --build-modules --prebuild *KERNEL_SOURCE*
Failed to find ORIG_CONFIG directory (/aufs/home/demo/*KERNEL_SOURCE*/ksplice) at /usr/bin/ksplice-create line 73.
demo@antiX1:/aufs/home/demo$ ksplice-create --build-modules --patch=*PATCH_FILE* *KERNEL_SOURCE*
Failed to find ORIG_CONFIG directory (/aufs/home/demo/*KERNEL_SOURCE*/ksplice) at /usr/bin/ksplice-create line 73.
demo@antiX1:/aufs/home/demo$ 
They want you to buy this anyhows. Plus No graphical interface for Debian. Just a graphical interface for Ubuntu.
I am probably gonna hafta compile rtl8187se from source. Time to install build-essential.

Soo much for ksplice OHH __{{emoticon}}__
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#17
Damn. I wonder if running live mepis-2.6.32-1 kernel is killing this also. I have build-essential installed. And below is the command from the read me file to install rtl8187se tar fie (which I extracted and opened terminal as root inside of extracted foldeer) . Doing this from demo directory where source and extracted file is located if that makes any difference. The read me says
RTL8187SE Linux Driver v1000.1220.2007 for linux kernel 2.6

- Support Client mode for either infrastructure or adhoc mode
- Support WEP and WPA/WPA2 PSK connection
- Support WMM

===============================================================================================
< Component >
The driver is composed of several parts:

(1)Script ot build the modules
makedrv

(2)Script to load/unload modules
wlan0up
wlan0down

(3)Script and configuration for DHCP
wlan0dhcp
ifcfg-wlan0

(4)Supplicant source code
wpa_supplicant-0.5.3.tar.gz

(5)Example of supplicant configuration file
wpa1.conf




< Installation >
Running the scripts can finish all operations of building up modules from source code and start the nic:

(1)Build up the driver from the source code
./makedrv

(2)Load the driver module to kernel and start up nic
./wlan0up
(if"insmod: error inserting 'r8180.ko': -File exists." met,
./wlan0down
./wlan0up
should be OK.
)
(3)Refer to < Set wireless lan MIBs > to set Wireless LAN specific parameters.

< Set wireless lan MIBs >
This driver uses Wireless Extension as an interface allowing you to set
Wireless LAN specific parameters.

Current driver supports"iwlist" to show the device status of nic

iwlist wlan0 [parameters]
where

parameter explaination [parameters]
----------------------- -------------
Show available chan and freq freq / channel
Show and Scan BSS and IBSS scan[ning]
Show supported bit-rate rate / bit[rate]
Show Power Management mode power

For example:

iwlist wlan0 channel
iwlist wlan0 scan
iwlist wlan0 rate
iwlist wlan0 power


Driver also supports"iwconfig", manipulate driver private ioctls, to set MIBs.

iwconfig wlan0 [parameters] [val]
where

parameter explaination [parameters] [val] constraints
----------------------- ------------- ------------------
Connect to AP by address ap [essid]
Set the essid, join (I)BSS essid [mac_addr]
Set operation mode mode {Managed|Ad-hoc}
Set keys and security mode key / enc[ryption] {N|open|restricted|off}


For example:

iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
iwconfig wlan0 essid"ap_name"
iwconfig wlan0 mode Ad-hoc
iwconfig wlan0 mode essid"name" mode Ad-hoc
iwconfig wlan0 key 0123456789 [2] open
iwconfig wlan0 key off
iwconfig wlan0 key restricted [3] 0123456789

< Getting IP address >
After start up the nic, the network needs to obtain an IP address before transmit/receive data.
This can be done by setting the static IP via"ifconfig wlan0 IP_ADDRESS" command, or using DHCP.

If using DHCP, setting steps is as below:

(1)connect to an AP via"iwconfig" settings
iwconfig wlan0 essid [name] or
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX

(2)run the script which run the dhclient
./wlan0dhcp
or
dhcpcd wlan0
(Some network admins require that you use the
hostname and domainname provided by the DHCP server.
In that case, use
dhcpcd -HD wlan0)



< WPAPSK >
WPA_SUPPLICANT help the network to communicate under the protection of WPAPSK mechanism

(1)Unpack source code of WPA supplicant:
tar -zxvf wpa_supplicant-0.4.9.tar.gz
cd wpa_supplicant-0.4.9

(2)Create .config file:
cp defconfig .config

(3)Edit .config file, uncomment the following line:
#CONFIG_DRIVER_IPW=y.

(4)Build WPA supplicant:
make

If make error for lack of <include/md5.h>, install the openssl lib:
1. Install the openssl lib from corresponding installation disc:
Fedora Core 2/3/4/5(openssl-0.9.71x-xx), Mandrake10.2/Mandriva10.2(openssl-0.9.7x-xmdk),
Debian 3.1(libssl-dev), Suse 9.3/10.0/10.1(openssl_devl), Gentoo(dev-libs/openssl), etc.
2. Download the openssl open source package from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.openssl.org"
linktext was:"http://www.openssl.org"
====================================
, build and install it.

(5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
For example, the following setting in"wpa1.conf" means SSID to join is"BufAG54_Ch6"
and its passphrase is"87654321".

network={
ssid="BufAG54_Ch6"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="87654321"
priority=2
}
Note: 1. proto=WPA for WPA, proto=RSN for WPA2.
2. If you want to connect an AP which works under WPA2 mixed mode, you'd better
use Realtek customed wpa_supplicant package.


(6)Execute WPA supplicant (Assume 8185 and related modules had been loaded):
./wpa_supplicant -D ipw -c wpa1.conf -i wlan0 &

Code: Select all

demo@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008$ su
Password: 
root@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008# ./makedrv
rm -f *.mod.c *.mod *.o .*.cmd *.ko  *~
rm -rf /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/tmp
make -C /lib/modules/2.6.32-1-mepis-smp/build M=/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211 CC=gcc modules
make[1]: Entering directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
/bin/bash: /aufs/usr/src/linux-headers-2.6.32-1-common/scripts/gcc-x86_32-has-stack-protector.sh: No such file or directory
/aufs/usr/src/linux-headers-2.6.32-1-common/arch/x86/Makefile:81: stack protector enabled but no compiler support
  CC [M]  /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/dot11d.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/dot11d.h:4,
                 from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/dot11d.c:11:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
  CC [M]  /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.c:17:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_complete’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_softmac.c:1969: warning: array subscript is above array bounds
  CC [M]  /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_rx.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_rx.c:46:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
  CC [M]  /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_tx.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_tx.c:56:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
  CC [M]  /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_wx.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_wx.c:37:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
  CC [M]  /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.c:55:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.c: In function ‘alloc_ieee80211_rtl’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.c:116: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
make[4]: *** [/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211/ieee80211_module.o] Error 1
make[3]: *** [_module_/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/ieee80211] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
make: *** [modules] Error 2
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/tmp
make -C /lib/modules/2.6.32-1-mepis-smp/build M=/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185 CC=gcc modules
make[1]: Entering directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
/bin/bash: /aufs/usr/src/linux-headers-2.6.32-1-common/scripts/gcc-x86_32-has-stack-protector.sh: No such file or directory
/aufs/usr/src/linux-headers-2.6.32-1-common/arch/x86/Makefile:81: stack protector enabled but no compiler support
  CC [M]  /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.o
In file included from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180.h:44,
                 from /aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:67:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/ieee80211.h: In function ‘ieee80211_priv’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/ieee80211.h:1489: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c: In function ‘rtl8180_shutdown’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:199: error: ‘struct net_device’ has no member named ‘stop’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c: In function ‘rtl8180_init’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:4582: error: ‘struct net_device’ has no member named ‘get_stats’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c: In function ‘rtl8180_pci_probe’:
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5967: error: ‘struct net_device’ has no member named ‘open’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5968: error: ‘struct net_device’ has no member named ‘stop’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5970: error: ‘struct net_device’ has no member named ‘tx_timeout’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5972: error: ‘struct net_device’ has no member named ‘do_ioctl’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5973: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.c:5974: error: ‘struct net_device’ has no member named ‘set_mac_address’
make[4]: *** [/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185/r8180_core.o] Error 1
make[3]: *** [_module_/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008/rtl8185] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/aufs/usr/src/linux-headers-2.6.32-1-mepis-smp'
make: *** [modules] Error 2
root@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008# ./wlan0up
insmod: can't read 'ieee80211_crypt-rtl.ko': No such file or directory
insmod: can't read 'ieee80211_crypt_wep-rtl.ko': No such file or directory
insmod: can't read 'ieee80211_crypt_tkip-rtl.ko': No such file or directory
insmod: can't read 'ieee80211_crypt_ccmp-rtl.ko': No such file or directory
insmod: can't read 'ieee80211-rtl.ko': No such file or directory
insmod: can't read 'r8180.ko': No such file or directory
wlan0: ERROR while getting interface flags: No such device
root@antiX1:/aufs/home/demo/rtl8187se_linux_26.1023.0928.2008# 
Bangs head against wall __{{emoticon}}__
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#18
When I mentioned module-assistant it was because of this quote of yours in the first post:
source for RT2860 wireless adapter kernel module

RT2860 is a wireless adapter found particularly in the ASUS EeePC model
901 and above. The package contains the source of a Linux kernel module for
it.

The source is ready to be compiled using module-assistant.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#19
That was a quote from the webpage secipolla. It don't matter anyhows. After all afternoon of googling.
I decided to go the ndiswrapper route. And guess what. I loaded the windows xp inf. file from realteks driver
download page (the only driver they had available at realtek was a windows driver.

I installed ndisgtk and used it to install windows driver.

the rest of what I did is in termreadout zip file below.



Got the driver from


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=40&Level=5&Conn=4&ProdID=172&DownTypeID=3&GetDown=false&Downloads=true"
linktext was:"http://www.realtek.com.tw/downloads/dow ... loads=true"
====================================


I tried every open source way of doing this first I guess. This is the first time I ever used
ndiswrapper for anything.

Running wireless now.

Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#20
Now Rok, that's what I call persistence, glad you got it going. __{{emoticon}}__
I'm doing a kernel compile, well trying anyway, we'll see how it goes, I'm pretty hardheaded too,

cheers,
oldhoghead
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#21
Thanks OHH and everybody else that gave me pointers and helped me learn new ways to try things like
Anti, Secipolla, etc.......

I now have ndiswrapper loading on reboot after doing on reboot in terminal as root

Code: Select all

echo ndiswrapper >> /etc/modules
So for anybody Thinking of doing a Frugal AntiX 8.5 install to a flash drive and need to get wireless working on a Asus EEEPC 701SD with a rtl8187se wireless chipset. I havve found that using ndiswrapper is the easiest way to go for the Mepis 2.6.32-1 kernel. Remember. this is only for the frugal AntiX install with persistence. You will probably not have to jump through the hoops I did on a full install of AntiX 8.5 as a kernel upgrade is a possibility of gettng the rt8187se module included in one of the liquorix kernels via smxi or synaptic after doing a apt-get update.

Happy Trails Rok