Subject: Re: Beautiful Sparc, take 2
To: Michael Lorenz <macallan@NetBSD.org>
From: John Gould <johng@powinv.co.uk>
List: port-sparc
Date: 05/11/2006 12:44:24
On Thu, 4 May 2006, Michael Lorenz wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
>> Can someone point me in the direction of how to get XFree working with 
>> acceleration on a Sparcstation 20?
>
> Hmm, I really should write this down somewhere ;)
>
> First you need -current. 3.0 has no XFree on sparc.
> Then you'll need to build a kernel with wscons support - this is the crucial 
> part, XFree neds it and we don't (yet) have wscons-compliant drivers for all 
> common graphics hardware on sparc. Right now we only have support for CG6 
> variants, Krups and the Weitek P9100 found in the SPARCbook 3 series ( that's 
> the hardware I have access to )
> Have a look at the kernel config files for sparc64 - you'll need to attach 
> the ttys, mouse and keyboard the same way as on sparc64, add wsdisplay* at 
> wsdisplayemuldev? and some pseudo-devices needed by wscons. Don't bother with 
> any of this if you don't have a supported framebuffer, on a sparcstation that 
> currently means some sort of cg6.
> Like this:
>
> zs0	at obio0					# sun4m
> zstty0	at zs0 channel 0	# ttya
> zstty1	at zs0 channel 1	# ttyb
>
> zs1	at obio0					# sun4m
> zstty*	at zs1 channel ?	# mouse/keyboard
>
> kbd0	at zstty?
> ms0	at zstty?
>
> wskbd*		at kbd? console ?
> wsmouse*	at ms?
>
> wsdisplay* 	at wsemuldisplaydev? console ?
>
> pseudo-device	wsmux			# mouse and keyboard multiplexor
> pseudo-device	wsfont
>
> Besides that you might want something like this to customize console output:
> # wsdisplay options
> options 	WSEMUL_SUN
> #options 	WSEMUL_VT100
> options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
> options 	WSDISPLAY_CUSTOM_OUTPUT		# wsconsctl(8)
>
> # black on white, kernel output in green
> options 	WS_DEFAULT_FG=WSCOL_BLACK
> options 	WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
> options 	WS_KERNEL_FG=WSCOL_GREEN
> options 	WS_KERNEL_BG=WSCOL_LIGHT_WHITE
>
> options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
> options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
> options 	WSDISPLAY_COMPAT_USL		# VT handling
>
> options 	WSDISPLAY_DEFAULTSCREENS=1
>
> options 	FONT_GALLANT12x22	# the console font
> #options 	FONT_BOLD8x16		# a somewhat smaller font
>
> This will also give you virtual consoles ( switch with Stop-Fn )
> You may want to put 'wscons-yes' into your rc.conf and you'll also want to 
> have a look at /etc/ttys and add likes for ttyE0-3 to get login prompts on 
> the additional consoles.
>
> When you're done with this change the /usr/X11R6/bin/X symlink to point to 
> XFree86 and run X -configure. This should give you a working config file.
> Make sure /dev/fb0 exists though, in doubt make it a symlink to /dev/fb. 
> Recent -current should have /dev/fb0 and probably a few more.
>
> have fun
> Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
>
> iQEVAwUBRFopCMpnzkX8Yg2nAQLRSwf/SXbSm451JDYqbIAUKZ2I67QwQfqlPReT
> otuWaYZPxjrLnohlSu9q1ITLMjl5tzGqqgmoVyX08XVWyEnEdJAUHO2JRz//0bEv
> ZQ6A0ufs/Rq65lX/Xu/uQ5VcCeKPrl0kjtFCk9n8/ltHAw0APOXCXHg4RS/OFbKy
> cC5OWri4GjdTXb5Psp//FkGngIDKwIa0bKsLasExW5grKQxXAfWO2p2cXy1158Ec
> HhoRjlXwc5M209V4D7+pdDliZDQJbeIIS+KT/vfYusHDFwdSeDYElqKNCW1BtBHO
> eW9vcYh3CNm0cNM7+Z2rr70EnOmKcrpZgcaciSmWX7KroRFUhyIuQQ==
> =ix4n
> -----END PGP SIGNATURE-----
>
Hello there,
             I've tried the above to build a kernel for XFree and also with 
these notes:-

http://mail-index.netbsd.org/port-sparc/2005/10/01/0000.html

The kernel builds fine but does not boot, I get a data error on boot and 
then immediately a watchdog timer reset. My sources are up to date as of 
yesterday the 10/05/2006. Any pointers as to what I should do now?

My dmesg with a standard -current kernel is below, if anyone wants my 
kernel config file please let me know.

Best regards John.


NetBSD 3.99.18 (GENERIC) #0: Thu May  4 12:26:30 UTC 2006

builds@b3.netbsd.org:/home/builds/ab/HEAD/sparc/200605040000Z-obj/home/builds/ab/HEAD/src/sys/arch/sparc/compile/GENERIC
total memory = 127 MB
avail memory = 120 MB
bootpath: 
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0
mainbus0 (root): SUNW,SPARCstation-20: hostid 723c01ea
cpu0 at mainbus0: RT620/625 @ 150 MHz, on-chip FPU
cpu0: 512K byte write-back, 32 bytes/line, sw flush: cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08
timer0 at obio0 slot 0 offset 0x300000: delay constant 73
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200 (console input)
ms0 at zs1 channel 1: baud rate 1200
fdc0 at obio0 slot 0 offset 0x700000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
auxreg0 at obio0 slot 0 offset 0x800000
power0 at obio0 slot 0 offset 0xa01000 level 2
iommu0 at mainbus0 ioaddr 0xe0000000: version 0x3/0x0, page-size 4096, 
range 64MB
sbus0 at iommu0: clock = 20 MHz
dma0 at sbus0 slot 15 offset 0x400000: DMA rev 2
esp0 at dma0 slot 15 offset 0x800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
ledma0 at sbus0 slot 15 offset 0x400010: DMA rev 2
le0 at ledma0 slot 15 offset 0xc00000 level 6: address 00:40:dc:01:01:ea
le0: 8 receive buffers, 2 transmit buffers
bpp0 at sbus0 slot 15 offset 0x4800000 level 2 (ipl 3): DMA rev 2
dbri0 at sbus0 slot 15 offset 0x8010000 level 9: rev e
cgsix0 at sbus0 slot 2 offset 0x0 level 9: TGX120,170-0006, 1152 x 900, 
rev 11 (console)
cgsix0: attached to /dev/fb0
cgsix0: framebuffer size: 2 MB
eccmemctl0 at mainbus0 ioaddr 0x0: version 0x0/0x2
dbri0: no mmcodec found
audio0 at dbri0: half duplex, mmap
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <SEAGATE, ST34501N, 0015> disk fixed
sd0: 4339 MB, 6576 cyl, 8 head, 168 sec, 512 bytes/sect x 8887200 sectors
sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers, tagged 
queueing
root on sd0a dumps on sd0b
root file system type: ffs