black screen problem

刘小双 liuxs226 at gmail.com
Mon Mar 31 00:14:26 EST 2008


 hi,all

I  compiled linux-2.6.12 for mpc8540 with DENX eldk4.0, my plabtform is
custom mpc8540 board, mb86296 video card, eldk4.0 ppc_85xx file sysytem.
Accelerated  driver is x11_mb86290 offered by DENX .  I compiled XFree86
4.3.0, then I ran startx, the screen was black for a few seconds and it
turned to text mode.

there are some hints in XFree86.0.log:


fbdevHW: MapVidmem 0
 fbdevHW: LinearOffset 0
 fbdevHW: Save 0
 fbdevHW: ModeInit 0
 xfree init mode: 50000   1024 1024 1024 1024   768 768 768 768
 fbdev init mode: 20000   1024 0 0 0   768 0 0 0   16 5:5:5
 fbdevHW: AdjustFrame 0
 (==) MB86290(0): Backing store disabled
 (II) MB86290(0): Using XFree86 Acceleration Architecture (XAA)
  Screen to screen bit blits
  Solid filled rectangles
  8x8 mono pattern filled rectangles
  Indirect CPU to Screen color expansion
  Solid Lines
  Dashed Lines
 (II) MB86290(0): Acceleration enabled
 fbdevHW: ModeInit 0

 Fatal server error:
 AddScreen/ScreenInit failed for driver 0


 When reporting a problem related to a server crash, please send
 the full server output, not just the last messages.
 This can be found in the log file "/var/log/XFree86.0.log".
 Please report problems to xfree86 at xfree86.org.

 fbdevHW: LeaveVT 0
 fbdevHW: Restore 0

then I changed configuration file as follows:

Section "Device"


  Identifier "CoralP"
  Driver  "mb86290"
  Option "Video" "no"  --forbid I2c bus

EndSection

then I run startx, the screen was black forever and there was no
MousePointer, and  here is output of XFree86.0.log:

XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.12.6 ppc [ELF]
Build Date: 17 March 2008
 Before reporting problems, check
http://www.XFree86.Org/<http://www.xfree86.org/>
 to make sure that you have the latest version.
Module Loader present
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/XFree86.0.log", Time: Wed Mar 19 17:24:36 2008
(==) Using config file: "/etc/X11/XF86Config-4"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor "Generic Monitor"
(**) |   |-->Device "CoralP"
(**) |-->Input Device "Generic Keyboard"
(**) Option "XkbRules" "xfree86"
(**) XKB: rules: "xfree86"
(**) Option "XkbModel" "macintosh"
(**) XKB: model: "macintosh"
(**) Option "XkbLayout" "us"
(**) XKB: layout: "us"
(==) Keyboard: CustomKeycode disabled
(**) |-->Input Device "Configured Mouse"
(WW) The directory "/usr/lib/X11/fonts/misc" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/cyrillic" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/100dpi/" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/75dpi/" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/Type1" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/CID" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/Speedo" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/100dpi" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/75dpi" does not exist.
 Entry deleted from font path.
(WW) FontPath is completely invalid.  Using compiled-in default.
(==) FontPath set to
"/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(==) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(--) using VT number 2

(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Module ABI versions:
 XFree86 ANSI C Emulation: 0.2
 XFree86 Video Driver: 0.6
 XFree86 XInput driver : 0.4
 XFree86 Server Extension : 0.2
 XFree86 Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.0
 Module class: XFree86 Font Renderer
 ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.0
 ABI class: XFree86 Video Driver, version 0.6
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:12:0: chip 10cf,201e card 0000,0000 rev 01 class 03,80,00 hdr
00
(II) PCI: 00:13:0: chip 1095,0680 card 1095,0680 rev 02 class 01,01,85 hdr
00
(II) PCI: 00:14:0: chip 10b5,6540 card 0000,0000 rev cb class 06,04,00 hdr
01
(II) PCI: End of PCI scan
(II) PCI-to-PCI bridge:
(II) Bus 1: bridge is at (0:20:0), (0,1,1), BCTRL: 0x0000 (VGA_EN is
cleared)
(II) Bus 1 I/O range:
 [0] -1 0 0x00ffe000 - 0x00ffefff (0x1000) IX[B]
(II) Bus 1 non-prefetchable memory range:
 [0] -1 0 0x9be00000 - 0x9befffff (0x100000) MX[B]
(II) Bus 1 prefetchable memory range:
 [0] -1 0 0x9bd00000 - 0x9bdfffff (0x100000) MX[B]
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (-1,0,0), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
 [0] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
 [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
 [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B]
(--) PCI:*(0:18:0) unknown vendor (0x10cf) unknown chipset (0x201e) rev 1,
Mem @ 0x9c000000/26
(II) Addressable bus resource ranges are
 [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B]
 [1] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
 [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
 [1] -1 0 0x00000000 - 0x00000000 (0x1) MX[B]
 [2] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [3] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
(II) Active PCI resource ranges:
 [0] -1 0 0x9bffff00 - 0x9bffffff (0x100) MX[B]
 [1] -1 0 0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
 [2] -1 0 0x00ffffd0 - 0x00ffffdf (0x10) IX[B]
 [3] -1 0 0x00ffffe4 - 0x00ffffe7 (0x4) IX[B]
 [4] -1 0 0x00ffffe8 - 0x00ffffef (0x8) IX[B]
 [5] -1 0 0x00fffff4 - 0x00fffff7 (0x4) IX[B]
 [6] -1 0 0x00fffff8 - 0x00ffffff (0x8) IX[B]
(II) Active PCI resource ranges after removing overlaps:
 [0] -1 0 0x9bffff00 - 0x9bffffff (0x100) MX[B]
 [1] -1 0 0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
 [2] -1 0 0x00ffffd0 - 0x00ffffdf (0x10) IX[B]
 [3] -1 0 0x00ffffe4 - 0x00ffffe7 (0x4) IX[B]
 [4] -1 0 0x00ffffe8 - 0x00ffffef (0x8) IX[B]
 [5] -1 0 0x00fffff4 - 0x00fffff7 (0x4) IX[B]
 [6] -1 0 0x00fffff8 - 0x00ffffff (0x8) IX[B]
(II) OS-reported resource ranges after removing overlaps with PCI:
 [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
 [1] -1 0 0x00000000 - 0x00000000 (0x1) MX[B]
 [2] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [3] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
(II) All system resource ranges:
 [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
 [1] -1 0 0x00000000 - 0x00000000 (0x1) MX[B]
 [2] -1 0 0x9bffff00 - 0x9bffffff (0x100) MX[B]
 [3] -1 0 0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
 [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
 [6] -1 0 0x00ffffd0 - 0x00ffffdf (0x10) IX[B]
 [7] -1 0 0x00ffffe4 - 0x00ffffe7 (0x4) IX[B]
 [8] -1 0 0x00ffffe8 - 0x00ffffef (0x8) IX[B]
 [9] -1 0 0x00fffff4 - 0x00fffff7 (0x4) IX[B]
 [10] -1 0 0x00fffff8 - 0x00ffffff (0x8) IX[B]
(II) LoadModule: "bitmap"
(II) Reloading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Loading font Bitmap
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.0
 Module class: XFree86 Server Extension
 ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.0
 ABI class: XFree86 Video Driver, version 0.6
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.0
 Module class: XFree86 Server Extension
 ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension FontCache
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "freetype"
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
(II) Module freetype: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 2.0.2
 Module class: XFree86 Font Renderer
 ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font FreeType
(II) LoadModule: "speedo"
(II) Loading /usr/X11R6/lib/modules/fonts/libspeedo.a
(II) Module speedo: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.1
 Module class: XFree86 Font Renderer
 ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font Speedo
(II) LoadModule: "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.2
 Module class: XFree86 Font Renderer
 ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font Type1
(II) LoadModule: "vbe"
(II) Loading /usr/X11R6/lib/modules/libvbe.a
(II) Module vbe: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.1.0
 ABI class: XFree86 Video Driver, version 0.6
(II) LoadModule: "mb86290"
(II) Loading /usr/X11R6/lib/modules/drivers/mb86290_drv.o
(II) Module mb86290: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 0.1.0
 Module class: XFree86 Video Driver
 ABI class: XFree86 Video Driver, version 0.6
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.0
 Module class: XFree86 XInput Driver
 ABI class: XFree86 XInput driver, version 0.4
(II) MB86290: Fujitsu chip: mb86290
(II) Primary Device is: PCI 00:12:0
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/X11R6/lib/modules/linux/libfbdevhw.a
(II) Module fbdevhw: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 0.0.2
 ABI class: XFree86 Video Driver, version 0.6
(--) Assigning device section with no busID to primary device
(--) Chipset mb86290 found
(II) resource ranges after xf86ClaimFixedResources() call:
 [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
 [1] -1 0 0x00000000 - 0x00000000 (0x1) MX[B]
 [2] -1 0 0x9bffff00 - 0x9bffffff (0x100) MX[B]
 [3] -1 0 0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
 [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
 [6] -1 0 0x00ffffd0 - 0x00ffffdf (0x10) IX[B]
 [7] -1 0 0x00ffffe4 - 0x00ffffe7 (0x4) IX[B]
 [8] -1 0 0x00ffffe8 - 0x00ffffef (0x8) IX[B]
 [9] -1 0 0x00fffff4 - 0x00fffff7 (0x4) IX[B]
 [10] -1 0 0x00fffff8 - 0x00ffffff (0x8) IX[B]
(II) resource ranges after probing:
 [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
 [1] -1 0 0x00000000 - 0x00000000 (0x1) MX[B]
 [2] -1 0 0x9bffff00 - 0x9bffffff (0x100) MX[B]
 [3] -1 0 0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
 [4] 0 0 0x000a0000 - 0x000affff (0x10000) MS[B]
 [5] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[B]
 [6] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[B]
 [7] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [8] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
 [9] -1 0 0x00ffffd0 - 0x00ffffdf (0x10) IX[B]
 [10] -1 0 0x00ffffe4 - 0x00ffffe7 (0x4) IX[B]
 [11] -1 0 0x00ffffe8 - 0x00ffffef (0x8) IX[B]
 [12] -1 0 0x00fffff4 - 0x00fffff7 (0x4) IX[B]
 [13] -1 0 0x00fffff8 - 0x00ffffff (0x8) IX[B]
 [14] 0 0 0x000003b0 - 0x000003bb (0xc) IS[B]
 [15] 0 0 0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
fbdevHW: Init 0
(==) MB86290(0): Depth 15, (==) framebuffer bpp 16
(==) MB86290(0): RGB weight 555
(==) MB86290(0): Default visual is TrueColor
(==) MB86290(0): Using gamma correction (1.0, 1.0, 1.0)
(**) MB86290(0): Option "accel" "no"
(**) MB86290(0): Option "video" "no"
fbdevHW: UseBuildinMode 0
(--) MB86290(0): Virtual size is 1024x768 (pitch 1024)
(**) MB86290(0):  Built-in mode "current": 50.0 MHz, 48.8 kHz, 63.6 Hz
(II) MB86290(0): Modeline "current"   50.00  1024 1024 1024 1024  768 768
768 768 -hsync -vsync -csync
(==) MB86290(0): DPI set to (75, 75)
(II) Loading sub module "mb86290_fb"
(II) LoadModule: "mb86290_fb"
(II) Loading /usr/X11R6/lib/modules/libmb86290_fb.a
(II) Module mb86290_fb: vendor="The XFree86 Project"
 compiled for 4.3.0, module version = 1.0.0
 ABI class: XFree86 ANSI C Emulation, version 0.2
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
 [0] 0 0 0x9c000000 - 0x9fffffff (0x4000000) MX[B]
 [1] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
 [2] -1 0 0x00000000 - 0x00000000 (0x1) MX[B]
 [3] -1 0 0x9bffff00 - 0x9bffffff (0x100) MX[B]
 [4] -1 0 0x9c000000 - 0x9fffffff (0x4000000) MX[B](B)
 [5] 0 0 0x000a0000 - 0x000affff (0x10000) MS[B]
 [6] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[B]
 [7] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[B]
 [8] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [9] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
 [10] -1 0 0x00ffffd0 - 0x00ffffdf (0x10) IX[B]
 [11] -1 0 0x00ffffe4 - 0x00ffffe7 (0x4) IX[B]
 [12] -1 0 0x00ffffe8 - 0x00ffffef (0x8) IX[B]
 [13] -1 0 0x00fffff4 - 0x00fffff7 (0x4) IX[B]
 [14] -1 0 0x00fffff8 - 0x00ffffff (0x8) IX[B]
 [15] 0 0 0x000003b0 - 0x000003bb (0xc) IS[B]
 [16] 0 0 0x000003c0 - 0x000003df (0x20) IS[B]
fbdevHW: MapVidmem 0
fbdevHW: LinearOffset 0
fbdevHW: Save 0
fbdevHW: ModeInit 0
xfree init mode: 50000   1024 1024 1024 1024   768 768 768 768
fbdev init mode: 20000   1024 0 0 0   768 0 0 0   16 5:5:5
fbdevHW: AdjustFrame 0
(==) MB86290(0): Backing store disabled
(II) MB86290(0): Acceleration disabled
fbdevHW: ModeInit 0

 Thanks,
liuxs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080330/2f88cde8/attachment-0001.htm>


More information about the Linuxppc-embedded mailing list