Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

kernel upgrade to 2.4.18

0 views
Skip to first unread message

Francisco Fialho

unread,
Jun 17, 2002, 1:19:32 PM6/17/02
to
Hi everybody.

I running Debian Woody ( kernel 2.2.20) and I trying
to upgrade to kernel 2.4.18...
a did an apt-get install kernel-source-2.4.18 ) just perfect.

the kerbel-source was saved at /usr/src... I created a dir called
linux and a ln -s to the unzipped source ( /usr/src/kernel-source-2.4.18)
when I give a make-kpkg --revision kernel.2.4.18 it says that the source
is not at the top of the linux kernel directory. ( I've already
installed the
latest kernel-package)

what am I doing wrong?!
does anyone have an make-kpkg example?!

I think its more of a sintax error... ( I writing something wrong)

I've checked the kernel how0to section at the documentation
page....

regards

[]'s

Francisco


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org


Andrew Perrin

unread,
Jun 17, 2002, 1:23:02 PM6/17/02
to
1.) Don't both with linking to linux. Just:

cd /usr/src/kernel-source-2.4.18
make menuconfig
make-kpkg

2.) Don't use --revision to note the kernel version; make-kpkg will do
that for you. Use --revision if you want to tag it to specific config
options you've used. I generally do:

make-kpkg --revision ofcx.y

where x.y is a version of my configuration, NOT of the kernel itself.

Hope this helps.

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
cli...@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu

Patrick Wiseman

unread,
Jun 17, 2002, 1:31:42 PM6/17/02
to
On Mon, 17 Jun 2002, Francisco Fialho wrote:

> the kerbel-source was saved at /usr/src... I created a dir called
> linux and a ln -s to the unzipped source ( /usr/src/kernel-source-2.4.18)

'rm -Rf linux' to remove your directory
'ln -s /usr/src/kernel-source-2.4.18 linux' to create your link

You tried to symlink an existing directory to the source tree. If you
look in the linux directory before you remove it, by the way, you'll see a
broken symbolic link. In other words, your machine did exactly as you
told it to, but not what you meant to tell it to do ;)

Patrick

--
Patrick Wiseman
pwis...@mindspring.com
Linux user #17943

Patrick Wiseman

unread,
Jun 17, 2002, 1:34:42 PM6/17/02
to
On Mon, 17 Jun 2002, Andrew Perrin wrote:

> 1.) Don't both with linking to linux. Just:
>
> cd /usr/src/kernel-source-2.4.18
> make menuconfig
> make-kpkg

This will work, of course. But other packages (pcmcia-cs, for example,
I'm pretty sure) expect to find the kernel source tree in /usr/src/linux,
so creating the symbolic link is a good idea.

Andrew Perrin

unread,
Jun 17, 2002, 2:21:03 PM6/17/02
to
On Mon, 17 Jun 2002, Francisco Fialho wrote:

> is there any command I can use to see what kernel I'm using?!

uname -a

Francisco Fialho

unread,
Jun 17, 2002, 2:29:43 PM6/17/02
to
Andrew Perrin wrote:

>On Mon, 17 Jun 2002, Francisco Fialho wrote:
>
>>is there any command I can use to see what kernel I'm using?!
>>
>
>uname -a
>

the output to the uname - a command gave me 2.2.20...
what is missing?! make-kpkg ran OK...
must I do something?! after make-kpkg nothing else
as done, except run the lilo command.

regards

Francisco

Andrew Perrin

unread,
Jun 17, 2002, 2:34:02 PM6/17/02
to
Yes. You need to install the new kernel:

dpkg -i /usr/src/kernel-image-2.4.18...

and then reboot.

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
cli...@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu

Hans Ekbrand

unread,
Jun 17, 2002, 2:37:32 PM6/17/02
to

--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 17, 2002 at 03:30:05PM -0300, Francisco Fialho wrote:
> Andrew Perrin wrote:
> >On Mon, 17 Jun 2002, Francisco Fialho wrote:
> >>is there any command I can use to see what kernel I'm using?!

> >uname -a

> the output to the uname - a command gave me 2.2.20...
> what is missing?! make-kpkg ran OK...
> must I do something?! after make-kpkg nothing else
> as done, except run the lilo command.

I missed the start of the thread, but you do know that you will have
to reboot in order to use the new kernel?

--=20
Note that I use Debian version 3.0
Linux emac140 2.4.17 #1 s=F6n feb 10 20:21:22 CET 2002 i686 unknown

Hans Ekbrand
--uAKRQypu60I7Lcqm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: För information se http://www.gnupg.org/

iD8DBQE9DiuTfCyHKnBQYU4RApwJAKCWQx3Bipy1rgdqtqX9dUuTlu42IwCfU3M4
GEyHevV+qiWB0t8B+J78uMg=
=ix+7
-----END PGP SIGNATURE-----

--uAKRQypu60I7Lcqm--

Patrick Wiseman

unread,
Jun 17, 2002, 2:42:32 PM6/17/02
to
On Mon, 17 Jun 2002, Francisco Fialho wrote:

> what is missing?! make-kpkg ran OK...
> must I do something?! after make-kpkg nothing else
> as done, except run the lilo command.

You need to install the kernel; from /usr/src/linux

'dpkg -i ../kernel_image.deb'

Do 'ls ..' to get the name of the actual .deb file you made with
make-kpkg. And you won't need to run lilo, the install takes care of that
for you.

Patrick

--
Patrick Wiseman
pwis...@mindspring.com
Linux user #17943

Ron Johnson

unread,
Jun 17, 2002, 3:01:53 PM6/17/02
to
On Mon, 2002-06-17 at 13:30, Francisco Fialho wrote:
> Andrew Perrin wrote:
>
> >On Mon, 17 Jun 2002, Francisco Fialho wrote:
> >
> >>is there any command I can use to see what kernel I'm using?!
> >>
> >
> >uname -a
> >
>
> the output to the uname - a command gave me 2.2.20...
> what is missing?! make-kpkg ran OK...
> must I do something?! after make-kpkg nothing else
> as done, except run the lilo command.

Yes, I know it's a stupid question: did you reboot?

--
+-------------------------------------------------------------+
| Ron Johnson, Jr. Home: ron.l....@cox.net |
| Jefferson, LA USA http://ronandheather.dhs.org:81 |
| |
| "Object-oriented programming is an exceptionally bad idea |
| which could only have originated in California." |
| --Edsger Dijkstra |
+-------------------------------------------------------------+

Tim Grogan

unread,
Jun 17, 2002, 3:11:23 PM6/17/02
to
I'm trying to compile the exact same image on my Athlon 1700 system. I've been
following this thread with great interest. I've seen some good pointers from a
lot of folks. Could someone please just put a dummy list of steps on how to
upgrade a kernel. I've downloaded about 3 howtos but they are for compiling
kernels manually. This seems to be another way (easier too) to do the same
thing. If there already is a howto developed, please let me know.

Tim

p.s. for an athlon system do I need a special version of the kernel?

> Try again - you ran dpkg -k kernel-source...
>
> You need to find the .deb that make-kpkg created. It's in /usr/src.
>
> Try:
>
> ls -l /usr/src/kernel*deb
>
> You're looking for kernel-image-2.4.18-<something>.deb
>
> Then do dpkg -i /usr/src/kernel-image-2.4.18-<something>.deb

Andrew Perrin

unread,
Jun 17, 2002, 3:22:12 PM6/17/02
to
On Mon, 17 Jun 2002, Francisco Fialho wrote:

> >>Try:
> >>
> >>ls -l /usr/src/kernel*deb
> >
[snip]

> I ran an find / -name kernel-image*.*
> and there was no result ( I ran make-kpkg twice) :-)
>
> any clue?!
>

The clue is: follow directions! What is the output of:

ls /usr/src/kernel*deb

if the answer is "nothing", then you need to post the output from your
make-kpkg commands.


----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
cli...@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu

--

Scott Henson

unread,
Jun 17, 2002, 4:01:42 PM6/17/02
to
On Mon, 2002-06-17 at 15:16, Andrew Perrin wrote:
> Here's what I do:
>
> apt-get install kernel-source-2.4.18
> cd /usr/src/kernel-source-2.4.18
make oldconfig

> make menuconfig
> (select/deselect for your needs)
make-kpkg clean
> make-kpkg --revision ofc1.x binary
> cd /usr/src
> dpkg -i kernel-image-2.4.18_ofc1.x_i386.deb
> reboot
>

adding this step will have you start from a known working config. Also
I think the make-kpkg line should be something closer to
make-kpkg --revision x.y kernel_image

Also the *.deb should be in the directory /usr/src/ So look for it
there. You should do a man make-kpkg for the full amount of options you
have. make-kpkg is actually a very nice tool for compiling kernels.
Oh and Im not sure if you have already said this, but make sure you are
running Woody or Sid. Potato can not handle 2.4.x kernels.

--
-Peace kid
Scott Henson shen...@wvu.edu

"God's the ultimate playa, so naturally He's going to have some haters,"
rapper Ice Cube said. "But these haters need to realize that if you
mess with the man upstairs, you will get your ass smote. True dat."

Ivo Wever

unread,
Jun 17, 2002, 5:20:03 PM6/17/02
to
Patrick Wiseman wrote:
> Andrew Perrin wrote:
>
>
>>1.) Don't both with linking to linux. Just:
>>
>>cd /usr/src/kernel-source-2.4.18
>>make menuconfig
>>make-kpkg
>
>
Why doesn't anyone follow the procedure outlined in
http://www.debian.org/releases/stable/i386/ch-post-install.en.html#s-kernel-baking
?
sincerely
--
Ivo Wever
I.J.W...@student.tnw.tudelft.nl

Patrick Wiseman

unread,
Jun 17, 2002, 5:27:23 PM6/17/02
to
On Mon, 17 Jun 2002, Ivo Wever wrote:

> Patrick Wiseman wrote:
> > Andrew Perrin wrote:
> >
> >
> >>1.) Don't both with linking to linux. Just:
> >>
> >>cd /usr/src/kernel-source-2.4.18
> >>make menuconfig
> >>make-kpkg
> >
> >
> Why doesn't anyone follow the procedure outlined in

Take care with attribution!! I didn't say any of the above.

Patrick

--
Patrick Wiseman
pwis...@mindspring.com
Linux user #17943

Patrick Wiseman

unread,
Jun 17, 2002, 5:31:23 PM6/17/02
to
On Mon, 17 Jun 2002, Ivo Wever wrote:

> Why doesn't anyone follow the procedure outlined in

> http://www.debian.org/releases/stable/i386/ch-post-install.en.html#s-kernel-baking
> ?

Other than use of 'fakeroot' (which I don't use because I'm happy becoming
root having started with Slackware years ago :), I _do_ basically follow
that procedure.

Ivo Wever

unread,
Jun 17, 2002, 5:58:03 PM6/17/02
to
Patrick Wiseman wrote:
>Ivo Wever wrote:
>
>
>>Why doesn't anyone follow the procedure outlined in
>>http://www.debian.org/releases/stable/i386/ch-post-install.en.html#s-kernel-baking
>>?
>
> Other than use of 'fakeroot' (which I don't use because I'm happy becoming
> root having started with Slackware years ago :), I _do_ basically follow
> that procedure.
>
I understand there are good reasons for placing the source in
/usr/local/src/kernel-source.x.y.z, a directory not owned by root.
Something to do with symlinks I read on a kernel-digest once, but I
can't remember the details.

sincerely,
--
Ivo Wever
I.J.W...@student.tnw.tudelft.nl

Paul E Condon

unread,
Jun 18, 2002, 2:33:43 AM6/18/02
to
I upgraded to Woody two or three months ago, but did not upgrade the kernel
then because I did not feel confident of my ability to read and follow the
various directions. Recent posts in this thread gave me a feeling of
confidence, so I've attempted to follow the recipe given. Now I need help.

The given recipe is:

apt-get install kernel-sources-2.4.18
cd /usr/src/kernel-sources-2.4.18
make oldconfig
(interactive config work (I chose all defaults) )


make-kpkg --revision ofc1.x binary
cd /usr/src

dpkg -i kernel-images-2.4.18_ofc1.x_i386.deb
(reboot)

At first glance, this worked, but I have no network access.
Further, investigation shows that there several error messages scrolling by
during boot. One says "ds: no socket drivers loaded!"
Another says "modprobe: modprobe: Can't locate char-major-10-135"
I look in /lib/modules/2.4.18 and find vastly fewer modules than in
/lib/modules/2.2.19

I look for ways to compile modules, but all I find is an instruction to cd to
/usr/src/modules, but I have no such directory. What should I do to get my
modules?

I've already tried
make-kpkg buildpackage
and
make-kpkg modules_image

Both return almost immediately, with criptic lines of script code displayed.
Are the modules sources in a different package? What is its name?

TIA
--
Paul E Condon
peco...@quiknet.com

Manoj Srivastava

unread,
Jun 18, 2002, 2:45:22 AM6/18/02
to
>>"Tim" == Tim Grogan <timothy...@grocomm.com> writes:

Tim> I'm trying to compile the exact same image on my Athlon 1700
Tim> system. I've been following this thread with great interest.
Tim> I've seen some good pointers from a lot of folks. Could someone
Tim> please just put a dummy list of steps on how to upgrade a
Tim> kernel. I've downloaded about 3 howtos but they are for
Tim> compiling kernels manually. This seems to be another way
Tim> (easier too) to do the same thing. If there already is a howto
Tim> developed, please let me know.


What is wrong with /usr/share/doc/kernel-package/README.gz?

manoj
--
UNIX is a Trademark of Bell Laboratories.
Manoj Srivastava <sriv...@debian.org> <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C

Jan Groenewald

unread,
Jun 19, 2002, 10:59:27 AM6/19/02
to
all,

On Mon, Jun 17, 2002 at 05:30:47PM -0400, Patrick Wiseman wrote:
> > Why doesn't anyone follow the procedure outlined in
> > http://www.debian.org/releases/stable/i386/ch-post-install.en.html#s-kernel-baking
> > ?
> Other than use of 'fakeroot' (which I don't use because I'm happy becoming
> root having started with Slackware years ago :), I _do_ basically follow
> that procedure.

I used apt-get install kernel-image-2.2.20... #(from 2.2.19pre..)
Is this wrong/bad style? This is not mentioned as a proper
method in the docs/link above. What about kernel-headers-... then?

regards,
jan

Johann Spies

unread,
Jun 20, 2002, 5:09:40 AM6/20/02
to
On Tue, Jun 18, 2002 at 08:32:38PM +0200, Jan Groenewald wrote:

> I used apt-get install kernel-image-2.2.20... #(from 2.2.19pre..)
> Is this wrong/bad style? This is not mentioned as a proper method in
> the docs/link above. What about kernel-headers-... then?

Nothing wrong with your "style". But you are talking of something
different. They were talking about compiling a new kernel and you are
talking about installing a compiled kernel using apt.

Regards.
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

"There is therefore now no condemnation to them which
are in Christ Jesus, who walk not after the flesh, but
after the Spirit." Romans 8:1

Manoj Srivastava

unread,
Jun 20, 2002, 2:14:03 PM6/20/02
to
>>"Paul" == Paul E Condon <peco...@quiknet.com> writes:


Paul> The given recipe is:

Paul> apt-get install kernel-sources-2.4.18
Paul> cd /usr/src/kernel-sources-2.4.18
Paul> make oldconfig

Aha. You are creating a default .config here, which may have
vastly less modules selected than what you had before. As far as I
know, the kernel sources .deb does not come with a .config (I have
not checked the official .debs recently, though)

Perhaps you should cp /boot/config-<whatever version you have> .config
before running make oldconfig?

Paul> (interactive config work (I chose all defaults) )
Paul> make-kpkg --revision ofc1.x binary
Paul> cd /usr/src
Paul> dpkg -i kernel-images-2.4.18_ofc1.x_i386.deb
Paul> (reboot)

Paul> I look for ways to compile modules, but all I find is an
Paul> instruction to cd to /usr/src/modules, but I have no such
Paul> directory. What should I do to get my modules?

You need to do nothing extra -- you just need to make sure you
configured everything into the kenrel in the first place. make menuconfig
should help you determine what is in, ad what is not.

Paul> I've already tried
Paul> make-kpkg buildpackage
Paul> and
Paul> make-kpkg modules_image

Paul> Both return almost immediately, with criptic lines of script
Paul> code displayed.

These targets are for Debian-pacjkaged third party modules not
shipped with kernel sources.

Paul> Are the modules sources in a different package? What is its
Paul> name?

No, the modules are all there. Your .config is the issue.

manoj

--
Meanehwael, baccat meaddehaele, monstaer lurccen; Fulle few too many
drincce, hie luccen for fyht. [D]en Hreorfneorht[d]hwr, son of
Hrwaerow[p]heororthwl, AEsccen aewful jeork to steop outsyd. [P]hud!
Bashe! Crasch! Beoom! [D]e bigge gye Eallum his bon brak, byt his
nose offe; Wicced Godsylla waeld on his asse. Monstaer moppe fleor
wy[p] eallum men in haelle. Beowulf in bacceroome fonecall bemaccen
waes; Hearen sond of ruccus saed, "Hwaet [d]e helle?" Graben sheold
strang ond swich-blaed scharp Sond feorth to fyht [d]e grimlic
foe. "Me," Godsylla saed, "mac [d]e minsemete." Heoro cwyc geten
heold wi[p] faemed half-nelson Ond flyng him lic frisbe bac to
fen. Beowulf belly up to meaddehaele bar, Saed, "Ne foe beaten mie
faersom cung-fu." Eorderen cocca-colha yce-coeld, [d]e reol
[p]yng. Not Chaucer, for certain


Manoj Srivastava <sriv...@debian.org> <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C

0 new messages