• Bug#267212: hotplug: firewire modules load in the wrong order

    From David Liontooth@1:229/2 to All on Sat Aug 21 09:10:07 2004
    From: [email protected]

    Package: hotplug
    Version: 0.0.20040329-14
    Severity: normal

    When attaching an iPod to the firewire port on the 2.6.7 kernel, you have to manually load modules in this order:

    modprobe ieee1394 && modprobe ohci1394

    The sbp2 module then gets loaded automatically and the ipod is attached:

    Aug 19 13:58:19 aks kernel: ieee1394: Initialized config rom entry `ip1394'
    Aug 19 14:00:56 aks kernel: ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[11] MMIO=[e8002800-e8002fff] Max Packet=[2048]
    Aug 19 14:00:57 aks kernel: ieee1394: Node added: ID:BUS[0-00:1023] GUID[000a2700020befb2]
    Aug 19 14:00:57 aks kernel: ieee1394: Host added: ID:BUS[0-01:1023] GUID[00c09f0000054c57]
    Aug 19 14:00:58 aks ieee1394.agent[1479]: ... no drivers for IEEE1394 product 0x000000/0x00005e/0x000001
    Aug 19 14:00:58 aks kernel: SCSI subsystem initialized
    Aug 19 14:00:58 aks kernel: sbp2: $Rev: 1219 $ Ben Collins <[email protected]>
    Aug 19 14:00:58 aks kernel: scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices
    Aug 19 14:00:59 aks kernel: ieee1394: sbp2: Logged into SBP-2 device
    Aug 19 14:00:59 aks kernel: ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
    Aug 19 14:00:59 aks ieee1394.agent[1455]: sbp2: loaded sucessfully
    Aug 19 14:00:59 aks kernel: Vendor: Apple Model: iPod Rev: 1.50
    Aug 19 14:00:59 aks kernel: Type: Direct-Access ANSI SCSI revision: 02
    Aug 19 14:00:59 aks scsi.agent[1505]: disk at /devices/pci0000:00/0000:00:0c.0/fw-host0/000a2700020befb2/000a2700020befb2-0/host0/0:0:0:0
    Aug 19 14:01:02 aks kernel: sda: Spinning up disk....ready
    Aug 19 14:01:02 aks kernel: SCSI device sda: 58595040 512-byte hdwr sectors (30001 MB)
    Aug 19 14:01:02 aks kernel: sda: test WP failed, assume Write Enabled
    Aug 19 14:01:02 aks kernel: sda: asking for cache data failed
    Aug 19 14:01:02 aks kernel: sda: assuming drive cache: write through
    Aug 19 14:01:02 aks kernel: sda: sda1 sda2
    Aug 19 14:01:02 aks kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

    That's how it should work. If you have hotplug running and plug in the iPod, the modules load in the wrong order:

    Aug 16 16:07:27 aks kernel: ieee1394: Initialized config rom entry `ip1394'
    Aug 16 16:07:27 aks kernel: SCSI subsystem initialized
    Aug 16 16:07:27 aks kernel: sbp2: $Rev: 1219 $ Ben Collins <[email protected]>
    Aug 16 16:07:27 aks kernel: ohci1394: $Rev: 1223 $ Ben Collins <[email protected]>
    Aug 16 16:07:27 aks kernel: ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[11] MMIO=[f8fff$
    Aug 16 16:07:27 aks kernel: ieee1394: Host added: ID:BUS[0-00:1023] GUID[374fc0002c79c410]
    Aug 16 16:07:27 aks kernel: ip1394: $Rev: 1224 $ Ben Collins <[email protected]>
    Aug 16 16:07:27 aks kernel: ip1394: eth1: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)

    The sbp2 module loads before ohci1394, the glue between SCSI and firewire is not created, and the iPod fails to attach.

    Cheers,
    David


    -- System Information:
    Debian Release: sid
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages hotplug depends on:
    ii debconf 1.4.32 Debian configuration management sy ii module-init-tools 3.1-pre5-3 tools for managing Linux kernel mo ii modutils 2.4.26-1 Linux module utilities
    ii procps 1:3.2.0-1 The /proc file system utilities

    -- debconf information:
    hotplug/use_net_liface: true
    hotplug/ignore_pci_class_display: true
    hotplug/net_agent_policy: hotplug
    hotplug/static_module_list:
    hotplug/usbd_enable: true
    * hotplug/usb_keyboard:
    hotplug/x11_usbmice_hack: false


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)