[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Kernelpanic Booting from 1gb IBM Microdrive
Paul Vanovertveld wrote:
>
> Here it is,
ok, let's see...
(gotta love people including dmesg. 8)
> booting hd0a:bsd.rd: 4379280+732736 [58+122320+105773]=0x517da8
> entry point at 0x100120
>
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> The Regents of the University of California. All rights reserved.
> Copyright (c) 1995-2004 OpenBSD. All rights reserved.
> http://www.OpenBSD.org
>
> OpenBSD 3.5-current (RAMDISK_CD) #169: Wed Apr 14 11:00:48 MDT 2004
> deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> RTC BIOS diagnostic error 8e<clock_battery,fixed_disk,invalid_time>
> cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
> 586-class) 267 MHz
> cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
> cpu0: TSC disabled
> real mem = 268021760 (261740K)
> avail mem = 242999296 (237304K)
> using 3297 buffers containing 13504512 bytes (13188K) of memory
> RTC BIOS diagnostic error 8e<clock_battery,fixed_disk,invalid_time>
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(00) BIOS, date 06/23/99
> pcibios at bios0 function 0x1a not configured
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
> sis0 at pci0 dev 11 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
> irq 9, address 00:0c:42:03:0d:af
> nsphyter0 at sis0 phy 0: DP83815 10/100 integrated, rev. 1
> sis1 at pci0 dev 12 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
> irq 10, address 00:0c:42:03:0d:b0
> nsphyter1 at sis1 phy 0: DP83815 10/100 integrated, rev. 1
> cbb0 at pci0 dev 13 function 0 "Texas Instruments PCI1520 CardBus" rev
> 0x01: irq 11
> cbb1 at pci0 dev 13 function 1 "Texas Instruments PCI1520 CardBus" rev
> 0x01: irq 11
> wi0 at pci0 dev 14 function 0 "Intersil PRISM2.5 Mini-PCI WLAN" rev
> 0x01: irq 10
> wi0: PRISM2.5 ISL3874A(Mini-PCI), Firmware 1.0.7 (primary), 1.3.6
> (station), address 00:09:5b:91:92:df
> pcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
> "NS SC1100 SMI/ACPI" rev 0x00 at pci0 dev 18 function 1 not configured
> pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel
> 0 wired to compatibility, channel 1 wired to compatib
> ility
> wd0 at pciide0 channel 0 drive 0: <IBM-DSCM-11000>
> wd0: 16-sector PIO, LBA, 1027MB, 2104704 sectors
> wd0(pciide0:0:0): using PIO mode 3, DMA mode 1
ok, trying to run DMA...
> "NS SCx200 AUDIO" rev 0x00 at pci0 dev 18 function 3 not configured
> vendor "NS", unknown product 0x514 (class display subclass VGA, rev
> 0x01) at pci0 dev 18 function 4 not configured
> "NS SC1100 X-Bus" rev 0x00 at pci0 dev 18 function 5 not configured
> ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 12,
> version 1.0, legacy support
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Compaq OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 3 ports with 3 removable, self powered
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 0 device 0 cacheline 0x8, lattimer 0x20
> pcmcia0 at cardslot0
> cardslot1 at cbb1 slot 1 flags 0
> cardbus1 at cardslot1: bus 0 device 0 cacheline 0x8, lattimer 0x20
> pcmcia1 at cardslot1
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom0: console
> biomask d800 netmask de00 ttymask de02
> rd0: fixed, 3560 blocks
> wd0(pciide0:0:0): timeout
> type: ata
> c_bcount: 512
> c_skip: 0
> pciide0:0:0: bus-master DMA error: missing interrupt, status=0x61
> wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
> wd0(pciide0:0:0): timeout
> type: ata
> c_bcount: 512
> c_skip: 0
> pciide0:0:0: bus-master DMA error: missing interrupt, status=0x61
> wd0: transfer error, downgrading to PIO mode 3
> wd0(pciide0:0:0): using PIO mode 3
> wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
> wd0: soft error (corrected)
> wd0: no disk label
problem...
> root on rd0a
> rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
> WARNING: file system time much less than clock time
> erase ^?, werase ^W, kill ^U, intr ^C, status ^T
> (I)nstall, (U)pgrade or (S)hell? s
> # date
> sh: date: not found
> # fdisk wd0
> Disk: wd0 geometry: 522/64/63 [2104704 Sectors]
> Offset: 0 Signature: 0x0
> Starting Ending LBA Info:
> #: id C H S - C H S [ start: size ]
> ------------------------------------------------------------------------
> 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> # fdisk /dev/rwd0c
big problem...
> Disk: /dev/rwd0c geometry: 522/64/63 [2104704 Sectors]
> Offset: 0 Signature: 0x0
> Starting Ending LBA Info:
> #: id C H S - C H S [ start: size ]
> ------------------------------------------------------------------------
> 0: 72 324559 56 6 - 521413 47 43 [ 1308625421: 793714799 ]
> <Unknown ID>
> 1: 4E 492713 59 31 - -167065 -5 -61 [ 1986622563: 1634738277 ] QNX
> 4.2 Sec
> 2: 69 2340 36 47 - 2340 36 46 [ 9437194: 0 ] Novell
> 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> # disklabel /dev/rwd0c
> # /dev/rwd0c:
> type: ESDI
> disk: ESDI/IDE disk
> label: IBM-DSCM-11000
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 16
> sectors/cylinder: 1008
> cylinders: 2088
> total sectors: 2104704
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0 # microseconds
> track-to-track seek: 0 # microseconds
> drivedata: 0
>
> 16 partitions:
> # size offset fstype [fsize bsize cpg]
> c: 2104704 0 unused 0 0 # (Cyl. 0 -
> 2087)
> disklabel: warning, partition i: size 0, but offset 9437194
> disklabel: partition i: offset past end of unit
> disklabel: partition i: partition extends past end of unit
REALLY big problem.
That was kinda my guess...
(wasn't much of a guess...that's what the disk loader said. 8)
> Strange, when I installed it, there was no error. And later I even
> mounted the partition on my laptop, again no error.
AFTER this, you put the drive back in your laptop and there is a valid
MBR and disklabel?
I think there are two likely causes of the problem...
1) Proceedural, something you are doing is blowing away the MBR and
disklabel. However, putting the drive in another machine would
quickly prove or disprove that idea.
2) Another idea suggested by someone who knows such things is that
those disk error messages are not quite as benign as the sound.
Obviously, the MBR is there, otherwise, it wouldn't be booting (you
explicitly gave an MBR message on your first posting...if you were
faking it, we have ways of dealing with such misinformation. 8) fdisk
is NOT reading a valid partition table, which is pretty wacked, all
things considered.
Verify that you can discard idea 1, first, which leaves us at idea
2...
Try doing a "disable pciide" from UKC
http://www.openbsd.org/faq/faq5.html#BootConfig
which will probably cause it to fall back on wdc(4), a non-DMA
driver. If this doesn't work (i.e., wdc(4) doesn't pick up the drive,
I think I have seen a machine that doesn't) try disabling the DMA
transfers on the wd(4) device, by:
UKC> change wd
34 wd* at ... channel -1 flags 0x0
change (y/n) y
channel [-1] <enter>
flags [0]? 0xff0 (by my reading, that should do no DMA, with the
PIO mode the drive reported it could handle).
34 wd* changed
...
UKC> quit
now...see if it works any better...
If so, I think the answer is "your computer or your Microdrive don't
like OpenBSD's DMA implementation", use config(8) to make the changes
permenent.
If not the answer is "Nick [and the person who made the suggestion] is
wrong!" 8)
Nick.
--
http://www.holland-consulting.net