You are not logged in.

#1 2007-10-23 20:12:44

pedepy
Member
Registered: 2007-02-21
Posts: 198

kernel module not compiling since upgrade

so since i have upgraded to 2.6.23, my ethernet card's kernel module will not compile. It is the et131x driver, and it used to run ok under other kernels. Now when I try to run make, I get the follwing output:


#@make - C /lib/modules/2.6.23-ARCH/build M=/src/et131-2/et131x-1.2.3 modules
make[1]: Entering directory `/usr/src/linux-2.6.23-ARCH'
  CC [M]  /src/et131-2/et131x-1.2.3/et131x_main.o
In file included from /src/et131-2/et131x-1.2.3/et131x_adapter.h:85,
         from /src/et131-2/et131x-1.2.3/et131x_main.c:116:
/src/et131-2/et131x-1.2.3/ET1310_rx.h:441: error: expected specifier-qualifier-list before 'kmem_cache_t'
make[2]: *** [/src/et131-2/et131x-1.2.3/et131x_main.o] Error 1
make[1]: *** [_module+/src/et131-2/et131x-1.2.3] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-ARCH'
make: *** [modules] Error 2

by any chance would anyone know if this is something related to the kernel upgrade or that the driver code itself as an issue. For now its not biggie cause i tend to use wifi more than anything anyway .. but its still annoying you know ?

thank you smile


chupocabra ... psupsuspsu psu psu

Offline

#2 2007-10-23 20:30:24

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: kernel module not compiling since upgrade

Wasn't there a similar thread for the .21 -> .22 upgrade? wink

The issue here is that et131x is not being kept in sync with new kernel releases, something which is essential for any project that provides a kernel module. You will need to have a look around to see if anyone has come up with a patch for it - you could also ask on the et131x forum, part of the project's sf.net site.

Offline

#3 2007-11-07 14:07:27

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

Hi there

I've managed to successfully compile it under the 2.6.23 kernel (with 4 or 5 patches). If you like to compile it yourself, here is the files:
http://linux.nox.dk/PKGBUILDS/et131x-1.2.3-ArchLinux/

The compiled package is located here:
http://linux.nox.dk/arch/current/i686/e … pkg.tar.gz

As usual, install with: pacman -U et131x-1.2.3-3-i686.pkg.tar.gz

I don't have an Agere Ethernet card myself, but please let me know if it works.

Hope it helps
Cheers

Last edited by heinep (2007-11-23 10:42:42)

Offline

#4 2007-12-30 18:06:46

pedepy
Member
Registered: 2007-02-21
Posts: 198

Re: kernel module not compiling since upgrade

tomk: uhh yes, there is a strong possibility that I have had problems with 2.6.22 as well tongue ..... the thing is, support for this driver seems shady at best, quite ATI-esque, I may say. With every new kernel version it seems to break..... and also I think it just won't compile under many different set of circumstances.

It's just that it's a bit out of the scope of my knowledge for now, compiling kernel modules and such ... when I have a couple moments I'll try and read up on it so next time I know more about it.

And to heinup: THANK YOU .. it works ;p
Maybe you could post about how you got it to compile ?


chupocabra ... psupsuspsu psu psu

Offline

#5 2008-02-13 21:42:29

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

i downloaded http://linux.nox.dk/arch/current/i686/e … pkg.tar.gz
and then :
$ pacman -U et131x-1.2.3-4-i686.pkg.tar.gz

when i make:
$ ifconfing
i still can't see my ethernet card.

What am i doing wrong?

Note: this is fresh install and the don't have gnome or similar installed..

Offline

#6 2008-02-13 22:07:10

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

@ pedepy: If you wan't to see how I got it working you could take a look PKGBUILD file in the directory I linked to.

@ uterrorista: Have you tried this: modprobe et131x ? And what kernel version are you running?

Offline

#7 2008-02-13 22:24:42

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

kernel: 2.6.20

no i didn't!

I'm reinstalling Arch and looking to the wiki and the same moment. i don't want to miss any step this time.
in a few minutes I'll try modprobe et131x.

Thanks

Offline

#8 2008-02-13 23:58:18

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

# modprobe et131x
FATAL: Module et131x not found

Offline

#9 2008-02-14 09:12:40

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

Yes, I thought you would get that message. That's because this version of the et131x driver is compiled to kernel 2.6.23. I suggest you installing kernel 2.6.23 if you can find it somewhere. The driver won't compile with the newest kernel version (2.6.24) .. yet.

As soon somebody finds a solution for 2.6.24 I'll compile and submit it.

Offline

#10 2008-02-14 11:04:47

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

Okay, I found some patches from the Mandriva distro (btw thanks Mandriva) and created a package for et131x kernel 2.6.24 support. You may get it here: http://linux.nox.dk/arch/current/i686/e … pkg.tar.gz. I'll be adding this one to AUR soon.

Hope it helps.
Cheers.

Edit: Fixed url as a new version has been released. This is also available in AUR.

Last edited by heinep (2008-03-05 22:58:04)

Offline

#11 2008-02-14 12:14:25

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

should i upgrade my kernel version to 23 or 24  first? Or I try it on my actual version (20)?

Thank you very much wink

Offline

#12 2008-02-14 12:16:45

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

Just try upgrading direct to 2.6.24 and use the package in comment #10. Please let me know how if it works (I don't have an agere ethernet card).

Offline

#13 2008-02-14 12:28:50

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

I am a bit lost here.
where can i find the arch's kernel version to have a simple installation ?

is this the one? http://www.archlinux.org/packages/13318/

Offline

#14 2008-02-14 12:32:13

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

Yes, that's the one. Just type as root: pacman -Sy kernel26 (or pacman -Syu for full system update)

Edit: It might be a good idea rebooting your system after updating.

Last edited by heinep (2008-02-14 12:35:25)

Offline

#15 2008-02-14 12:41:12

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

heinep wrote:

pacman -Syu

But i don't have internet connection on the computer...

I'm downloading files using other computer and moving then using a usb pen.

Offline

#16 2008-02-14 19:01:18

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

i went to a mirror, /archlinux/current/os/i68 and downloaded:
kernel26-2.6.24.1-2-i686.pkg.tar.gz
mkinitcpio-0.5.17-2-i686.pkg.tar.gz
klibc-1.5-3-i686.pkg.tar.gz
klibc-extras-2.3-1-i686.pkg.tar.gz    
klibc-module-init-tools-3.2.2-1-i686.pkg.tar.gz    
klibc-udev-116-2-i686.pkg.tar.gz

and installed it (in reverse order.)

then i used: http://linux.nox.dk/arch/current/i686/e … pkg.tar.gz
reboot..

IT'S WORKING!

Thank you very much heinep for your help tongue


Now i have always static ip. How can i solve this? is anyway solution like dhclient (use it in ubuntu)?

Offline

#17 2008-02-14 19:57:38

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

I'm glad that I could help, and I'm glad it's working smile

How to setup your network (yes, there's dhcp setup), please take a look at this wiki page.

Offline

#18 2008-02-15 14:55:24

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

I've a new problem.
a had problems with pacman - i couldn't upgrade it! kernel *.23 was needed and i had *.24..

i reinstalled arch with the latest build (i installed voodoo previously - know i have Don't Panic)
now i have kernel *.23 and i can't get the et131x to work...

none of the et131x...pkg seem to put it to work..

Offline

#19 2008-02-15 17:38:04

uterrorista
Member
Registered: 2008-02-13
Posts: 26
Website

Re: kernel module not compiling since upgrade

problem solved with sourceforge.net/projects/et131x/
now i hope that pacman will work..

Offline

#20 2008-03-05 16:59:18

Lazer
Banned
Registered: 2007-08-02
Posts: 111

Re: kernel module not compiling since upgrade

hi people. I'm having a litle trouble with this.

I'm trying to do a network install, so i need the internet working on first hand smile.

My steps so far:

downloaded: http://linux.nox.dk/arch/current/i686/e … pkg.tar.gz
copied it to pendrive.
reboot my system so i can choose the unetbootin menu.
system starts.
choose keyboard and console font -> check.
mkdir /mnt/usb
mount /dev/sdb1 / mnt/usb
cd /mnt/usb
pacman -U et131x-1.2.3-6-i686.pkg.tar.gz
installs fine.
pacman -Q et131x, is really installed.

Now the problem. If i try in the arch install menu to probe network modules it can't find any. If i try modprobe et131x it tells it can't find it.

A little help would be welcomed. I'm neither a complete noob of linux nor an advanced user, i could do it this far anyway tongue
I'm trying to install arch in this system as a test, cuz my first install of arch was in my personal pc from within another linux install... i know, i could just installed it with the cd, but this way i can install the bleedgin edge "current" smile.

sorry for some bad english...

Offline

#21 2008-03-05 17:11:56

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

It might be your kernel that isn't up to date. What version are you running ? (uname -r)

If you have one of the following versions:
- 2.6.22-ARCH
- 2.6.23-ARCH
- 2.6.24-ARCH
.. I can update my web page with compiled versions matching these kernels (I hope so...)

Offline

#22 2008-03-05 17:56:56

Lazer
Banned
Registered: 2007-08-02
Posts: 111

Re: kernel module not compiling since upgrade

heinep wrote:

It might be your kernel that isn't up to date. What version are you running ? (uname -r)

If you have one of the following versions:
- 2.6.22-ARCH
- 2.6.23-ARCH
- 2.6.24-ARCH
.. I can update my web page with compiled versions matching these kernels (I hope so...)

Navigating through \lib\modules\ it appears to be a 2.6.22-ARCH...

If you could make a package, tomorrow i would report how it went. big_smile

thanks

Offline

#23 2008-03-05 22:50:13

heinep
Member
From: Aalborg, Denmark
Registered: 2007-11-07
Posts: 10
Website

Re: kernel module not compiling since upgrade

I managed to compile the driver with the same patches for the 2.6.22 kernel. The package is available here:
http://linux.nox.dk/PKGBUILDS/binary/et … pkg.tar.gz

PKGBUILD and patches is here:
http://linux.nox.dk/PKGBUILDS/et131x-1.2.3-2.6.22_1/

Please let me know if it works smile

Offline

#24 2008-03-06 10:32:29

Lazer
Banned
Registered: 2007-08-02
Posts: 111

Re: kernel module not compiling since upgrade

ok, thanks to you i'm now running arch in this pc, it worked well big_smile ( both packages, this last one for 2.6.22 and the latest for 2.6.4 )

Offline

Board footer

Powered by FluxBB