Building a kernel from Buffalos source

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 12:19, 31 December 2009 by Kenatonline (Talk | contribs)

Jump to: navigation, search

How to build a kernel from Buffalos source

This is an ongoing task. I will report my success as a step-by-step guide to build a kernel from the GPL sources Buffalo provided here http://opensource.buffalo.jp/gpl_storage.html .

2009.12.30: Succeeded to build the kernel using this .config http://downloads.buffalo.nas-central.org/Users/kenatonline/config.gz.

I had to edit some files, because the original source from buffalo was not error free (to be gentle).

Missing includes solved by correct forward declaration

Noone should ignore warnings like the ones one get compiling the Buffalo source (even not Buffalo itself).

driver/md/md.c:

 #ifdef CONFIG_BUFFALO_PLATFORM
 void kernevnt_RadiDegraded(int devno, int major, int minor);
 void kernevnt_RadiRecovery(int devno, int on, int isRecovery, int major, int minor);
 void kernevnt_RadiScan(int devno, int on);
 #endif

arch/arm/plat-feroceon-kw/mv_hal/buffalo/buffalocore.c:

 void egiga_buffalo_change_configuration(unsigned short mode);
 int mvBoardNameGet(char *pNameBuff);
 unsigned int mvBoardIdGet(void);

arch/arm/plat-feroceon-kw/mv_hal/buffalo/BuffaloGpio.c:

 void buffalo_link_led_off(unsigned int ethPortNum);
 void buffalo_link_led_on(unsigned int ethPortNum);

arch/arm/plat-feroceon-kw/mv_hal/buffalo/BuffaloGpioDriver.c:

 void bfSetMagicKey(unsigned int key);
 unsigned int bfGetMagicKey(void);

arch/arm/plat-feroceon-kw/mv_hal/buffalo/BuffaloUart.c:

 unsigned int mvBoardTclkGet(void);