Problems with Embedded Photon... black screen !

Hello,

I’m working with a x86 embedded system (PC104 x84 svga/vga card).
Little problem : the io-graphics driver seems to start, but the screen become completely black… and stay black :frowning:

Here is the script I use (I’m working with IDE) :


pci-bios &
waitfor /dev/pci
/proc/boot/devb-doc blk automount=/dev/hd0t77:/:qnx4 &
waitfor /bin 10
display_msg Chargement configuration reseau
io-net -drtl -ptcpip
waitfor /dev/socket
ifconfig en0 192.168.1.2 netmask 255.255.255.0
route add default 192.168.1.254
hostname station2
mount -Tio-net -o"resolve=ndp,resolve=dns" npm-qnet.so
slogger -l /info -vv &
./FestoDriverVortex86 &
devc-con -n2 &
reopen /dev/con1

PHOTON_PATH=/usr/photon
Photon &
waitfor /dev/photon

#Don’t work :frowning:((

devi-hirun kbd fd -d/dev/kbd &

phfontFF -d /usr/photon/font_repository -D /usr/photon/font_repository -b10k -B0 -c10k -k50 -K20 -s50k -S20 -T1 -H -h &
waitfor /dev/phfont
waitfor /dev/phfont32
waitfor /dev/phfont64
fontsleuth -d /usr/photon/font_repository &

io-graphics -dldevg-svga.so -Pvga4.pal -g640,480,4 &

io-graphics -dldevg-vga.so -Pvga4.pal -cS -d0x1039,0x5315 -g640,480,4 -I0h -n/dev/photon -R60 &

io-graphics -g640x400x16 -dldevg-svga.so -I0 -d0x1039,0x5315 &

sh -c “sloginfo > before”
io-graphics -g640x480x8 -dldevg-vga.so -I0 -d0x1039,0x5315 &

phcalc &

pterm -x10 -y10 -w60 -h60 -K07 &

rm /info

sh -c “sloginfo > info”

[+session]TERM=qansi sh


Sloginfo messages :

Time Sev Major Minor Args
Dec 17 17:49:28 1 8 0 phfontXX started OK - EOK
Dec 17 17:49:28 1 8 0 MainLoop
→ This seems to be for phfontFF
Dec 17 17:49:29 2 8 0 unable to get path to config file
Dec 17 17:49:29 5 8 0 Plugin gri-photon.so opened successfully
Dec 17 17:49:29 5 8 0 Opened photon connection:
Dec 17 17:49:29 6 8 0 VGA primary : bus 0x1 dev/func 0x0
Dec 17 17:49:29 6 8 0 Found 1 PCI/AGP display devices
→ And this for the io-graphics


Anyone can help me ? Thanx !!!

Hi mate,

post the output of the ‘pci’ command. You probably load the wrong driver.

Freddy

pci command :


Class = Display (VGA)
Vendor ID = 1039h, Silicon Integrated System
Device ID = 5315h, Unknown Unknown
PCI index = 0h
Class Codes = 030000h
Revision ID = 0h
Bus number = 1
Device number = 0
Function num = 0
Status Reg = 2b0h
Command Reg = 3h
I/O space access enabled
Memory space access enabled
Bus Master disabled
Special Cycle operations ignored
Memory Write and Invalidate disabled
Palette Snooping disabled
Parity Checking disabled
Data/Address stepping disabled
SERR# driver disabled
Fast back-to-back transactions to different agents disabled
Header type = 0h Single-function
BIST = 80h Selftest OK
Latency Timer = 0h
Cache Line Size= 0h
PCI Mem Address = d0000000h prefetchable 32bit length 134217728 enabled
PCI Mem Address = dfee0000h 32bit length 131072 enabled
PCI IO Address = cc00h length 128 enabled
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = INT A
Interrupt line = 0
Capabilities Pointer = 40h
Capability ID = 1h
Capabilities = 601h - 0h
Capability ID = 2h
Capabilities = 20h - f000207h
Device Dependent Registers:
0x40: 01 50 01 06 00 00 00 00 00 00 00 00 00 00 00 00
0x50: 02 00 20 00 07 02 00 0f 00 00 00 00 00 00 00 00
0x60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Try the VESA driver and try it without the -P option

I don’t have my script at hand. I’ll post it later.

Good luck

Always the same problem…
My card is compatible IBM vga and svga.