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

Re: Improved linuxrc.s390 (third try)

On 02/24/2009 07:03 PM, Steffen Maier wrote:
> On 01/05/2009 06:02 AM, Jeremy Katz wrote:
>> On Thu, 2009-01-01 at 01:27 +0100, Steffen Maier wrote:
>>> On 12/07/2008 04:56 PM, Jeremy Katz wrote:

> Removed all kernel module handling (insmod/rmmod). Please be aware,
> that we now fully rely on automatic loading of (driver) modules, which
> may very well need some adaptations to the building of the initrd. See
> also [2].
>>> Also, trying to switch to auto-loading using udev would at least
>>> for the network types LCS  and CTC which are based on cu3088 not be
>>>  straight forward.
> [snip]
>> Then the drivers need to be fixed.  Period.  As of rawhide,
>> *ANYTHING* calling modprobe for something which would be considered a
>> "driver" is a bug.
> I was told, our drivers have been fixed upstream. However, this most
> probably won't make it into F11, so I'm going to provide some udev
> rules that help automatically loading the necessary modules.

Here is my promised udev rule to load LCS and CTC and thus all current
network devices drivers on s390x automatically. I'm still a bit unsure
where exactly to put it between all existing rules. At least it worked
in an F9 based internal build for s390x. The rule definitely has to be
before /etc/udev/rules.d/55-ccw.rules. Here we go

ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/01", RUN+="/sbin/modprobe --quiet lcs"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/60", RUN+="/sbin/modprobe --quiet lcs"
# could be either CTC or LCS
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/08", RUN+="/sbin/modprobe --quiet ctcm"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/08", RUN+="/sbin/modprobe --quiet lcs"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/1E", RUN+="/sbin/modprobe --quiet ctcm"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/1F", RUN+="/sbin/modprobe --quiet ctcm"

Comments greatly appreciated.


Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

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