Subject: X vs. ECS
To: None <port-amiga@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: port-amiga
Date: 01/11/2003 04:28:43
OK,  next step in my journey to upgrade my Amiga 2000 to NetBSD 1.6, I'm
at the place where I wonder how to get X running on the Custom Chip
console, which is recognized as:

	grfcc0 at mainbus0
	grf0 at grfcc0: width 640 height 400 colors 4
	ite0 at grf0: rows 50 cols 80 repeat at (30/100)s next at (10/100)s has keyboard
	...
	4 views configured

Now running "X":

	# X

	Fatal server error:
	no screens found
	#

I doubt that's true, as a peek into the ktrace log (attached below) says.
Anyone got a clue what I'm doing wrong? Something in the ioctl calls seems
fishy, but what is it?


 - Hubert


P.S.: Here's the ktrace log from starting "X" (no args):

   ...
   222 Xamiga   CALL  access(0x17eb91,0x6)
   222 Xamiga   NAMI  "/dev/grf3"
   222 Xamiga   RET   access 0
   222 Xamiga   CALL  open(0x17eb91,0x22,0)
   222 Xamiga   NAMI  "/dev/grf3"
   222 Xamiga   RET   open -1 errno 6 Device not configured
   222 Xamiga   CALL  access(0x17eb4b,0x6)
   222 Xamiga   NAMI  "/dev/grf2"
   222 Xamiga   RET   access 0
   222 Xamiga   CALL  open(0x17eb4b,0x22,0)
   222 Xamiga   NAMI  "/dev/grf2"
   222 Xamiga   RET   open -1 errno 6 Device not configured
   222 Xamiga   CALL  access(0x17eb9b,0x6)
   222 Xamiga   NAMI  "/dev/grf1"
   222 Xamiga   RET   access 0
   222 Xamiga   CALL  open(0x17eb9b,0x22,0)
   222 Xamiga   NAMI  "/dev/grf1"
   222 Xamiga   RET   open -1 errno 6 Device not configured
   222 Xamiga   CALL  open(0xdfff804,0x2,0xdfff804)
   222 Xamiga   NAMI  "/dev/view00"
   222 Xamiga   RET   open -1 errno 16 Device busy
   222 Xamiga   CALL  open(0xdfff804,0x2,0xdfff804)
   222 Xamiga   NAMI  "/dev/view01"
   222 Xamiga   RET   open 6
   222 Xamiga   CALL  ioctl(0x6,_IOR('V',0x3,0x14),0xdfff86c)
   222 Xamiga   RET   ioctl 0
   222 Xamiga   CALL  ioctl(0x6,_IOW('V',0x2,0x14),0xdfff86c)
   222 Xamiga   RET   ioctl 0
   222 Xamiga   CALL  ioctl(0x6,_IOR('V',0x3,0x14),0xdfff86c)
   222 Xamiga   RET   ioctl 0
   222 Xamiga   CALL  ioctl(0x6,_IOR('V',0x4,0x18),0xdfff854)
   222 Xamiga   RET   ioctl 0
   222 Xamiga   CALL  mmap(0,0x24f40,0x3,0,0x6,0,0,0)
   222 Xamiga   RET   mmap 136724480/0x8264000
   222 Xamiga   CALL  __sysctl(0xdfff80c,0x2,0x825f974,0xdfff808,0,0)
   222 Xamiga   RET   __sysctl 0
   222 Xamiga   CALL  ioctl(0x6,_IOWR('V',0x6,0xc),0xdfff844)
   222 Xamiga   RET   ioctl 0
   222 Xamiga   CALL  ioctl(0x6,_IO('V',0x1),0)
   222 Xamiga   RET   ioctl 0
   222 Xamiga   CALL  __sigaction14(0x1c,0xdfff878,0xdfff860)
   222 Xamiga   RET   __sigaction14 0
   222 Xamiga   CALL  write(0x2,0xdfff05c,0x15)
   222 Xamiga   GIO   fd 2 wrote 21 bytes
       "
	Fatal server error:
       "
   222 Xamiga   RET   write 21/0x15
   222 Xamiga   CALL  write(0x2,0xdfff064,0x10)
   222 Xamiga   GIO   fd 2 wrote 16 bytes
       "no screens found"
   222 Xamiga   RET   write 16/0x10
   222 Xamiga   CALL  write(0x2,0xdfff050,0x1)
   222 Xamiga   GIO   fd 2 wrote 1 bytes
       "
       "
   222 Xamiga   RET   write 1
   222 Xamiga   CALL  fcntl(0x2,0x3,0)
   222 Xamiga   RET   fcntl 2
   222 Xamiga   CALL  fcntl(0x2,0x4,0x2)
   222 Xamiga   RET   fcntl 0
   222 Xamiga   CALL  exit(0x1)

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/