Re: [newbie] Need to compile a 2.2.18 kernal - jrt
On Monday 05 March 2001 04:16 pm, John Turnbull wrote: Tom Brinkman wrote: vanilla source from kernel.org is not the best way to compile a Mandrake kernel. I have no idea about your ntp-pps requirement, but Mandrake source for 2.2.18 kernels is available on any cooker mirror. http://www.linux-mandrake.com/en/cookerdevel.php3 look for 'kernel22-2.2.18*' files. Thank you, I had grabbed something called kernel22-2.2.18-14mdk.src.rpm, but when I installed it with kpackage, the little slider bar did its thing, but it did not transfer me to the installed packages window, nor did it generate the files under /usr/src/linux-2.2.18. . . Clearly, I do not have the right thing, or I have installed it incorrectly. You and me both ; The few times I've d/l'd kernelsrc.rpms I've had 'unexpected' results. 'Course I've never used kpackage to install a src.rpm either (I use 'rpm --rebuild'). So now I only d/l the kernel-source/header/docs rpms and 'rpm -Uvh' them (or use kpackage). This will install the source and headers properly in /usr/src/linux-2.2.18, and set the link /usr/src/linux@ to point to it. All you need to do then is cd to /usr/src/linux and start your 'make xconfig' Dale Earnhardt, the greatest stock car driver ever, he's won his 8th and His Greatest Championship Tom Brinkman [EMAIL PROTECTED] Galveston Bay
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
Gerry wrote: Seems you need to make a symlink to the 2.2.18-dir.. cd to the parent dir of "linux-2.2.18", and type: ln -s linux-2.2.18 linux That will create a symlink named linux that point to linux-2.2.18. (btw, did you copy the source to /usr/src/linux-2.2.18 ? the path /usr/src/linux might be hardcoded into the source..) Gerry Thank you Garry: You are right there is no file /usr/src/linuxat all, let alone a link to the 2.2.18 sources. The interesting thing is that on the Mandrake home page there is a link to www.mandrakeuser.org, where they advise, in www.mandrakeuser.org/install/kupgrade3.html, to break that link: 1. Delete the symlink '/usr/src/linux'. Otherwise the sources will be unpacked into the Mandrake kernel sources directory! But never instruct the user to recreate it after they install the new sources. I must write to them. Thank you again. I could not see the answer. John T
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
Seems you need to make a symlink to the 2.2.18-dir.. cd to the parent dir of "linux-2.2.18", and type: ln -s linux-2.2.18 linux That will create a symlink named linux that point to linux-2.2.18. (btw, did you copy the source to /usr/src/linux-2.2.18 ? the path /usr/src/linux might be hardcoded into the source..) Gerry
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
John Turnbull wrote: I now have unpacked the kernel 2.2.18 sources. They wound up in /usr/src/RPM/BUILD/linux, but the structure looks much like a normal kernel source directory. Now I can do dome real damage (clearly I am on the edge of my competence level. John T Er. . . well I was hopping to be able to do some damage. . . but the compile just stalled with: [root@mpdlin linux-2.2.18]# make bzImage gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c In file included from /usr/include/errno.h:36, from scripts/split-include.c:26: /usr/include/bits/errno.h:25: linux/errno.h: No such file or directory make: *** [scripts/split-include] Error 1 [root@mpdlin linux-2.2.18]# I had done a standard make xconfig and not fiddled too much, saved and did a: make dep make clean the : make bzImage and if died. Could somebody please interpret this error? Oh yes. I did a make mrproper, then repeated the above steps, without changing anything in xconfig (it os OK because this is a very standard K6 box running LM7.2, so even the lesser CUP optimizations should not be the problem. Thank you all in advance. John T
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
On Monday 05 March 2001 01:20 pm, John Turnbull wrote: I need to compile a new 2.2.18 kernel with the ntp-pps (network time protocol pulse per second) patches included. Where can i get 'mandrake approved' sources? I tried the sources at kernal.org, but when I compiled them, I only got a blank screen after the initial lilo prompt. I have compiled kernels before, but only when using sources from the distribution and using a modified configuration. John T vanilla source from kernel.org is not the best way to compile a Mandrake kernel. I have no idea about your ntp-pps requirement, but Mandrake source for 2.2.18 kernels is available on any cooker mirror. http://www.linux-mandrake.com/en/cookerdevel.php3 look for 'kernel22-2.2.18*' files. -- Dale Earnhardt, the greatest stock car driver ever, he's won his 8th and His Greatest Championship Tom Brinkman [EMAIL PROTECTED] Galveston Bay
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
Tom Brinkman wrote: On Monday 05 March 2001 01:20 pm, John Turnbull wrote: I need to compile a new 2.2.18 kernel snip vanilla source from kernel.org is not the best way to compile a Mandrake kernel. I have no idea about your ntp-pps requirement, but Mandrake source for 2.2.18 kernels is available on any cooker mirror. http://www.linux-mandrake.com/en/cookerdevel.php3 look for 'kernel22-2.2.18*' files. Tom: Thank you, I had grabbed something called kernel22-2.2.18-14mdk.src.rpm, but when I installed it with kpackage, the little slider bar did its thing, but it did not transfer me to the installed packages window, nor did it generate the files under /usr/src/linux-2.2.18. . . Clearly, I do not have the right thing, or I have installed it incorrectly. What files am I looking for, and where in the cooker file structure might they be. I am not seeing the normal src and header RPSs that I would expect. Than you again. John T
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
Thank you, I had grabbed something called kernel22-2.2.18-14mdk.src.rpm, (snip) That's a source rpm, so it put its stuff under /usr/src/RPM/. As root, cd to that dir and type 'rpm -ba SPECS/kernel22-2.2.18-(etc.)' to configure compile it. Then it puts the installation rpm in RPMS/(your processor)/. Good luck :) Gerry
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
Gerry wrote: Thank you, I had grabbed something called kernel22-2.2.18-14mdk.src.rpm, (snip) That's a source rpm, so it put its stuff under /usr/src/RPM/. As root, cd to that dir and type 'rpm -ba SPECS/kernel22-2.2.18-(etc.)' to configure compile it. Then it puts the installation rpm in RPMS/(your processor)/. Good luck :) Gerry Gerry: Thank you. I would not have discovered that by myself, in a hurry. . . It had a dependency problem. It requires libbinutils2-devel. I cannot find this animal in the SRPMS subdirectory or in cooker/Mandrake/RPMS/ but I did find a binutils-2.10.0.24-4mdk that I thought might contain a libbinutils, but that was not to be. sigh. Where might I get libbinutils2-devel? John T
Re: [newbie] Need to compile a 2.2.18 kernal - jrt
John Turnbull wrote: snip Gerry: Thank you. I would not have discovered that by myself, in a hurry. . . It had a dependency problem. It requires libbinutils2-devel. I cannot find this animal in the SRPMS subdirectory or in cooker/Mandrake/RPMS/ but I did find a binutils-2.10.0.24-4mdk that I thought might contain a libbinutils, but that was not to be. sigh. Where might I get libbinutils2-devel? John T Sorry people. I must be going blind, libbinutils2-devel is in cooker/Mandrake/RPMS. I now have it installed and have unpacked the kernel 2.2.18 sources. They wound up in /usr/src/RPM/BUILD/linux, but the structure looks much like a normal kernel source directory. Now I can do dome real damage (clearly I am on the edge of my competence level. John T