[Openpvrsgx-devgroup] old am3517 version
Jeroen Hofstee
jeroen at myspectrum.nl
Tue Dec 31 16:30:47 CET 2019
Hi,
On 12/31/19 10:22 AM, Jeroen Hofstee wrote:
>
>
> When telling X to use a virtual terminal, as in pass vt1
> or similar, this goes away. Don't know at the moment why,
> but I doubt it is related to the sgx.
>
Since X couldn't find a display I had a look at libdrm.
This old version doesn't return a file descriptor if a busid
is already assigned to it. No idea if that is a sane thing to do,
but at least it makes the X server start. It complains a bit,
but so be it.. At least it works now.
Regards,
Jeroen
/*
* Open the first minor number that matches the driver name and isn't
* already in use. If it's in use it will have a busid assigned
already.
*/
for (i = 0; i < DRM_MAX_MINOR; i++) {
if ((fd = drmOpenMinor(i, 1, DRM_NODE_RENDER)) >= 0) {
if ((version = drmGetVersion(fd))) {
if (!strcmp(version->name, name)) {
drmFreeVersion(version);
id = drmGetBusid(fd);
drmMsg("drmGetBusid returned '%s'\n", id ? id :
"NULL");
if (!id || !*id) {
if (id)
drmFreeBusid(id);
drmMsg("drmOpenByName exit");
return fd;
} else {
drmMsg("drmOpenByName exit: with busid '%s'\n",
id ? id : "NULL");
drmFreeBusid(id);
// JEROEN: Also return the fd when it has a bus
id.. don't ask me why..
return fd;
}
} else {
drmFreeVersion(version);
}
}
close(fd);
}
}
X.Org X Server 1.12.0
Release Date: 2012-03-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.35-30-generic-pae i686
Current Operating System: Linux ccgx 5.4.0 #1 Tue Dec 31 11:33:36 UTC
2019 armv7l
Kernel command line: root=ubi0:rootfs1 rootfstype=ubifs ubi.mtd=12
vram=10M omapfb.vram=0:4M,1:3M,2:3M console=ttyO0,115200
mtdparts=omap2-nand.0:128k(spl1),128k(spl2),128k(spl3),128k(spl4),1m(u-boot),256k(env1),256k(env2),1m(u-boot2),256k(bootparms),768k(splash),6m(kernel1),6m(kernel2),496m(ubisystem)
5 console=ttyO0,115200
Build Date: 04 December 2012 07:46:23PM
Current version of pixman: 0.24.4
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: "/usr/local/XSGX/var/log/Xorg.0.log", Time: Tue Dec 31
15:08:41 2019
(++) Using config file: "/media/sda1/usr/local/XSGX/etc/xorg.conf"
(==) No Layout section. Using the first Screen section.
(==) No screen section available. Using defaults.
(**) |-->Screen "Default Screen Section" (0)
(**) | |-->Monitor "<default monitor>"
(==) No device specified for screen "Default Screen Section".
Using the first device section listed.
(**) | |-->Device "Video Device"
(==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
(==) Not automatically adding devices
(==) Not automatically enabling devices
(WW) The directory "/usr/local/XSGX/share/fonts/X11/TTF/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/local/XSGX/share/fonts/X11/OTF/" does not exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/local/XSGX/share/fonts/X11/misc/,
/usr/local/XSGX/share/fonts/X11/Type1/,
/usr/local/XSGX/share/fonts/X11/100dpi/,
/usr/local/XSGX/share/fonts/X11/75dpi/
(==) ModulePath set to "/usr/local/XSGX/lib/xorg/modules"
(==) |-->Input Device "<default pointer>"
(==) |-->Input Device "<default keyboard>"
(==) No Layout section. Using the default mouse configuration.
(==) No Layout section. Using the default keyboard configuration.
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(==) AIGLX enabled
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.13.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.2.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/drivers/pvr_drv.so
(II) Module PVR: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 109.218.8537
(II) Loading /usr/local/XSGX/lib/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.7.1
(II) Loading /usr/local/XSGX/lib/xorg/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.6.1
(II) pvr: Driver for PowerVR chipsets: PowerVR SGX
(++) using VT number 3
(WW) Falling back to old probe method for pvr
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
(II) pvr(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
(==) pvr(0): Depth 24, (==) framebuffer bpp 32
(==) pvr(0): RGB weight 888
(==) pvr(0): Default visual is TrueColor
(==) pvr(0): Using gamma correction (1.0, 1.0, 1.0)
(--) pvr(0): Virtual size is 480x272 (pitch 480)
(**) pvr(0): Built-in mode "480x272"
(==) pvr(0): DPI set to (96, 96)
(II) Loading /usr/local/XSGX/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) pvr(0): [pvr] Software copy threshold : 0B
(II) pvr(0): [pvr] Software solid threshold : 0B
(II) pvr(0): [pvr] Software composite threshold : 1024B
(II) pvr(0): [pvr] Pixmap pool size: 1B
(II) Loading /usr/local/XSGX/lib/xorg/modules/libexa.so
(II) Module exa: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 2.5.0
(--) Depth 24 pixmap format is 32 bpp
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
(II) pvr(0): [DRI2] Setup complete
(II) pvr(0): [DRI2] DRI driver: pvr
(II) EXA(0): Driver allocated offscreen pixmaps
(II) EXA(0): Driver registered support for the following operations:
(II) Solid
(II) Copy
(II) Composite (RENDER acceleration)
(II) UploadToScreen
(==) pvr(0): Backing store disabled
(==) pvr(0): Silken mouse enabled
(==) pvr(0): DPMS enabled
(==) pvr(0): Direct rendering enabled
(EE) pvr(0): PVRDisplayCommandNoArgs: drmCommandWrite failed (-22)
(EE) pvr(0): PVRDisplayScreenInitFinalize: PVRDisplayCommandNoArgs
failed (-22)
(==) RandR enabled
(EE) AIGLX error: dlopen of /usr/local/XSGX/lib/dri/pvr_dri.so failed
(/usr/local/XSGX/lib/dri/pvr_dri.so: cannot open shared object file: No
such file or directory)
(EE) AIGLX: reverting to software rendering
(II) AIGLX: Screen 0 is not DRI capable
(II) AIGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(II) Using input driver 'mouse' for '<default pointer>'
(**) <default pointer>: always reports core events
(WW) <default pointer>: No Device specified, looking for one...
(EE) <default pointer>: Cannot find which device to use.
(==) <default pointer>: Protocol: "Auto"
(**) <default pointer>: always reports core events
(EE) xf86OpenSerial: No Device specified.
(EE) <default pointer>: cannot open input device
(EE) PreInit returned 2 for "<default pointer>"
(II) Using input driver 'kbd' for '<default keyboard>'
(**) <default keyboard>: always reports core events
(**) <default keyboard>: always reports core events
(II) XINPUT: Adding extended input device "<default keyboard>" (type:
KEYBOARD, id 6)
(EE) pvr(0): [dri] PVRDRI2CreateFlipChain: Can't create new flip chain
(0 MAX 0)
(EE) pvr(0): [dri] PVRDRI2AssignAndExportBuffers: Couldn't create flip chain
(EE) pvr(0): PVRDisplayCommandNoArgs: drmCommandWrite failed (-22)
(EE) pvr(0): PVRDisplayPowerManagementSet: PVRDisplayCommandNoArgs
failed (-22)
(EE) pvr(0): PVRDisplayCommandNoArgs: drmCommandWrite failed (-22)
(EE) pvr(0): PVRDisplayPowerManagementSet: PVRDisplayCommandNoArgs
failed (-22)
More information about the openpvrsgx-devgroup
mailing list