Showing posts with label kernel. Show all posts
Showing posts with label kernel. Show all posts

Tuesday, December 8, 2009

Trying out Kernel Mode Setting (KMS) on Radeon 4850

I've been trying out Kernel Mode Setting (KMS) on my Radeon 4850, since it's extremely cool! The new kernel/mesa/ati-drivers also allows me to run accelerated 3D graphics on the desktop, finally! Well how does it work? Just have a look!
I think I have some more stuff to do ;)

Saturday, November 21, 2009

Listing which kernel modules you have built

Every now and then I'm confused about which modules I actually have compiled. And what was the name of that module you just built to fix your lm_sensors or wifi-card. This problem is not as common as it used to be, since a lot of software now seems to load the modules it needs, or even the kernel does it itself. But it's always good to have a clue I guess.

A little handy command to run is:
find /lib/modules/$(uname -r)/ -type f -iname '*.o' -or -iname '*.ko'
This will list all the modules in your module directory for the currently running kernel.

Saturday, December 13, 2008

Adding Reiser4 and Ext4 support in the 2.6.27 kernel

I recently bought a new hard drive, and thought that I might try some "new" filesystems that I haven't used before. Therefore I went with the Reiser4 (not supported in the kernel, and won't be in the near feature for several reasons) and Ext4 (which will be in 2.6.28).

To add support for these file systems we need to patch the kernel with the official patches that we can find here and here respectively. Download the files (to your desktop in this case) and extraxt them into your kernel directory.

# cd ~/Desktop/
# gunzip reiser4-for-2.6.27.patch.gz
# bzip2 -d 2.6.27-ext4-2.bz2
# sudo cp reiser4-for-2.6.27.patch 2.6.27-ext4-2 /usr/src/linux/
# cd /usr/src/linux

Then su and type in you password (or do the rest with sudo). To apply the patch we use the command "patch", with the -p argument.

# patch -p1 < reiser4-for-2.6.27.patch
# patch -p1 < 2.6.27-ext4-2

Then we need to enable it.

# make menuconfig

and enable the new filesystems that exists under the "File Systems". Build the kernel and install it.

# make all modules_install
# make install

Then let's cross our fingers and hope it works!