Bug#566632: sysconfig-hardware: Fails to bring up ctc network interface with kernel 2.6.33-rc5

2010-04-29 Thread Frans Pop
Attached the patch included in 0.0.9+nmu2.

diff --git a/debian/changelog b/debian/changelog
index dc72b7d..d2d2da0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sysconfig (0.0.9+nmu2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Allow for driver name change in sysfs for CTC network devices in Linux
+kernel 2.6.33. Closes: #566632.
+
+ -- Frans Pop   Thu, 29 Apr 2010 10:50:24 +0200
+
 sysconfig (0.0.9+nmu1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --git a/etc/sysconfig/scripts/hardware/hwup-ccw-group b/etc/sysconfig/scripts/hardware/hwup-ccw-group
index f3ed7b6..2aecf13 100755
--- a/etc/sysconfig/scripts/hardware/hwup-ccw-group
+++ b/etc/sysconfig/scripts/hardware/hwup-ccw-group
@@ -36,7 +36,7 @@ elif [ "$name" == qeth ]; then
   fi
 fi
 
-ccw=/bus/ccw/drivers/$NAME
+ccw=/bus/ccw/devices/$ID/driver
 ccwgroup=/bus/ccwgroup/drivers/$DRIVER
 
 message_n "Configuring device $ID: "


Bug#566632: sysconfig-hardware: Fails to bring up ctc network interface with kernel 2.6.33-rc5

2010-01-24 Thread Frans Pop
tag 566632 + patch
thanks

The following (simpler and cleaner) change in hwup-ccw-group also fixes the 
issue:

-ccw=/bus/ccw/drivers/$NAME
+ccw=/bus/ccw/devices/$ID/driver
 ccwgroup=/bus/ccwgroup/drivers/$DRIVER



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#566632: sysconfig-hardware: Fails to bring up ctc network interface with kernel 2.6.33-rc5

2010-01-24 Thread Frans Pop
Package: sysconfig-hardware
Version: 0.0.9+nmu1
Severity: important

Due to a change in the kernel for 2.6.33, my CTC network interface is no
longer brought up.

Reason is that the value of the DRIVER sysfs value for the channels has
changed:
2.6.32:
$ grep DRIVER /sys/bus/ccw/devices/0.0.0a*/uevent
/sys/bus/ccw/devices/0.0.0a00/uevent:DRIVER=cu3088
/sys/bus/ccw/devices/0.0.0a01/uevent:DRIVER=cu3088

2.6.33:
$ grep DRIVER /sys/bus/ccw/devices/0.0.0a*/uevent
/sys/bus/ccw/devices/0.0.0a00/uevent:DRIVER=ctcm
/sys/bus/ccw/devices/0.0.0a01/uevent:DRIVER=ctcm

This means that also a directory used by sysconfig-hardware has changed:
/sys/bus/ccw/drivers/cu3088/ => /sys/bus/ccw/drivers/ctcm/

I've worked around this by making the following change in hwup-ccw-group
(with backwards compatibility preserved):
 if [ "$name" == cu3088 ]; then
   modprobe ctcm 2> /dev/null || :
   modprobe ctc 2> /dev/null || :

   if [ -d $SYSFS/module/ctcm ]; then
 DRIVER=ctcm
   elif [ -d $SYSFS/module/ctc ]; then
 DRIVER=ctc
   else
 error "no kernel module for ctc devices available!"
   fi
+
+  # Identification of driver changed from 'cu3088' to 'ctcm' in 2.6.33
+  if [ ! -d $SYSFS/bus/ccw/drivers/$NAME ] && [ -d $SYSFS/bus/ccw/drivers/ctcm 
]; then
+NAME=ctcm
+  fi
 elif [ "$name" == qeth ]; then

But possibly a cleaner solution is possible.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: s390

Kernel: Linux 2.6.33-rc5 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sysconfig-hardware depends on:
ii  udev  150-2  /dev/ and hotplug management daemo

sysconfig-hardware recommends no packages.

sysconfig-hardware suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org