Hackerboard Wiki HaboBlog
Hackerboard bei Facebook Hackerboard bei Google+ Hackerboard bei Twitter

[HaBo]

 
Linux/UNIX Linuxverfechter finden hier Weggefährten.

DMA timout beim booten von CF card

Diskussion: DMA timout beim booten von CF card im Forum Linux/UNIX, in der Kategorie Operating Systems; Anzeige Hi ich habe hier ein Atomboard (DG945GCLF), an das ich über einen IDE Adapter eine CF Karte angeschlossen habe. ...

Antwort
Alt 08.06.10, 14:19   #1 (permalink)
 
Registriert seit: 06.06.09
Thunderb0lt Leistung: 8086
Likes: 6
Standard DMA timout beim booten von CF card

Anzeige

Hi

ich habe hier ein Atomboard (DG945GCLF), an das ich über einen IDE Adapter eine CF Karte angeschlossen habe. Auf der Karte ist ein Debian installiert.
Der Eintrag in der menu.lst sieht so aus

Code:
title           Debian GNU/Linux, kernel 2.6.26-bpo.1-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-bpo.1-686 /dev/hda=flash ide=nodma root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.26-bpo.1-686
savedefault
boot
Das Problem ist jetzt, dass ich beim booten von der Karte immer wild Timeouts um die Ohren geschmissen bekomme:

Code:
hda: max request size: 128KiB
Jun  8 21:50:09 (none) kernel: [    4.075451] hda: 8027712 sectors (4110 MB) w/1KiB Cache, CHS=7964/16/63
Jun  8 21:50:09 (none) kernel: [    4.075451]  hda:<4>hda: dma_timer_expiry: dma status == 0x21
Jun  8 21:50:09 (none) kernel: [   40.885737] hda: DMA timeout error
Jun  8 21:50:09 (none) kernel: [   40.885786] hda: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
Jun  8 21:50:09 (none) kernel: [   40.885935] ide: failed opcode was: unknown
Jun  8 21:50:09 (none) kernel: [   40.886209] hda: DMA disabled
Jun  8 21:50:09 (none) kernel: [   40.933734] ide0: reset: success
Was ich nicht so ganz verstehe, denn ich habe DMA durch den Bootparamater doch explizit ausgeschaltet, oder nicht?

Ich habe hier noch was gefunden, allerdings wird dort der Kernel neu kompiliert, was für mich keine Option ist, da ich das System auf genau diesem Stand brauche.

Code:
root@(none):~# lspci
00:00.0 Host bridge: Intel Corporation 945G/GZ/P/PL Express Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 945G/GZ Express Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 02)
Thunderb0lt ist offline   Mit Zitat antworten
Alt 08.06.10, 14:30   #2 (permalink)
Moderator
 
Benutzerbild von lightsaver
 
Registriert seit: 19.06.06
lightsaver Leistung: Pentium Ilightsaver Leistung: Pentium Ilightsaver Leistung: Pentium I
Likes: 52
Standard

Das hatte ich auch schonmal, ebenfalls mit Debian.
Damals hat, wenn ich mich richtig erinnere, nur ein Low-Level-Format und dann eine Neuinstallation geholfen. Das war allerdings die Info von unserem Lieferanten, wir waren eigentlich recht sicher, dass da ein Hardwareproblem vorliegen muss, da wir diesen Fehler bereits an der Seriennummer der einzelnen Rechner vorhersagen konnten Was ich noch weiß ist, dass eine einfache Neuinstallation nicht ausreichend war und auch mehrere Stunden gedauert hat wegen ständiger Timeouts.

Du kannst aber das mit dem Low-Level-Format dennoch mal probieren.
lightsaver ist offline   Mit Zitat antworten
   
HaBOT
 
- Anzeige -

Werbung ist gerade online    
Alt 08.06.10, 14:53   #3 (permalink)
Member of Honour
 
Benutzerbild von GrafZahl
 
Registriert seit: 28.05.10
GrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: Opteron
Likes: 210
Standard

wenn du sowieso auf dma im ganzen ide subsystem verzichten willst, wäre das hier evtl eine option ... http://www.debianhelp.org/node/5042#comment-20388
__________________
Code:
:(){ :|:& };:
Veritas Aequitas
GrafZahl ist offline   Mit Zitat antworten
Alt 08.06.10, 21:16   #4 (permalink)
Themenstarter
 
Registriert seit: 06.06.09
Thunderb0lt Leistung: 8086
Likes: 6
Standard

@lightsaver
Bringt denn eine Low-Level-Formatierung auf einer CF Karte überhaupt etwas?

@GrafZahl
Das ist der Link, den ich in meiner Fragestellung auch verlinkt hatte
Thunderb0lt ist offline   Mit Zitat antworten
Alt 09.06.10, 00:19   #5 (permalink)
Moderator
 
Benutzerbild von lightsaver
 
Registriert seit: 19.06.06
lightsaver Leistung: Pentium Ilightsaver Leistung: Pentium Ilightsaver Leistung: Pentium I
Likes: 52
Standard

Hmmm, ich habe gerade mal Google befragt.
Eine CF-Card scheint man wirklich nicht Low-Level formatieren zu können

Hättest du die Möglichkeit, mal eine andere Karte zum Testen zu nehmen? Das ist zwar vielleicht etwas Aufwand, aber ich denke mal, so eine Debian-Installation ist schnell gemacht und dann siehst du ja schon, ob das Problem dann noch existiert und kannst dann entscheiden, wie du nun weitermachst.

Wie gesagt, bei uns war es damals definitiv keine Einstellungssache.
lightsaver ist offline   Mit Zitat antworten
Alt 09.06.10, 01:20   #6 (permalink)
Member of Honour
 
Benutzerbild von GrafZahl
 
Registriert seit: 28.05.10
GrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: Opteron
Likes: 210
Standard

Zitat:
Zitat von Thunderb0lt Beitrag anzeigen
@GrafZahl
Das ist der Link, den ich in meiner Fragestellung auch verlinkt hatte
das ist mir doch glatt entgangen...
__________________
Code:
:(){ :|:& };:
Veritas Aequitas
GrafZahl ist offline   Mit Zitat antworten
Alt 10.06.10, 16:41   #7 (permalink)
Themenstarter
 
Registriert seit: 06.06.09
Thunderb0lt Leistung: 8086
Likes: 6
Standard

Was ich halt nicht ganz verstehe ist, wie DMA austimen kann, wenn es explizit deaktiviert wurde!?
Aber ich werde mal schauen, ob ich noch 'ne andere Karte finde, mit der ich es nochmal testen kann.
Thunderb0lt ist offline   Mit Zitat antworten
Alt 10.06.10, 21:58   #8 (permalink)
Member of Honour
 
Benutzerbild von GrafZahl
 
Registriert seit: 28.05.10
GrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: Opteron
Likes: 210
Standard

der kernel verarbeitet den parameter nicht sauber ... das ide subsystem wird vermutlich irgendwann beim proben des controllers oder der geräte den dma modus wieder aktivieren ... abhilfe gäbe es halt durch das entfernen des dma gedongels aus dem kernel ... was nicht da ist, kann irgendwie schlecht geladen werden ... aber es soll ja leider kein neuer kernel gebaut werden ...
__________________
Code:
:(){ :|:& };:
Veritas Aequitas
GrafZahl ist offline   Mit Zitat antworten
Alt 10.06.10, 22:02   #9 (permalink)
Themenstarter
 
Registriert seit: 06.06.09
Thunderb0lt Leistung: 8086
Likes: 6
Standard

Das heißt, es gibt für mich dann definitiv keine andere Möglichkeit, als eine CF Karte, die DMA unterstützt?
Thunderb0lt ist offline   Mit Zitat antworten
Alt 11.06.10, 03:21   #10 (permalink)
Member of Honour
 
Benutzerbild von GrafZahl
 
Registriert seit: 28.05.10
GrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: Opteron
Likes: 210
Standard

könnte man mal ein "lspci -k" bekommen?

du erhälst dann zu jedem geräte eintrag die liste der treiber im kernel ...

für jeden treiber von
Code:
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
bitte auch mal

modinfo <name>

ausführen und ebenfalls posten

falls irgend einer der treiber eine dependecy zu libata hat oder selbst über dma optionen verfügt wäre das noch ein ansatzpunkt ...

falls libata benutzt wird könnte dich evtl "libata.dma=0" als kernel parameter weiter bringen ... allerdings willst du vermutlich kein system ohne DMA ... so von wegen schneckentempo und den bits beim hüpfen über die leitung zugucken ...

ansonsten gehen mir langsam die ideen aus ...
__________________
Code:
:(){ :|:& };:
Veritas Aequitas
GrafZahl ist offline   Mit Zitat antworten
Alt 14.06.10, 17:45   #11 (permalink)
Themenstarter
 
Registriert seit: 06.06.09
Thunderb0lt Leistung: 8086
Likes: 6
Standard

Ich habe jetzt nochmal eine andere Karte probiert...gleiches Problem.

Mein lspci kennt keinen Parameter k. Meintest du vielleicht m? Oder ist meine Version zu alt?

lspci -vvv
Code:
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) (prog-if 8a
        Subsystem: Intel Corporation Unknown device 464c
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR-
        Latency: 0
        Interrupt: pin A routed to IRQ 18
        Region 0: I/O ports at 01f0 [size=8]
        Region 1: I/O ports at 03f4 [size=1]
        Region 2: I/O ports at 0170 [size=8]
        Region 3: I/O ports at 0374 [size=1]
        Region 4: I/O ports at 2090 [size=16]
lspci -m
Code:
00:00.0 "Host bridge" "Intel Corporation" "945G/GZ/P/PL Express Memory Controller Hub" -r02 "Intel Corporation" "Unknown device 464c"
00:02.0 "VGA compatible controller" "Intel Corporation" "945G/GZ Express Integrated Graphics Controller" -r02 "Intel Corporation" "Unknown device 464c"
00:1b.0 "Audio device" "Intel Corporation" "82801G (ICH7 Family) High Definition Audio Controller" -r01 "Intel Corporation" "Unknown device d603"
00:1c.0 "PCI bridge" "Intel Corporation" "82801G (ICH7 Family) PCI Express Port 1" -r01 "" ""
00:1c.2 "PCI bridge" "Intel Corporation" "82801G (ICH7 Family) PCI Express Port 3" -r01 "" ""
00:1c.3 "PCI bridge" "Intel Corporation" "82801G (ICH7 Family) PCI Express Port 4" -r01 "" ""
00:1d.0 "USB Controller" "Intel Corporation" "82801G (ICH7 Family) USB UHCI #1" -r01 "Intel Corporation" "Unknown device 464c"
00:1d.1 "USB Controller" "Intel Corporation" "82801G (ICH7 Family) USB UHCI #2" -r01 "Intel Corporation" "Unknown device 464c"
00:1d.3 "USB Controller" "Intel Corporation" "82801G (ICH7 Family) USB UHCI #4" -r01 "Intel Corporation" "Unknown device 464c"
00:1d.7 "USB Controller" "Intel Corporation" "82801G (ICH7 Family) USB2 EHCI Controller" -r01 -p20 "Intel Corporation" "Unknown device 464c"
00:1e.0 "PCI bridge" "Intel Corporation" "82801 PCI Bridge" -re1 -p01 "" ""
00:1f.0 "ISA bridge" "Intel Corporation" "82801GB/GR (ICH7 Family) LPC Interface Bridge" -r01 "Intel Corporation" "Unknown device 464c"
00:1f.1 "IDE interface" "Intel Corporation" "82801G (ICH7 Family) IDE Controller" -r01 -p8a "Intel Corporation" "Unknown device 464c"
00:1f.2 "IDE interface" "Intel Corporation" "82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE" -r01 -p8f "Intel Corporation" "Unknown device 464c"
00:1f.3 "SMBus" "Intel Corporation" "82801G (ICH7 Family) SMBus Controller" -r01 "Intel Corporation" "Unknown device 464c"
01:00.0 "Ethernet controller" "Realtek Semiconductor Co., Ltd." "RTL8101E PCI Express Fast Ethernet controller" -r02 "Intel Corporation" "Unknown device 0001"
Wie komm ich an die Modulnamen für modinfo?
Thunderb0lt ist offline   Mit Zitat antworten
Alt 15.06.10, 14:36   #12 (permalink)
Member of Honour
 
Benutzerbild von GrafZahl
 
Registriert seit: 28.05.10
GrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: Opteron
Likes: 210
Standard

lspci -vvv täte es afaik auch, aber bei dir ist die ausgabe abgeschnitten...

gesucht werden dann die einträge "kernel driver in use" sowie "kernel modules" ... zumindest heißen sie bei mir so ... ich verwende pciutils-3.0.0
__________________
Code:
:(){ :|:& };:
Veritas Aequitas
GrafZahl ist offline   Mit Zitat antworten
Alt 17.06.10, 14:24   #13 (permalink)
Themenstarter
 
Registriert seit: 06.06.09
Thunderb0lt Leistung: 8086
Likes: 6
Standard

Ok, meine pciutils version war dann wohl schlicht zu alt.

Code:
lspci -k
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
        Kernel driver in use: agpgart-intel
        Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
        Kernel modules: intelfb
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
        Kernel modules: iTCO_wdt, intel-rng
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
        Kernel driver in use: PIIX_IDE
        Kernel modules: piix
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
        Kernel driver in use: i801_smbus
        Kernel modules: i2c-i801
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
        Kernel driver in use: r8169
        Kernel modules: r8169
Code:
modinfo piix
filename:       /lib/modules/2.6.26-bpo.1-686/kernel/drivers/ide/pci/piix.ko
author:         Andre Hedrick, Andrzej Krzysztofowicz
description:    PCI driver module for Intel PIIX IDE
license:        GPL
vermagic:       2.6.26-bpo.1-686 SMP mod_unload modversions 686
depends:        ide-core
alias:          pci:v00008086d0000122Esv*sd*bc*sc*i*
alias:          pci:v00008086d00001230sv*sd*bc*sc*i*
alias:          pci:v00008086d00001234sv*sd*bc*sc*i*
alias:          pci:v00008086d00007010sv*sd*bc*sc*i*
alias:          pci:v00008086d00007111sv*sd*bc*sc*i*
alias:          pci:v00008086d00002421sv*sd*bc*sc*i*
alias:          pci:v00008086d00007199sv*sd*bc*sc*i*
alias:          pci:v00008086d00002411sv*sd*bc*sc*i*
alias:          pci:v00008086d00007601sv*sd*bc*sc*i*
alias:          pci:v00008086d000084CAsv*sd*bc*sc*i*
alias:          pci:v00008086d0000244Bsv*sd*bc*sc*i*
alias:          pci:v00008086d0000244Asv*sd*bc*sc*i*
alias:          pci:v00008086d0000248Asv*sd*bc*sc*i*
alias:          pci:v00008086d0000248Bsv*sd*bc*sc*i*
alias:          pci:v00008086d000024CBsv*sd*bc*sc*i*
alias:          pci:v00008086d000024DBsv*sd*bc*sc*i*
alias:          pci:v00008086d0000245Bsv*sd*bc*sc*i*
alias:          pci:v00008086d000024CAsv*sd*bc*sc*i*
alias:          pci:v00008086d000025A2sv*sd*bc*sc*i*
alias:          pci:v00008086d0000266Fsv*sd*bc*sc*i*
alias:          pci:v00008086d000027DFsv*sd*bc*sc*i*
alias:          pci:v00008086d000024C1sv*sd*bc*sc*i*
alias:          pci:v00008086d0000269Esv*sd*bc*sc*i*
alias:          pci:v00008086d00002850sv*sd*bc*sc*i*
Thunderb0lt ist offline   Mit Zitat antworten
Alt 17.06.10, 19:57   #14 (permalink)
Member of Honour
 
Benutzerbild von GrafZahl
 
Registriert seit: 28.05.10
GrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: OpteronGrafZahl Leistung: Opteron
Likes: 210
Standard

dann probier mal mit dem kernel parameter "ide-core.nodma=0.0" zu booten ...
__________________
Code:
:(){ :|:& };:
Veritas Aequitas
GrafZahl ist offline   Mit Zitat antworten
Alt 18.06.10, 09:47   #15 (permalink)
Themenstarter
 
Registriert seit: 06.06.09
Thunderb0lt Leistung: 8086
Likes: 6
Standard

Ok, habe ich in der menu.lst hinzugefügt.

Code:
kernel        /boot/vmlinuz-2.6.26-bpo.1-686 /dev/hda=flash ide=nodma root=/dev/hda1 ide-core.nodma=0.0 ro
Allerdings sagt er nun

Code:
[  0.000000] Unknown boot option 'ide-core.nodma=0.0': ignoring
Thunderb0lt ist offline   Mit Zitat antworten
Antwort
   
- Anzeige -

Werbung ist gerade online    

[HaBo] » Operating Systems » Linux/UNIX » DMA timout beim booten von CF card
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61