Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Dec 18, 2017 8:05 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 168 posts ]  Go to page Previous 18 9 10 11 12 Next
Author Message
PostPosted: Fri May 23, 2014 12:03 pm 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
How to change compression type of zram?
Like from standard LZO to Snappy?
Is possible?


Top
   
PostPosted: Fri May 23, 2014 1:36 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
There is no kernel config option to set a compression method other than lzo for zram.
Read the documentation for help: https://git.kernel.org/cgit/linux/kerne ... 5009a2941b

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Fri May 23, 2014 4:14 pm 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
I've misunderstanding, Snappy compression is still in development and is only available through a patch for zram on compile time for testing purpose. This is the project page:
https://github.com/zeevt/csnappy
https://code.google.com/p/snappy/

Sorry.


Top
   
PostPosted: Tue May 27, 2014 6:21 pm 
Offline
Total Newbie

Joined: Tue May 27, 2014 6:20 pm
Posts: 4
Hi, when i start the lsmonitor i get some errors

Code:
/etc/init.d/lsmonitor: 82: /etc/init.d/lsmonitor: cannot create /sys/bus/platform/drivers/gpio-fan/gpio_fan.4/fan1_target: Permission denied


\\EDIT

just wanted to let you know that i got it to work

Code:
aptitude install hddtemp lm-sensors fancontrol


you need to type

Code:
pwmconfig


and answer all with yes

check

Code:
sensors


check for the number, mine is 4, so it will be gpio_fan.4

and

Code:
echo "1" > /sys/bus/platform/devices/gpio_fan.4/hwmon/hwmon0/pwm1_enable


change FAN_CTRL= in /etc/init.d/lsmonitor

Code:
FAN_CTRL=/sys/bus/platform/devices/gpio_fan.4/hwmon/hwmon0


works great for me

Code:
/etc/init.d/lsmonitor restart


hddtemp

Code:
root@network-share:~# hddtemp /dev/sda
/dev/sda: WDC WD30EZRX-00SPEB0: 43 C



sensors

Code:
root@network-share:~# sensors
gpio-fan-isa-0004
Adapter: ISA adapter
fan1:           0 RPM  (min =    0 RPM, max = 5000 RPM)  ALARM



you can check

Code:
echo "200" > /sys/bus/platform/devices/gpio_fan.4/hwmon/hwmon0/pwm1


slows down the FAN and should turn off again if the HDD is not too hot. (like 99% of the time)


Top
   
PostPosted: Wed Jun 04, 2014 1:14 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
Dennis82 wrote:
Hi, when i start the lsmonitor i get some errors
Code:
/etc/init.d/lsmonitor: 82: /etc/init.d/lsmonitor: cannot create /sys/bus/platform/drivers/gpio-fan/gpio_fan.4/fan1_target: Permission denied


Thank you for the info. lsmonitor should be pretty much useless now. You can remove it and use standard ways to control the fan (fancontrol, lm-sensors).

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Wed Jun 04, 2014 8:50 pm 
Offline
Total Newbie

Joined: Tue May 27, 2014 6:20 pm
Posts: 4
fjen wrote:
Dennis82 wrote:
Hi, when i start the lsmonitor i get some errors
Code:
/etc/init.d/lsmonitor: 82: /etc/init.d/lsmonitor: cannot create /sys/bus/platform/drivers/gpio-fan/gpio_fan.4/fan1_target: Permission denied


Thank you for the info. lsmonitor should be pretty much useless now. You can remove it and use standard ways to control the fan (fancontrol, lm-sensors).


actually it works very well now. removed fancontrol since there is no need for it


Top
   
PostPosted: Sun Jul 20, 2014 10:33 pm 
Offline
Total Newbie

Joined: Sun Jul 20, 2014 10:09 pm
Posts: 4
Thanks to fjen!

Wheezy rootfs & kernel 3.14.4 installed, working great.

Only one problem in my LS-CHLv2, usb don't work recognising one UPS I want to control from LS-CHLv2.

This show in dmesg, every time I try to reconnect the usb cable:

Code:
[ 1106.638707] usb 1-1: new low-speed USB device number 4 using orion-ehci
[ 1106.935383] usb 1-1: unable to read config index 0 descriptor/start: -71
[ 1106.935410] usb 1-1: can't read configurations, error -71
[ 1107.048751] usb 1-1: new low-speed USB device number 5 using orion-ehci
[ 1107.380379] usb 1-1: unable to read config index 0 descriptor/start: -71
[ 1107.380403] usb 1-1: can't read configurations, error -71
[ 1107.498801] usb 1-1: new low-speed USB device number 6 using orion-ehci
[ 1107.735379] usb 1-1: unable to read config index 0 descriptor/start: -71
[ 1107.735405] usb 1-1: can't read configurations, error -71
[ 1107.848849] usb 1-1: new low-speed USB device number 7 using orion-ehci
[ 1107.949368] usb 1-1: device descriptor read/8, error 0
[ 1108.262380] usb 1-1: unable to read config index 0 descriptor/start: -71
[ 1108.262404] usb 1-1: can't read configurations, error -71
[ 1108.262475] hub 1-0:1.0: unable to enumerate USB device on port 1


The UPS device is working, I try with another computer and it works fine. The usb port is working ok with external HD and pendrives.

There is no support for non usb-storage devices?


Top
   
PostPosted: Fri Aug 01, 2014 3:09 pm 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
Hi fjen

Just started playing around with compiling kernel 3.14.14

How do I make sure that the kernel will run on the LS-XHL and not the LS-CHLv2.. [ I note that the menuconfig seems to have all kirkwoods together]

Any ideas/How did you do it????

Secondly after following the process below, how do I know what files need to be moved??? [any chances to get a copy of your .deb builder]??
... I presume uImage si the kernel file that becomes uImage.buffalo

### >= 3.6:
make menuconfig
make zImage modules
make kirkwood-lschlv2.dtb (make kirkwood-lsxhl.dtb)
cat arch/arm/boot/zImage arch/arm/boot/dts/kirkwood-lschlv2.dtb > arch/arm/boot/zImage_w_dtb (cat arch/arm/boot/zImage arch/arm/boot/dts/kirkwood-lsxhl.dtb > arch/arm/boot/zImage_w_dtb)
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 'Linux-3.0' -d arch/arm/boot/zImage_w_dtb arch/arm/boot/uImage

Thanks in advance


Top
   
PostPosted: Fri Aug 01, 2014 4:02 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
hey wolly,
sorry, the .dtb path changed a bit with 3.9 and i did not update the linked instructions.

you can find up to date ones here:
http://nibbler.neboola.de/gitweb/?p=fje ... xt;hb=HEAD
you need to change the "cat" line for lsxhl to:
cat arch/arm/boot/zImage arch/arm/boot/dts/kirkwood-lsxhl.dtb > arch/arm/boot/zImage_w_dtb.lsxhl

my deb build script is this one:
http://nibbler.neboola.de/gitweb/?p=fje ... heads/user

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Sat Aug 02, 2014 3:25 am 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
Hi Fjen,

Thanks for your fast response!

I am glad I was on the correct path (not a linux expert, just a hobbyist that does some learning)

Trying to build based on your build-nas-kernel script and I get the following issue (below) [seems to come from line 3]:

root@linkstation:/downloads/linux-3.14.14# ./build-nas-kernel.sh
USAGE: ./build-nas-kernel.sh VERSION
root@linkstation:/downloads/linux-3.14.14#

Why is it not continuing????


Top
   
PostPosted: Sat Aug 02, 2014 4:53 am 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
Hi, Fjen

All so can I change ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- to just the make .....

or is this line fully needed..

[Compiling directly on the LS-XHL ... I presume the cross compiler is if built on a non LS-XHL?]

Kind regards

wayne


Top
   
PostPosted: Sat Aug 02, 2014 5:13 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
wholly wrote:
root@linkstation:/downloads/linux-3.14.14# ./build-nas-kernel.sh
USAGE: ./build-nas-kernel.sh VERSION
Why is it not continuing????

you need to specify the current kernel version:
./build-nas-kernel.sh 3.14.15-wholly-1

wholly wrote:
All so can I change ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- to just the make .....
[Compiling directly on the LS-XHL ... I presume the cross compiler is if built on a non LS-XHL?]

yes, it's just "make ..." for you.

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Sun Aug 03, 2014 6:20 am 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
Fjen...

Thanks so vey much!!!!!

Now for the next learning curve...

What features etc from menuconfig?????

Hmmmmm..... google to the rescue!!!

wayne


Top
   
PostPosted: Mon Aug 04, 2014 3:40 pm 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
Hi Fjen,

Learning curve is still continuing but I hace xome across a problem that I can't find any info on during the compile?

2 issues>>>> maybe choices from the menuconfig>>>
------
CC arch/arm/kernel/return_address.o
arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
------
CC fs/direct-io.o
CC fs/mpage.o
#warning "TODO: return_address should use unwind tables" [-Wcpp] CC fs/ioprio.o
_____

thanks in advance

wayne


Top
   
PostPosted: Sun Oct 05, 2014 11:09 am 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
fjen is zswap supported in your kernel?

I've read the documentation here: https://www.kernel.org/doc/Documentation/vm/zswap.txt

I've found that kernel must be compiled with CONFIG_ZSWAP=y and require a zswap.enabled=1 in boot options, but in your rootfs there isn't a something like grub config to enable it. Is something that can work in our linkstation?


OT:
I've realized a basic and light web script for monitor the status of our nas based on fjen debian wheezy rootfs. It is inspired on RPi-Monitor for Raspberry Pi.
This is an example screen , if someone want to try it I can open a new topic and post it there.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 168 posts ]  Go to page Previous 18 9 10 11 12 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 11 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