From: Svetoslav S. <sv...@gm...> - 2004-07-20 05:37:17
|
> Dear Aivils Stoss: > > Thank you so much for your comprehensive reply. However, everthing went > smooth until I got errors while executing the 'make' command as stated > below. Kindly guide! (I can send the entire script if required) > > On Mon, 19 Jul 2004 12:01:35 +0300 > Aivils <ai...@un...> wrote: > > > > Respected Aivils Stoss: > > > > > > Greetings from eParliament.org and the troubled section of the > > > Himalayas! > > > > > > I came across the http://www.c3sl.ufpr.br/fourhead/ which directed > > > me to your site http://startx.times.lv . As instructed by some > > > gentlemen from > > http://www.schuldei.org/aivils > > I will visit your personal site too. :) > > > > the C3SL project I was helped by a techie from a local ISP to > > > acquire kernel2.4.25 in tar.gz format (it is absolutely impossible > > > to download with a sluggish dial-up connection at my end). > > > > > > I have encountered three queries as stated below and shall be > > > obliged if you kindly bear the trouble of replying me > > > comprehensively to this comparatively newbie linuxer. > > > > > > QUERY I: > > > > > > I just unarchived the tar.gz kernel into a linux-2.4.25 directory in > > > a folder under my home directory (not root) and also archieved the > > > bruby-2.4.25 patch in the same directory. I used the following > > > command(not as root, but as file owner/user): patch -s -p0 < > > > bruby-2.4.**.diff and I got the following which confused me. > > > > > > $ patch -s -p0 < bruby-2.4.25-20040219.diff > > > The text leading up to this was: > > > -------------------------- > > > |diff -Nurp --exclude-from=excl24 linux-2.4.25/arch/i386/config.in > > > linr/arch/i386/config.in|--- linux-2.4.25/arch/i386/config.in > > > 2004-02-18 13:36:30.000000000 +0000|+++ linr/arch/i386/config.in > > > 2004-02-19 13:25:37.000000000 +0000-------------------------- > > > File to patch: > > > > > > > > > Since I didn't know which file to patch and which not, I just hit > > > the enter button and it asked me "Skip the file? [y]" and another > > > instruction as above appeared. When I just kept on hitting enter > > > button it kept on displaying "n out of n hunk/s ignrored" and again > > > another text as above with a different text appeared. > > > > Please read "man patch" :) > > > > It should look like this > > mydir/linux-2.4.25 > > mydir/bruby-2.4.25-20040219.diff > > > > $ cd mydir > > $ patch -s -p0 < bruby-2.4.25-20040219.diff > > Thank you, now this step worked! > > > > > You start previously patch from wrong directory. > > > > > QUERY II > > > > > > I also came across a config file ( > > > http://www.c3sl.ufpr.br/fourhead/.config ) and don't know how to go > > > about it while rebuilding the kernel. > > > > This is detailed doc site > > http://www.tldp.org/HOWTO/XFree-Local-multi-user-HOWTO/ > > > > Typicaly You read http://www.kernelnewbies.org > > after You do > > $ cd mydir/linux-2.4.25 > > $ make menuconfig > > then You do exit immediately from "make menuconfig" and You have > > predefined config file$ make dep > > $ make > > But when I executed the 'make' command. It gave the following error > almost at the end: > > -frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 > -nostdinc -iwithprefix include -DKBUILD_BASENAME=rd -c -o rd.o rd.c > rd.c:88: error: `CONFIG_BLK_DEV_RAM_SIZE' undeclared here (not in a > function) make[3]: *** [rd.o] Error 1 > make[3]: Leaving directory > `/home/drbista/multiuserpc/kernelsrc/linux-2.4.25/drivers/block' > make[2]: *** [first_rule] Error 2 make[2]: Leaving directory > `/home/drbista/multiuserpc/kernelsrc/linux-2.4.25/drivers/block' > make[1]: *** [_subdir_block] Error 2 make[1]: Leaving directory > `/home/drbista/multiuserpc/kernelsrc/linux-2.4.25/drivers' make: *** > [_dir_drivers] Error 2 > > Do you recommend me to go further with the instructions below or do I > need to make some modifications? please try "make defconfig" or maybe better use the configuration of your distribution (and check it's documetation how to build a kernel) and see http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html > > > > please switch to "root" user > > > > $ make install > > $ make modules_install > > You should read "man lilo.conf" and add Your fresh compiled kernel > > vi - simple text editor > > $ vi /etc/lilo.conf > > $ lilo > > > > > QUERY III > > > > > > Let me inform you that I have installed a FC1-based PCQLinux2004 > > > (pcquest.com) in my machine and it has got 2.4.22-nptl and 2.6.2 > > > kernels in parallel. I also installed another kernel 2.4.18 to make > > > my sm56 softmodem work (as instructed at http://www.sm56.tk). > > > > > > I know how to install a parallel kernel from rpm package ( rpm > > > --ivh > > man lilo.conf > > > kernel**.rpm --nodeps --force and then configure grub.conf. But I > > > don't know how to install a parallel 2.4.25 kernel from the tar.gz > > > file without disturbing other kernels in my machine. > > > > In theory, Svetoslav Slavtchev <sv...@gm...> allready provide > > precompiled kernels. If You have troubles with download, then I > > doubt about Your capability download 20Mb rpm. > > http://karlovo.demon.co.uk/~svetlio/ruby-contrib/ > > Does Mr. Slavtchev's precompiled kernel for 2.4.25 works fine without > any patches and hitches? Sounds stupid question, but important for me as > I am going to install it on a production-level machine (I don't have > several machines, but the borrowed one so I want to add more > consoles/heads to minimize the cost) they work fine for me, and another guy in Israel with 3 4headed PC's but i'm talking about a 2.6 based kernels i've stoped working on 2.4 a long long time ago there are 2.4.22 based kernels (binary rpms) which should be pretty workable but i'm afraid the 2.4 kernels wont work on a redhat/fedora box, as the redhat kernels are havily patched in an incompatible manner although if you manage to get a vanilla kernel you should be able to install and use my 2.4 kernels too you can find my kernels @ linux-2.4 based : http://karlovo.demon.co.uk/~svetlio/ruby-contrib/wip/ linux-2.6 based : http://mandrake.contactel.cz/people/svetljo/mandrake/10.0/RPMS/ http://mandrake.contactel.cz/people/svetljo/mandrake/kernel/RPMS/ best, svetljo |
From: Svetoslav S. <sv...@gm...> - 2004-07-20 06:24:44
|
> On Monday 19 July 2004 17:15, Dr. Sichendra Bista wrote: > > Dear Aivils Stoss: > > > > Thank you so much for your comprehensive reply. However, everthing went > > smooth until I got errors while executing the 'make' command as stated > > below. Kindly guide! (I can send the entire script if required) > > > > > http://www.schuldei.org/aivils > > > > I will visit your personal site too. :) > > > > > > > > It should look like this > > > mydir/linux-2.4.25 > > > mydir/bruby-2.4.25-20040219.diff > > > > > > $ cd mydir > > > $ patch -s -p0 < bruby-2.4.25-20040219.diff > > > > Thank you, now this step worked! > > > > > > > > You start previously patch from wrong directory. > > > > > > > QUERY II > > > > > > > > I also came across a config file ( > > > > http://www.c3sl.ufpr.br/fourhead/.config ) and don't know how to go > > > > about it while rebuilding the kernel. > > > > > > This is detailed doc site > > > http://www.tldp.org/HOWTO/XFree-Local-multi-user-HOWTO/ > > > > > > Typicaly You read http://www.kernelnewbies.org > > > after You do > > > $ cd mydir/linux-2.4.25 > > > $ make menuconfig > > > then You do exit immediately from "make menuconfig" and You have > > > predefined config file$ make dep > > > $ make > > > > But when I executed the 'make' command. It gave the following error > > almost at the end: > > > > -frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 > > -nostdinc -iwithprefix include -DKBUILD_BASENAME=rd -c -o rd.o rd.c > > rd.c:88: error: `CONFIG_BLK_DEV_RAM_SIZE' undeclared here (not in a > > function) make[3]: *** [rd.o] Error 1 > > make[3]: Leaving directory > > `/home/drbista/multiuserpc/kernelsrc/linux-2.4.25/drivers/block' > > make[2]: *** [first_rule] Error 2 make[2]: Leaving directory > > `/home/drbista/multiuserpc/kernelsrc/linux-2.4.25/drivers/block' > > make[1]: *** [_subdir_block] Error 2 make[1]: Leaving directory > > `/home/drbista/multiuserpc/kernelsrc/linux-2.4.25/drivers' make: *** > > [_dir_drivers] Error 2 > > > > Do you recommend me to go further with the instructions below or do I > > need to make some modifications? > > Yes. Your distro have not installed kernel header files. > RPM way, may not work properly > rpm -ivh fedora/2/disc3/Fedora/RPMS/kernel-source-2.6.5-1.358.i386.rpm > > Safe way > Kernel headers means bunch of *.h files in to /usr/include/linux > Your distro may contain old obsolete headers. > Back up it all > > $ cd /usr/include > $ mv linux linux.bak > > Now make symbolic link to Your new kernel headers > > $ ln -s /home/drbista/multiuserpc/kernelsrc/linux-2.4.25/include/linux > linux > > After this exists directory /usr/include/linux which contains headers of > Your > 2.4.25 kernel. gcc during compilation can find all header files. hm, i thought that this aproach was problematic, and redhat hat droped this setup IMHO smth went wrong with the .config generation and the above config option didn't get set > > > > > > please switch to "root" user > > > > > > $ make install > > > $ make modules_install > > > > > > You should read "man lilo.conf" and add Your fresh compiled kernel > > > vi - simple text editor > > > $ vi /etc/lilo.conf > > > $ lilo > > > > > > > QUERY III > > > > > > > > Let me inform you that I have installed a FC1-based PCQLinux2004 > > > > (pcquest.com) in my machine and it has got 2.4.22-nptl and 2.6.2 > > > > kernels in parallel. I also installed another kernel 2.4.18 to make > > > > my sm56 softmodem work (as instructed at http://www.sm56.tk). > > > > > > > > I know how to install a parallel kernel from rpm package ( rpm > > > > --ivh > > > man lilo.conf > > > > kernel**.rpm --nodeps --force and then configure grub.conf. But I > > > > don't know how to install a parallel 2.4.25 kernel from the tar.gz > > > > file without disturbing other kernels in my machine. > > > > > > In theory, Svetoslav Slavtchev <sv...@gm...> allready provide > > > precompiled kernels. If You have troubles with download, then I > > > doubt about Your capability download 20Mb rpm. > > > http://karlovo.demon.co.uk/~svetlio/ruby-contrib/ > > > > Does Mr. Slavtchev's precompiled kernel for 2.4.25 works fine without > > any patches and hitches? Sounds stupid question, but important for me as > > I am going to install it on a production-level machine (I don't have > > several machines, but the borrowed one so I want to add more > > consoles/heads to minimize the cost) > > Slavtchev move away from 2.4.XX long ago. Now he make 2.6.7, but > for Mandrake. Current most safe way is coplete work with 2.4.25 , because > all what You needs are now on the site. it's a Mandrake one, but with 2.6 kernels the kernel is a lot more usable on other distros and i think it should work fine on any distro (at least the kernel itself, the rpm post install scripts wont be really compatible) there are no such havy patches in any of the distributions like in 2.4 kernels (e.g. 0(1) scheduler, nptl, ....) i did used my 2.6.3 kernel without modifications on debian unstable, all i need to do was to add another entry to lilo.conf and copy the modules to the debian install best, svetljo |