Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Wireless WOes

 
   Soft32 Home -> Linux -> General Discussions RSS
Next:  besite gentoo ,he has many other USB device  
Author Message
Darren Green

External


Since: Oct 30, 2007
Posts: 3



(Msg. 1) Posted: Tue Oct 30, 2007 3:17 am
Post subject: Wireless WOes
Archived from groups: alt>os>linux>gentoo (more info?)

All,

I was pointed towards this newsgroup by alt.os.linux. I wondered if
someone could help me please.

As a newbie I have been trying to setup my Atheros Wireless card
following one or two of the Gentoo Wiki's. I emerged a number of
items, wireless tools etc but to no avail. When I run lspci I receive
the following:

00:03.0 Ethernet controller: Realtek Semiconductor Co Ltd
RTL-8139/8139C/813C+ (rev 10) - My 10/100 Ethernet Card
00:04.0 Ethernet controller: Atheros Communications, Inc AR5212
802.11abg NIC (rev 01) - My Wireless Card

An ifconfig shows:

eth0 - MY LAN Ethernet card present in use
l0 - My loopback address

If I do a iwconfig I get:

lo no wireless extensions
eth0 no wireless extensions
sit0 no wireless extensions

When I run modprobe ath-pci I get the following result:

Warning: Error inserting ath_ha1
(/lib/modules/2.6.22-gentoo-r8/net/ath_ha1.ko): invalid module format
Warning : Error inserting wlan (/lib/modules/2.6.22-gentoo-r8/net/
wlan.ko):
invalid module format
: Error inserting ath_pci (/lib/modules/2.6.22-gentoo-r8/net/
ath_pci.ko) :
invalid module format

I did install the madwifi.tar and run make & make install. This seemed
to compile without any errors but the modprobe gives me the same
result. Completely lost with nowhere to go at the minute Sad

Thank you.

Regards

Darren
Back to top
Login to vote
Darren Green

External


Since: Oct 30, 2007
Posts: 3



(Msg. 2) Posted: Tue Oct 30, 2007 9:32 am
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 30 Oct, 20:23, "Arthur Hagen" <a... DeleteThis @broomstick.com> wrote:
> Darren Green <darrenfgr... DeleteThis @tiscali.co.uk> wrote:
>
> [chop]
>
>
>
> > When I run modprobe ath-pci I get the following result:
>
> > Warning: Error inserting ath_ha1
> > (/lib/modules/2.6.22-gentoo-r8/net/ath_ha1.ko): invalid module format
> > Warning : Error inserting wlan (/lib/modules/2.6.22-gentoo-r8/net/
> > wlan.ko):
> > invalid module format
> >> Error inserting ath_pci (/lib/modules/2.6.22-gentoo-r8/net/
> > ath_pci.ko) :
> > invalid module format
>
> Your kernel doesn't appear to match the modules. Likely reasons:
>
> - You forgot to mount /boot before doing "make install" in /usr/src/linux.
> - You installed from /usr/src/linux-2.6.22-gentoo-r8, but didn't change the
> "linux" symlink in /usr/src to point to this directory ("ln -fs
> /usr/src/linux-2.6.22-gentoo-r8 /usr/src/linux"), making 3rd party modules
> compile against a different kernel version.
>
> Regards,
> --
> *Art

Art,

Can I thank you and the previous poster for the assistance pointing me
in the right direction.

I aim to try and re-compile against a different Kernel tomorrow. I
would typically use Genkernel as I am not that comfortable with
compiling the Kernel in the more traditional manner.

Could I ask how I would determine the correct kernel version to
compile against though. I have what I believe to me the most upto date
kernel on my PC.

Regards

Darren
Back to top
Login to vote
Arthur Hagen

External


Since: Oct 08, 2005
Posts: 23



(Msg. 3) Posted: Tue Oct 30, 2007 11:23 am
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Darren Green <darrenfgreen.TakeThisOut@tiscali.co.uk> wrote:
[chop]
>
> When I run modprobe ath-pci I get the following result:
>
> Warning: Error inserting ath_ha1
> (/lib/modules/2.6.22-gentoo-r8/net/ath_ha1.ko): invalid module format
> Warning : Error inserting wlan (/lib/modules/2.6.22-gentoo-r8/net/
> wlan.ko):
> invalid module format
>> Error inserting ath_pci (/lib/modules/2.6.22-gentoo-r8/net/
> ath_pci.ko) :
> invalid module format

Your kernel doesn't appear to match the modules. Likely reasons:

- You forgot to mount /boot before doing "make install" in /usr/src/linux.
- You installed from /usr/src/linux-2.6.22-gentoo-r8, but didn't change the
"linux" symlink in /usr/src to point to this directory ("ln -fs
/usr/src/linux-2.6.22-gentoo-r8 /usr/src/linux"), making 3rd party modules
compile against a different kernel version.

Regards,
--
*Art
Back to top
Login to vote
Unruh

External


Since: Aug 14, 2005
Posts: 224



(Msg. 4) Posted: Tue Oct 30, 2007 1:01 pm
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Darren Green <darrenfgreen.DeleteThis@tiscali.co.uk> writes:

>All,

>I was pointed towards this newsgroup by alt.os.linux. I wondered if
>someone could help me please.

>As a newbie I have been trying to setup my Atheros Wireless card
>following one or two of the Gentoo Wiki's. I emerged a number of
>items, wireless tools etc but to no avail. When I run lspci I receive
>the following:

>00:03.0 Ethernet controller: Realtek Semiconductor Co Ltd
>RTL-8139/8139C/813C+ (rev 10) - My 10/100 Ethernet Card
>00:04.0 Ethernet controller: Atheros Communications, Inc AR5212
>802.11abg NIC (rev 01) - My Wireless Card

>An ifconfig shows:

>eth0 - MY LAN Ethernet card present in use
>l0 - My loopback address

>If I do a iwconfig I get:

>lo no wireless extensions
>eth0 no wireless extensions
>sit0 no wireless extensions

>When I run modprobe ath-pci I get the following result:

>Warning: Error inserting ath_ha1
>(/lib/modules/2.6.22-gentoo-r8/net/ath_ha1.ko): invalid module format
>Warning : Error inserting wlan (/lib/modules/2.6.22-gentoo-r8/net/
>wlan.ko):

Do you see this line? It says that the module you are trying to install is
invalid. It was probably compiled on a kernel other than the one you are
running, or with a compiler other than the one used to compile your
kernel.


>invalid module format
>: Error inserting ath_pci (/lib/modules/2.6.22-gentoo-r8/net/
>ath_pci.ko) :
>invalid module format

>I did install the madwifi.tar and run make & make install. This seemed
>to compile without any errors but the modprobe gives me the same
>result. Completely lost with nowhere to go at the minute Sad

You need to make sure that the old
/lib/modules/2.6.22-gentoo-r8/net/ath_ha1.ko
is removed, and that the newly compiled module is actually installed and
that depmod is run.


You also need to make sure that the kernel it is compiled for is actually
the one you are running.


>Thank you.

>Regards

>Darren
Back to top
Login to vote
Arthur Hagen

External


Since: Oct 08, 2005
Posts: 23



(Msg. 5) Posted: Wed Oct 31, 2007 3:22 am
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Darren Green <darrenfgreen.DeleteThis@tiscali.co.uk> wrote:
>
> I aim to try and re-compile against a different Kernel tomorrow. I
> would typically use Genkernel as I am not that comfortable with
> compiling the Kernel in the more traditional manner.
>
> Could I ask how I would determine the correct kernel version to
> compile against though. I have what I believe to me the most upto date
> kernel on my PC.

1: Reboot, if you haven't done it since the last time you compiled a
kernel.
2: "uname -a"

Regards,
--
*Art
Back to top
Login to vote
Darren Green

External


Since: Oct 30, 2007
Posts: 3



(Msg. 6) Posted: Wed Oct 31, 2007 5:03 am
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 31 Oct, 12:22, "Arthur Hagen" <a... RemoveThis @broomstick.com> wrote:
> Darren Green <darrenfgr... RemoveThis @tiscali.co.uk> wrote:
>
> > I aim to try and re-compile against a different Kernel tomorrow. I
> > would typically use Genkernel as I am not that comfortable with
> > compiling the Kernel in the more traditional manner.
>
> > Could I ask how I would determine the correct kernel version to
> > compile against though. I have what I believe to me the most upto date
> > kernel on my PC.
>
> 1: Reboot, if you haven't done it since the last time you compiled a
> kernel.
> 2: "uname -a"
>
> Regards,
> --
> *Art

Art,

Thanks gain for the follow up.

I followed the wiki's on how to download an install a new Kernel.
While in /usr/src I untarred it, I ran make, make config etc. NB The
wiki told me to mv linux to linux.old. Ran make modules & make
modules_install.

In /usr/src I did: ln -sfn linux-2.6.23 linux

Now, when I reboot I still have my old Kernel running i.e uname -a =
2.6.22-gentoo-r8.

In the above directory I have

linux
linux.old
linux-2.6.22-gentoo-r8
linux-2.6.23

To complicate this further, Gentoo is on a 2nd Hard Disk. On my
primary I have Windows and PC Linux which has the Grub setting. When I
modify the file from:

kernel (hd1,0)/boot/kernel-2.6.22-gentoo-r8 root=/dev/hdb3

to

kernel (hd1,0)/boot/kernel-2.6.23 root=/dev/hdb3

Error 15: File not found

It doesn't work.

I just want to re-load my Gentoo setup with the correct Kernel so I
can determine if the Wireless now works.

Regards

Darren
Back to top
Login to vote
Mark South

External


Since: Feb 13, 2006
Posts: 144



(Msg. 7) Posted: Wed Oct 31, 2007 7:10 am
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 30 Oct 2007 14:32:11 -0700, Darren Green wrote:

> On 30 Oct, 20:23, "Arthur Hagen" <a... DeleteThis @broomstick.com> wrote:
>> Darren Green <darrenfgr... DeleteThis @tiscali.co.uk> wrote:
>>
>> [chop]
>>
>>
>>
>> > When I run modprobe ath-pci I get the following result:
>>
>> > Warning: Error inserting ath_ha1
>> > (/lib/modules/2.6.22-gentoo-r8/net/ath_ha1.ko): invalid module format
>> > Warning : Error inserting wlan (/lib/modules/2.6.22-gentoo-r8/net/
>> > wlan.ko):
>> > invalid module format
>> >> Error inserting ath_pci (/lib/modules/2.6.22-gentoo-r8/net/
>> > ath_pci.ko) :
>> > invalid module format
>>
>> Your kernel doesn't appear to match the modules. Likely reasons:
>>
>> - You forgot to mount /boot before doing "make install" in /usr/src/linux.
>> - You installed from /usr/src/linux-2.6.22-gentoo-r8, but didn't change the
>> "linux" symlink in /usr/src to point to this directory ("ln -fs
>> /usr/src/linux-2.6.22-gentoo-r8 /usr/src/linux"), making 3rd party modules
>> compile against a different kernel version.
>>
>> Regards,
>> --
>> *Art
>
> Art,
>
> Can I thank you and the previous poster for the assistance pointing me
> in the right direction.
>
> I aim to try and re-compile against a different Kernel tomorrow. I
> would typically use Genkernel as I am not that comfortable with
> compiling the Kernel in the more traditional manner.
>
> Could I ask how I would determine the correct kernel version to
> compile against though. I have what I believe to me the most upto date
> kernel on my PC.

This all sounds very complicated. Can't the OP simply "emerge madwifi" or
something?
Back to top
Login to vote
Arthur Hagen

External


Since: Oct 08, 2005
Posts: 23



(Msg. 8) Posted: Wed Oct 31, 2007 7:10 am
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark South <mark.south DeleteThis @null.invalid> wrote:
> On Tue, 30 Oct 2007 14:32:11 -0700, Darren Green wrote:
>
>> Could I ask how I would determine the correct kernel version to
>> compile against though. I have what I believe to me the most upto
>> date kernel on my PC.
>
> This all sounds very complicated. Can't the OP simply "emerge
> madwifi" or something?

Not unless /usr/src/linux points to the same kernel as he's running -- else
he'll be compiling the drivers against the wrong version.

Regards,
--
*Art
Back to top
Login to vote
Arthur Hagen

External


Since: Oct 08, 2005
Posts: 23



(Msg. 9) Posted: Wed Oct 31, 2007 12:12 pm
Post subject: Re: Wireless WOes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Darren Green <darrenfgreen DeleteThis @tiscali.co.uk> wrote:
> On 31 Oct, 12:22, "Arthur Hagen" <a... DeleteThis @broomstick.com> wrote:
>> Darren Green <darrenfgr... DeleteThis @tiscali.co.uk> wrote:
>>
>>> I aim to try and re-compile against a different Kernel tomorrow. I
>>> would typically use Genkernel as I am not that comfortable with
>>> compiling the Kernel in the more traditional manner.
>>
>>> Could I ask how I would determine the correct kernel version to
>>> compile against though. I have what I believe to me the most upto
>>> date kernel on my PC.
>>
>> 1: Reboot, if you haven't done it since the last time you compiled a
>> kernel.
>> 2: "uname -a"
>>
>> Regards,
>> --
>> *Art
>
> Art,
>
> Thanks gain for the follow up.
>
> I followed the wiki's on how to download an install a new Kernel.
> While in /usr/src I untarred it, I ran make, make config etc. NB The
> wiki told me to mv linux to linux.old. Ran make modules & make
> modules_install.
>
> In /usr/src I did: ln -sfn linux-2.6.23 linux
>
> Now, when I reboot I still have my old Kernel running i.e uname -a =
> 2.6.22-gentoo-r8.

If you have a separate /boot partition, you need to mount it before you put
the new kernel in /boot.

Also, if grub calls /vmlinuz, you need to make a symlink from the kernel you
copied to boot to vmlinuz. (Or just use "make install")

Regards,
--
*Art
Back to top
Login to vote
Display posts from previous:   
Related Topics:
X Font nightmare - The other day I rebooted after eighteen days, and every X font on my system went nuts. Now it's an adventure to see wha...

[gentoo-user] Wireless woes at my university - Hi, At my university wireless access is encrypted using EAP-TTLS (PAP). The university says that to use wireless in..

[gentoo-user] My alsa-driver woes II (my alsa-utils woes) - I emerge alsa-utils. At the end of the emerge it told me that I needed to manually configure /etc/modules.d/alsa. I..

[gentoo-user] Wireless woes after upgrading kernel from ke.. - Hi - my original kernel-genkernel-x86-2.6.15-gentoo-r1 runs wireless fine with ipw2200 and ipw2200-firmware. After..

[gentoo-user] Wireless worked, rebuilt kernel, wireless no.. - Hi, Why would wireless no longer work after rebuilding the kernel to add USB OHCI support only? The title more o...

[gentoo-dev] Wireless driver / firmware ebuilds & wireless.. - Hi, I thought about filing another bug about this, but decided I'd rather whine about it in public to get a better..
       Soft32 Home -> Linux -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]