LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   wireless set up on a portege m200? (https://www.linuxquestions.org/questions/linux-mint-84/wireless-set-up-on-a-portege-m200-866568/)

thatguy2323 03-05-2011 04:55 AM

wireless set up on a portege m200?
 
I've been using computers since dos 3.1.
Been trying to use Linux for about 10 yrs, quite unsuccessfully.
Although Linux is easier since Live Cd's and now persistent USB's.
I still have never had a completely running linux box.
I usually get a linux half running, no internet or other things not working.Then switch back to widoze

So here I am, still trying to get a fully functional Linux on one of my machines. Most times I try to fix a linux problems, I just run into Linux forums saying " Google it" :banghead: Kinda dumb because that's usually how you get to the forum questions. Needless to say I've never found a good tutorial yet. Still pretty much a noob.


So I finally I registered at one of these forums hoping to get an answer that is not " google it".

My laptop is a portege m200
I'm trying to get the integrated wireless working.
This is about as far as I could get.


user23@user23-PORTEGE-M200 ~ $ mintwifi
-------------------------
* I. scanning WIFI PCI devices...
-- Intel Corporation PRO/Wireless 2915ABG [Calexico2] Network Connection (rev 05)
==> PCI ID = 8086:4223 (rev 05)
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11abg ESSID:off/any
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

-------------------------
* IV. querying ifconfig...
eth0 Link encap:Ethernet HWaddr 00:0e:7b:ac:ab:72
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20e:7bff:feac:ab72/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2521 errors:0 dropped:0 overruns:0 frame:0
TX packets:2034 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2637808 (2.6 MB) TX bytes:261093 (261.0 KB)

eth1 Link encap:Ethernet HWaddr 00:16:6f:53:ef:75
inet6 addr: fe80::216:6fff:fe53:ef75/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:15 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:188 (188.0 B)
Interrupt:11 Base address:0x8000 Memory:fceff000-fcefffff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1200 (1.2 KB) TX bytes:1200 (1.2 KB)

-------------------------
* V. querying DHCP...
[sudo] password for user23:
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/00:16:6f:53:ef:75
Sending on LPF/eth1/00:16:6f:53:ef:75
Listening on LPF/eth0/00:0e:7b:ac:ab:72
Sending on LPF/eth0/00:0e:7b:ac:ab:72
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPREQUEST of 192.168.0.100 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.100 from 192.168.0.1
bound to 192.168.0.100 -- renewal in 5066 seconds.
-------------------------
* VI. querying nslookup google.com...
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: google.com
Address: 74.125.226.80
Name: google.com
Address: 74.125.226.81
Name: google.com
Address: 74.125.226.82
Name: google.com
Address: 74.125.226.83
Name: google.com
Address: 74.125.226.84




Any ideas on what the problem is?


Second problem, I have a alfa usb wifi awus036neh.
It came with a CD. Works great in windows but how to install in linux???
From what I read I think I have to " build it" What's that about? How do I do that?
The CD has a linux file 2009_1110_RT3070_Linux_STA_v2[1].1.2.0.tar.bz2
and also RT2870_LinuxSTA_V2[1].3.0.0.tar.tar.bz2

So what is the difference between a tar.tar.bz2 file and a tar.bz2 file

I extracted the 2009_1110_RT3070_Linux_STA_v2[1].1.2.0.tar.bz2 file to the desktop.The folder has many files including a makefile.

I have been trying to extract the 2009_1110_RT3070_Linux_STA_v2[1].1.2.0.tar.bz2 for two days now with no luck.

Of course must always read the read me.
Even if I don't understand what there talking about


Build Instructions:
====================

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.

2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make
# compile driver source code
# To fix "error: too few arguments to function ”„iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

6> load driver, go to "os/linux/" directory.
#[kernel 2.4]
# $/sbin/insmod rt2870sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up

#[kernel 2.6]
# $/sbin/insmod rt2870sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up



In section 2 it says
2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.


I am assuming that I have to open the makefile with a text editor?
How do I choose a target? Seems to me if I have to choose a target I need something to aim.

And now how do I define the linux kernel source ?
I assume to define it may mean to write it somewhere, not just shout at my computer.

Here is what is in the makefile

RT28xx_MODE = STA
TARGET = LINUX

CHIPSET = 3070

#RT28xx_DIR = home directory of RT28xx source code
RT28xx_DIR = $(shell pwd)
RTMP_SRC_DIR = $(RT28xx_DIR)/RT$(CHIPSET)

#PLATFORM: Target platform
PLATFORM = PC
#PLATFORM = 5VT
#PLATFORM = IKANOS_V160
#PLATFORM = IKANOS_V180
#PLATFORM = SIGMA
#PLATFORM = SIGMA_8622
#PLATFORM = INIC
#PLATFORM = STAR
#PLATFORM = IXP
#PLATFORM = INF_TWINPASS
#PLATFORM = INF_DANUBE
#PLATFORM = BRCM_6358
#PLATFORM = INF_AMAZON_SE
#PLATFORM = CAVM_OCTEON
#PLATFORM = CMPC
#PLATFORM = RALINK_2880

ifeq ($(PLATFORM),5VT)
LINUX_SRC = /project/stable/5vt/ralink-2860-sdk/linux-2.6.17
CROSS_COMPILE = /opt/crosstool/uClibc_v5te_le_gcc_4_1_1/bin/arm-linux-
endif

ifeq ($(PLATFORM),IKANOS_V160)
LINUX_SRC = /home/sample/projects/LX_2618_RG_5_3_00r4_SRC/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),IKANOS_V180)
LINUX_SRC = /home/sample/projects/LX_BSP_VX180_5_4_0r1_ALPHA_26DEC07/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),SIGMA)
LINUX_SRC = /root/sigma/smp86xx_kernel_source_2.7.172.0/linux-2.6.15
CROSS_COMPILE = /root/sigma/smp86xx_toolchain_2.7.172.0/build_mipsel_nofpu/staging_dir/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),SIGMA_8622)
LINUX_SRC = /home/snowpin/armutils_2.5.120.1/build_arm/linux-2.4.22-em86xx
CROSS_COMPILE = /home/snowpin/armutils_2.5.120.1/toolchain/bin/arm-elf-
CROSS_COMPILE_INCLUDE = /home/snowpin/armutils_2.5.120.1/toolchain/lib/gcc-lib/arm-elf/2.95.3
endif

ifeq ($(PLATFORM),INIC)
UCOS_SRC = /opt/uCOS/iNIC_rt2880
CROSS_COMPILE = /usr/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),STAR)
LINUX_SRC = /opt/star/kernel/linux-2.4.27-star
CROSS_COMPILE = /opt/star/tools/arm-linux/bin/arm-linux-
endif

ifeq ($(PLATFORM), RALINK_2880)
LINUX_SRC = /project/stable/RT288x/RT288x_SDK/source/linux-2.4.x
CROSS_COMPILE = /opt/buildroot-gdb/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
CROSS_COMPILE =
endif

ifeq ($(PLATFORM),IXP)
LINUX_SRC = /project/stable/Gmtek/snapgear-uclibc/linux-2.6.x
CROSS_COMPILE = arm-linux-
endif

ifeq ($(PLATFORM),INF_TWINPASS)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /project/stable/twinpass/release/2.0.1/source/kernel/opensource/linux-2.4.31/
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),INF_DANUBE)
LINUX_SRC = /opt/danube/sdk/linux-2.6.16.x
CROSS_COMPILE = mips-linux-
ROOTDIR = /opt/danube/sdk
export ROOTDIR
endif

ifeq ($(PLATFORM),BRCM_6358)
LINUX_SRC =
CROSS_COMPILE =
endif

ifeq ($(PLATFORM),INF_AMAZON_SE)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /backup/ifx/3.6.2.2/source/kernel/opensource/linux-2.4.31
#CROSS_COMPILE = mips-linux-
#LINUX_SRC = /project/Infineon/3.6.2.2/source/kernel/opensource/linux-2.4.31
CROSS_COMPILE = /opt/uclibc-toolchain/ifx-lxdb-1-2-3-external/gcc-3.3.6/toolchain-mips/R0208V35/mips-linux-uclibc/bin/
endif

ifeq ($(PLATFORM),ST)
LINUX_SRC = /opt/STM/STLinux-2.2/devkit/sources/kernel/linux0039
CROSS_COMPILE = /opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux-
ARCH := sh
export ARCH
endif

ifeq ($(PLATFORM),CAVM_OCTEON)
OCTEON_ROOT = /usr/local/Cavium_Networks/OCTEON-SDK
LINUX_SRC = $(OCTEON_ROOT)/linux/kernel_2.6/linux
CROSS_COMPILE = mips64-octeon-linux-gnu-
endif

ifeq ($(PLATFORM),CMPC)
LINUX_SRC = /opt/fvt_11N_SDK_0807/fvt131x_SDK_11n/linux-2.6.17
CROSS_COMPILE =
endif

export RT28xx_DIR RT28xx_MODE LINUX_SRC CROSS_COMPILE CROSS_COMPILE_INCLUDE PLATFORM RELEASE CHIPSET RTMP_SRC_DIR LINUX_SRC_MODULE TARGET

all: build_tools $(TARGET)


build_tools:
make -C tools
$(RT28xx_DIR)/tools/bin2h

test:
make -C tools test

UCOS:
make -C os/ucos/ MODE=$(RT28xx_MODE)
echo $(RT28xx_MODE)


LINUX:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
cp -f os/linux/Makefile.4 $(RT28xx_DIR)/os/linux/Makefile
make -C $(RT28xx_DIR)/os/linux/
cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.o /tftpboot
else
cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
make -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko /tftpboot
endif

clean:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
cp -f os/linux/Makefile.4 os/linux/Makefile
else
cp -f os/linux/Makefile.6 os/linux/Makefile
endif
make -C os/linux clean
rm -rf os/linux/Makefile
endif
ifeq ($(TARGET), UCOS)
make -C os/ucos clean MODE=$(RT28xx_MODE)
endif

uninstall:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
make -C $(RT28xx_DIR)/os/linux -f Makefile.4 uninstall
else
make -C $(RT28xx_DIR)/os/linux -f Makefile.6 uninstall
endif
endif

install:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
make -C $(RT28xx_DIR)/os/linux -f Makefile.4 install
else
make -C $(RT28xx_DIR)/os/linux -f Makefile.6 install
endif
endif

libwapi:
make -C $(RT28xx_DIR)/os/linux -f Makefile.libwapi


What is an ifeq and ineq, I assume endif means ending in difficulty.:scratch:

Thank you for your help.

jrtayloriv 03-05-2011 01:39 PM

First off, if you've been struggling for years to even get a working Linux system installed, then you need to choose a different Linux distribution. Most quality desktop distributions can be installed easily and quickly by just about anyone.

You can install Ubuntu within a few minutes through a GUI installer. Is there any reason why you don't want to use Ubuntu or some other easily installable distro?

Your wireless will work out of the box on Ubuntu -- you won't have to do anything special. It will just work. You'll spend less time installing Ubuntu than you will debugging this problem. Again, though, I'm assuming you don't have a good reason for using a distro where a common wireless card doesn't just work. (Please correct me if this is wrong)

thatguy2323 03-05-2011 04:33 PM

No answers only questions
 
Hello jrtayloriv

What makes you think I have tried only one distribution ?
I must have about 50 CD's with Linux distros on them.
Several versions of Ubuntu, Kanotix, Knoppix, Zen Linux, Backtrack, PCLinuxOS, Slax and much more. Often when a new distribution comes out, I'll try it to see how it works.


<quote>
Is there any reason why you don't want to use Ubuntu or some other easily installable distro?
</quote>

Why do you assume I have never tried Ubuntu or some other easy installable distro ? After all these years trying to learn Linux do you really think I only tried Mint ?
Of course I have tried Ubuntu, one of my reasons for trying Mint, is that it's Ubuntu based.
BTW I'm now working on Mint 10.10.


I registered on this forum hoping to get some questions answered, not to be told to do something else.:rolleyes:

jrtayloriv 03-05-2011 08:38 PM

The reason I assumed that you might need to use a distro that's easier to work with is that you said this:
Quote:

Been trying to use Linux for about 10 yrs, quite unsuccessfully.
Although Linux is easier since Live Cd's and now persistent USB's.
I still have never had a completely running linux box.
I usually get a linux half running, no internet or other things not working.Then switch back to widoze

So here I am, still trying to get a fully functional Linux on one of my machines.
If you hadn't spent half of your post (excluding the makefiles and other things you posted) complaining about spending years trying, and still being unable to get a working Linux system up, then maybe you wouldn't have gotten advice on how to get a Linux system up. If you don't want people to tell you to "do something else", as you put it, then don't start bitching about how you've been failing at something for years. If you tell people that you've failed at something for years, do you expect them to tell you to keep doing what you've been doing? You said you've been failing for years to get Linux installed, so I told you how stop failing. Is that unreasonable?

Also, it's likely that the reason you are getting "just Google it" answers is that you are not asking good questions. What have you done to try to get your card working? What error messages did you get, if any? Can you point us to some things you've read when you Googled for "mint linux intel 2915abg no network" and other such things?

Can you perhaps share some of the things you've tried so far, and what happened?

Habitual 03-09-2011 02:46 PM

In terminal, run these and let us know...
Code:

inxi -N
and
Code:

sudo jockey-text -l

thatguy2323 03-10-2011 04:47 PM

Hello jrtayloriv

I agree with you; I am probably asking the wrong questions, therefore not getting the answers I need. Using your suggestion I did get lots of new information, but alas still no wireless.
I tried this page http://ipw3945.sourceforge.net/INSTALL
I'm still stuck on " Configure your AP using iwconfig"

Hello Habitual
using those commands I get

user23@user23-PORTEGE-M200 ~ $ inxi -N
Network: Card-1 Intel PRO/Wireless 2915ABG [Calexico2] Network Connection driver ipw2200
Card-2 Intel 82801DB PRO/100 VE (MOB) Ethernet Controller driver e100
user23@user23-PORTEGE-M200 ~ $ sudo jockey-text -l
[sudo] password for user23:
xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)
xorg:nvidia_96 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)


using iwconfig I get

user23@user23-PORTEGE-M200 ~ $ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11abg ESSID:"XoXoXo"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

I think maybe it has to do with AP not associated
I tried putting the key in but didn't figure that one out yet

user23@user23-PORTEGE-M200 ~ $ iwconfig --help
Usage: iwconfig [interface]
interface essid {NNN|any|on|off}
interface mode {managed|ad-hoc|master|...}
interface freq N.NNN[k|M|G]
interface channel N
interface bit {N[k|M|G]|auto|fixed}
interface rate {N[k|M|G]|auto|fixed}
interface enc {NNNN-NNNN|off}
interface key {NNNN-NNNN|off}
interface power {period N|timeout N|saving N|off}
interface nickname NNN
interface nwid {NN|on|off}
interface ap {N|off|auto}
interface txpower {NmW|NdBm|off|auto}
interface sens N
interface retry {limit N|lifetime N}
interface rts {N|auto|fixed|off}
interface frag {N|auto|fixed|off}
interface modulation {11g|11a|CCK|OFDMg|...}
interface commit

I tried setting AP to auto but that didn't work
Tried setting key but that don't work, why is key NNNN-NNNN ?

Thanks for your help

jrtayloriv 03-10-2011 06:28 PM

What happens when you run try to get an IP address via DHCP? If you're using Mint, it will be sudo dhclient eth1, I believe.

(Much clearer question, by the way.)

thatguy2323 03-10-2011 06:51 PM

working now
 
Woo Hoo I finally got her going.

I decided to try again in the control center>network connections
Just put in the essid and password and she started up.
It seems my fiddling did something, that strategy didn't work last time I tried it.

user23@user23-PORTEGE-M200 ~ $ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11abg ESSID:"XoXoXo"
Mode:Managed Frequency:2.412 GHz Access Point: 00:21:91:D9:39:2B
Bit Rate:54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=91/100 Signal level=-38 dBm Noise level=-90 dBm
Rx invalid nwid:0 Rx invalid crypt:21 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:1



Thanks for all your help
Learning Linux is a long slow process for me.
Now to try and learn how to set up my Alfa awus0306neh.
It'll probably be a doozy for me, but that's ok; that's why I'm here, to learn.

jrtayloriv 03-10-2011 07:03 PM

Glad you got it figured out. One thing you could do is mark this thread as SOLVED (see the link at the top of this thread), so that other people know that there is a solution here, rather than just an unanswered question. It helps other people who are searching for this question.


All times are GMT -5. The time now is 03:04 PM.