Buffalo NAS-Central Forums

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

All times are UTC+01:00




Post new topic  Reply to topic  [ 743 posts ]  Go to page Previous 146 47 48 49 50
Author Message
PostPosted: Tue Nov 02, 2010 3:04 am 
Offline
Newbie

Joined: Wed Mar 24, 2010 7:51 pm
Posts: 30
adik2 wrote:
@mergwyn It is possible to update the kernel without full debian installation. One procedure is given here. Some parts of that procedure are already simplified, for example, building uboot images is now done by flash-kernel in squeeze. A short description how I did it. I had davy_gravy's lenny armel which I updated to kernel 2.6.35-5 by deb. Then, I modified /etc/sources.list to migrate from lenny to squeeze. I installed the kernel from debian repo, ran flash-kernel, and modified uboot variables. After reboot, my linkstation worked well. I understand that the essential part of the migration from custom kernels and davy_gravy's lenny armel to squeeze and orion5x kernels is modification of uboot variables. Without the modification, the orion5x kernel does not work and fails when loading initrd (orion5x kernel expects initramfs).

A word of caution before you modify your uboot variable. Check your bootloader version with fw_printenv. Anything below 1.10, and the box can be bricked when you remove initrd,15M from bootargs. See a discussion here, here, and here.

AFAIK, linkstation pro/live is supported only in squeeze and sid.

i got the problem after update... the hdd always make some "click" sound out...
it is a : Seagate Barracuda LP ST31500541AS 1.5TB 5900 RPM 32MB


Top
   
PostPosted: Sat Dec 11, 2010 5:07 am 
Offline
Newbie

Joined: Mon May 25, 2009 4:11 pm
Posts: 30
just a heads up, i updated the kernel in my git repository and i did a --force push after removing the history of all of the previous kernels and modules in the repository. (it was getting a bit big).


Top
   
PostPosted: Sun Jan 02, 2011 2:48 pm 
Offline
Newbie

Joined: Sun Feb 22, 2009 5:14 pm
Posts: 24
I was upgrading my 500GB drive to a 2TB one, so while it was dismantled, I took the opportunity to switch to the orion5x kernel in the repos from the custom 2.6.36 that I was running. I followed adik2's instructions, and it worked flawlessly. Many thanks.


Top
   
PostPosted: Fri Apr 15, 2011 2:17 pm 
Offline
Total Newbie

Joined: Fri Apr 15, 2011 1:54 pm
Posts: 2
Hi,

I followed all the steps in viewtopic.php?f=18&t=5736&p=72241&#p72241 on my LSPro, and it works like a charm.
However, it won't boot unless my PC is on IP adres 192.168.11.149. Normally My PC is on another adress, handed out by DHCP.
Also I cannot login using nc any more:

Code:
>nc -u -p 6666 -v 192.168.11.150 6666
192.168.11.150: inverse host lookup failed: h_errno 11004: NO_DATA
(UNKNOWN) [192.168.11.150] 6666 (?) open
egiga0 [PRIME]

 _____ _____ _____     _____         _           _
|   | |  _  |   __|___|     |___ ___| |_ ___ ___| |  ___ ___ ___
| | | |     |__   |___|   --| -_|   |  _|  _| .'| |_| . |  _| . |
|_|___|__|__|_____|   |_____|___|_|_|_| |_| |__,|_|_|___|_| |_  |
                                                            |___|





Using 88E1118 phy

Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: SAMSUNG HD501LJ                          Firm: CR100-10 Ser#: S1K4JDQQ201
681
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/initrd.buffalo

2322728 bytes read
Using device ide1, partition 1
** Bad partition 1 **
Booting from Device 0
hit any key to switch tftp boot.
Hit any key to stop autoboot:  2 s
 1 s
 0
Hit any key to stop autoboot:  2 ss
 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: SAMSUNG HD501LJ                          Firm: CR100-10 Ser#: S1K4JDQQ201
681
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
s

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/uImage

2331216 bytes read
<<stop_sound>>
## Booting image at 00100000 ...
   Image Name:   Linux-2.6.29.1
   Created:      2009-04-07   3:33:38 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2331152 Bytes =  2.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
s
OK

Starting kernel ...

arg:netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda2 rw


If I login using SSH, fooboot gives the following:

Code:
texel:~# fooboot -n
     ...current env var values for uBoot:

bootargs=$(bootargs_base) $(bootargs_root)
baudrate=115200
loads_echo=0
ipaddr=192.168.11.150
serverip=192.168.11.149
rootpath=/nfs/arm
cpuName=926
CASset=min
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
MALLOC_len=4
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
buffalo_ver=BOOTVER=1.09
build_time=11:43:12
initrd=initrd.buffalo
kernel=uImage.buffalo
bootargs_base=netconsole=6666@192.168.11.150/,@192.168.11.149/
bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5
autoload=no
stdin=nc
stdout=nc
stderr=nc
netmask=255.255.255.0
ncip=192.168.11.149
nc=setenv stdin nc;setenv stdout nc;setenv stderr nc
ser=setenv stdin serial;setenv stdout serial;setenv stderr serial
envfoohdd=setenv bootcmd 'ide reset; ext2load ide 0:1 0x00100000 /boot/uImage; setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda1 rw ;bootm 0x00100000'
envfooem=setenv def_tftp 'tftp 0x00800000 uImage_em ; setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/ram0 rw ; bootm 0x00800000'
fooboot=ide reset; ext2load ide 0:1 0x00100000 /boot/uImage; setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda1 rw ;bootm 0x00100000
foobootem=tftp 0x00800000 uImage_em ; setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/ram0 rw ; bootm 0x00800000
keepalive=micon -0x01 -0x35
envreset=protect off fffff000 ffffffff ; erase fffff000 ffffffff ; protect on fffff000 ffffffff
def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 0x00800000
bootdelay=3
disaMvPnp=no
ethaddr=00:00:00:00:51:81
overEthAddr=no
usb0Mode=host
usb1Mode=host
ethact=egiga0
bootcmd=ide reset ; ext2load ide 0:1 0x00100000 /uImage ; setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda2 rw ; bootm 0x00100000


Is this correct? If not, how can I change these settings from SSH?


Top
   
PostPosted: Mon Apr 18, 2011 6:39 pm 
Offline
Total Newbie

Joined: Fri Apr 15, 2011 1:54 pm
Posts: 2
Never Mind - I re-installed everything according to http://buffalo.nas-central.org/wiki/Install_Debian_on_the_Linkstation_Pro/Live and it works!


Top
   
PostPosted: Sat May 26, 2012 2:30 pm 
Offline
Newbie

Joined: Mon Sep 13, 2010 2:13 pm
Posts: 5
Just installed the new kernel (uImage-3.2.9 + modules) by davy_gravy, can confirm everything works! Thanks Dave!

p.s. compiled the latest stable kernel and modules (3.4.0). Tested and works. Archive includes: davy_gravy`s config (+enabled squashfs module) and script to build kernel. Download from here.
Code:
LS-GL:/# uname -a
Linux LS-GL 3.4.0 #1 Mon May 28 09:16:00 MSD 2012 armv5tel GNU/Linux


Top
   
PostPosted: Wed Jan 08, 2014 11:42 pm 
Offline
Newbie

Joined: Sun Feb 22, 2009 5:14 pm
Posts: 24
Was running stock orion5x Debian kernels for a while, but something changed and they stopped booting. Have been using davy_gravy's 3.2.9 kernel for a while, but this is rather outdated now and causing problems with udev.

Does anyone know why the kernel in the debian repo stopped working?


Top
   
PostPosted: Mon Jan 13, 2014 5:49 pm 
Offline
Newbie

Joined: Sun Feb 22, 2009 5:14 pm
Posts: 24
Not sure why the Debian kernel wasn't booting. Will try to get around to working out what the issue is at some point, but until then I've just compiled a fresh kernel from kernel.org.

Here is a working stock 3.12.7 without any Debian patches.
This is the config it was compiled with.

You can also see the config from this kernel after you've installed it by running:
Code:
cat /proc/config.gz | gunzip 

Some notes about this kernel:
  1. No modules. I find installation more straightforward without them and on the Linkstation I do not require the flexibility they provide. Not modules means one less way to leave my box unbootable.
  2. No IPv6. I don't use it, don't need it and it's just more to compile.
  3. Supported FSs - EXT2,3,4, FAT, NTFS, CIFS. That's it. No NFS, XFS, HFS, BTRFS, Squash, etc. Sorry, again, don't need them. No ramfs either.
  4. Minimal USB support. Printers and USB Mass Storage is fine. Almost everything else is disabled.
  5. Lots of Netfilter functionality disabled.
  6. Lots of drivers missing. Some useful ones, as well as ones for SCSI scanners etc.
  7. No initrd. I have disabled initrds in the kernel conf. I think you will still need a dummy initrd - although I have not tried removing it; I don't wanting to disassemble my box again.
  8. Compiled with new arm asm implementations of SHA1 and AES. My subjective experience that this provides a significant speed-up, particularly when transferring files with SSH.

You might find that this kernel is too minimal for you. I think there's probably more I could cut and the box would still boot, but I have already significantly reduced the compile time and I'm not desperate to save any more space (it's 2.7MB). The config is still a good place to start for your own version though. (Thanks juzis28 and davy_gravy.)

Hope someone finds this helpful. It's particularly useful for Jessie. The udev changes means that it won't run on the 3.4.0 from juzis28.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 743 posts ]  Go to page Previous 146 47 48 49 50

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