Buffalo NAS-Central Forums
http://forum.buffalo.nas-central.org/

Buffalo GPL Release Kernel Compile
http://forum.buffalo.nas-central.org/viewtopic.php?f=18&t=14336
Page 1 of 1

Author:  sluk [ Sun Jan 11, 2009 6:23 pm ]
Post subject:  Buffalo GPL Release Kernel Compile

Today tried compile the GPL source below from Buffalo:
http://buffalo.jp/php/los.php?to=gpl/storage/ls-gl/110/linux-2.6.16_lsp.1.7.8.tar.gz
with buffalo_lsgl_arm_110.config without any modification. It should be the same kernel version as what I am currently using. To my surprise, the result uImage.new doesn't boot at all in my LS Live! One thing I want to clarify, do I need the following steps apply to the result zImage because these steps only mentioned in the wiki for compiling the vanilla kernel.
Code:
devio > foo 'wl 0xe3a01c06,4' 'wl 0xe3811031,4' 
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

Note: Codesourcery 2005q3 cross toolchain under Ubuntu was used for the above compilation process.

Author:  lb_worm [ Mon Jan 12, 2009 2:33 pm ]
Post subject:  Re: Buffalo GPL Release Kernel Compile

You only need
Quote:
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 'linux' -d zImage.new uImage.new
the remainder is to fool Uboot checks as the magic number is different for the vanilla kernels.

Author:  sluk [ Mon Jan 12, 2009 6:18 pm ]
Post subject:  Re: Buffalo GPL Release Kernel Compile

Thank you so much, lb_worm!

It works! :biglol: A wiki for GLP Compiling is required because just this step will "Brick" many newbie like me if we just follow the same procedures of the Vanilla compile.

Author:  lb_worm [ Tue Jan 13, 2009 11:31 am ]
Post subject:  Re: Buffalo GPL Release Kernel Compile

Welldone, its great that you have been able to do this. You should now be able to try other things out now.

Author:  sluk [ Fri Jan 16, 2009 7:56 am ]
Post subject:  Re: Buffalo GPL Release Kernel Compile

Just figure out the Buffalo GPL released Makefile cannot build a kernel with correct Product ID for the LS Live, you can only specify LS-GL with predefined Product ID 0x0009 but LS Live require HS-DHGL with Product ID 0x000A. Why I look into this because I cannot get this kernel to leave EM Mode, once I switched to this kernel in /boot and reboot the box will boot into EM Mode, no matter what I did cannot change it back and the Windows LSUpdater cannot detect it. I use acp_commander to figer out the new kernel return:
Code:
Found:  HS-DHGL-EM2B4 (/192.168.11.150)         LS-GL(IESADA) (ID=0009)
mac: 00:16:XX:XX:XX  Firmware=  9.00 Key=6EE80BEC
while the old kernel return:
Code:
Found:  HS-DHGL2B4 (/192.168.11.150)    HS-DHGL(JINMU) (ID=00010)       
mac: 00:16:XX:XX:XX  Firmware=  1.200        Key=357F2EF4
I think the Stock boot process some how compare the Product ID to somewhere in /dev/sda2 which is a value stored in last successful boot, thus, the two piece of information will never match and refused to enter normal mode.

I wonder none of you attempt to use custom build kernel with Stock rootfs like me. :cry:

Author:  sluk [ Fri Jan 16, 2009 1:45 pm ]
Post subject:  Re: Buffalo GPL Release Kernel Compile

I found the solution, the initrd boot process as expected not just check the Product ID but also the Kernel Build Date... My box is now running with the new build kernel under the Stock environment. :biglol: Apart from the cross compiling, I would never expect it will get so complicated ... I have prepare the Wiki here to save some time for others: How to Get GPL Build Kernel Run Under Linkstation Live Stock Environment

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/