Howto Update to new Kernel for NSA325

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Howto Update to new Kernel for NSA325

Postby SomeoneOnLine » Thu Oct 24, 2013 2:41 am

How could I update to the new kernel that auto mounts both drives at boot?

~SOL
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Howto Update to new Kernel for NSA325

Postby moonman » Thu Oct 24, 2013 7:58 am

Just run pacman -Suy to update everything.
It is not kernel's job to mount the drives though,you need to edit /etc/fstab.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Howto Update to new Kernel for NSA325

Postby WarheadsSE » Thu Oct 24, 2013 2:05 pm

He's referring to "powering on" not necessarily "mounting"

He need to make sure the boot partition is updated, or, that it is mounted so that pacman will update to that.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Howto Update to new Kernel for NSA325

Postby jeajea » Thu Oct 24, 2013 3:29 pm

Here is my fstab (I also added /dev/sda3)
$this->bbcode_second_pass_code('', 'cat fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 /boot ext2 defaults,noatime 0 2
/dev/sda3 /a3-data auto defaults,noatime 0 2
#EOF
[root@zy01 etc]#')I am not sure if my values for “dump” and “pass” are correct
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: Howto Update to new Kernel for NSA325

Postby SomeoneOnLine » Thu Oct 24, 2013 6:16 pm

$this->bbcode_second_pass_quote('', 'J')ust run pacman -Suy to update everything.


I did that and it looks like it updated a bunch of stuff including the kernel to 3.11.x however after a reboot when I issue fdisk -l is still only shows sda and not sdb. :(

~SOL
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Howto Update to new Kernel for NSA325

Postby WarheadsSE » Thu Oct 24, 2013 6:26 pm

Get me these 3 command outputs:
$this->bbcode_second_pass_code('', '
uname -a
pacman -Qi linux-kirkwood
dmesg | grep -i scsi
')

Next:
$this->bbcode_second_pass_code('', '
cd /sys/class/gpio
echo 47 < export
cd gpio47
echo 1 > value
echo 'out' > direction
fdisk -l
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Howto Update to new Kernel for NSA325

Postby SomeoneOnLine » Thu Oct 24, 2013 6:30 pm

[root@alarm ~]# uname -a
Linux alarm 3.11.4-3-ARCH #1 PREEMPT Tue Oct 8 19:08:42 CDT 2013 armv5tel GNU/Linux
[root@alarm ~]# pacman -Qi linux-kirkwood
Name : linux-kirkwood
Version : 3.11.6-1
Description : The Linux Kernel and modules - Marvell Kirkwood
Architecture : arm
URL : http://www.kernel.org/
Licenses : GPL2
Groups : None
Provides : kernel26 aufs_friendly cryptodev_friendly linux=${pkgver}
Depends On : coreutils linux-firmware module-init-tools>=3.16 mkinitcpio>=0.7
Optional Deps : crda: to set the correct wireless channels of your country
Required By : None
Optional For : None
Conflicts With : linux
Replaces : None
Installed Size : 19125.00 KiB
Packager : Kevin Mihelich <kevin@archlinuxarm.org>
Build Date : Fri 18 Oct 2013 07:21:32 PM MDT
Install Date : Thu 24 Oct 2013 12:11:33 PM MDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By : SHA256 Sum

[root@alarm ~]# dmesg | grep -i scsi
[ 13.119818] SCSI subsystem initialized
[ 13.209869] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 14.062946] scsi0 : sata_mv
[ 14.065963] scsi1 : sata_mv
[ 14.721026] scsi 0:0:0:0: Direct-Access ATA ST3500514NS SN12 PQ: 0 ANSI: 5
[ 14.737251] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 14.770012] sd 0:0:0:0: [sda] Attached SCSI disk
[root@alarm ~]#
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Howto Update to new Kernel for NSA325

Postby SomeoneOnLine » Thu Oct 24, 2013 6:38 pm

As you can see below I now get a bunch of permission denied errors when I run the below commands. At the moment I have two 500GB drives in the system. So that I can mess with it. Neither drives have anything I care much about on them. :(

[root@alarm ~]# cd /sys/class/gpio
[root@alarm gpio]# echo 47 < export
-bash: export: Permission denied
[root@alarm gpio]# cd gpio47
-bash: cd: gpio47: No such file or directory
[root@alarm gpio]# echo 1 > value
-bash: value: No such file or directory
[root@alarm gpio]# echo 'out' > direction
-bash: direction: No such file or directory
[root@alarm gpio]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xb3ba7c72

Device Boot Start End Blocks Id System
/dev/sda1 2048 34815 16384 83 Linux
/dev/sda2 34816 976773167 488369176 83 Linux
[root@alarm gpio]#
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Howto Update to new Kernel for NSA325

Postby jeajea » Thu Oct 24, 2013 6:42 pm

I think you have the same problem that I did (/dev/sda1 not mounted to boot)

viewtopic.php?f=53&t=6322
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: Howto Update to new Kernel for NSA325

Postby SomeoneOnLine » Thu Oct 24, 2013 6:46 pm

/dev/sda1 is just fine (at least I think it is), Its /dev/sdb that is not getting powered on at boot automatically. I was able to manually able to power it on by using the the below code. But once I issued "pacman -Suy" and rebooted now I am not able to run the below command to power on sdb. :(

$this->bbcode_second_pass_code('', '
cd /sys/class/gpio
echo 47 > export
echo 1 > gpio47/value
')
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 6 guests