Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Aug 18, 2018 3:50 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: Mon Oct 06, 2014 11:51 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
no, zswap isnt supported/enabled, as you can see here.
we dont use grub but uboot. you can change the arguments there or set them in the kernel config like the zram support.

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


Top
   
PostPosted: Wed May 06, 2015 8:10 pm 
Offline
Total Newbie

Joined: Tue May 27, 2014 6:20 pm
Posts: 4
Tried to install the new Kernel with apt-get.
It installed without Problems, but it does not boot from it

any ideas?

Code:
Linux network-share 3.14.4-fjen-1 #1 Tue May 13 22:36:42 CEST 2014 armv5tel GNU/Linux


Top
   
PostPosted: Sun May 10, 2015 3:48 pm 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
Dennis82 wrote:
Tried to install the new Kernel with apt-get.
It installed without Problems, but it does not boot from it

any ideas?


I've had the same problem and I found out that you need to mount /boot before install the kernel.

Note: like fjen had specified in first page you need to have "flash-kernel" installed from backports before of install the kernel.

PS: I suggest you to remove the kernel that you installed before, after mount /boot and reinstall it.


Top
   
PostPosted: Mon Jun 01, 2015 2:31 am 
Offline
Newbie

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

Upgrading kernel processes????

Just install linux-image-kirkwood and flash-kernel from wheezy-backports and reboot

Can you supply any instructions on how to make this conversion please???

thanks in advance


Top
   
PostPosted: Tue Jun 30, 2015 9:26 am 
Offline
Newbie

Joined: Tue Jun 11, 2013 11:28 am
Posts: 30
hi fjen,

me too.
I am on your system and it works fine until now.
Can you please provide a step by step instruction to change to original deb kernel with ls-chl support.
Thank you very much.

ps:
i need the device and can not stuck in bootloop or no boot

please help


Top
   
PostPosted: Sat Jul 11, 2015 1:01 pm 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
As requested from noone I post steps I have followed to update kernel from backports.
I'll not taking responsibility for yours unbootable system after you follow this steps!

If you tried to install the kernel with no success I suggest to remove it before start.

First you have to check if wheezy backports repository are present and enabled in your /etc/apt/sources.list.
1. Edit /etc/fstab and set /boot partition to auto mount (or you can manually mount /boot every time you have to update kernel)
2. apt-get update
3. apt-get -t wheezy-backports install flash-kernel
4. apt-get -t wheezy-backports install linux-image-kirkwood
5. reboot

What changes:
For example you will lost fjen kernel personalizations like zram support.


Top
   
PostPosted: Mon Jul 13, 2015 8:00 pm 
Offline
Newbie

Joined: Tue Jun 11, 2013 11:28 am
Posts: 30
Thank you,

I edit fstab
I mount boot
I edit the sources
I install the 2 packets
All without errors

New files are found in /boot

After reboot it is still fjens kernel active (uname -a)

How can i modity boot order ?



root@dry:/boot# ls -al
total 17197
drwxr-xr-x 3 root root 1024 Jul 13 14:19 .
drwxr-xr-x 22 root root 4096 Jul 13 14:17 ..
-rw-r--r-- 1 root root 1619102 Jun 14 22:11 System.map-3.16.0-0.bpo.4-kirkwood
-rw-r--r-- 1 root root 135743 Jun 14 22:11 config-3.16.0-0.bpo.4-kirkwood
-rw-r--r-- 1 root root 71584 May 13 2014 config.3.14.4-fjen-1
-rw-r--r-- 1 root root 66107 Oct 24 2014 config.3.9.2-fjen-1
-rw-r--r-- 1 root root 576 Oct 24 2014 initrd.buffalo
-rw-r--r-- 1 root root 576 Oct 24 2014 initrd.buffalo.empty
-rw-r--r-- 1 root root 8911847 Jul 13 14:19 initrd.img-3.16.0-0.bpo.4-kirkwood
drwx------ 2 root root 12288 Oct 23 2014 lost+found
lrwxrwxrwx 1 root root 28 Oct 24 2014 uImage.buffalo -> uImage.buffalo.3.14.4-fjen-1
-rw-r--r-- 1 root root 2415681 May 13 2014 uImage.buffalo.3.14.4-fjen-1
-rw-r--r-- 1 root root 2234270 Oct 24 2014 uImage.buffalo.3.9.2-fjen-1
-rw-r--r-- 1 root root 2054184 Jun 14 22:10 vmlinuz-3.16.0-0.bpo.4-kirkwood
root@dry:/boot#



Please little support


Top
   
PostPosted: Mon Jul 13, 2015 8:14 pm 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
Try this as root:

1) be sure you have /boot mounted
2) flash-kernel
this will start installation of new kernel into /boot and generate a new uImage.buffalo
3) reboot and check with uname -a


Top
   
PostPosted: Wed Jul 15, 2015 7:16 pm 
Offline
Newbie

Joined: Wed Jul 15, 2015 7:12 pm
Posts: 9
ok - thanky you - new kernel is running.
lsmonitor doesnt work anymore - can you help
any tool to watch hdd temp and control power switch and fan speed

regards


Top
   
PostPosted: Wed Jul 15, 2015 8:15 pm 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
With new kernel now partition are mounted by uuid and you need to edit lsmonitor init script and change the value corrispondent to yours partition uuid. An example: before /dev/sdc2 after /dev/disk/by-uuid/abcde-fghi-lmo...
The value to modify are two, first is for HDDTEMP and the second is for HDDSTATUS.


Top
   
PostPosted: Thu Jul 16, 2015 6:40 am 
Offline
Newbie

Joined: Wed Jul 15, 2015 7:12 pm
Posts: 9
can you please post your lsmonitor script
i can use it modify my own.
the uuid is not the problem
thank you


Top
   
PostPosted: Sat Jul 18, 2015 1:55 pm 
Offline
Newbie

Joined: Sun Feb 16, 2014 11:26 am
Posts: 13
If your fan isn't working the problem can be resolved following this post by Dennis82:
viewtopic.php?p=168287#p168287

Power switch can be restored by installing triggerhappy, you can found here instructions for installation and configuration:
http://buffalo.nas-central.org/wiki/Deb ... n_LS-CHLv1

And here is my lsmonitor script:

Code:
#!/bin/sh

### BEGIN INIT INFO
# Provides:          lsmonitor
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Monitor Linkstation LS-CHLv2 and LS-XHL
# Description:       Enable service provided by daemon.
### END INIT INFO

#
# lsmonitor:
# - handle ls complete power-on
# - monitor hdd temperature & control fan speed
# - monitor hdd status & contol function led
# - monitor function button (todo)
# - monitor power switch (todo)
#
# Changelog:
# - Modified to work with a Debian kernel on a LS-CHLv2
# - Added hdd status monitoring
# - Modified to work with a vanilla kernel >= 3.6
# - Modified to work with a vanilla kernel >= 3.8
#
# Copyright (C) 2013 Sergej Wildemann
##
# Based on:
#  blstools - Copyright (C) 2010 Michele Manzato
#
# Credits:
#  Thanks to archonfx on Buffalo NAS Central forum for HDD
#  temperature monitoring command.
##
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
##

# Location of pid file
PIDFILE=/var/run/lsmonitor_daemon.pid

# Control interfaces
LINFO="/sys/devices/gpio_leds/leds/lsxl:amper:info"
LPOWER="/sys/devices/gpio_leds/leds/lsxl:blue:power"
LBFUNC="/sys/devices/gpio_leds/leds/lsxl:blue:func"
LAFUNC="/sys/devices/gpio_leds/leds/lsxl:red:func"
LALARM="/sys/devices/gpio_leds/leds/lsxl:red:alarm"

FAN_CTRL=/sys/bus/platform/devices/gpio_fan/driver/gpio_fan/hwmon/hwmon0
FAN_TARGET=${FAN_CTRL}/fan1_target
FAN_INPUT=${FAN_CTRL}/fan1_input

# Fan speeds
SPEED_STOP=0
SPEED_SLOW=1500
SPEED_HIGH=3250
SPEED_FULL=5000

# HDD temperature limits for fancontrol
HDDTEMP0=45
HDDTEMP1=50
HDDTEMP2=55

# Load settings
. /etc/default/lsmonitor

# Set and get current fan speed
fan_speed()
{
   if [ $1 = "get" ]; then
      cat $FAN_INPUT
   elif [ $1 = "set" ]; then
      echo $2 > $FAN_TARGET
   fi
}

# Monitor HDD temperature & control fan speed
monitor_temperature()
{
   # Retrieve HDD temp
   HDDTEMP=$(smartctl /dev/disk/by-uuid/5da0bc7c-6b06-4c71-8ccc-0d750cc44b93 --all | awk '$1 == "194" {print $10}')

   # Change fan speed accordingly
   if [ $HDDTEMP -le $HDDTEMP0 ]; then
      fan_speed set $SPEED_STOP
   elif [ $HDDTEMP -le $HDDTEMP1 ]; then
      fan_speed set $SPEED_SLOW
   elif [ $HDDTEMP -le $HDDTEMP2 ]; then
      fan_speed set $SPEED_HIGH
   else
      fan_speed set $SPEED_FULL
   fi
}

# Monitor HDD status and deactivate power led if idle
monitor_hdd()
{
   HDDSTATUS=$(hdparm -C /dev/disk/by-uuid/5da0bc7c-6b06-4c71-8ccc-0d750cc44b93 | grep "standby")
   if [ -z "$HDDSTATUS" ]; then
      echo default-on > $LBFUNC/trigger
      if [ $HDDSTATUSOLD -eq 0 ]; then
         echo `date` active >> /var/log/hddstatus.log
         HDDSTATUSOLD=1
      fi
   else
      echo none > $LBFUNC/trigger
      if [ $HDDSTATUSOLD -eq 1 ]; then
         echo `date` standby >> /var/log/hddstatus.log
         HDDSTATUSOLD=0
      fi
   fi
}

# Control LS switch status to power down the unit
lsmonitor_daemon()
{
   COUNT=12
   HDDSTATUSOLD=0

   fan_speed set $SPEED_STOP

   while [ true ]; do
      # Check switch status
      #PWR_SW=`cat /sys/class/gpio/gpio${GPIO_PWR_SW}/value`
      #AUT_SW=`cat /sys/class/gpio/gpio${GPIO_AUT_SW}/value`

      # Check HDD status
      monitor_hdd

      # Terminate when in OFF state
      #if [ "$PWR_SW" -eq 1 ] && [ "$AUT_SW" -eq 1 ]; then
      #   break
      #fi

      # Once per minute monitor HDD temperature
      if [ $COUNT -eq 12 ]; then
         COUNT=0
         monitor_temperature
      else
         COUNT=$(( $COUNT + 1 ))
      fi

      sleep 5
   done

   # Run the fan at low speed while halting, just in case halt hangs the unit
   fan_speed set $SPEED_LOW

   # blink power led
   echo timer > $LPOWER/trigger
   echo 100   > $LPOWER/delay_on
   echo 100   > $LPOWER/delay_off

   # Initiate unit shutdown
   halt
}

# Kill the lsmonitor daemon
kill_lsmonitor_daemon()
{
   PID=`cat $PIDFILE`
   if [ "$PID" != "" ] ; then
      kill $PID
      rm $PIDFILE
   fi
}


case $1 in
   start)
      # Start the lsmonitor daemon
      lsmonitor_daemon &
      echo $! > $PIDFILE
      ;;
   stop)
      # Kill the lsmonitor daemon
      kill_lsmonitor_daemon
      ;;

   restart)
      $0 stop && sleep 2 && $0 start
      ;;

   *)
      echo "Usage: $0 {start|stop|restart}"
      exit 2
      ;;
esac


Top
   
PostPosted: Mon Aug 03, 2015 7:17 am 
Offline
Newbie

Joined: Wed Jul 15, 2015 7:12 pm
Posts: 9
how can i restore old kernel?

root@dry:~# ls -la /boot
total 27991
drwxr-xr-x 3 root root 1024 Jul 14 06:51 .
drwxr-xr-x 22 root root 4096 Jul 13 14:17 ..
-rw-r--r-- 1 root root 1619102 Jun 14 22:11 System.map-3.16.0-0.bpo.4-kirkwood
-rw-r--r-- 1 root root 135743 Jun 14 22:11 config-3.16.0-0.bpo.4-kirkwood
-rw-r--r-- 1 root root 71584 May 13 2014 config.3.14.4-fjen-1
-rw-r--r-- 1 root root 66107 Oct 24 2014 config.3.9.2-fjen-1
-rw-r--r-- 1 root root 12487 Jul 14 06:51 dtb
-rw-r--r-- 1 root root 12487 Jul 14 06:51 dtb-3.16.0-0.bpo.4-kirkwood
-rw-r--r-- 1 root root 8911911 Jul 14 06:51 initrd.buffalo
-rw-r--r-- 1 root root 576 Oct 24 2014 initrd.buffalo.bak
-rw-r--r-- 1 root root 576 Oct 24 2014 initrd.buffalo.empty
-rw-r--r-- 1 root root 8911847 Jul 13 14:19 initrd.img-3.16.0-0.bpo.4-kirkwood
drwx------ 2 root root 12288 Oct 23 2014 lost+found
-rw-r--r-- 1 root root 2066735 Jul 14 06:51 uImage.buffalo
-rw-r--r-- 1 root root 2415681 May 13 2014 uImage.buffalo.3.14.4-fjen-1
-rw-r--r-- 1 root root 2234270 Oct 24 2014 uImage.buffalo.3.9.2-fjen-1
lrwxrwxrwx 1 root root 28 Oct 24 2014 uImage.buffalo.bak -> uImage.buffalo.3.14.4-fjen-1
-rw-r--r-- 1 root root 2054184 Jun 14 22:10 vmlinuz-3.16.0-0.bpo.4-kirkwood
root@dry:~#


Top
   
PostPosted: Tue Sep 08, 2015 8:14 am 
Offline
Newbie

Joined: Wed Jul 15, 2015 7:12 pm
Posts: 9
can anyone give helping hands to compile kernel ?

i want to do this by my self.

thank you


Top
   
PostPosted: Tue Sep 08, 2015 8:56 am 
Offline
Newbie

Joined: Wed Jul 15, 2015 7:12 pm
Posts: 9
can anyone give helping hands to compile kernel ?

i want to do this by my self.

thank you


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 5 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