LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2003, 06:46 AM   #1
phant0m
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 9
Posts: 21

Rep: Reputation: 15
walk me though this please


hi,
i recently decided to do something many will call me stupid for, i switched my very nice slackware to redhat 9.
on my slack i had my modem which is truly special, you need to kick it with lots of special drivers to make it work (adsl modem).
but it worked, and pretty nicely, but then i said, well, if i got my modem working on one linux, why wouldn't it work on the other.
and here it comes: on redhat, there's no hdcl support by default in the kernel.
now i tried some HOWTO's but i still ended with nothing.
here's some more details:
i got RH9 kernel 2.4.20-8
i installed the kernel source, tried to make it work as a module (found it in the make menuconfig) but i really dunno all the steps and the HOWTO's left me midways.
please walk me though how to add the hdcl support as a module (or as kernel native) just, give me all the steps please.
the only error my modem drivers give me:

Code:
warning: n_hdlc support not found in kernel config 
nice: pppd: No such file or directory
failed to connect
and i didn't get this on my slack.
 
Old 07-22-2003, 11:33 AM   #2
reclusivemonkey
Member
 
Registered: May 2003
Location: Halifax, WY, UK
Distribution: Slackware 9
Posts: 167

Rep: Reputation: 30
Redhat <> Slackware

Just go back to Slackware! You know it makes sense! ;-)
 
Old 07-22-2003, 11:35 AM   #3
phant0m
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 9
Posts: 21

Original Poster
Rep: Reputation: 15
gee, didn't hear that for the last 5 minutes :/
 
Old 07-22-2003, 11:43 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Assuming that is not an option, for whatever reason, what are the steps you have tried?

Here's the standard answer:
make menuconfig
do your business here, be sure to read the help files next to the things you enable or modulize;
make dep
make clean
make modules
make modules_install
make bzImage

And I believe for RH you will have to mkinitrd at some point, but since I don't run it, I am afraid I cannot tell you how/where.

After you make bzimage you copy the file that is created (/usr/src/linux/arch/i386/boot (assuming you have intel architecture) )to your /boot directory, edit your boot loader, and test your new config.

Now if you are running 2 kernels of the exact same release:
2.4.20-18
2.4.20-18
Are exactly the same where:
2.4.20-17
2.4.20-18
aren't

If they are exactly the same, you will want to move your /lib/modules/2.4.20-18 to /lib/modules/2.4.20-18.old so you don't get your original **working** files overwritten should this all go south and you need to revert back to square one.

Cool
 
Old 07-22-2003, 11:49 AM   #5
phant0m
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 9
Posts: 21

Original Poster
Rep: Reputation: 15
ok, i tried that, but didn't use mkinitrd, it's not in any guide (guess redhat is not that popular)
i tried to do
1> make mrproper
2> make menuconfig
3> make dep
4> make clean
5> make zImage
(here i got this
tools/build bootsect setup compressed/vmlinux.out CURRENT > zImage
Root device is (3, 6)
Boot sector 512 bytes.
Setup is 4930 bytes.
System is 1098 kB
System is too big. Try using bzImage or modules.
make[1]: *** [zImage] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/boot'
make: *** [zImage] Error 2

6> make boot
tools/build bootsect setup compressed/vmlinux.out CURRENT > zImage
Root device is (3, 6)
Boot sector 512 bytes.
Setup is 4930 bytes.
System is 1098 kB
System is too big. Try using bzImage or modules.
make[1]: *** [zImage] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/boot'
make: *** [boot] Error 2

> make modules
(all ok after a very long compile
> make modules_install)
(seems to be ok too)

and nothing, maybe i do need this mkinitrd, and btw, without mrproper i got all sorts of funny errors in the way.
 
Old 07-22-2003, 05:58 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Yeah, make a bzImage not a zimage, it'll be smaller

Also, mkinitrd is surely mentioned around here several times, I know I've seen it because I used to search for it

And mrproper makes your kernel "crystal clean" so you don't have any default values linus puts in there to make his kernel compiling easier after a download... Maybe that's true, but I was just kidding

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
control centre gone 4 a walk ? unionjak Ubuntu 4 11-15-2005 04:11 PM
Walk me through it... IneedAuserName Linux - General 8 05-13-2005 09:37 AM
Ok who wants to walk me through bograt Linux - Software 6 07-25-2004 04:34 AM
I can walk like a penquin! snafumaster LinuxQuestions.org Member Intro 0 03-14-2004 06:34 AM
urpmi walk thru koywa Linux - Newbie 18 05-12-2003 06:05 AM


All times are GMT -5. The time now is 06:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration