LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2004, 08:15 PM   #1
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
2.4.21 patches?


Finally got my wireless working with the Netgear MA521 card in slackware 9.1 thanks to the large WPC11V4 thread in wireless-networking....but this at the cost of dropping my kernel from 2.4.24 to 2.4.21..... now where might I go about finding the patches necessary to prevent something bad from happening to me? aka hacked or something of the sorts... more like annoyed. Any ideas?
 
Old 02-06-2004, 08:34 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
http://www.kernel.org/pub/linux/kernel/v2.4/ Scroll down to the bottom. You want patch-2.4.22, patch-2.4.23 and patch-2.4.24
 
Old 02-06-2004, 08:51 PM   #3
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
Well is this going to mess up the wirelsss beings it needs 2.4.21 to function?
 
Old 02-06-2004, 09:06 PM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
What is it in 2.4.21 that it needs thats not in 2.4.24?
 
Old 02-06-2004, 10:31 PM   #5
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
The module I compiled, RTL8180L for my MA521 needs a 2.4.21 kernel it won't work with 2.4.22+
 
Old 02-06-2004, 10:43 PM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Does it build correctly?
I just tried it on my system and got the following,
Code:
bern@beast bern $ cd '/home/bern/Downloads/SUPPORT/rtl8180_1.5'
bern@beast rtl8180_1.5 $ make
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.25-pre8/include/ -DRTL_IO_MAP -DRTL_LITTLE_ENDIAN -DRTL_ACT_AS_STA -DRTL8180_DRV_ON_PC -DENABLE_DBG_PRINT -c -o r8180_pci_init.o r8180_pci_init.c
In file included from r8180_pci_init.c:40:
r8180_type.h:62:1: warning: "ENABLE_DBG_PRINT" redefined
r8180_pci_init.c:1:1: warning: this is the location of the previous definition
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.25-pre8/include/ -DRTL_IO_MAP -DRTL_LITTLE_ENDIAN -DRTL_ACT_AS_STA -DRTL8180_DRV_ON_PC -DENABLE_DBG_PRINT -c -o r8180_if.o r8180_if.c
In file included from r8180_if.h:20,
                 from r8180_if.c:43:
r8180_type.h:62:1: warning: "ENABLE_DBG_PRINT" redefined
r8180_if.c:1:1: warning: this is the location of the previous definition
--- Generate open part open_part.o ---

--- Generate rtl8180 linux driver  rtl8180_24x.o on 2.4.25-pre8 ---

bern@beast rtl8180_1.5 $
 
Old 02-06-2004, 11:14 PM   #7
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
Yes it does... theres one on realteks FTP named rtl8180_linuxdrv_v13(gcc3.xx).zip which is some kind of source I am guessing, compiles fine and works flawlessly. I'd just like to keep the current kernel how it is and add whatever patches I need to secure it. No need to fix what isn't broken, kinda... I can't change the kernel version basically until theres a newer version of that driver from realtek.


Edit: BTW Happy Birthday Aussie

Last edited by Astro; 02-06-2004 at 11:15 PM.
 
Old 02-06-2004, 11:43 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Quote:
Originally posted by Astro
Yes it does... theres one on realteks FTP named rtl8180_linuxdrv_v13(gcc3.xx).zip which is some kind of source I am guessing, compiles fine and works flawlessly.
Thats the one I just built on my 2.4.25-pre8 kernel, not having the hardware I can't test it though.

Quote:
Originally posted by Astro
I'd just like to keep the current kernel how it is and add whatever patches I need to secure it. No need to fix what isn't broken, kinda... I can't change the kernel version basically until theres a newer version of that driver from realtek.
Yes, well, in order to patch your kernel you have to apply the patches that have already been linked by Andrew, and then rebuild the kernel, so your going to either be running 2.4.24 or 2.6.2 - have you tried 2.6.2?

Quote:
Originally posted by Astro
Edit: BTW Happy Birthday Aussie
Thank You Astro :-)
 
Old 02-06-2004, 11:57 PM   #9
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
I tested the module compiling with 2.4.24 and it threw a few errors when I compiled it. On insmodding the module all hell broke loose and it's a bad thing when my caps lock and scroll lock lights flash.. kernel panic! I tried lots of different compiles and none worked... went down to the 2.4.21, compiled the kernel, compiled the module, ./wlanup && dhcpcd -t 10 wlan0 and I was on the network fine, no crashes or anything. I'm just afraid that by patching by how you're saying will break the driver so it won't work. I'm not up to date at all on how kernel patches work or anything. I was thinking there is one patch for a vuln. and if that patch is applied it won't change the kernel version, just fix the problem. Requesting some enlightenment? (go dmb!)
 
Old 02-07-2004, 12:26 AM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
No, all released kernel patches up the version number, thats how kernel patching works.
 
Old 02-07-2004, 01:03 AM   #11
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
Well I guess then the only way for this wireless to work is for my kernel to be insecure?
 
Old 02-07-2004, 05:02 AM   #12
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Maybe not, you could always try with the new 2.6.2 kernel, and the fact that it compiled without any errors on my 2.4.25-pre8 kernel is a good sign.

Another option is ndiswrapper.

Last edited by Aussie; 02-07-2004 at 05:06 AM.
 
Old 02-07-2004, 11:52 AM   #13
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Quote:
Originally posted by Aussie
Maybe not, you could always try with the new 2.6.2 kernel, and the fact that it compiled without any errors on my 2.4.25-pre8 kernel is a good sign.

Another option is ndiswrapper.
it's not. I tried it a couple times and there were almost never any errors and yet it didn't work
 
Old 02-07-2004, 02:15 PM   #14
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
i will try 2.6.2 with it just in case when I'm done testing my battery life and I'll post
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why all the patches? hussar Linux From Scratch 5 06-02-2005 02:28 PM
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 03:18 AM
getting patches buffed317 Linux From Scratch 4 08-15-2004 04:43 PM
-mm patches alekoos Linux - Newbie 1 04-27-2004 03:21 PM
patches Phil Healey Linux - Software 2 08-05-2003 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration