Re: help needed to get XFree86 4.1.0 working on MIPS

2001-07-20 Thread Stephen Frost

* Guido Guenther ([EMAIL PROTECTED]) wrote:
 The attached three patches fix the server build.

Excellent, I'll kick off a build of the server in a few
minutes with these patches in place and then try and test
X running on my console when I get home tonight.

Stephen

 PGP signature


xf86cfg segfault, missing directories (?)

2001-07-20 Thread Alan Garrison

Hi...  (disclaimer:  I'm still a bit of a newbie in this area, so please 
be gentle :)  What I did today:
1.  Installed Potato on workstation (clean partitions, just essential 
packages).
2.  Set up sources.list to point to unstable branch, did apt-get 
dist-upgrade, handled a few problems, blah...  also set up sources.list 
to point to Branden's X 4.1.0-pre site (I have not installed X yet).
3.  Installed the xfree 4.1.0-0pre1v5 packages.  Everything was downloaded, 
installed, and configured according to dpkg.
4.  Ran xf86cfg -textmode.  When I got to the Card option, I got a segfault.
5.  Ran xf86cfg thru strace, the last few lines of strace says:

stat64(/usr/X11R6/lib/modules/drivers/linux/, 0xbfffda7c) = -1 ENOENT (No 
such file or directory)
stat64(/usr/X11R6/lib/modules/drivers, 0xbfffda7c) = -1 ENOENT (No such file 
or directory)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

What part of the installation process should these directories be created? 
My setup is currently missing the drivers directory.

TIA, Alan.

-- 
alan at alangarrison dot com
Tuesday is 'Human Sacrifice Day' at the Sizzler.  - Joel R.



Re: help needed to get XFree86 4.1.0 working on MIPS

2001-07-20 Thread Guido Guenther
The attached three patches fix the server build.
 -- Guido
--- xc/config/cf/linux.cf.orig  Tue Jul 17 22:00:51 2001
+++ xc/config/cf/xfree86.cf Tue Jul 17 22:00:55 2001
@@ -473,7 +473,7 @@
 
 # ifndef XF86CardDrivers
 #  define XF86CardDrivers  mga glint nv s3virge sis savage \
-   trident chips tdfx fbdev ati \
+   trident chips tdfx fbdev \
DevelDrivers newport \
XF86OSCardDrivers XF86ExtraCardDrivers
 # endif
--- xc/programs/Xserver/hw/xfree86/drivers/newport/newport_driver.c.orig
Thu Jul 19 14:53:15 2001
+++ xc/programs/Xserver/hw/xfree86/drivers/newport/newport_driver.c Thu Jul 
19 14:53:29 2001
@@ -247,7 +247,7 @@
entity = xf86ClaimIsaSlot(drv, 0, dev, 
TRUE);
base = (NEWPORT_BASE_ADDR0 + busID * 
NEWPORT_BASE_OFFSET);
RANGE(range[0], base, base + 
sizeof(NewportRegs),\
-   ResExcMemBlock);
+   ResExcMemBlock,0);
pScrn = xf86ConfigIsaEntity(pScrn, 0, 
entity, NULL, range, \
NULL, NULL, NULL, NULL);
/* Allocate a ScrnInfoRec */
--- xc/programs/Xserver/hw/xfree86/common/compiler.h.orig   Thu Jul 19 
14:55:03 2001
+++ xc/programs/Xserver/hw/xfree86/common/compiler.hThu Jul 19 14:58:43 2001
@@ -871,7 +871,17 @@
 #define stw_u(v,p) (*(unsigned char *)(p)) = (v); \
(*(unsigned char *)(p)+1) = ((v)  8)
 
-#define mem_barrier()   /* NOP */
+#define mem_barrier() \
+__asm__ __volatile__(  \
+   # prevent instructions being moved around\n\t \
+   .set\tnoreorder\n\t   \
+   # 8 nops to fool the R4400 pipeline\n\t   \
+   nop;nop;nop;nop;nop;nop;nop;nop\n\t   \
+   .set\treorder \
+   : /* no output */   \
+   : /* no input */\
+   : memory)
+#define write_mem_barrier() mem_barrier()
 #endif /* __mips__ */
 
 #if defined(__arm32__)


Re: help needed to get XFree86 4.1.0 working on MIPS

2001-07-20 Thread Stephen Frost
* Guido Guenther ([EMAIL PROTECTED]) wrote:
 The attached three patches fix the server build.

Excellent, I'll kick off a build of the server in a few
minutes with these patches in place and then try and test
X running on my console when I get home tonight.

Stephen


pgpewd95qbuVX.pgp
Description: PGP signature


Re: xf86cfg segfault, missing directories (?)

2001-07-20 Thread Alan Garrison
On Fri, Jul 20, 2001 at 12:03:01AM -0400, Alan Garrison wrote:
  
 stat64(/usr/X11R6/lib/modules/drivers/linux/, 0xbfffda7c) = -1 ENOENT (No 
 such file or directory)
 stat64(/usr/X11R6/lib/modules/drivers, 0xbfffda7c) = -1 ENOENT (No such 
 file or directory)
 --- SIGSEGV (Segmentation fault) ---
 +++ killed by SIGSEGV +++
 
 What part of the installation process should these directories be created? 
 My setup is currently missing the drivers directory.

Disregard.  I didn't have xserver-xfree86 installed (although I thought I did).

-- 
alan at alangarrison dot com
Tuesday is 'Human Sacrifice Day' at the Sizzler.  - Joel R.