#4058 closed bug (fixed)
Boot fails, new ATA stack
Reported by: | aldeck | Owned by: | marcusoverhagen |
---|---|---|---|
Priority: | high | Milestone: | R1/alpha2 |
Component: | Drivers/Disk/ATA | Version: | R1/pre-alpha1 |
Keywords: | Cc: | marcusoverhagen | |
Blocked By: | Blocking: | #4535 | |
Platform: | All |
Description
Boot fails and enters KDL with:
PANIC: did not find any boot partitions! Welcome to KDL... Thread 13 "main2" running on CPU 0
hrev31372 built with HAIKU_ATA_STACK=1
Core 1 duo laptop, PATA hardrive.
lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03) 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) 01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce Go 7600] (rev a1) 02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02) 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) 06:00.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller 06:00.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19) 06:00.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a) 06:00.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05) 06:00.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
hdparm -i /dev/sda
/dev/sda: Model=FUJITSU MHV2120AT PL , FwRev=000000A0, SerialNo= NSA4T5B255HV Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=?16? CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648 IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled Drive conforms to: unknown: ATA/ATAPI-2,3,4,5,6,7 * signifies the current active mode
screenshots of the syslog already uploaded there (i can upload them to trac if prefered):
Attachments (13)
Change History (35)
by , 15 years ago
by , 15 years ago
by , 15 years ago
by , 15 years ago
by , 15 years ago
by , 15 years ago
by , 15 years ago
by , 15 years ago
by , 15 years ago
by , 15 years ago
comment:2 by , 15 years ago
comment:4 by , 15 years ago
hrev31460 keeps me from booting as well. I applied the diff in reverse and all is well now.
comment:7 by , 15 years ago
Still there, but that's expected since i believe it's a different problem (ie: those recent comments are not related to this ticket). The ticket is about switching to the new ATA stack (the IDE stack was working on that same machine). The problem was there before hrev31460. cf: http://www.freelists.org/post/haiku-development/Filesystem-corruption-and-Alpha1,47 in reply to: http://www.freelists.org/post/haiku-development/Filesystem-corruption-and-Alpha1,38
comment:8 by , 15 years ago
Cc: | added |
---|
comment:9 by , 15 years ago
Cc: | added; removed |
---|
comment:10 by , 15 years ago
You have a harddisk as master and a CD-ROM as slave on the first ATA port (7.jpg ) Some command sent to harddisk fails (7.jpg)
It looks like some debug output between image 7 and 8 is missing.
Some (other?) command fails with a timeout (8.jpg)
All subsequent commands fail (device selection timeout) because the device is in a bad state and needs a reset, but no reset is done.
Things that need to be done: add debug output about when failing commands, do proper error recovery.
comment:11 by , 15 years ago
Milestone: | R1 → R1/alpha1 |
---|---|
Priority: | normal → high |
comment:12 by , 15 years ago
Blocking: | 4050 added |
---|
(In #4050) Looks very similar to issue 4050, improper error recovery
comment:15 by , 15 years ago
Sorry for the lack of answer to your previous comments, i was in vacation. I just tried a fresh build of hrev32984 (trunk), without luck. Would you like another syslog dump (with the missing info hopefully)? Do you want me to rebuild ATA with tracing enabled?
comment:16 by , 15 years ago
Status: | new → assigned |
---|
Another syslog dump would be very nice. You can skip the whole "PCI:" device dump at the beginning. ATA tracing isn't needed yet.
by , 15 years ago
by , 15 years ago
by , 15 years ago
comment:17 by , 15 years ago
Sorry for the delay, i'm very busy with work at the moment.
Syslog output using the kdl "syslog" command, beware the paging is not at the bottom, see the dark inverted text rectangle on the right. Skipped up to the end of "PCI:" section. hrev33015
comment:18 by , 15 years ago
Milestone: | R1/alpha1 → R1/alpha2 |
---|
comment:21 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
great work Marcus, it's indeed fixed! (tested with hrev33644)
comment:22 by , 10 years ago
Component: | Drivers/Disk → Drivers/Disk/ATA |
---|
syslog screen 1