Linux - NewbieThis 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
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.
I'm attempting to make some configuration changes using Linux Kernel Configurator. One of the changes I'm making is changing the processor from Pentium III/Celeron ... to Athlon/Duron ... which is the processor installed in my computer (Athlon 1800+). Since I'm more comfortable working with a GUI configuration program I've chosen to make the changes in the Linux Kernel Configurator. When doing so (I'm logged in as root),
I get the message to run "make symlinks dep". I will admit that I have no idea what that means, I decided to take a chance and the command, but got the following message.
root localhost root]# make symlinks dep
make: *** No rule to make target `symlinks'. Stop.
I've never seen that message before. Would someone interpret that for me? What steps should I take?
Can I ask what kernel version you're trying to compile? Also, at what point in the process do you get the "make symlinks dep" warning? I'll admit I've never seen that one either.
I _strongly_ suggest you do not use any kernel configuration utility other than those that come as a part of the kernel distibution.
Most people find menuconfig to be easy and fast. Open a console window. then -
cd /usr/src/linux
make symlinks
make mrproper
make menuconfig
When you type the last, you will get a "CHUI" interface to configuring the menu. Just go through each option in turn. Up and down arrows move between options, left and right arrows move between <Select> <Exit> and <Help>. Enter will Select, Exit or Help depending on which is highlighted.
When an option is highlighted, the 'N' key disables, the 'Y' key enables, and the 'M' key enables and builds it as a module.
When you are done with all your options, keep selecting <Exit> and hitting enter till it asks you if you want to save your configuration. Select <Yes> if you are happy, or <No> if not, and hit enter.
For sanities sake DO THE FOLLOWING!
Edit Makefile. At the top of the file you will see four lines, VERSION, PATCHLEVEL, SUBLEVEL and EXTRAVERSION. Set EXTRAVERSION equal to something, like b2 for build 2. Save your edit and exit.
Now continue at the command line:
make dep
make bzImage
make modules
make modules_install
Then copy arch/i386/boot/bzImage to /boot/<somefile>, where <somefile> is replaced by a unique name, such as vmlinuz-4.22.b2
Notice the b2 here matches the b2 that we used for EXTRAVERSION. Why do this? Because this way, if you screw something up, you can roll back to your working version. When you run 'make modules_install' it is going to put your modules in a directory called /lib/modules/V.P.S.E, where V equals VERSION, P equals PATCHLEVEL, S equals SUBLEVEL and E equals EXTRAVERSION. Because you changed EXTRAVERSION your current module directory remains untouched.
Notice that the name of your kernel, the name of the module directory, and the result of 'uname -r' all match up.
Now go ahead and update your grub or lilo and try it out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.