I've done this once before a while back with 3.6 and never had any trouble. Now I'm doing it for a different machine using 3.8, but all of a sudden I'm getting a seg.fault during the kernel build.

I include the following below:

a) The last few lines before the seg.fault.
b) my difference between GENERIC and RAID as a patch file
c) dmesg

I've choosen to hard code my disk controller (SATA) and the disks for the kernel.

-----
sh /usr/src/sys/arch/i386/compile/RAID/../../../../conf/newvers.sh
cc -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -Wno-format -Wno-main -fno-builtin-printf -fno-builtin-log -O2 -pipe -nostdinc -I. -I/usr/src/sys/arch/i386/compile/RAID/../../../../arch -I/usr/src/sys/arch/i386/compile/RAID/../../../.. -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_35 -DCOMPAT_43 -DLKM -DFFS -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DXFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFDESC -DFIFO -DPORTAL -DPROCFS -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DBOOT_CONFIG -DI386_CPU -DI486_CPU -DI586_CPU -DI686_CPU -DUSER_PCICONF -DUSER_LDT -DAPERTURE -DCOMPAT_SVR4 -DCOMPAT_IBCS2 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DCOMPAT_BSDOS -DCOMPAT_AOUT -DACPIVERBOSE -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DPCIAGP -DRAID_AUTOCONFIG -D_KERNEL -Di386 -c vers.c
rm -f bsd
ld -Ttext 0xD0100120 -e start -N -S -x -o bsd ${SYSTEM_OBJ} vers.o
Segmentation fault
*** Error code 139

Stop in /usr/src/sys/arch/i386/compile/RAID (line 713 of Makefile).

-----RAID.patch----
*** GENERIC     Tue Aug 16 20:31:49 2005
--- RAID        Wed Mar 15 21:04:03 2006
***************
*** 348,353 ****
--- 348,357 ----
  # IDE controllers
  pciide* at pci? flags 0x0000

+ pciide0 at pci? dev ? function ? flags 0x0000
+ wd0 at pciide0 channel 0 drive 0 flags 0x0000
+ wd1 at pciide0 channel 1 drive 0 flags 0x0000
+
  wdc0  at isa? port 0x1f0 irq 14 flags 0x00
  wdc1  at isa? port 0x170 irq 15 flags 0x00
  wdc*  at pcmcia?
***************
*** 604,610 ****
  pseudo-device mtrr            1       # Memory range attributes control
  pseudo-device nvram           1
  pseudo-device sequencer       1
! #pseudo-device        raid            4       # RAIDframe disk driver
  pseudo-device bio             1       # ioctl multiplexing device
  pseudo-device hotplug         1       # devices hot plugging

--- 608,615 ----
  pseudo-device mtrr            1       # Memory range attributes control
  pseudo-device nvram           1
  pseudo-device sequencer       1
! pseudo-device raid            4       # RAIDframe disk driver
! option          RAID_AUTOCONFIG
  pseudo-device bio             1       # ioctl multiplexing device
  pseudo-device hotplug         1       # devices hot plugging

-----dmesg----
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 65445888 (63912K)
avail mem = 52174848 (50952K)
using 824 buffers containing 3375104 bytes (3296K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(46) BIOS, date 11/27/00, BIOS32 rev. 0 @ 0xe7300
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xe7300/0x8d00
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf6610/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801AA LPC" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xa000 0xca000/0x4800 0xe0000/0x10000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82815 Hub" rev 0x02: rng active, 8Kb/sec vga1 at pci0 dev 2 function 0 "Intel 82815 Graphics" rev 0x02: aperture at 0x44000000, size 0x4000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 30 function 0 "Intel 82801AA Hub-to-PCI" rev 0x02
pci1 at ppb0 bus 1
pciide0 at pci1 dev 8 function 0 "CMD Technology SiI3512 SATA" rev 0x01: DMA
pciide0: using irq 5 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: <Maxtor 6L080M0>
wd0: 16-sector PIO, LBA, 78167MB, 160086528 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
pciide0: port 1: device present, speed: 1.5Gb/s
wd1 at pciide0 channel 1 drive 0: <Maxtor 6L080M0>
wd1: 16-sector PIO, LBA, 78167MB, 160086528 sectors
wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 6
rl0 at pci1 dev 9 function 0 "Realtek 8139" rev 0x10: irq 9 address 00:40:f4:53:dd:73
rlphy0 at rl0 phy 0: RTL internal phy
ichpcib0 at pci0 dev 31 function 0 "Intel 82801AA LPC" rev 0x02
pciide1 at pci0 dev 31 function 1 "Intel 82801AA IDE" rev 0x02: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
pciide1: channel 0 disabled (no drives)
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <COMPAQ, SC-148F, FA07> SCSI0 5/cdrom removable
cd0(pciide1:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 31 function 2 "Intel 82801AA USB" rev 0x02: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
auich0 at pci0 dev 31 function 5 "Intel 82801AA AC97" rev 0x02: irq 9, ICH AC97
ac97: codec id 0x41445360 (Analog Devices AD1885)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at auich0
isa0 at ichpcib0
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, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask fd65 netmask ff65 ttymask ffe7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
wd1: no disk label
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

--
Anthony C Howe          Skype: SirWumpus                    SnertSoft
+33 6 11 89 73 78         AIM: SirWumpus    Sendmail Milter Solutions
http://www.snert.com/     ICQ: 7116561      http://www.snertsoft.com/

Reply via email to