Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Oct 20, 2014 10:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon May 20, 2013 8:05 am 
Offline
Total Newbie

Joined: Thu Aug 16, 2012 4:16 am
Posts: 2
As LS-XHL/CHLv2 has been supported by vanilla kernel since then (3.6?), also thanks to hato's and VolleMelk's efforts below, I
viewtopic.php?f=73&t=25941
viewtopic.php?f=77&t=26985
was motivated to write a patch for LS-WVL, and for latest 3.9.2 using Flattened Device Tree(DT) approach, based on LS-XHL/CHLv2 in vanilla. DT allows you to use same kernel(zImage) for multiple devices(LS-XHL and LS-WVL, for my case) with different dtb. DT is easy to debug settings, such as gpio(fan, leds, switches, and regulators), because you don't have to rebuild the kernel.

Here's my results. My WVL is up and running without problem so far.
I'm happy if this could be useful for you, but there may be a potential problem(s) I don't know for now.
Please use AT YOUR OWN RISK. Thanks.

Patches for 3.9.2:
Code:
wget --no-check-certificate https://www.dropbox.com/s/5d5qmd3obzeqstg/linux-3.9.2.lswvl.patch


Config I'm using:
Code:
wget --no-check-certificate https://www.dropbox.com/s/grsp0i6ooxdsgk6/Config-3.9.2


Build:
Code:
make zImage
make kirkwood-lswvl.dtb
cat arch/arm/boot/zImage arch/arm/boot/dts/kirkwood-lswvl.dtb > foo
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 'Linux-3.9.2' -d foo arch/arm/boot/uImage


For LS-XHL, just replace lswvl with lsxhl, which is supported by mainline kernel.

After boot, you can access GPIO via:
LEDs: /sys/class/leds/{lswvl:amber:info, lswvl:blue:func, lswvl:blue:power, lswvl:red:alarm, lswvl:red:func, lswvl:red:hdderr0, lswvl:red:hdderr1} (0:off 1:on)
FAN: /sys/devices/gpio_fan.3/fan1_target (0, 1500, 3250, 5000 rpm)
Switches: /dev/input/event0 (POWER: EV_SW 0, AUTO: EV_SW 1, FUNC: EV_KEY 357)


Top
 Profile  
 
PostPosted: Wed Jun 19, 2013 11:07 am 
Offline
Total Newbie

Joined: Thu Oct 18, 2012 1:51 pm
Posts: 4
Hi,
Is it possible to use a modification of your patch for LS-VL :?:


Top
 Profile  
 
PostPosted: Sat Jul 06, 2013 4:17 am 
Offline
Total Newbie

Joined: Sat Jul 06, 2013 4:13 am
Posts: 2
Hi octanemv,

Is it possible for your to share your uImage binary or teach us how to compile the kernel (detailed instruction)?
I'd like to compile it by myself but I don't know how to do it?


Top
 Profile  
 
PostPosted: Thu Feb 13, 2014 5:38 pm 
Offline
Newbie

Joined: Sun Mar 28, 2010 6:09 pm
Posts: 16
Nice.

I'm thinking of getting one of these, is your device still running ok? I have a few questions:

Did you have to update uBoot for DTS support?
Are you considering uploading this patch to kernel.org? This would be good - then an entry could be added to the Debian flash-kernel db and configs so that this device is supported :)
Does raid work ok (and which modes?)

Thanks,

Ash


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group