Hi guys!
I’m trying run a simple SDL example "http://friedspace.com/SDLTest.c"
and SDL_init function hangs never return and obviously the image never
appear.
The error is:
fb0: unsupported mode requested
I try different resolutions, bpp and depth, but neither worked.
The penguin of bootup linux logo appear in the upper left corner when
boot, so supposedly the framebuffer should be functional.
Also try this:
cat /dev/fb0 > fbimage
cat fbimage >> /dev/fb0
And it works!
I’m using an old PC with S3 Virge/DX (4mb) video card, linux kernel
2.6.24 with uClib, SDL-1.2.13, SDL_mixer-1.2.8, SDL_image-1.2.6,
SDL_ttf-2.0.9 and SDL_gfx-2.0.13.
I have attached the kernel .config file (zipped), dmesg output and
strace output (zipped) of this example.
Also see these output:
fbset -i
mode “800x600-60”
# D: 40.000 MHz, H: 37.879 kHz, V: 60.317 Hz
geometry 800 600 800 600 16
timings 25000 88 40 23 1 128 4
hsync high
vsync high
rgba 5/10,5/5,5/0,0/0
endmode
Frame buffer device information:
Name : S3 Virge/DX
Address : 0xec000000
Size : 4194304
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 2
YPanStep : 1
YWrapStep : 0
LineLength : 1600
Accelerator : No---------------------------------------------------------------------------------------
cat /etc/fb.modes
mode “800x600-60”
# D: 40.000 MHz, H: 37.879 kHz, V: 60.317 Hz
geometry 800 600 800 600 16
timings 25000 88 40 23 1 128 4
hsync high
vsync high
#rgba 5/10,5/5,5/0,0/0
endmode
I tried with vesafb and sisfb at kernel line:
-
append root=/dev/hda3 lpj=166774 idebus=33 i8042.nopnp
clocksource=jiffies video=s3fb:800x600-16 at 60 vga=0x314 -
append root=/dev/hda3 lpj=166774 idebus=33 i8042.nopnp
clocksource=jiffies video=vesafb:800x600-16 at 60 vga=0x314
Am I forgetting something? Does anyone have any idea?
Regards, Gustavo
-------------- next part --------------
A non-text attachment was scrubbed…
Name: dmesg
Type: application/octet-stream
Size: 6773 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080417/e36b4a4c/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed…
Name: strace.output.gz
Type: application/x-gzip
Size: 2145 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080417/e36b4a4c/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed…
Name: linux-2.6.24.config.gz
Type: application/x-gzip
Size: 6262 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080417/e36b4a4c/attachment-0001.bin