View Single Post
Old 14th April 2010
Mr-Biscuit Mr-Biscuit is offline
Banned
 
Join Date: May 2008
Posts: 272
Default

This is the first xorg replacement that I used which didn't work:

Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "xtrap"
        Load  "freetype"
        Load  "type1"
EndSection


Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "Protocol" 	  "standard"
	Option	    "XkbRules" 	  "xorg"
	Option	    "XkbModel" 	  "macintosh"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option      "Protocol" "wsmouse"
	Option      "Device"   "/dev/wsmouse"
	Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
   Identifier   "StudioDsply1"
   Option      "DPMS"
   HorizSync   30-85
   VertRefresh   48-160
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"             # [<bool>]
        #Option     "SWcursor"           # [<bool>]
        #Option     "Dac6Bit"             # [<bool>]
        #Option     "Dac8Bit"             # [<bool>]
        #Option     "Display"             # <str>
        #Option     "PanelWidth"         # <i>
        #Option     "PanelHeight"         # <i>
        #Option     "ProgramFPRegs"       # [<bool>]
        #Option     "UseFBDev"           # [<bool>]
        #Option     "VideoKey"           # <i>
        #Option     "ShowCache"           # [<bool>]
        #Option     "VGAAccess"           # [<bool>]
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "Rage 128 RE/SG"
        BusID       "PCI:0:16:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 16
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes "1024x768" "1280x1024"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1024x768" "1280x1024"
        EndSubSection
EndSection

This is the second xorg.conf I used according to the README.

Code:
Section "ServerLayout"
	Identifier     "Sample Config"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/OTF"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "Protocol"	"standard"
	Option	    "XkbRules"	"xorg"
	Option	    "XkbModel"	"macintosh"
	Option	    "XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option      "Protocol"	"wsmouse"
	Option      "Device"	"/dev/wsmouse"
	Option      "ZAxisMapping"	"4 5"
EndSection

Section "Monitor"
	Identifier   "Monitor"
	VendorName   "Generic"
	ModelName    "TwentyOneInches"
# Adjust those to your monitor or it will be destroyed !!
	HorizSync   30-85
        VertRefresh   48-160
# 	This mode line can be used on the Ti PBG4
#	Modeline "1152x768" 64.995 1152 1213 1349 1472  768 771 777 806 -HSync -VSync
# 	This mode line can be used on the ibook 600
#        ModeLine "1024x768" 75.00 1024 1048 1184 1328 768 771 777 806
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "ati"
	VendorName  "ATI"
	BoardName   "Rage 128 Pro PF"
	BusID       "PCI:0:16:0"
# 	These options are required for use on the Ti PBG4.
#	Option      "PanelWidth"  "1152"
#	Option      "PanelHeight" "768"
#	This option enable quirks for specified Mac model, details in Radeon(4)
#	Option      "MacModel" "ibook"

EndSection

# Use the following "Device" section instead for wsfb
#
# Section "Device"
#	Identifier "Card0"
#	Driver	   "wsfb"
#       Option	   "device" "/dev/ttyC0"
# EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor"
# Perhaps change this to DefaultDepth 24 for ati 
	DefaultDepth 24
	SubSection "Display"
		Depth     8
		Modes "1280x1024" "1024x768" "800x600" "640x480"
# For PBG4 uncomment
#		Modes     "1152x768" "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes "1280x1024" "1024x768" "800x600" "640x480"
# For PBG4 uncomment
#		Modes     "1152x768" "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes "1280x1024" "1024x768" "800x600" "640x480"
# For PBG4 uncomment
#		Modes     "1152x768" "1024x768"
	EndSubSection
EndSection


This is the dmesg.
Code:
ation)
uhidev0 at uhub0 port 1 configuration 1 interface 0 "CHESEN USB Keyboard" rev 1.10/1.10 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
uhidev1 at uhub0 port 1 configuration 1 interface 1 "CHESEN USB Keyboard" rev 1.10/1.10 addr 2
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub0 port 2 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/43.01 addr 3
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
softraid0 at root
bootpath: /pci/@d/pci-ata@1/ata-4@0/disk@0:/bsd
root on wd0a swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
wd0a: aborted command, interface CRC error reading fsbn 414720 of 414720-414751 (wd0 bn 417744; cn 414 tn 6 sn 54), retrying
wd0: soft error (corrected)
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1
wd0a: aborted command, interface CRC error reading fsbn 1658688 of 1658688-1658719 (wd0 bn 1661712; cn 1648 tn 8 sn 24), retrying
wd0: soft error (corrected)
wd0g: aborted command, interface CRC error reading fsbn 19488896 of 19488896-19488927 (wd0 bn 87914960; cn 87217 tn 3 sn 35), retrying
wd0: soft error (corrected)
wd0g: aborted command, interface CRC error reading fsbn 34001856 of 34001856-34001887 (wd0 bn 102427920; cn 101615 tn 0 sn 0), retrying
wd0: soft error (corrected)
wd0g: aborted command, interface CRC error reading fsbn 41465664 of 41465664-41465695 (wd0 bn 109891728; cn 109019 tn 9 sn 9), retrying
wd0: soft error (corrected)
wd0: transfer error, downgrading to Ultra-DMA mode 0
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 0
wd0g: aborted command, interface CRC error reading fsbn 43124288 of 43124288-43124319 (wd0 bn 111550352; cn 110665 tn 0 sn 32), retrying
wd0: soft error (corrected)
wd0f: aborted command, interface CRC error reading fsbn 26952704 of 26952704-26952735 (wd0 bn 49240592; cn 48849 tn 12 sn 44), retrying
wd0f: aborted command, interface CRC error reading fsbn 26952704 of 26952704-26952735 (wd0 bn 49240592; cn 48849 tn 12 sn 44), retrying
wd0f: aborted command, interface CRC error reading fsbn 26952704 of 26952704-26952735 (wd0 bn 49240592; cn 48849 tn 12 sn 44), retrying
wd0: transfer error, downgrading to PIO mode 4
wd0(pciide0:0:0): using PIO mode 4
wd0f: aborted command, interface CRC error reading fsbn 26952704 of 26952704-26952735 (wd0 bn 49240592; cn 48849 tn 12 sn 44), retrying
wd0: soft error (corrected)
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
bm0: device timeout
syncing disks... done
rebooting

[ using 437516 bytes of bsd ELF symbol table ]
console out [ATY,Rage128y]console in [keyboard] USB and ADB found, using ADB
: memaddr 84000000 size 4000000, : consaddr 84000000, : ioaddr 80920000, size 20000: memtag 8000, iotag 8000: width 640 linebytes 640 height 480 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2009 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.6 (GENERIC) #43: Thu Jul  9 21:29:23 MDT 2009
    deraadt@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 402653184 (384MB)
avail mem = 379437056 (361MB)
mainbus0 at root: model PowerMac1,1
cpu0 at mainbus0: 750 (Revision 0x202): 400 MHz: 1MB backside cache
mem0 at mainbus0
mpcpcibr0 at mainbus0 pci: grackle, Revision 0x40
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 0 function 0 "Motorola MPC106 PCI" rev 0x40
ppb0 at pci0 dev 13 function 0 "DEC 21154 PCI-PCI" rev 0x02
pci1 at ppb0 bus 1
"TI TSB12LV21 FireWire" rev 0x02 at pci1 dev 0 function 0 not configured
pciide0 at pci1 dev 1 function 0 "CMD Technology PCI0646" rev 0x05: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using irq 26 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <Maxtor 4R060J0>
wd0: 16-sector PIO, LBA, 58644MB, 120103200 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ahc0 at pci1 dev 4 function 0 "Adaptec AHA-2940U2 U2" rev 0x01: irq 25
scsibus0 at ahc0: 16 targets, initiator 7
macobio0 at pci1 dev 5 function 0 "Apple Paddington" rev 0x00
macintr0 at macobio0 offset 0x10
mesh0 at macobio0 offset 0x10000 irq 12: 50MHz
scsibus1 at mesh0: 8 targets, initiator 7
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs0 at macobio0 offset 0x14000: irq 17,8,9 speaker
audio0 at awacs0
"power-mgt" at macobio0 offset 0x0 not configured
"fdc" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 18: via-cuda, 0 targets
piic0 at adb0
iic0 at piic0
wdc0 at macobio0 offset 0x20000 irq 13: DMA
atapiscsi0 at wdc0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <LITE-ON, COMBO SOHC-4836K, SPJ2> ATAPI 5/cdrom removable
cd0(wdc0:0:0): using BIOS timings, DMA mode 2
bm0 at macobio0 offset 0x11000 irq 42,33: address 00:50:e4:20:cd:77
lxtphy0 at bm0 phy 0: LXT970 10/100 PHY, rev. 1
"nvram" at macobio0 offset 0x60000 not configured
ohci0 at pci1 dev 6 function 0 "Opti 82C861" rev 0x10: irq 28, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Opti OHCI root hub" rev 1.00/1.00 addr 1
vgafb0 at pci0 dev 16 function 0 "ATI Rage 128" rev 0x00, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
uhidev0 at uhub0 port 1 configuration 1 interface 0 "CHESEN USB Keyboard" rev 1.10/1.10 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
uhidev1 at uhub0 port 1 configuration 1 interface 1 "CHESEN USB Keyboard" rev 1.10/1.10 addr 2
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub0 port 2 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/43.01 addr 3
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
softraid0 at root
bootpath: /pci/@d/pci-ata@1/ata-4@0/disk@0:/bsd
root on wd0a swap on wd0b dump on wd0b
wd0e: aborted command, interface CRC error reading fsbn 3317312 of 3317312-3317343 (wd0 bn 17215616; cn 17078 tn 15 sn 47), retrying
wd0: soft error (corrected)
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1
wd0a: aborted command, interface CRC error reading fsbn 3317312 of 3317312-3317343 (wd0 bn 3320336; cn 3293 tn 15 sn 47), retrying
wd0: soft error (corrected)
This is uname -a:
Code:
$uname -a
OpenBSD moo.my.domain 4.6 GENERIC#43 macppc
I'm adding this edit. I had to set everything up by using Debian and Ubuntu to get the machine started, then an internet connection, then hardware changing, then a NetBSD install to fix the disk, and then finally OpenBSD as the permanent install.

Last edited by Mr-Biscuit; 14th April 2010 at 03:19 AM.
Reply With Quote