Dockstar: Crosscompile a newer Kernel, set up Toolchain

Dockstar: Crosscompile a newer Kernel, set up Toolchain

(3 votes, average: 5.00 out of 5)

Some days ago I wanted to test the performance of a partition with XFS as its filesystem. But I wasn’t able to mount it. After a look into the kernelconfig of gorgone’s heavykernel I noticed that he obviously didn’t build it with XFS-support.

I do want to make the test and take a look at kernelbuilding things anyway. Well, I don’t want to keep it back, so I decided to verbalize the steps I took.
In this guide you will learn how to set up the crosscompile toolchain to let a more powerful CPU do the job. If you prefer doing the whole thing on the dockstar it will take you several hours.
Further more we will go through the build process until we have a deb-file with the built kernel.

1. The CodeSourcery’s Toolchain

There already is a great HowTo how to set this up here:
I stripped it a bit as follows. If you have debian running on the machine you want to use for the build process download and run this script to install the toolchain:

Just to know, you don’t have to type this now:
When you want to enter the toolchain, type

To get back to the normal environment just exit:

That’s it.

2. The Kernel

2.1 Get the Sources

First of all you have to decide which kernel you want to compile, take a look at and download the sources. For example 2.6.37:

2.2 Edit the Configuration

If you already have a proper .config just copy it into the current folder.
Then run

Then make your changes in the new .config. It is that long that I prefer doing this with WinSCP or any other remote editor than using vim.
In newer kernel there is no need to add a special patch for the dockstar LED.
Once you are done run:

Lean back, this is going to take some time.

2.3 Install the new Kernel

If everything works fine, you should have a deb-file in /usr/src. Copy this to your dockstar and install it.
I don’t have to say that you should backup your data first.
Change the names to your compiled kernel:

To tell the kernel your device is a dockstar, change its machine ID in case you haven’t done before:

But remember to change it back to 2097 (sheevaplug’s ID) if you downgrade to a kernel that doesn’t support the dockstar.

If you didn’t edit the files for LED support, do it:
Add to

and in


add after

to set it off, when the system halts.

Now reboot and prey that everything works flawlessly.

3. References,524