Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Feb 19, 2018 5:14 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Jan 11, 2009 6:23 pm 
Offline
Newbie

Joined: Thu Apr 10, 2008 5:39 pm
Posts: 73
Location: HK
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.

_________________
LinkStation Live V2, Stock Firmware: 1.20-0.76 Japan w/EXT3 root-fs & JFS Data Partitions


Top
   
PostPosted: Mon Jan 12, 2009 2:33 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
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.

_________________
LS used as PVR and streaming source


Top
   
PostPosted: Mon Jan 12, 2009 6:18 pm 
Offline
Newbie

Joined: Thu Apr 10, 2008 5:39 pm
Posts: 73
Location: HK
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.

_________________
LinkStation Live V2, Stock Firmware: 1.20-0.76 Japan w/EXT3 root-fs & JFS Data Partitions


Top
   
PostPosted: Tue Jan 13, 2009 11:31 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Welldone, its great that you have been able to do this. You should now be able to try other things out now.

_________________
LS used as PVR and streaming source


Top
   
PostPosted: Fri Jan 16, 2009 7:56 am 
Offline
Newbie

Joined: Thu Apr 10, 2008 5:39 pm
Posts: 73
Location: HK
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:

_________________
LinkStation Live V2, Stock Firmware: 1.20-0.76 Japan w/EXT3 root-fs & JFS Data Partitions


Top
   
PostPosted: Fri Jan 16, 2009 1:45 pm 
Offline
Newbie

Joined: Thu Apr 10, 2008 5:39 pm
Posts: 73
Location: HK
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

_________________
LinkStation Live V2, Stock Firmware: 1.20-0.76 Japan w/EXT3 root-fs & JFS Data Partitions


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited