Framebuffer on Sim1

11 views
Skip to first unread message

Federico Pietro Briata

unread,
Aug 10, 2012, 9:11:39 AM8/10/12
to si...@googlegroups.com
Hi guys
lot of time from my last mail on the list.. so I'm back and I'm trying
to use framebuffer on Sim1 with mame.
I've choose advancemame because should give best performance on arm
but got some trouble..
Advmame offer tool call advcfg for configure the video card, I've
tried lot of configuration but even with lowest resolution screen goes
off as I'm out of range.
I've followed this doc http://advancemame.sourceforge.net/doc-install.html#4
This is the deb I've produced for my test, I can confirm is working
since I've tested on tegra2 core
http://pub.briata.org/debian/unstable/advancemame_0.106.1-1_armel.deb
Hope you can give me some advice.

tnx
ciao
federico

martinwguy

unread,
Aug 10, 2012, 9:25:44 AM8/10/12
to si...@googlegroups.com
640x480 e 800X600X65536 colori e 1024x768x8bit funzionano. Non ho
provato mame ma altri giochi funzionvano.

prova 640x480?

M

martinwguy

unread,
Aug 10, 2012, 9:29:53 AM8/10/12
to si...@googlegroups.com
what's the contents of your config file, and is your monitor capable
of a wide range of frequencies?

2012/8/10 martinwguy <marti...@gmail.com>:

Federico Pietro Briata

unread,
Aug 13, 2012, 4:00:01 PM8/13/12
to si...@googlegroups.com
Hi Martin,
I tried 640x480 and 800X600 with different monitor, same monitor are
working if connected on different hardware.

this is my last config

cat ~/.advance/advmame.rc | grep device_video
device_video auto
device_video_cursor auto
device_video_doublescan yes
device_video_fastchange no
device_video_interlace no
device_video_output auto
device_video_overlaysize auto
device_video_singlescan yes
device_video_clock 5-150 / 31.5 / 55-130
device_video_format 31500 0.8 0.04 0.12 0.04 0.914286 0.0190476
0.00380952 0.0628571
device_video_modeline pc_31.5_640x512 25.1752 640 656 752 800 512 523
525 560 -hsync -vsync
device_video_modeline pc_31.5_640x448 25.1752 640 656 752 800 448 457
459 490 -hsync -vsync

that config is working if used on different hardware.


2012/8/10 martinwguy <marti...@gmail.com>:

martinwguy

unread,
Aug 13, 2012, 4:12:13 PM8/13/12
to si...@googlegroups.com
On 13 August 2012 22:00, Federico Pietro Briata <fede...@briata.org> wrote:
> Hi Martin,
> I tried 640x480 and 800X600 with different monitor, same monitor are
> working if connected on different hardware.
> device_video_modeline pc_31.5_640x512 25.1752 640 656 752 800 512 523
> 525 560 -hsync -vsync
> device_video_modeline pc_31.5_640x448 25.1752 640 656 752 800 448 457
> 459 490 -hsync -vsync
>
> that config is working if used on different hardware.

so I guess it's a question of what clock frequencies the ep93xx video
hardware supports.
You could try http://simplemachines.it/doc/EP9307_Users_Guide.pdf
chapter 6: "Raster Engine"
or the setup sections of the Linux kernel
https://github.com/torvalds/linux/blob/master/arch/arm/mach-ep93xx/simone.c
and
https://github.com/torvalds/linux/blob/master/drivers/video/ep93xx-fb.c

Also can you try seeing what "fbset" says on the sim.one text VGA console?

M

Federico Pietro Briata

unread,
Aug 22, 2012, 8:56:46 PM8/22/12
to si...@googlegroups.com
Hi I just back from vacation..

2012/8/13 martinwguy <marti...@gmail.com>:

> You could try http://simplemachines.it/doc/EP9307_Users_Guide.pdf
> chapter 6: "Raster Engine"
> or the setup sections of the Linux kernel

thanks gonna try some different clock freq!

> https://github.com/torvalds/linux/blob/master/arch/arm/mach-ep93xx/simone.c

So 1st I need probably to upgrade to last stable kernel and maybe see
if something chage? I'm still with 2.6.36.

> and
> https://github.com/torvalds/linux/blob/master/drivers/video/ep93xx-fb.c
>
> Also can you try seeing what "fbset" says on the sim.one text VGA console?

I get:

mode "640x480-60"
# D: 25.176 MHz, H: 31.469 kHz, V: 59.942 Hz
geometry 640 480 640 480 16
timings 39721 40 24 32 11 96 2
rgba 5/11,6/5,5/0,0/0
endmode

>
> M

Federico

martinwguy

unread,
Aug 23, 2012, 3:32:32 AM8/23/12
to si...@googlegroups.com
On 23 August 2012 02:56, Federico Pietro Briata <fede...@briata.org> wrote:
> 2012/8/13 martinwguy <marti...@gmail.com>:
>
>> You could try http://simplemachines.it/doc/EP9307_Users_Guide.pdf
>> chapter 6: "Raster Engine"
>> or the setup sections of the Linux kernel
>
> thanks gonna try some different clock freq!
>
>> https://github.com/torvalds/linux/blob/master/arch/arm/mach-ep93xx/simone.c
>
> So 1st I need probably to upgrade to last stable kernel and maybe see
> if something chage? I'm still with 2.6.36.

The 2.6.36 fb is the same so you can use that; nothing has changed
since then in the ep93xx-fb area.

>> Also can you try seeing what "fbset" says on the sim.one text VGA console?
>
> mode "640x480-60"
> # D: 25.176 MHz, H: 31.469 kHz, V: 59.942 Hz
> geometry 640 480 640 480 16
> timings 39721 40 24 32 11 96 2
> rgba 5/11,6/5,5/0,0/0
> endmode

That's in "normal VGA mode" I assume, in which you can see text on the monitor?
If so, can you try adapting those settings into advmame config
language and see if that works?
If not, on a login session on some other console (the serial port or
via telnet/ssh), when the monitor is saying "out of range", try fbset
again, and see the differences in the frequency settings?

M

M
Reply all
Reply to author
Forward
0 new messages