Hi,
here I document my first steps with the OGD1 board.

My setup:
I am interested in an application where every second frame of a graphics
card
is captured by a camera. The camera is triggered by the VSYNC signal of the
graphics card and the exposure time is approximately 15ms. I use a cheap
logic analyzer to verify that the trigger pulses are correct.

The graphics card is connected to a ferro electric liquid crystal display
(http://www.forthdd.com, ca. 3000 USD, WXGA R3, 1280x768, 60 Hz) which acts
like a normal
digital LCD screen with DVI but displays each frame as 24 black and white
bit planes.

My motivation:
I tried to control the display with the proprietary Linux drivers of a
Nvidia GeForce 9600 GT as well as
an ATI Mobility Radeon HD 4200 and ran into problems with sync to vblank. I
always observe image
tearing, no matter what I try.
My goal is to understand enough of the OGD1 to produce animations without
image tearing.


Installation:
First I had to find an old graphics card and scavanged its panel because our
OGD1 came without one.
Then I placed the OGD1 into a PCI slot next to the Geforce 9600 GT. Its a
tight fit because the OGD1
has some extra PCI-X that hang over the PCI slot. Fortunately the
motherboard has enough space behind the PCI slot.

This is what the output of 'lspci' for the OGD1 card:
lspci -vv
0b:01.0 VGA compatible controller: Tech-Source Device 0000 (prog-if 00 [VGA
controller])
        Subsystem: Tech-Source Device 0000
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 5
        Region 0: Memory at dffc0000 (32-bit, prefetchable) [disabled]
[size=256K]
        Region 1: Memory at c0000000 (32-bit, prefetchable) [disabled]
[size=256M]
        Expansion ROM at d0000000 [disabled] [size=128K]


Then I checked out the projects repository:
svn co svn://svn.opengraphics.org/ogp

I was able to compile the programs in  ogp/trunk/tools/oga1_diag.

I tried to run  regtest_xp10 but got the error "Cannot get list of legal
device IDs".
This error was due to a missing file. I got rid of it by doing
echo "1227 1227" > ogp/trunk/tools/oga1_diag/vendorids.ini

Now the regtest_xp10 program seems to work:
martin@cyberpower:~/src/ogp/trunk/tools/oga1_diag$ sudo ./regtest_xp10
0b:01.0
Vendor ID: 0x1227
SubVendor ID: 0x1227
Mapped reg space phy=0xdffc0000, size=0x40000, virt=0x7fe75a6c5000
Mapped mem phy=0xc0000000, size=0x10000000, virt=0x7fe74990b000
0x7fe75a6c5000 262144, 0x7fe74990b000 268435456
Test Register Read = deadbeaf


Than I ran the following program, which crashed the computer.

martin@cyberpower:~/src/ogp/trunk/tools/oga1_diag$ sudo ./vid_test 0b:01.0
Vendor ID: 0x1227
SubVendor ID: 0x1227
Mapped reg space phy=0xdffc0000, size=0x40000, virt=0x7f27b0634000
Mapped mem phy=0xc0000000, size=0x10000000, virt=0x7f279f87a000
0x7f27b0634000 262144, 0x7f279f87a000 268435456
Reading EDID for Top Head.

00 ff ff ff ff ff ff 00 18 84 04 13 00 00 00 01
0c 10 01 03 81 20 18 00 09 04 88 a0 57 4a 9b 26
12 48 4c 00 00 00 81 80 81 8f 81 99 61 59 01 01
01 01 01 01 01 01 39 2a 00 98 51 00 2a 40 30 70
13 00 40 f0 10 00 00 1e 00 00 00 ff 00 3b 3d 3f
41 0b 0a 0a 0a 0a 0a 0a 0a 0a 00 00 00 fe 00 53
58 47 41 20 49 2f 46 0a 20 20 20 20 00 00 00 fe
00 53 58 47 41 0a 20 20 20 20 20 20 20 20 00 62
Reading EDID for Bottom Head.

ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Unfortunately I'm not anywhere near the computer, so I have to stop now.
I'm excited to see if I can get the OGD1 to work. The results so far seem
quite promising.


Regards, Martin


-- 
Martin Kielhorn
Randall Division of Cell & Molecular Biophysics
King's College London, New Hunt's House
Guy's Campus, London SE1 1UL, U.K.
tel: +44 (0) 207 848 6519,  fax: +44 (0) 207 848 6435
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to