Re: installboot: broken MBR

2010-01-09 Thread Hyjial Irldar
Hi !

  Can you send the output of ``./installboot -v -n boot biosboot (your
disk dev)'' from the installation medium ? Notice that must be run
from the /usr/mdec directory of your installed system, otherwise,
installboot(8) will complain about cross-device installation.

  As a temporay workaround, and only if you get something like
``extended partition ...: type ... offset ...'' before getting
``broken MBR'' in the output, you can swap the two partition entries
sda1 and sda2 (via the swap command in fdisk(8)) and re-run
installboot(8) (the above command, without the ``-n'' switch).

  Cheers !

hyjial.

N.B.: installboot(8)---at least on i386---would not find an OpenBSD
partition in an extended one. It gets confused with offsets when
recursing through the extended partition. I have been working on the
issue some months ago and ran out of time. I will get back to it ASAP.



Re: re(4) panic on 13 Jan 2009 snap

2009-01-19 Thread Hyjial Irldar
Hi !
I got the same issue, before last revision of src/sys/dev/pci/ppb.c by
Mark (kettenis@). Yet your trace and ps output is rather different
from what I got back then. I am not familiar enough with the kernel
internals to state about the similarity of our situations. The issue
still shows up if I don't disable apm at boot. Have you done so ?
Regards.
hyjial


2009/1/19 Bryan :
> Greetings,
>
>
> I am still having issues with the re(4) interface on my server. I
> mentioned this on the list, and was told that the re(4) fix was in.  I
> am running the 13 Jan 2009 snapshot, and I can still reproduce the
> error on a regular basis.  It goes like this...
>
> 1.  push the power button
> 2.  boot openbsd
> 3.  panic
>
> panic: config_detach: forced detach of re0 failed (45)
> Stopped atDebugger+0x4: leave
>
> 4.  issue "boot sync"
> 5.  system restarts
> 6.  re(4) starts with no issues
>
> if I shutdown, or do a warm reboot, I have to do step 4 and restart the 
> system.
>
> I do have a picture of the error I receive when the system is going to
> panic.  As I have no console, and puc(4) is useless for console use,
> the picture can be found here:
>
> http://picasaweb.google.com/lh/photo/Das3TsaFIvV1I-zKTHvaog?feat=directlink
>
> I also did a ps, and trace of the system.  here is the photo of that.
>
> http://picasaweb.google.com/lh/photo/l7IN31cOVXa1y8yn74aA8w?feat=directlink
>
> If someone has any other ideas, please let me know. The dmesg below is
> when the server will come up after a "boot sync" and a warm restart.
>
> I do intend on updating to the latest snapshot (jan 18th) in the next
> few minutes.
>
> Regards,
> Bryan Brake
>
> OpenBSD 4.4-current (GENERIC.MP) #35: Tue Jan 13 10:19:47 MST 2009
>t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686-class) 
> 2.4
> 1 GHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
> LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
> xTPR
> real mem  = 3488833536 (3327MB)
> avail mem = 3384754176 (3227MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 10/23/08, BIOS32 rev. 0 @ 0xf0010, 
> SMBIOS
> rev. 2.5 @ 0xf06e0 (54 entries)
> bios0: vendor American Megatrends Inc. version "5.32" date 10/23/2008
> bios0: HP-Pavilion FK484AV-ABA m9400t
> acpi0 at bios0: rev 0
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI SLIC SSDT
> acpi0: wakeup devices P0P2(S4) P0P1(S4) PS2K(S3) PS2M(S3) USB0(S3) USB1(S3) 
> USB2
> (S3) USB5(S3) EUSB(S3) USB3(S3) USB4(S3) USBE(S3) GBE_(S4) P0P4(S4) P0P5(S4) 
> P0P
> 6(S4) P0P7(S4) P0P8(S4) P0P9(S4) SLPB(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 266MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686-class) 
> 2.4
> 0 GHz
> cpu1: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
> LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
> xTPR
> cpu2 at mainbus0: apid 2 (application processor)
> cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686-class) 
> 2.4
> 0 GHz
> cpu2: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
> LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
> xTPR
> cpu3 at mainbus0: apid 3 (application processor)
> cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686-class) 
> 2.4
> 0 GHz
> cpu3: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
> LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
> xTPR
> ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (P0P1)
> acpiprt2 at acpi0: bus 3 (P0P4)
> acpiprt3 at acpi0: bus -1 (P0P5)
> acpiprt4 at acpi0: bus 2 (P0P6)
> acpiprt5 at acpi0: bus -1 (P0P7)
> acpiprt6 at acpi0: bus -1 (P0P8)
> acpiprt7 at acpi0: bus -1 (P0P9)
> acpicpu0 at acpi0
> acpicpu1 at acpi0
> acpicpu2 at acpi0
> acpicpu3 at acpi0
> acpibtn0 at acpi0: SLPB
> acpibtn1 at acpi0: PWRB
> bios0: ROM list: 0xc/0xe200 0xce800/0x1000
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02
> ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: apic 4 int 16 (irq 
> 5)
> pci1 at ppb0 bus 5
> vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 9300 GE" rev 0xa1
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 16 
> (irq
> 5)
> uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 21 
> (irq
> 3)
> ehci0 at pci0 dev 26 funct