@timofonic & others
It's quite simple to make a new kernel, apply the ASFS patch, compile and then install it.
The things you should always have tho, in case something goes wrong, is a floppy boot disk. I also suggest that you read lilo's manual to make a boot menu if not already done, to be able to boot with an older kernel, in case you get, let's say, a kernel panic or any error blocking the boot sequence.
*** PLEASE note that this post does not include explanations on how to apply the other Pegasos specific patches, such as Gigabit support, Marvell support, etc.
First, you download the kernel-image package of your choice, here are the kernels:
http://www.kernel.org/pub/linux/kernel/v2.6/Kernel 2.6.8.1:
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.8.1.tar.gzOnce downloaded, you go into a folder were you have rights and you have to decompress it this way:
tar zxvf linux-2.6.8.1.tar.gz
It'll make it's own folder.
Then, download the ASFS patch, latest is here:
http://march.home.staszic.waw.pl/asfs/asfs-1.0b7_patch_2.6.3.diff.gzPut it in the same folder where you decompressed the kernel, but don't go into the linux-2.6.8.1 folder yet.
Then, you have 2 ways to do the same thing:
Option 1:
You need to decompress the patch this way:
gzip -d asfs-1.0b7_patch_2.6.3.diff.gz
Then make a soft link (to bypass the first level path in the patch) this way:
ln -s linux-2.6.8.1 linux-2.6.3
Apply the patch this way:
patch -p0 <asfs-1.0b7_patch_2.6.3.diff
Then go into the linux-2.6.8.1 folder
Option 2 (dholm's way):
cd linux-2.6.8.1
gzip -cd ../asfs-1.0b7_patch_2.6.3.diff.gz | patch -p1
There will be some messages, if none are errors, everything's OK.
First step to compile the kernel, this way:
make menuconfig
(There will be a menu with options, if you don't know what to do, just exit and click on Yes if it asks to save the config)
If all went well, second step, this way:
make
(this step is quite long, go make some coffee, or take a beer)
(oh, and at the end it'll ask you about running lilo, say Yes and it'll also ask you if you want to make a boot disk, you can say yes, but it is possible that it won't work. If it ends then, that should still be OK)
If all went well (considering what I said in previous comment), last compile step, this way:
sudo make modules_install install
Now, it should be installed. If you said "no" by error for the lilo question or needed to modify something before running it, then do proceed to the modifications (if necessary) and run it now, this way:
lilo
If you get an error at this point, double check the lilo config (usually /etc/lilo.conf).
All Done!
Now it's time to reboot and see if it worked, this way:
reboot
Once booted up, there's only 1 extra step to activate the ASFS module, run this command:
modconf
There's a colored text menu that'll come up. You have to go to kernel/fs/asfs, press enter, move cursor to the asfs line, press enter. It'll ask for parameters, don't enter anything and press enter. After few secs, you should see "Install succeeded" or something like that.
To make the module active, you need to reboot again, this way:
reboot
For more precisions in case something unexpected happens, please refer to the manuals, as I won't help much more on the topic. This was mainly to show you the process of compiling a new kernel by yourself when you don't want to wait for others to do it for you (sometimes, it's long!).
Hope this helps many of you!
Fred
Thanks:
-------
- to marcik who gave me the link and some hints about how to apply the ASFS patch
- to dholm who made some precisions about my misexplanation of the "bug" in the ASFS patch.
===
NOTE that I cannot be held responsible for any damages or problems or whatever could happen in case I made an error in this post.
[ Edited by ChatDEau on 2004/8/16 0:49 ]
[ Edited by ChatDEau on 2004/8/16 0:51 ]
[ Edited by ChatDEau on 2004/8/16 11:57 ]
[ Edited by ChatDEau on 2004/8/16 13:22 ]