DN7020 USB Stick HostX

  • Tach zusammen


    Hab da noch ne Frage im bezug auf USB Sticks in der 7020.
    Warum bekomme ich einen Fehler im Log wenn ich den das erste mal USB Stick im Betrieb der Dreambox abstecke?
    Habe ich hier nur einen Fehler gemacht oder ist das einfach so oder ist da ein Fehler drin?
    Hier mal ein Log:


    usb 1-1: USB disconnect, address 2
    target0:0:0: Illegal state transition <NULL>->cancel
    Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1714
    Call trace:
    [c000495c] check_bug_trap+0x98/0xdc
    [c00049c4] ProgramCheckException+0x24/0x1f0
    [c00041d8] ret_from_except_full+0x0/0x4c
    [c01b2468] scsi_device_set_state+0xc0/0x14c
    [c01ad250] scsi_device_cancel+0x34/0x160
    [c01ad3b8] scsi_device_cancel_cb+0x18/0x28
    [c0183a00] device_for_each_child+0x68/0xec
    [c01ad410] scsi_host_cancel+0x48/0xc4
    [c01ad4b0] scsi_remove_host+0x24/0x9c
    [c01e17fc] storage_disconnect+0x48/0x60
    [c01cecd0] usb_unbind_interface+0x88/0xc8
    [c0184fd0] device_release_driver+0x84/0x88
    [c01851b0] bus_remove_device+0x80/0x130
    [c0183904] device_del+0xb0/0x114
    [c0183980] device_unregister+0x18/0x30
    usb 1-1: new full speed USB device using address 3
    scsi1 : SCSI emulation for USB Mass Storage devices
    Vendor: USB Model: Flash Disk Rev: 1100
    Type: Direct-Access ANSI SCSI revision: 02
    SCSI device sdb: 494592 512-byte hdwr sectors (253 MB)
    sdb: Write Protect is on
    sdb: asking for cache data failed
    sdb: assuming drive cache: write through
    /dev/scsi/host1/bus0/target0/lun0: unknown partition table
    Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
    Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
    usb 1-1: USB disconnect, address 3
    usb 1-1: new full speed USB device using address 4
    scsi2 : SCSI emulation for USB Mass Storage devices
    Vendor: USB Model: Flash Disk Rev: 1100
    Type: Direct-Access ANSI SCSI revision: 02
    SCSI device sdb: 494592 512-byte hdwr sectors (253 MB)
    sdb: Write Protect is on
    sdb: asking for cache data failed
    sdb: assuming drive cache: write through
    /dev/scsi/host2/bus0/target0/lun0: unknown partition table
    Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
    Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0
    usb 1-1: USB disconnect, address 4
    usb 1-1: new full speed USB device using address 5
    scsi3 : SCSI emulation for USB Mass Storage devices
    Vendor: VBTM Model: Store 'n' Go Rev: 1.04
    Type: Direct-Access ANSI SCSI revision: 02
    SCSI device sdb: 1001472 512-byte hdwr sectors (513 MB)
    sdb: Write Protect is off
    SCSI device sdb: drive cache: write through
    /dev/scsi/host3/bus0/target0/lun0: unknown partition table
    Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
    Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0
    usb 1-1: USB disconnect, address 5
    [EPGC] start cleanloop
    [EPGC] stop cleanloop
    [EPGC] 3474602 bytes for cache used
    usb 1-1: new full speed USB device using address 6
    scsi4 : SCSI emulation for USB Mass Storage devices
    Vendor: USB Model: Flash Disk Rev: 1100
    Type: Direct-Access ANSI SCSI revision: 02
    SCSI device sdb: 494592 512-byte hdwr sectors (253 MB)
    sdb: Write Protect is on
    sdb: asking for cache data failed
    sdb: assuming drive cache: write through
    /dev/scsi/host4/bus0/target0/lun0: unknown partition table
    Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
    Attached scsi generic sg0 at scsi4, channel 0, id 0, lun 0, type 0
    usb 1-1: USB disconnect, address 6
    usb 1-1: new full speed USB device using address 7
    scsi5 : SCSI emulation for USB Mass Storage devices
    Vendor: USB Model: Flash Disk Rev: 1100
    Type: Direct-Access ANSI SCSI revision: 02
    SCSI device sdb: 494592 512-byte hdwr sectors (253 MB)
    sdb: Write Protect is on
    sdb: asking for cache data failed
    sdb: assuming drive cache: write through
    /dev/scsi/host5/bus0/target0/lun0: unknown partition table
    Attached scsi removable disk sdb at scsi5, channel 0, id 0, lun 0
    Attached scsi generic sg0 at scsi5, channel 0, id 0, lun 0, type 0


    Ok, habe geschummelt und zwei verschiedene Sticks verwendet. :winking_face:



    Bye
    SatTel

  • Ach ja, nochwas


    Bei jedem anstecken des Sticks im Betrieb wird wie man im Log oben sehen kann der zähler für das device /dev/scsi/hostx um eines erhöht. Währe es nicht richtig das die ganze Device-Verzeichnissstrucktur incl. /hostx nach dem abstecken des Gerätes wieder verschwinden müsste?
    Also um es mal genauer zu umschreiben:
    Ich stecke einen USB-Stick an das Device /dev/scsi/host0/bus0/target0/lun0 .. wird erstellt, ich ziehe der Stick ab und das ganze bis auf /dev/scsi wird wieder gelöscht?
    Da das nicht geschieht wird der hostx eintrag auch immer um einen zähler erhöht und deswegen kann ich mir vorstellen das einige Probleme mit dem USB Stick haben die ihn versehentlich oder eben auch absichtlich mal abgesteckt haben (das Device wird nicht mehr an der gewohnten host0 Stelle gefunden).
    Darauf bauen auch einige Tools wie z.B. FlashWizard. Diese erwarten den Stick immer an /dev/scsi/host0 .


    Bye
    SatTel

  • Hallo


    Habe noch einige versuche gestartet.
    1. Die oben beschschriebene exception tritt nur auf wenn der Stick beim Booten in der Box war.
    2. Tritt dieser Fehler auf kann die Box nicht mehr neu gebootet werden oder genauer sie bleibt hier hängen:
    Sending all processes the KILL signal...
    Unmounting remote filesystems...
    Rebooting...
    Kann dann nur noch am Netzschalter abgeschaltet werden.
    Hier nochmal ein Log:


    usb 1-1: USB disconnect, address 2
    target0:0:0: Illegal state transition <NULL>->cancel
    Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1714
    Call trace:
    [c000495c] check_bug_trap+0x98/0xdc
    [c00049c4] ProgramCheckException+0x24/0x1f0
    [c00041d8] ret_from_except_full+0x0/0x4c
    [c01b2468] scsi_device_set_state+0xc0/0x14c
    [c01ad250] scsi_device_cancel+0x34/0x160
    [c01ad3b8] scsi_device_cancel_cb+0x18/0x28
    [c0183a00] device_for_each_child+0x68/0xec
    [c01ad410] scsi_host_cancel+0x48/0xc4
    [c01ad4b0] scsi_remove_host+0x24/0x9c
    [c01e17fc] storage_disconnect+0x48/0x60
    [c01cecd0] usb_unbind_interface+0x88/0xc8
    [c0184fd0] device_release_driver+0x84/0x88
    [c01851b0] bus_remove_device+0x80/0x130
    [c0183904] device_del+0xb0/0x114
    [c0183980] device_unregister+0x18/0x30
    Oops: kernel access of bad area, sig: 11 [#1]
    NIP: C01AD264 LR: C01AD250 SP: C3CB3DB0 REGS: c3cb3d00 TRAP: 0300 Tainted: P
    MSR: 00021230 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
    DAR: 00000000, DSISR: 00000000
    TASK = c3c47810[14] 'khubd' THREAD: c3cb2000Last syscall: 120
    PLB0: bear= 0x00000000 acr= 0x00000000 besr= 0x00000000
    PLB0 to OPB: bear= 0x00000000 besr0= 0x00000000 besr1= 0x00000000


    GPR00: 00021230 C3CB3DB0 C3C47810 FFFFFFEA 000022DD FFFFFFFF C0320000 C02C5D0C
    GPR08: C02C0000 00000000 00000000 C0320000 24008024 1001A26C 00000000 01400000
    GPR16: 7FFFF834 65786563 00000000 0000000A C3C46C80 00000001 C02D9D3C 00000100
    GPR24: C02E0000 00000000 C02D0000 00000000 00029230 C03F9680 C3CB3DB8 FFFFFFF0
    NIP [c01ad264] scsi_device_cancel+0x48/0x160
    LR [c01ad250] scsi_device_cancel+0x34/0x160
    Call trace:
    [c01ad3b8] scsi_device_cancel_cb+0x18/0x28
    [c0183a00] device_for_each_child+0x68/0xec
    [c01ad410] scsi_host_cancel+0x48/0xc4
    [c01ad4b0] scsi_remove_host+0x24/0x9c
    [c01e17fc] storage_disconnect+0x48/0x60
    [c01cecd0] usb_unbind_interface+0x88/0xc8
    [c0184fd0] device_release_driver+0x84/0x88
    [c01851b0] bus_remove_device+0x80/0x130
    [c0183904] device_del+0xb0/0x114
    [c0183980] device_unregister+0x18/0x30
    [c01d5338] usb_disable_device+0x8c/0xcc
    [c01cf878] usb_disconnect+0xbc/0x164
    [c01d1730] hub_port_connect_change+0x1b4/0x398
    [c01d2264] hub_thread+0x304/0x5a0
    [c0006c48] kernel_thread+0x44/0x60


    Weis keiner was darüber?


    Bye
    SatTel