Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Aug 18, 2018 11:57 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Oct 21, 2010 12:09 pm 
Offline
Newbie

Joined: Sun Oct 28, 2007 10:04 am
Posts: 21
This note describes how I took the information http://forum.buffalo.nas-central.org/viewtopic.php?f=39&t=21771 and http://forum.buffalo.nas-central.org/viewtopic.php?f=18&t=5736&p=138778#p138778 to perform and upgrade from davy_gravy's 2.6.29.1 kernel (see topic http://forum.buffalo.nas-central.org/viewtopic.php?f=18&t=5736&p=72241&#p72241) to the 2.6.32-5-orion5x kernel from the repo.

The first step was to install the 2.6.35.5 by deb stored in github http://github.com/deb/Current-stable-kernel-for-the-linkstation-pro.

Local Preparation
slapd
The upgrade converts slapd to use the slapd.d configuration method. Before starting the update append the following to slapd.conf to make sure you have access to the configuration when the update is complete.
Code:
# before the first database definition 
database config
# NOTE: the suffix is hardcoded as cn=config and
# MUST not have a suffix directive
# normal rules apply - rootdn can be anything you want
# but MUST be under cn=config
rootdn "cn=admin,cn=config"
# use any of the supported password formats e.g. {SSHA} etc
# or plaintext as shown
rootpw config

pam
I have not quite got my pam configuration correct and so I needed to keep a copy of changes I made to common-*:
Code:
mkdir /etc/pam.d/lenny 
cp /etc/pam.d/common-* /etc/pam.d/lenny

udev
Note sure yet why this is needed, but it seems to have cured problems when rebooting with the new kernel.
Code:
mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.bak

Upgrade to squeeze
I modified /etc/sources.list to migrate from lenny to squeeze. This involved changing references from lenny to squeeze and removing references to lenny backports and running the usual commands
Code:
apt-get update 
apt-get install apt dpkg aptitude
apt-get dist-upgrade

Install the new kernel (2.6.32.25) and run flash-kernel
Code:
apt-get install linux-image-2.6-orion5x flash-kernel

Modify u-boot variables:
Code:
fw_setenv bootcmd 'ide reset; ext2load ide 0:1 0x00100000 /$(kernel); ext2load ide 0:1 0x00800000 /$(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver);bootm 0x00100000 0x00800000' 
fw_setenv bootargs_root 'root=/dev/sda2 rw panic=5'

I have davy-gravy's modified u-boot (1.09) and this appears to work OK despite the warnings from @adik2, though netconsole does not work.

The linkstation boots OK, but I did have some problems that seemed to be fixed by the udev change above. Even when booting OK, /var/log/messages reports no activity between 0 and 25 seconds! This seems very similar to the bug reported here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596924. Fragment of dmesg:
Code:
[    0.000000] Initializing cgroup subsys cpuset 
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32-5-orion5x (Debian 2.6.32-25) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Fri Oct 15 18:19:28 UTC 2010
[    0.000000] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Buffalo Linkstation Pro/Live
[    0.000000] Clearing invalid memory bank 0KB@0xffffffff
[    0.000000] Clearing invalid memory bank 0KB@0xffffffff
[    0.000000] Clearing invalid memory bank 0KB@0xffffffff
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Ignoring unrecognised tag 0x41000403
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c038a218, node_mem_map c03f3000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda2 rw panic=5 BOOTVER=1.09
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 120204KB available (3220K code, 573K data, 128K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:64
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty0] enabled
[   25.770782] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[   26.009990] Security Framework initialized
[   26.010069] SELinux:  Disabled at boot.
[   26.010157] Mount-cache hash table entries: 512
[   26.010894] Initializing cgroup subsys ns
[   26.010968] Initializing cgroup subsys cpuacct
[   26.011028] Initializing cgroup subsys devices
[   26.011088] Initializing cgroup subsys freezer
[   26.011147] Initializing cgroup subsys net_cls
[   26.011305] CPU: Testing write buffer coherency: ok
[   26.012967] devtmpfs: initialized
[   26.016448] regulator: core version 0.5
[   26.016990] NET: Registered protocol family 16
[   26.018213] Orion ID: MV88F5182-A2. TCLK=166666667.
[   26.023788] bio: create slab <bio-0> at 0
[   26.024662] vgaarb: loaded
[   26.026400] Switching to clocksource orion_clocksource
[   26.039265] NET: Registered protocol family 2


Local repairs
LDAP
The slapd update highlighted a number of errors in my config file that needed to be corrected before the data could be reloaded. after each change re-run the slapd install.
Code:
apt-get install slapd
When up and running again, all seemed OK apart from replication which seemed to fail with the error:
Code:
slapd[2075]: conn=1041 op=2 RESULT tag=97 err=49 text=SASL(-13): authentication failure: realm changed: authentication aborted 

This was cured by commenting out the following line in /etc/default/slapd
Code:
SLAPD_SERVICES="ldap:/// ldapi:///"

pam
login to ldap accounts also did not work, and so I had to restore common-account
Code:
mkdir /etc/pam.d/squeeze 
cp /etc/pam.d/common-* /etc/pam.d/squeeze
cp /etc/pam.d/squeeze/common-account /etc/pam.d

I've not had time to debug this yet, but these is the default squeeze file
Code:
# 
# /etc/pam.d/common-account - authorization settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authorization modules that define
# the central access policy for use on the system.  The default is to
# only deny service to users whose accounts are expired in /etc/shadow.
#
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.
#

# here are the per-package modules (the "Primary" block)
account [success=3 new_authtok_reqd=done default=ignore]        pam_unix.so
account [success=2 new_authtok_reqd=done default=ignore]        pam_winbind.so
account [success=1 default=ignore]      pam_ldap.so
# here's the fallback if no module succeeds
account requisite                       pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
account required                        pam_permit.so
# and here are more per-package modules (the "Additional" block)
# end of pam-auth-update config
and the one that works from my existing config
Code:
# 
# /etc/pam.d/common-account - authorization settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authorization modules that define
# the central access policy for use on the system.  The default is to
# only deny service to users whose accounts are expired in /etc/shadow.
#
#account        required        pam_unix.so
account         sufficient      pam_ldap.so
account         required        pam_unix.so


I hope this helps someone!
Mergwyn


Top
   
PostPosted: Tue Nov 29, 2011 2:34 am 
Offline
Regular Member
User avatar

Joined: Sun Nov 16, 2008 2:45 am
Posts: 105
Location: eu/fr/35/rennes
Did you figured out why netconsole did not work in the 1st place ?

I see it is enabled on yours :
https://github.com/deb/Current-stable-k ... nel/config

so will I be able to log once that kernel is booted through tftp , what about the initrd uboot image can you share it too ?


Top
   
PostPosted: Tue Nov 29, 2011 8:28 am 
Offline
Newbie

Joined: Sun Oct 28, 2007 10:04 am
Posts: 21
I never did update the iBook and netconsole did work again eventually though I did have to add it in to the modules that were loaded at boot time in the kernel. I did not keep the details for this but you should be able to find instructions via google.

The kernel at that link is from @deb not me, and I only used it as I transitioned to squeeze. I have been running on squeeze for more than a year now. I don't believe I did any thing with initrd.


Top
   
PostPosted: Tue Nov 29, 2011 1:10 pm 
Offline
Regular Member
User avatar

Joined: Sun Nov 16, 2008 2:45 am
Posts: 105
Location: eu/fr/35/rennes
just some odd question if netconsole is built in kernel and there are no args on cmdline (uboot)
will it broadcast udp packets if yes how to recieve them , wireshark ?

can you share that kernel or should I rebuilt it using qemu or crosscompile it ?


Top
   
PostPosted: Tue Nov 29, 2011 2:51 pm 
Offline
Newbie

Joined: Sun Oct 28, 2007 10:04 am
Posts: 21
I did not build the kernel for myself. I have described how I moved from the davy_gravey kernel to the armel kernel provided as part of the debian distribution. The links I refer to at the top of the post guided by to do that via the kernel provided by the user deb.

I used the netcat.exe programme to receive the UDP packets, though as you will see if you search the forums, the simplest thing to do is to change your network configuration to match the uboot parameters to netconsole.


Top
   
PostPosted: Wed Feb 08, 2012 7:37 pm 
Offline
Newbie

Joined: Mon Oct 11, 2010 6:19 pm
Posts: 8
Hi,
Thx for this nice Hotwo,
But what i have to do to install the new Kernel?!

mergwyn wrote:
The first step was to install the 2.6.35.5 by deb stored in github http://github.com/deb/Current-stable-kernel-for-the-linkstation-pro.


Can anybody help me?

BR
Remet


Top
   
PostPosted: Thu Feb 09, 2012 9:23 am 
Offline
Newbie

Joined: Sun Oct 28, 2007 10:04 am
Posts: 21
As far as I can remember (it's been a while since I needed to do any kernel updates as this is now handled automatically), the link at git hub contains a uImage file. You need to copy this to your /boot and then replace the existing uImage file (it might be called uImage.buffalo).


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

All times are UTC+01:00


Who is online

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