SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello , everyone ! A couple of days ago , I followed a kernel compilation guide written by acidjuice , which is a great how-to , very easy to understand , then I hit a bump just a few commands into it .
After I copied the new kernel and config file from Patrick into /usr/src , I typed in following commands :
/usr/src#rm linux
/usr/src#ln -s linux-2.6.10 linux
/usr/src#cd linux
/usr/src/linux#make mroproper , then I got a message saying :
make: ***No rule to make target 'mrproper' . Stop
I thought the purpose of that command was to clear all of the precedent files , since I was doing a fresh install , I tried to skip the step , so I typed in the next command : #make menuconfig , when got me the same message which only 'mrproper' was replaced by 'menuconfig' .
I have no idea what that means , and it's an awful feeling that I couldn't get this done when I had a good guide in my hand . Any help will be much appreciated .
Hello !
Sorry about the delay , I couldn't log on yesterday , maybe they were doing maintainance or something , but it gave me some time to reflect on what has been discussed here . You guys were right , I didn't notice anything was missing in my /usr/src/linux-2.6.10 directory until I compared it with /linux-2.4.22 , MAKE.RULE was not there and a few more ! That's some dodgy package.
Thanks for the hint !
And when the compilation is over , is it really necessary to do the following :
#mv ./config /config-2.6.10 ? Some how-to says yes , some doesn't mention it .
One more thing , I understand that I have to create a /sys directory for storing hotplug files under the new kernel , where should I make this directory if I built the kernel as an unprivelaged
user , only to install it as root ? Should it be in the root of the user or just the root ? I hope I've made myself clear enough for you to understand what I'm asking .
Many thanks in advance .
Originally posted by LQer928
And when the compilation is over , is it really necessary to do the following :
#mv ./config /config-2.6.10 ?
...that command will move the config-file to your root-dir.
that's not a good idea.
normally , after a kernel-compile, you save the config file to some place.
i copy them to my home-dir, some people use the /boot/ dir. and that's all ok.
it's just that running " make mrproper" will delete the config-file in the kernel-source tree.
Quote:
Originally posted by LQer928
One more thing , I understand that I have to create a /sys directory for storing hotplug files under the new kernel , where should I make this directory if I built the kernel as an unprivelaged
user , only to install it as root ? Should it be in the root of the user or just the root ? I hope I've made myself clear enough for you to understand what I'm asking .
Many thanks in advance .
the /sys dir must be in the root dir.
so simply " #mkdir /sys " will do the trick.
( but IIRC the startup script takes care of that, not sure.. )
making it yourself is not bad.
and if you want to make a kernel as a normal user, i guess you'll do that on some place inside your home-dir.
that's ok, but remember to keep the sources in place, so they can be found
by other programs that need them. ( like the ati or nvidia graph. drivers )
I thought they just took mrproper out of the makefile in the 2.6.x kernels? Anyhow, if you are getting errors about no rule for menuconfig, I would suspect that you have a broken source tree (or you misspelled it) and suggest you delete the directory, download new kernel sources and re-extract it.
change the install.sh pointers from the top directory to the /boot direcoty, make any changes in the makefile and install.sh file that all points to the correct directories, if they have not already been fixed by the builder of this particular Kernel.
Make mrproper be sure to spell it right
make clean
make menuconfig
change all the needed adjustments to your kernel information reflecting your installed hardware.
esc (save y/n) yes
make
runs through, vcreates all files includeing modules you may have
make install
make modules_install
Then startx before rebooting, if you have KDE then go into the Control Center and System Administration and find the Lilo setttings and change it there. Exit the XWindow and reboot, if you did everything correctly, then you should be using the latest and grettes Linux Kernel.
With Slackware 10.1 the second CD is a Emergency Boot Disk if you mess somehting up, this will allow you to get back to fix it to go to the older kernel you have installed, and then fix what you need.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.