Re: X doesn't start in minilinux

2010-03-05 Thread GreenFlash
Hey hey,

Jay Cotton schrieb:
 Put some printfs in the code and print out whats being returned from
 probe code and inside the probe code.

 jc 

I tried it with the printf(something) in the code of the module. But I
wasn't able to see anything in the error log or elsewhere. So how can I
get my printed things? Or how can I print something to the console?
Anyway, I was able to figure out, that the function:

static Bool VESAPciProbe(DriverPtr drv, int entity_num, struct
pci_device *dev, intptr_t match_data)

wasn't called. But I compiled the module with libpciaccess. So I don't
know why it isn't called?

A friend telled me, that the reason is perhaps my /dev because I create
every dev by myself. So here's a listing of my dev in the minilinux,
perhaps you are able to find an error there:

crw-r--r-- 1 root root  5, 1 2010-03-04 22:57 console
crw-r--r-- 1 root root 14, 3 2010-03-04 22:57 dsp
prw-r--r-- 1 root root 0 2010-03-04 22:57 initctl
crw-r--r-- 1 root root  1, 1 2010-03-04 22:57 mem
crw-r--r-- 1 root root 14, 0 2010-03-04 22:57 mixer
crw-r--r-- 1 root root  1, 3 2010-03-04 22:57 null
crw-r--r-- 1 root root 10, 1 2010-03-04 22:57 psaux
crw-r--r-- 1 root root  5, 2 2010-03-04 22:57 ptmx
drwxr-xr-x 2 root root  4096 2010-03-04 22:57 pts
crw-r--r-- 1 root root  4, 0 2010-03-04 22:57 tty0
crw-r--r-- 1 root root  4, 2 2010-03-04 22:57 tty2
crw-r--r-- 1 root root  1, 9 2010-03-04 22:57 urandom

Hope you can help me...
Sam
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X doesn't start in minilinux

2010-03-04 Thread GreenFlash
Isn't there somebody who wants to help me??

GreenFlash schrieb:
 Hi guys,

 I'm building a minilinux for our library at my
 university. It has to
 have also a browser with flash, so I need a Xserver.
 The whole system is build of an ubuntu distro. I
 only copied the files I
 need from my distro to the sourcefolder of the
 miniimage, then make it
 to an image and boot the virtual maschine by pxe.
 So it is possible,
 that I missed a file or forgot a option in the
 kernel or something like
 that for the xserver.
 The server shall use vesa for the first time, but
 I'm not able to get it
 to work. Any ideas why it isn't able to find a
 screen? The latest
 XFree86 server did work on this maschine.

 Here's the log from /var/log/Xorg.0.log:



 _XSERVTransSocketOpenCOTSServer: Unable to open
 socket for inet6
 _XSERVTransOpen: transport open failed for
 inet6/(none):0
 _XSERVTransMakeAllCOTSServerListeners: failed to
 open listener for inet6

 X.Org X Server 1.6.4
 Release Date: 2009-9-27
 X Protocol Version 11, Revision 0
 Build Operating System: Linux 2.6.24-23-server
 i686 Ubuntu
 Current Operating System: Linux (none) 2.6.31.1 #9
 Wed Mar 3 21:15:10
 CET 2010 i686
 Kernel command line:
 BOOT_IMAGE=bibotestkernel.image root=/dev/ram
 initrd=bibotestinitrd.gz
 Build Date: 14 November 2009  05:48:26PM
 xorg-server 2:1.6.4-2ubuntu4.1 (buildd@)
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==)
 default setting,
 (++) from command line, (!!) notice, (II)
 informational,
 (WW) warning, (EE) error, (NI) not
 implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Wed
 Mar  3 22:32:55 2010
 (==) Using config file: /etc/X11/xorg.conf
 (==) ServerLayout Default Layout
 (**) |--Screen Default Screen (0)
 (**) |   |--Monitor TFT
 (**) |   |--Device VIA
 (**) |--Input Device PS2 Mouse
 (**) |--Input Device PS2 Keyboard 
 (**) Option BlankTime 0
 (**) Option StandbyTime 0
 (**) Option SuspendTime 0
 (**) Option OffTime 0
 (==) Automatically adding devices
 (==) Automatically enabling devices
 (WW) The directory /usr/lib/X11/fonts/misc does
 not exist.
 Entry deleted from font path.
 (WW) The directory /usr/share/fonts/X11/misc
 does not exist.
 Entry deleted from font path.
 (WW) The directory /usr/share/fonts/X11/cyrillic
 does not exist.
 Entry deleted from font path.
 (WW) The directory /usr/share/fonts/X11/100dpi/
 does not exist.
 Entry deleted from font path.
 (WW) The directory /usr/share/fonts/X11/75dpi/
 does not exist.
 Entry deleted from font path.
 (WW) The directory /usr/share/fonts/X11/Type1
 does not exist.
 Entry deleted from font path.
 (WW) The directory /usr/share/fonts/X11/100dpi
 does not exist.
 Entry deleted from font path.
 (WW) The directory /usr/share/fonts/X11/75dpi
 does not exist.
 Entry deleted from font path.
 (WW) The directory
 /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
 does not exist.
 Entry deleted from font path.
 (**) FontPath set to:
 built-ins
 (==) ModulePath set to /usr/lib/xorg/modules
 (WW) AllowEmptyInput is on, devices using drivers
 'kbd', 'mouse' or
 'vmmouse' will be disabled.
 (WW) Disabling PS2 Mouse
 (II) Loader magic: 0x3bc0
 (II) Module ABI versions:
 X.Org ANSI C Emulation: 0.4
 X.Org Video Driver: 5.0
 X.Org XInput driver : 4.0
 X.Org Server Extension : 2.0
 (II) Loader running on linux
 (--) using VT number 2

 (WW) Open ACPI failed (/var/run/acpid.socket) (No
 such file or directory)
 (II) No APM support in BIOS or kernel
 (II) System resource ranges:
 (II) extmod will be loaded by default.
 (II) dbe will be loaded. This was enabled by
 default and also
 specified in the config file.
 (II) glx will be loaded. This was enabled by
 default and also
 specified in the config file.
 (II) record will be loaded by default.
 (II) dri will be loaded by default.
 (II) dri2 will be loaded by default.
 (II) LoadModule: dbe
 (II) Loading
 /usr/lib/xorg/modules/extensions//libdbe.so
 (II) Module dbe: vendor=X.Org Foundation
 compiled for 1.6.4, module version = 1.0.0
 Module class: X.Org Server Extension
 ABI class: X.Org Server Extension, version 2.0
 (II) Loading extension DOUBLE-BUFFER
 (II) LoadModule: glx
 (II) Loading
 /usr/lib/xorg/modules/extensions//libglx.so
 (II) Module glx: vendor=X.Org Foundation
 compiled for 1.6.4, module version = 1.0.0
 ABI class: X.Org Server Extension, version 2.0
 (==) AIGLX enabled
 (II) Loading extension GLX
 (II) LoadModule: extmod
 (II) Loading
 /usr/lib/xorg/modules/extensions//libextmod.so
 (II) Module extmod: vendor=X.Org Foundation
 compiled for 1.6.4, module version = 1.0.0
 Module class: X.Org Server Extension
 ABI class: X.Org Server Extension, version 2.0
 (II) Loading extension MIT-SCREEN-SAVER
 (II) Loading extension XFree86-VidModeExtension
 (II) Loading extension XFree86-DGA
 (II) Loading extension DPMS
 

Re: X doesn't start in minilinux

2010-03-04 Thread Jay Cotton

On 03/04/10 10:25, GreenFlash wrote:

alling back to old probe method for vesa
   
Well, according to the log the vesa driver did not find a graphics 
device. So, PCI bus code
could be missing, all the connecting logic for that must be present.  
There may also be a
driver like xsvc or its equivalent that is needed.  Not sure about linux 
in that way.


I notice that all the fonts are missing, that may be o.k. on newest 
versions of X, your

version is rather stale.

You may want to start the server with an option to ignore networking.  
see if that clears the

warnings.


The root cause seems to be that the server can't find a video chip.  The 
probe code is a good place

to start looking.

jc

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X doesn't start in minilinux

2010-03-04 Thread GreenFlash
thx, that somebody helps me. Here's the device-Section from my xorg.conf:

Section Device
Identifier  VIA
Driver  vesa
BusID   PCI:0:2:0
EndSection

And the corresponding line from lspci:

00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH
VirtualBox Graphics Adapter

I also just realised, that there are some version differences in the
xserver and the vesa module. The module is compiled for version 1.6.3,
but the server has version 1.6.4.
Might this cause the problem?
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X doesn't start in minilinux

2010-03-04 Thread Jay Cotton

On 03/04/10 11:28, GreenFlash wrote:

thx, that somebody helps me. Here's the device-Section from my xorg.conf:

Section Device
 Identifier  VIA
 Driver  vesa
 BusID   PCI:0:2:0
EndSection

And the corresponding line from lspci:

00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH
VirtualBox Graphics Adapter

I also just realised, that there are some version differences in the
xserver and the vesa module. The module is compiled for version 1.6.3,
but the server has version 1.6.4.
Might this cause the problem?
   


YES.   ABI is important to Xorg now.

jc

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
   


___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X doesn't start in minilinux

2010-03-04 Thread GreenFlash

 I also just realised, that there are some version differences in the
 xserver and the vesa module. The module is compiled for version 1.6.3,
 but the server has version 1.6.4.
 Might this cause the problem?


 YES.   ABI is important to Xorg now.
Compiled the vesa driver again for the 1.6.4 server, but it still tells
me, that it is compiled for server 1.6.3. So I would like to say, that
this isn't the problem, why the Xserver can't find the graphic card.
What about HAL? Is this important for the graphic card? What do I need
for hal to work?
Are there any other things I can do, to detect the error, except
debugging the vesa module? Because I don't have a debugger in the minilinux.

Sam
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X doesn't start in minilinux

2010-03-04 Thread Alan Coopersmith


GreenFlash wrote:
 What about HAL? Is this important for the graphic card? 

No.  HAL is used by Xorg only for input devices (mouse, keyboard, tablet, etc.),
not output devices (video cards  monitors).

-- 
-Alan Coopersmith-   alan.coopersm...@sun.com
 Oracle Solaris Platform Engineering: X Window System

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X doesn't start in minilinux

2010-03-04 Thread Jay Cotton

On 03/04/10 15:20, GreenFlash wrote:
   

I also just realised, that there are some version differences in the
xserver and the vesa module. The module is compiled for version 1.6.3,
but the server has version 1.6.4.
Might this cause the problem?

   

YES.   ABI is important to Xorg now.
 

Compiled the vesa driver again for the 1.6.4 server, but it still tells
me, that it is compiled for server 1.6.3. So I would like to say, that
this isn't the problem, why the Xserver can't find the graphic card.
What about HAL? Is this important for the graphic card? What do I need
for hal to work?
Are there any other things I can do, to detect the error, except
debugging the vesa module? Because I don't have a debugger in the minilinux.

Sam
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
   

in the vesa.c file:

#ifdef XSERVER_LIBPCIACCESS
^  this implies there may be a lib you need.  check 
for that

static Bool
VESAPciProbe(DriverPtr drv, int entity_num, struct pci_device *dev,
 intptr_t match_data)
{
ScrnInfoPtr pScrn;

pScrn = xf86ConfigPciEntity(NULL, 0, entity_num, NULL,
NULL, NULL, NULL, NULL, NULL);
if (pScrn != NULL) {
VESAPtr pVesa = VESAGetRec(pScrn);

VESAInitScrn(pScrn);
pVesa-pciInfo = dev;
}

return (pScrn != NULL);
}
#endif

static Bool
VESAProbe(DriverPtr drv, int flags)

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: X doesn't start in minilinux

2010-03-04 Thread Dan Nicholson
On Thu, Mar 4, 2010 at 12:52 PM, Jay Cotton jay.cot...@sun.com wrote:
 On 03/04/10 11:28, GreenFlash wrote:

 thx, that somebody helps me. Here's the device-Section from my xorg.conf:

 Section Device
         Identifier      VIA
         Driver          vesa
         BusID           PCI:0:2:0
 EndSection

 And the corresponding line from lspci:

 00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH
 VirtualBox Graphics Adapter

 I also just realised, that there are some version differences in the
 xserver and the vesa module. The module is compiled for version 1.6.3,
 but the server has version 1.6.4.
 Might this cause the problem?


 YES.   ABI is important to Xorg now.

Xorg does usually maintain ABI through a minor release series. So, a
1.6.x driver should work with a 1.6.y server without recompiling.

--
Dan
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

X doesn't start in minilinux

2010-03-03 Thread GreenFlash
Hi guys,

I'm building a minilinux for our library at my
university. It has to
have also a browser with flash, so I need a Xserver.
The whole system is build of an ubuntu distro. I
only copied the files I
need from my distro to the sourcefolder of the
miniimage, then make it
to an image and boot the virtual maschine by pxe.
So it is possible,
that I missed a file or forgot a option in the
kernel or something like
that for the xserver.
The server shall use vesa for the first time, but
I'm not able to get it
to work. Any ideas why it isn't able to find a
screen? The latest
XFree86 server did work on this maschine.

Here's the log from /var/log/Xorg.0.log:



_XSERVTransSocketOpenCOTSServer: Unable to open
socket for inet6
_XSERVTransOpen: transport open failed for
inet6/(none):0
_XSERVTransMakeAllCOTSServerListeners: failed to
open listener for inet6

X.Org X Server 1.6.4
Release Date: 2009-9-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-23-server
i686 Ubuntu
Current Operating System: Linux (none) 2.6.31.1 #9
Wed Mar 3 21:15:10
CET 2010 i686
Kernel command line:
BOOT_IMAGE=bibotestkernel.image root=/dev/ram
initrd=bibotestinitrd.gz
Build Date: 14 November 2009  05:48:26PM
xorg-server 2:1.6.4-2ubuntu4.1 (buildd@)
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==)
default setting,
(++) from command line, (!!) notice, (II)
informational,
(WW) warning, (EE) error, (NI) not
implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Wed
Mar  3 22:32:55 2010
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Default Layout
(**) |--Screen Default Screen (0)
(**) |   |--Monitor TFT
(**) |   |--Device VIA
(**) |--Input Device PS2 Mouse
(**) |--Input Device PS2 Keyboard 
(**) Option BlankTime 0
(**) Option StandbyTime 0
(**) Option SuspendTime 0
(**) Option OffTime 0
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory /usr/lib/X11/fonts/misc does
not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/X11/misc
does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/X11/cyrillic
does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/X11/100dpi/
does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/X11/75dpi/
does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/X11/Type1
does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/X11/100dpi
does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/X11/75dpi
does not exist.
Entry deleted from font path.
(WW) The directory
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
does not exist.
Entry deleted from font path.
(**) FontPath set to:
built-ins
(==) ModulePath set to /usr/lib/xorg/modules
(WW) AllowEmptyInput is on, devices using drivers
'kbd', 'mouse' or
'vmmouse' will be disabled.
(WW) Disabling PS2 Mouse
(II) Loader magic: 0x3bc0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 5.0
X.Org XInput driver : 4.0
X.Org Server Extension : 2.0
(II) Loader running on linux
(--) using VT number 2

(WW) Open ACPI failed (/var/run/acpid.socket) (No
such file or directory)
(II) No APM support in BIOS or kernel
(II) System resource ranges:
(II) extmod will be loaded by default.
(II) dbe will be loaded. This was enabled by
default and also
specified in the config file.
(II) glx will be loaded. This was enabled by
default and also
specified in the config file.
(II) record will be loaded by default.
(II) dri will be loaded by default.
(II) dri2 will be loaded by default.
(II) LoadModule: dbe
(II) Loading
/usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor=X.Org Foundation
compiled for 1.6.4, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: glx
(II) Loading
/usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor=X.Org Foundation
compiled for 1.6.4, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: extmod
(II) Loading
/usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor=X.Org Foundation
compiled for 1.6.4, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: record
(II) Loading
/usr/lib/xorg/modules/extensions//librecord.so
(II) Module