<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>10249</bug_id>
          
          <creation_ts>2006-11-08 18:27:53 +0300</creation_ts>
          <short_desc>pci.rc doesn&apos;t load ethernet modules [lots of logs]</short_desc>
          <delta_ts>2007-04-06 16:38:15 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>hotplug</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>sr</cc>
    
    <cc>vsu</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42074</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-11-08 18:27:55 +0300</bug_when>
    <thetext>Наблюдается такая проблема: на hotplug-2004_09_23-alt17, udev-097-alt2 и
2.6.16-std26-up-alt12 hotplug не грузит модули via_rhine или ne2k-pci (на другой
системе), которые при этом в выводе pciscan наблюдаются.

фрагменты messages при DEBUG=yes в /etc/sysconfig/hotplug
(http://pastebin.ca/243466):

** pci.rc

Nov  8 16:44:12 localhost default.hotplug[4087]: arguments (pci) env
(LESSKEY=/etc/.less PCI_SLOT_N
AME=0000:00:12.0 HOSTNAME=localhost.localdomain TERM=xterm SHELL=/bin/bash
HISTSIZE=999 PCI_ID=1106
:3065 TMPDIR=/tmp/.private/root OLDPWD=/sys/bus/pci/devices QTDIR=/usr/lib/qt3/
QTINC=/usr/lib/qt3/
include/ USER=root HISTFILESIZE=9999 LS_COLORS=[...skipped...]
Nov  8 16:44:12 localhost default.hotplug[4087]: invoke /etc/hotplug/pci.agent ()

** justnet.rc (прицеплю, по сути modprobe `pciscan -c 002` и работает):

Nov  8 16:47:22 localhost default.hotplug[4319]: arguments (module) env
(SUBSYSTEM=module OLDPWD=/ 
DEVPATH=/module/via_rhine PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add
PWD=/etc/hotplug HOME=/ SHL
VL=2 SEQNUM=483 _=/usr/bin/env)
Nov  8 16:47:22 localhost default.hotplug[4319]: no runnable
/etc/hotplug/module.agent is installed
Nov  8 16:47:22 localhost default.hotplug[4328]: arguments (drivers) env
(SUBSYSTEM=drivers OLDPWD=
/ DEVPATH=/bus/pci/drivers/via-rhine PATH=/bin:/sbin:/usr/sbin:/usr/bin
ACTION=add PWD=/etc/hotplug
HOME=/ SHLVL=2 SEQNUM=484 _=/usr/bin/env)
Nov  8 16:47:22 localhost default.hotplug[4328]: no runnable
/etc/hotplug/drivers.agent is installe
d
Nov  8 16:47:22 localhost kernel: via-rhine.c:v1.10-LK1.2.0-2.6 June-10-2004
Written by Donald Beck
er
Nov  8 16:47:22 localhost default.hotplug[4337]: arguments (net) env
(PHYSDEVPATH=/devices/pci0000:
00/0000:00:12.0 SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/eth0
PATH=/bin:/sbin:/usr/sbin:/usr/bin A
CTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 PHYSDEVDRIVER=via-rhine INTERFACE=eth0
PHYSDEVBUS=pci SEQ
NUM=485 _=/usr/bin/env)
Nov  8 16:47:22 localhost default.hotplug[4337]: invoke /etc/hotplug/net.agent ()
Nov  8 16:47:22 localhost net.agent[4337]: invoke
/etc/net/scripts/ifup-removable eth0 hotplug
Nov  8 16:47:22 localhost kernel: ACPI: PCI Interrupt 0000:00:12.0[A] -&gt; GSI 23
(level, low) -&gt; IRQ
18
Nov  8 16:47:22 localhost kernel: eth0: VIA Rhine II at 0x19800,
00:15:f2:25:d1:84, IRQ 18.
Nov  8 16:47:22 localhost kernel: eth0: MII PHY found at address 1, status
0x786d advertising 05e1 
Link 45e1.
Nov  8 16:47:23 localhost kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Nov  8 16:47:23 localhost dhcpcd.exe: interface eth0 has been configured with
old IP=192.168.1.13
Nov  8 16:47:23 localhost dhcpcd[4396]: infinite IP address lease time. Exiting

В /etc/hotplug/blacklist этих модулей нет, в  /proc/sys/kernel/hotplug --
/sbin/hotplug, udevd присутствует (остановлен), hal присутствует только в виде
libhal-0.5.7-alt4.1.

Фрагмент sh -x /etc/hotplug/pci.rc start (http://pastebin.ca/243459):

+ for PCI_DEVICE in &apos;*&apos;
++ echo 0000:00:12.0
++ sed -e &apos;s/\([^:]*\):\(.*\):\(.*\)\.\(.*\)/\1 \2 \3 \4/&apos;
+ set 0000 00 12 0
+ PCI_SLOT_NAME=0000:00:12.0
++ cat 0000:00:12.0/class
+ PCI_CLASS=0x020000
+ PCI_CLASS=020000
++ cat 0000:00:12.0/vendor
+ vendor_id=0x1106
++ cat 0000:00:12.0/device
+ device_id=0x3065
+ PCI_ID=1106:3065
++ cat 0000:00:12.0/subsystem_vendor
+ sub_vendor_id=0x1043
++ cat 0000:00:12.0/subsystem_device
+ sub_device_id=0x80ed
+ PCI_SUBSYS_ID=1043:80ed
+ /sbin/hotplug pci

Тж. http://pastebin.ca/243447 (pci.rc завершается, и только после него
загружается модуль -- при отключении justnet.rc этого не происходит, не лаг):

Nov  8 16:05:38 localhost hotplug: Hotplug (pci.rc) start: succeeded
Nov  8 16:05:38 localhost kernel: via-rhine.c:v1.10-LK1.2.0-2.6 June-10-2004
Written by Donald Becker
Nov  8 16:05:38 localhost kernel: ACPI: PCI Interrupt 0000:00:12.0[A] -&gt; GSI 23
(level, low) -&gt; IRQ 18
Nov  8 16:05:38 localhost kernel: PCI: Via IRQ fixup for 0000:00:12.0, from 11 to 2
Nov  8 16:05:38 localhost kernel: eth0: VIA Rhine II at 0x19800,
00:15:f2:25:d1:84, IRQ 18.
Nov  8 16:05:38 localhost kernel: eth0: MII PHY found at address 1, status
0x786d advertising 05e1 Link 45e1.
Nov  8 16:05:38 localhost hotplug: Hotplug (justnet.rc) start: succeeded
Nov  8 16:05:38 localhost hotplug: Hotplug (misc.rc) start: succeeded
Nov  8 16:05:38 localhost kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Nov  8 16:05:38 localhost kernel: NET: Registered protocol family 17
Nov  8 16:05:38 localhost kernel: hdc: ATAPI 48X DVD-ROM drive, 2048kB Cache,
UDMA(33)
Nov  8 16:05:38 localhost kernel: Uniform CD-ROM driver Revision: 3.20
Nov  8 16:05:38 localhost dhcpcd.exe: interface eth0 has been configured with
new IP=192.168.1.223
Nov  8 16:05:39 localhost hotplug: Hotplug (block.rc) start: succeeded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42075</commentid>
    <comment_count>1</comment_count>
      <attachid>1676</attachid>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-11-08 18:30:01 +0300</bug_when>
    <thetext>Created attachment 1676
stub rc script to *start* net (/etc/hotplug/justnet.rc)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46802</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2007-03-17 16:55:55 +0300</bug_when>
    <thetext>За прошедший год вопрос потерял актуальность -- ишак сдох, ездит udev.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1676</attachid>
            <date>2006-11-08 18:30:01 +0300</date>
            <delta_ts>2006-11-08 18:30:01 +0300</delta_ts>
            <desc>stub rc script to *start* net (/etc/hotplug/justnet.rc)</desc>
            <filename>justnet.rc</filename>
            <type>text/plain</type>
            <size>124</size>
            <attacher name="Michael Shigorin">mike</attacher>
            
              <data encoding="base64">IyEvYmluL3NoCiMganVzdCBsb2FkIFBDSSBFdGhlcm5ldCByZWNvbW1lbmRlZCBtb2R1bGVzCk1P
RFVMRVM9ImBwY2lzY2FuIC1jIDAwMiAtcmAiClsgLW4gIiRNT0RVTEVTIiBdICYmIG1vZHByb2Jl
ICRNT0RVTEVTCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>