Welcome to TQ CMS knowledge base. Here you will find useful information for all sorts of things.

How to compile the kernel in Slackware

This is the way I did it, and hopefully should work for you as well.

Open terminal and login as root [or if you'd prefer, use sudo in every step.]

# cd /usr/src

# wget ‘http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.tar.bz2′

# tar xvfj linux-2.6.31.tar.bz2

After it’s extracted remove the previous symlink.

# rm -rf linux

# ln -s /usr/src/linux-2.6.31 /usr/src/linux

Now your linux directory points to your newly extracted kernel tree source. If you want you can configure using your personal config, or I have uploaded my config which I will use in this guide. So you may skip next step of wgetting it. ;)

 

# cd /usr/src/linux && wget ‘http://www.sigmirror.com/files/31573_su3ht/.config’

# make menuconfig

Now scroll all the way down and select load kernel configuration and press enter to select the .config.

# make

This will take a while, meanwhile open another tab and configure lilo.

# nano /etc/lilo.conf

Scroll all the way down and copy the existing linux entry. Just change the part which says /boot/vmlinuz to /boot/bzImage and then add another line just below it called initrd. Here’s my entry:

image = /boot/bzImage
initrd = /boot/initrd.gz
root= /dev/hda4
label = Linux
read-only

Remember to replace /dev/hda4 with your own root partition. Yes yes, I know we haven’t created an initrd image yet. Patience! Just save and exit for now.

Now that make is over run:

# make modules_install

# cp arch/i386/boot/bzImage /boot/bzImage

# cp System.map /boot/System.map.new

# rm /boot/System.map

# ln -s /boot/System.map.new /boot/System.map

You may copy over the config file to /boot but I see now use for that and hence I skipped it. Hey as long as it works, eh? ;)

Anyways, now for the next step, you are own your own since it depends on what partition type you are using. I use ext4 throughout and have no separate partition for /boot and hence this is how I generated my initrd image. Please refer to /boot/README.initrd file for details!

# mkinitrd -c -k 2.6.31-pdg -m ext4 -f ext4 -r /dev/hda4

# cd /etc/rc.d

# rm rc.modules

# cp rc.modules-2.6.29.6-smp rc.modules-2.6.31-pdg

# ln -s /etc/rc.d/rc.modules-2.6.31-pdg /etc/rc.d/rc.modules

# lilo

If you get a warning about LBA32 just add “lba32″ in your lilo.conf and re-run lilo. And now reboot into your new kernel!

Good Luck :)

There is 56 guides in the database.

More news

Bootstrap
25 February, 2014

Bootstrap

I have implemented bootstrap into the project and changed all code in the administration to use this new framework and I really love the result that I see after a couple of hours of coding. To make things look so good has never been so easy as with
Guides
20 February, 2014

Guides

I have added some of my guides for different things when it comes to the different areas in the computer, I will continue to add guides and especially when it comes to things that I am using every now and then in my own work.
First phase completed
17 February, 2014

First phase completed

Then I had time to finish the dirty work with the page and now it only remains little touches here and there and I need to upload information about what I'm doing and my progress on the project as well.
Time for a change
16 February, 2014

Time for a change

Today I've decided to update my own personal website with the latest version of my project called TQ CMS and with a completely new design that is responsive. My goal with this project is to make it as easy as possible for the end user while

Spotlight

The next step

The next step

I have now resumed my programming after a couple of months of vacation which was very much needed. I got a call one day from a friend that needed a system which can handle peoples reports on various problems like kitchen problems, water problems etc and I decided to make a system for it. Little did I know that it would totally revolutionise my own project and that it would teach me much needed jquery skills to further enhance the CMS. I also