Subject: port-sparc/8178: cgtwo and cgsix always require sbus
To: None <>
From: None <>
List: netbsd-bugs
Date: 08/09/1999 03:10:47
>Number:         8178
>Category:       port-sparc
>Synopsis:       sparc kernel will not build with cgtwo/cgsix but without sbus
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sparc-maintainer (NetBSD/sparc Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug  9 02:05:01 1999
>Originator:     Julian Coleman
Computing Service, University of Newcastle upon Tyne, UK
>Release:        NetBSD-current 1999 Aug 09 <NetBSD-current source date>
System: NetBSD 1.4 NetBSD 1.4 (AIRE) #1: Tue Jun 22 16:34:55 BST 1999 sparc

A kernel configured with :

  #### Bus types found on SPARC systems.

  #sbus0	at mainbus0			# sun4c
  obio0		at mainbus0			# sun4 and sun4m
  sparcvme0	at mainbus0			# sun4
  #iommu0	at mainbus0			# sun4m
  #sbus0	at iommu0			# sun4m
  #sparcvme0	at iommu0			# sun4m
  vme0		at sparcvme0			# mi VME attachment

and :

  ## Sun "cgtwo" VME color framebuffer
  cgtwo0		at vme0 addr 0x400000 irq ? vect 0xa8

  ## Sun "cgsix" accelerated color framebuffer.
  #cgsix0		at sbus? slot ? offset ?
  #cgsix*		at sbus? slot ? offset ?
  cgsix0		at obio0 addr 0xfb000000 level 4	# sun4/300 P4
  #cgsix0		at obio0 addr 0x0b000000 level 4	# sun4/100 P4

will fail to compile :

  ld -Ttext F0004000 -e start -n -X -o netbsd ${SYSTEM_OBJ} vers.o
  bwtwo.o: In function `bwtwoattach_sbus':
  bwtwo.o(.text+0x2c8): undefined reference to `sbus_establish'
  cgsix_obio.o: In function `cgsixattach':
  cgsix_obio.o(.text+0x98): undefined reference to `cgsix_sbus_ca'
  cgsix_obio.o(.text+0x9c): undefined reference to `cgsix_sbus_ca'
  *** Error code 1


There don't appear to be problems with bwtwo0 and cgeight0.


Try to build a kernel with the above combination of options.