[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel 2.6.24-1 in lenny, safe to upgrade?




On 29 Mar 2008, at 06:41, Gordon Farquharson wrote:
Hi Joachim

On Fri, Mar 28, 2008 at 2:10 PM, Joachim Beckers
<joachim.beckers@gmail.com> wrote:

It's the same issue as the one that popped up in sid's 2.6.24. It
seems that the udev fix is not in the lenny kernel or that it fails
somehow. I was able to successfully boot by using this trick from
kevin price:
"For me 2.6.24-2 from today's sid runs fine with the line "ixp4xx- eth"
in
/etc/modules and an according rule in
/etc/udev/rules.d/z25_persistent-net.rules"

You shouldn't need to do this with the latest kernel in lenny. I've
just tested it and udev loads the ethernet module automatically.
Please send the output from the following commands:

ls -l /boot
cat /etc/udev/rules.d/z25_persistent-net.rules
udevtest /sys/devices/platform/ixp4xx_eth.16

Side note: Now my slug works fine, apart from the front usb-connector
leds. they are off, but both connectors have drives attached and
mounted correctly...

Sounds like your udev is not happy because nslu2-utils uses udev to
automatically turn the leds on and off when devices are plugged into
the USB ports. Please send can you send the output of

cat /etc/udev/rules.d/z60_nslu2-led.rules

so that I can try to figure out what has gone wrong.

Just for the record, because everything works again, I've attached the output.

I fixed it by reinstalling udev. There must have been some corruption somewhere. It still takes a long time before the network comes up, but at least it does. Thanks for the clues!

joachim@slugification:~$ ls -l /boot
total 8960
-rw-r--r-- 1 root root  746744 Feb 12 19:18 System.map-2.6.24-1-ixp4xx
-rw-r--r-- 1 root root   42892 Feb  6  2007 apex.flash
-rw-r--r-- 1 root root   55971 Feb 11 14:37 config-2.6.24-1-ixp4xx
lrwxrwxrwx 1 root root      26 Mar 28 19:03 initrd.img -> initrd.img-2.6.24-1-ixp4xx
-rw-r--r-- 1 root root 3478595 Mar 29 08:16 initrd.img-2.6.24-1-ixp4xx
-rw-r--r-- 1 root root 3478618 Mar 28 20:01 initrd.img-2.6.24-1-ixp4xx.bak
lrwxrwxrwx 1 root root      23 Mar 28 19:03 vmlinuz -> vmlinuz-2.6.24-1-ixp4xx
-rw-r--r-- 1 root root 1338156 Feb 12 19:18 vmlinuz-2.6.24-1-ixp4xx


joachim@slugification:~$ cat /etc/udev/rules.d/z25_persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.

# Unknown net device (/class/net/eth0) (ixp4xx_mac)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:18:39:a9:ad:b7", NAME="eth0"


joachim@slugification:~$ sudo udevtest /sys/devices/platform/ixp4xx_eth.16
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

parse_file: reading '/etc/udev/rules.d/020_permissions.rules' as rules file
parse_file: reading '/etc/udev/rules.d/udev.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z20_persistent-input.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z20_persistent.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z25_persistent-net.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z45_persistent-net-generator.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z50_run.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z55_hotplug.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z60_nslu2-led.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z60_nslu2-rtc.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z75_cd-aliases-generator.rules' as rules file
import_uevent_var: import into environment: 'DRIVER=ixp4xx_eth'
import_uevent_var: import into environment: 'PHYSDEVBUS=platform'
import_uevent_var: import into environment: 'PHYSDEVDRIVER=ixp4xx_eth'
import_uevent_var: import into environment: 'MODALIAS=platform:ixp4xx_eth'
main: looking at device '/devices/platform/ixp4xx_eth.16' from subsystem 'platform'
wait_for_sysfs: file '/sys/devices/platform/ixp4xx_eth.16/bus' appeared after 0 loops
main: run: 'socket:/org/kernel/udev/monitor'


joachim@slugification:~$ sudo cat /etc/udev/rules.d/z60_nslu2-led.rules
SUBSYSTEM=="usb", DEVPATH=="*/usb3/3-[12]", ACTION=="add", PROGRAM="/usr/bin/leds disk-%n on"
SUBSYSTEM=="usb", DEVPATH=="*/usb3/3-[12]", ACTION=="remove", PROGRAM="/usr/bin/leds disk-%n off"
joachim@slugification:~$ 

Reply to: