Difference between revisions of "Project 2.6 mips"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(updated this page, added research resources and a viable way to get lenny on ls2)
m (small advice added)
Line 34: Line 34:
 
'''4) Flash u-boot
 
'''4) Flash u-boot
  
Then rename the 2.6 kernel to vmlinuz to make it the default
+
Then rename the 2.6 kernel to vmlinuz to make it the default. Reboot
  
 
'''5) Upgrade to Debian Lenny using "apt-get upgrade"
 
'''5) Upgrade to Debian Lenny using "apt-get upgrade"
  
'''6) Compile your own kernel using the patch or install a precompiled one with modules
+
Be sure to check that you have really booted into the 2.6 kernel, the upgrade will fail on a 2.4 kernel system.
  
 +
'''6) Compile your own kernel using the patch or install a precompiled one with modules
  
 
==Compiling a 2.4 Kernel==
 
==Compiling a 2.4 Kernel==

Revision as of 19:46, 2 March 2009

Contents

Project 2.6 mips

This Page should be used to collect all the wisdom regarding compiling working versions of the latest 2.6-kernel for the LS 2(mips).

Everyone is invited to edit this page and add information!

All compiling information and information about patches should get here. if needed i can modify mediawiki to allow some more filetypes to be allowed to upload to the wiki. this way we could even share our patches directly here on this page

Installing a 2.6 Kernel

Resources

There is a patch for linux-2.6.22 and lots of essential research information here: http://www.linuxnotincluded.org.uk/

Precompiled kernel images and modules can be downloaded here: http://downloads.buffalo.nas-central.org/Users/davy_gravy/kernelpackages/

The LS2 "U-Boot" boot loader and installation instructions: http://downloads.nas-central.org/LS2_MIPSel/Bootloader/Uboot/Precompiled/

A useful blog entry on installing the new boot loader: http://endy.blogomat.net/wp-trackback.php?p=112

Possible steps from "virgin LS2" to "LS2 Lenny"

Nuvola apps important.png 
WARNING!

Please note that this guide comes with NO warranty whatsoever; you are using this at your own risk! Modifying your LinkStation in this way most likely will void your warranty. This is still highly experimental and should not tried on boxes with important data on. You might brick your box just by mistyping a single letter or even because of a bad day!


1) Install FreeLink, but do not run "apt-get upgrade" now

2) Use Fix_ext2_magic to fix your /dev/hda1 partition.

If you don't want to remove the harddisk from your Linkstation, compile the tool natively, stop all daemons and loggers (but leave your ssh session alive), remount root readonly, fix it and reboot.

3) Get u-boot

Definitely try booting the supplied 2.4 and 2.6 kernels from memory before flashing it.

4) Flash u-boot

Then rename the 2.6 kernel to vmlinuz to make it the default. Reboot

5) Upgrade to Debian Lenny using "apt-get upgrade"

Be sure to check that you have really booted into the 2.6 kernel, the upgrade will fail on a 2.4 kernel system.

6) Compile your own kernel using the patch or install a precompiled one with modules

Compiling a 2.4 Kernel

Roadmap

1) Build a 2.4.20-kernel from the gpl-source

(there you won`t need to apply the melfs.patch as this is obviously included)

we will test it by trying to load the resulting vmlinux.bin with the mips-loader.o

2) Create a patch for compiling a working LS2 Kernel from the vanilla kernel 2.4.20

After we know that we can build the kernel from GPL Source we need to find out what the differences are between the vanilla kernel and the GPL-Source Kernel. I tried to create a diff between those kernel-sources already (but i noticed that there are far too much lines in it as some lines have a "-" before and later a "+" for adding the unmodified again...maybe this is related to some additional blank lines or comments?

Here is a diff of the arch-tree between the vanilla 2.4.20 kernel and linux-2.4.20_mipsel_linkstation

 http://www.unet.univie.ac.at/~a0025690/arch_mips_diff.txt

and here is a complete kernel-diff

 http://www.unet.univie.ac.at/~a0025690/kernel_diff.txt

3) Build the latest 2.4-Kernel available

We should have a patch to create a LS2-kernel from the vanilla 2.4.20 kernel. Now we can try to create the latest 2.4-kernel available. currently this is 2.4.33.2 (released on the 22.8.2006)

 http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.33.2.tar.gz 

Notes

do not forget to apply the melfs.patch because of the custom ext2_magic_number buffalo invented to protect the linux filesystem from us.here is the melfs patch which takes care of that

 http://www.unet.univie.ac.at/~a0025690/development/melfs.patch

Information about loader.o for the LS2

This should be possible....because Eiji coded the assembler stuff needed by loader.o because of the different CPU (mips instead of ppc) for this and he already compiled a kernel for that:

http://www5.atwiki.jp/kuro-bsd/pages/132.html

Here is the page with google online translation for surfing on the page:

http://translate.google.com/translate?u=http%3A%2F%2Fwww5.atwiki.jp%2Fkuro-bsd%2Fpages%2F132.html&langpair=ja%7Cen&hl=en&ie=UTF8

Links & Resources