Buffalo ARM9 Kernel Port
Linux version 22.214.171.124-arm1 (root@develop) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #75 Sun Jun 11 14:33:24 JST 2006
This is available at 
jonli447 and lb_worm were trying to create a patch for the vanilla kernel  so we could use the kernel.org sources for the arm9-buffalo-boxes easily. But the guys from Marvell have done a great job in doing that so the nas-central community have stopped efforts in doing that to focus on helping with the Marvell's git. Marvell's code was merged into 2.6.25 with the latest development going into the Orion repository 
At this time (01/06/2008) their kernel (2.6.26-rc4) supports:
- The Buffalo Linkstation Pro/Revogear Kurobox Pro support (MV88F5182)
- The Marvell Orion-2 (MV88F5281) Development Board
- The OrionNAS RD board (MV88F5182)
- The D-Link DNS-323 board (MV88F5181)
- The QNAP TS109/209/409 boards (MV88F5182 & MV88F5281)
- The HP Media Vault mv2120
- The NAND Flash controller
- The SATA controller
- The Ethernet controller
- The USB controller
- The PCI controller
- The GPIO controller
- The Serial Port controller
- The I2C controller
The things that are not yet supported :
- The CESA hardware engine is not yet supported (usefull for cryptographic and security operations)
- The XOR hardware engine is not yet supported (usefull for iSCSI or RAID5 operations)
- OABI rootfs & applications when using a 88F5281-D0 (other SoC are OK)
If you want to talk about this kernel, please do it here
Note: By using the kernels from svn/git, users are still subject to the LinkstationWiki BetaTesters ToS and Disclaimer (Not trying to scare people, just warning newbies).
Compilation & Installation Instructions
- Install either a native or cross toolchain. Cross-compiling with the codesourcery toolchain (2007q3) is reccomended. If your cross compile machine runs Debian, or similar, you can use the cross compilation toolchain repository supplied by Emdebian. Gentoo users may use sys-devel/crossdev.
- Download mkimage to somewhere in your path. Gentoo users may get it by emerging dev-embedded/u-boot-tools.
- Ensure you have the devio command installed (sys-block/devio in Gentoo).
- Obtain the kernel sources, this can either be 2.6.25 or greater from kernel.org or you can use the Orion development repository:
- Change to your sources directory and create the kernel config:
make ARCH=arm orion5x_defconfig
- Run the following command to make any changes to the config file (including any ReiserFS or JFS support):
make ARCH=arm menuconfig
make ARCH=arm CROSS_COMPILE=/path/to/toolchain/bin/arm-none-linux-gnueabi- zImage
- After kernel is finished compiling, you need to force it to use the correct mach-type for your device:
# The version number at the end of each line is the kernel version that first # supported that device. Run only the line that corresponds to your device: devio > foo 'wl 0xe3a01c06,4' 'wl 0xe3811031,4' # Linkstation Pro/Live (2.6.26) devio > foo 'wl 0xe3a01c05,4' 'wl 0xe38110e5,4' # Kurobox Pro (2.6.25) devio > foo 'wl 0xe3a01c06,4' 'wl 0xe381101d,4' # QNAP TS-109/TS-209 (2.6.25) devio > foo 'wl 0xe3a01c06,4' 'wl 0xe3811041,4' # QNAP TS-409 (2.6.27?) devio > foo 'wl 0xe3a01c06,4' 'wl 0xe3811006,4' # D-Link DNS-323 (2.6.25) devio > foo 'wl 0xe3a01c06,4' 'wl 0xe381109d,4' # HP Media Vault MV2120 (2.6.27?) devio > foo 'wl 0xe3a01c06,4' 'wl 0xe3811074,4' # Technologic Systems TS-78xx SBC (2.6.27?) devio > foo 'wl 0xe3a01c06,4' 'wl 0xe3811061,4' # Linksys WRT350N v2 (2.6.27?) devio > foo 'wl 0xe3a01c07,4' 'wl 0xe3811027,4' # Buffalo Linkstation Pro Duo (Is this right?) devio > foo 'wl 0xe3a01c07,4' 'wl 0xe3811042,4' # Buffalo Linkstation Mini devio > foo 'wl 0xe3a01c06,4' 'wl 0xe3811030,4' # Buffalo TS Pro V2 (not yet supported in Vanilla 2.6.26 as of Aug. 10th, 2008) devio > foo 'wl 0xe3a01c07,4' 'wl 0xe3811065,4' # Netronix NH-233 # Run all of the following: cat foo arch/arm/boot/zImage > zImage.new mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 'linux' -d zImage.new uImage.new rm foo zImage.new
- The new uImage will be called uImage.new, copy this to its destination. For a Linkstation/Kuro this is the /boot/uImage.buffalo.
- If necessary, compile modules and be sure if you are cross compiling not to set the install path to the hosts root:
make ARCH=arm CROSS_COMPILE=/path/to/toolchain/bin/arm-none-linux-gnueabi- modules make ARCH=arm CROSS_COMPILE=/path/to/toolchain/bin/arm-none-linux-gnueabi- modules_install INSTALL_MOD_PATH=/<absolute/dir/loc/not/root/dir>
- copy lib/ directory that is created to / of linkstation