pcmcia

Hello,
I’ve got a problem when i start the pcmcia driver.
It’s a compactFlash which is pluged in the PCMCIA. The /dev/pccard is mounted well, but the instruction : “devb_eide eide ioport=0x300,irq=10” doesn’t create the right device when it start from the .bootscript ? So, It create the same primary IDE CompactFlash’s device like /dev/hd1t79, and not the true device linux /dev/hd1t130 and /dev/hd1t131??? It run ok only if i type by handle after booting in the console terminal the instruction.
Why ? it’s the same command
Rq: devb-eide is in [data=copy] in the OS image
thank you for yours suggestions

fabien

Are all the shared object in the OS image as well (io-block, cam, etc)

hello,

yes quite, the root filesystem is mounted with success.
I post all the script :


###############################################################

QNX Neutrino on an PC BIOS compatible system

###############################################################

[virtual=x86,bios +compress] .bootstrap={
startup-bios
PATH=/proc/boot:/sbin:/bin:/usr/bin:/usr/sbin:/usr/photon/bin:/debug:/host/bin:/host/sbin:/host/usr/bin:/host/usr/sbin/:/host/usr/photon/bin LD_LIBRARY_PATH=/proc/boot:/usr/lib:/lib:/lib/dll:/dev/shmem:/opt/lib:/usr/photon/lib:/usr/photon/dll:/lib/dll/font HOME=/ procnto-instr -vvv
}

[+script] startup-script={

Programs require the runtime linker (ldqnx.so) to be at a fixed location

procmgr_symlink ../../lib/libc.so.2 /usr/lib/ldqnx.so.2

display_msg Welcome to QNX Neutrino on an PC compatible BIOS system 

Start Log system messages manager :frowning:replace the “syslogd” daemon UNIX)

display_msg Starting Log manager 
slogger -s32 &

Start the pci server

seedres	&
pci-bios -v &
waitfor /dev/pci

Start up consoles

devc-con -n4 &
reopen /dev/con1

disk CF

devb-eide eide nobmstr blk alloc=512 automount=hd0t79:/:qnx4 &
waitfor /dev/hd0t79 30
mount /dev/hd0t79 /
#
LD_LIBRARY_PATH=/proc/boot:/usr/lib:/lib:/lib/dll:/dev/shmem:/opt/lib:/usr/photon/lib:/usr/photon/dll:/lib/dll/font	

driver ethernet

display_msg Network
io-net -v -d speedo verbose -p tcpip & #target
if_up -p en0 #wait until net driver up
waitfor /dev/socket
ifconfig en0 172.20.1.18 netmask 255.255.0.0 & #target
if_up en0 #wait until net up and configured

Some common servers

pipe &
mqueue &
devc-ser8250 -e &

remote-debug : qconn and pdebug needs devc-pty

devc-pty -n 32 &

Start a debug server for debugging programs

#waitfor /dev/ser1
#debug by serial device
#[+session] pdebug -v dev/ser1 &
#debug with network ethernet TCP/IP port=9000 (like qconn)
display_msg Debug agents
[+session] pdebug -v 9000 &

Start qconn daemon on port 8000 to use TFTP and BOOTP cross-development protocols

waitfor /dev/ptyp0
qconn port=8000 &

mount host file system via NFS

display_msg Mounting NFS Host FileSystem
fs-nfs2 -t 172.20.1.183:/ /host &

network servers

portmap &
nfsd &
inetd &

These env variables inherited by all the programs which follow

display_msg Environment variables
SYSNAME=nto
LOGNAME=root
#TERM=qansi-m
PHOTON=/dev/photon
PHOTON_PATH=/usr/photon
PHFONT=/dev/phfont
#DISPLAY=127.1:0
#FONTSLEUTH=/dev/fontsleuthctrl
HOSTNAME=PC-durci
SHELL=/proc/boot/esh
#PHWM=pwm    
#USER_NAME=/dev/photon
# mode debug
DL_DEBUG=1
# variable de configuration QNX (globale au systeme)
setconf CS_LIBPATH /proc/boot:/lib:/usr/lib:/lib/dll:/lib/dll/font:/usr/photon/lib:/usr/photon/dll:/opt/lib &

PCMCIA

display_msg PCMCIA-Pccard
devp-pccard ss -V0x104c -D0xac55 -m -v &
waitfor /dev/pccard 30

devb-eide eide ioport=0x300,irq=10 &

pccard-launch -nv '0x300,devb-eide eide ioport=0x300,irq=10' &
waitfor /dev/hd1

#####################################################################

Serveur PHOTON

#####################################################################
display_msg Photon Servers …

Start the Photon server.

Photon &
waitfor /dev/photon 30

Start the input (mouse, keyboard, touchscreen, etc.) driver : display server

devi-hirun -vvv kbd fd -d/dev/kbd keyboard -k /usr/photon/keyboard/fr_FR_102.kbd ps2 mousedev &

Configure fonts (font server).

#fontsleuth -d /usr/photon/font_repository &
phfont -d /usr/photon/font_repository &

Start the graphics driver (photon graphic server).

#io-graphics -dvesabios vid=0x102c,did=0x0c30,photon,xres=640,yres=480,bitpp=24 -pphoton &
io-graphics -dchips vid=0x102c,did=0x0c30,photon,xres=640,yres=480,bitpp=24,refresh=60 -pphoton & 
waitfor /dev/phfont

Start the window manager (optional).

pwm &
bkgdmgr &
#phcalc &
pterm -x60 -y60 -h200 -w250 /proc/boot/esh &

Start your application.

#####################################################################

Fin du script PHOTON

#####################################################################

Start some extra shells on other consoles

reopen /dev/con2
[+session] esh &

Start the main shell

reopen /dev/con1
[+session] esh

}

[type=link] /usr/lib/ldqnx.so.2=/lib/libc.so

Cheat and make the /temp point to the shared memory area…

[type=link] /tmp=/dev/shmem

Redirect console messages for syslog

[type=link] /dev/console=/dev/con1

We use the “c” shared lib (which also contains the runtime linker)

/lib/libc.so=libc.so
/lib/libm.so=libm.so
/lib/libsocket.so.2=libsocket.so.2
/lib/dll/io-blk.so=io-blk.so
/lib/libcam.so.2=libcam.so.2
/lib/dll/fs-qnx4.so=fs-qnx4.so
#/lib/dll/cam-cdrom.so=cam-cdrom.so
/lib/dll/cam-disk.so=cam-disk.so
/usr/lib/libph.so.3=libph.so.3
#/lib/dll/devn-el900.so=devn-el900.so #host
/lib/dll/devn-speedo.so=devn-speedo.so #cible PC durci Matra
/lib/dll/npm-tcpip.so=npm-tcpip.so
#/lib/dll/npm-ttcpip.so=npm-ttcpip.so
/usr/lib/librpc.so.2=librpc.so.2

Just incase someone needs floating point…

/lib/dll/fpemu.so.2=fpemu.so.2

photon graphic server library

#/lib/dll/devg-svga.so=devg-svga.so
#/lib/dll/devg-vesabios.so=devg-vesabios.so
/lib/dll/devg-chips.so=devg-chips.so
/lib/dll/gri-photon.so=gri-photon.so
/usr/lib/libgri.so.2=libgri.so.2
/usr/lib/libphrender.so.2=libphrender.so.2
/usr/lib/libffb.so.2=libffb.so.2
/usr/lib/libdisputil.so.2=libdisputil.so.2
/usr/lib/libffb.so=libffb.so
/usr/lib/libdisputil.so=libdisputil.so
/usr/photon/dll/wframe_updated.so=wframe_updated.so
/usr/lib/libaoi.so.1=libaoi.so.1
/usr/lib/libmmedia.so.1=libmmedia.so.1

photon font server library

/lib/dll/pi_io_jpeg.so=pi_io_jpeg.so
/usr/lib/libphexlib.so.3=libphexlib.so.3
/usr/lib/libAp.so.3=libAp.so.3
/usr/lib/libphimg.so=libphimg.so
/usr/lib/libjpeg.so=libjpeg.so

font libs

/lib/libfont.so.1=libfont.so.1
/lib/dll/phfont.so=phfont.so
/lib/dll/font/FCcore.so=FCcore.so
/lib/dll/font/ttfFFcore.so=ttfFFcore.so
/lib/dll/font/PHFcore.so=PHFcore.so
/lib/libblkcache.so.2=libblkcache.so.2
/lib/libFF-T2K-cache.so.2=libFF-T2K-cache.so.2
/lib/libFF-T2K.so.2=libFF-T2K.so.2
/lib/libFF-T2K-fm.so.1=libFF-T2K-fm.so.1
/lib/libfontharnessutils.so.1=libfontharnessutils.so.1
/lib/libfontutils.so.1=libfontutils.so.1

[data=uip]

Console driver

devc-con

Pci server

pci-bios
seedres

Network

io-net

PCMCIA

devp-pccard
pccard-launch

Servers…

slogger
pipe
mqueue
devc-ser8250
devc-pty

The files above this line can be shared by mutiple processes

[data=c]

IDE

devb-eide

font config

/usr/photon/config/pterm/pterm.rc=/usr/photon/config/pterm/pterm.rc
/usr/photon/font_repository/tt2009m_.ttf=/usr/photon/font_repository/tt2009m_.ttf
/usr/photon/font_repository/phcursor.phf=/usr/photon/font_repository/phcursor.phf
/usr/photon/font_repository/mappings=/usr/photon/font_repository/mappings
/usr/photon/font_repository/fontopts=/usr/photon/font_repository/fontopts
/usr/photon/font_repository/fontkey=/usr/photon/font_repository/fontkey
#/usr/photon/font_repository/fontdir=/usr/photon/font_repository/fontdir

/usr/photon/font_repository/fontdir = {
#;
#; fontdir config file
#;
phcursor,.phf,Photon Cursor,0,E900-E921,Np,32x32,3K
primasansmonobts,0@tt2009m_.ttf,PrimaSansMono BT,0,0020-F002,f,79x170,109K
}

/usr/photon/font_repository/fontext = {
#;
#; fontext config file, Mon Dec 13 15:36:21 1999
#;
+normal = primasansmonobts, phcursor
}

/usr/photon/font_repository/fontmap = {
#;
#; fontmap config file
#;

#BalloonFont = primasansbts
#FixedFont = primasansmonobts
#HeadingFont = primasansbts
#MenuFont = primasansbts
#MessageFont = primasansbts
#TextFont = primasansbts
#TitleFont = primasansbts
#Helvetica = swis721bts
#Verdana = primasansbts
#monospace = primasansmonobts
#sans-serif = swis721bts
#serif = dutch801rmbts
#web = webs
#arial = swis721bts
#term = pcterm
#geneva = swis721bts
#monaco = courier10bts
#ny = dutch801rmbts
#courier = courier10bts
#couriers = courier10bts
#dutch = dutch801rmbts
#dutchs = dutch801rmbts
#swiss = swis721bts
#swisss = swis721bts
#time = dutch801rmbts
#times = dutch801rmbts
#helv = swis721bts
#ncen = dutch801rmbts
#cour = courier10bts
#char = courier10bts
#utop = primasansbts
#cursive = swis721bts
#fantasy = dutch801rmbts
? = primasansmonobts
}

/usr/photon/font_repository/pcterm12.phf=/usr/photon/font_repository/pcterm12.phf
/usr/photon/font_repository/pcterm14.phf=/usr/photon/font_repository/pcterm14.phf
/usr/photon/font_repository/pcterm20.phf=/usr/photon/font_repository/pcterm20.phf
/usr/photon/font_repository/pcs08.phf=/usr/photon/font_repository/pcs08.phf
/usr/photon/font_repository/pcs10.phf=/usr/photon/font_repository/pcs10.phf
/usr/photon/font_repository/pcs12.phf=/usr/photon/font_repository/pcs12.phf
/usr/photon/font_repository/pcs14.phf=/usr/photon/font_repository/pcs14.phf
/usr/photon/font_repository/pcs16.phf=/usr/photon/font_repository/pcs16.phf
/usr/photon/font_repository/pcss08.phf=/usr/photon/font_repository/pcss08.phf
/usr/photon/font_repository/pcss10.phf=/usr/photon/font_repository/pcss10.phf
/usr/photon/font_repository/pcss12.phf=/usr/photon/font_repository/pcss12.phf
/usr/photon/font_repository/pcss14.phf=/usr/photon/font_repository/pcss14.phf
/usr/photon/font_repository/pcss16.phf=/usr/photon/font_repository/pcss16.phf

/etc/photon/pnpmouse=pnpmouse

target agent for remote debug

qconn
/debug/pdebug=/usr/bin/pdebug
fs-nfs2
#fs-nfs3

Other executables and configuration files

ls
cp
#ln
esh
#ldd
#cat
#touch
#pidin
#uname
sloginfo
use
#vi
more
ps
#mv
mkdir
rm
shutdown
#clear
#kill
#chmod
#slay
setconf
#getconf
#inputtrap
#crttrap
#enum-devices

disk utilities

#pci
#fdisk
#dcheck
#chkfsys
#dd
mount
#umount
#dinit
#du
df
pin

network daemons server and utilities

ifconfig
if_up
#route
#rlogin
#nicinfo
#netstat
#ping
inetd
#ftpd
#telnet
#telnetd
nfsd
portmap

/etc/netconfig=/etc/netconfig
/etc/rpc=/etc/rpc
/etc/services=/etc/services
/etc/protocols=/etc/protocols
/etc/ftpusers=/etc/ftpusers
/etc/termcap=/etc/termcap
/etc/inetd.conf={

Internet services syntax:

<service_name> <socket_type> <server_pathname>

#remote photon : example
phrelay stream tcp nowait root /proc/boot/phrelay phrelay
ftp stream tcp nowait root /proc/boot/ftpd in.ftpd -l
telnet stream tcp nowait root /proc/boot/telnetd in.telnetd
discard stream tcp nowait root internal
discard dgram udp nowait root internal
}

[uid=0 perms=a+rwx] /etc/hosts={

Host Database

127.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
172.20.1.183 host host
172.20.1.18 cible_x86 cible_x86
}
[uid=0 perms=a+rwx] /etc/exports={
/ -root=0 host
}

photon graphics server files

No BIOS, No fix, Mem = 4Meg

/usr/photon/config/chips.conf={

devg-chips.so parameters for tailoring to specific boards and display modes.

bios Use video BIOS to detect and set video modes (x86 only)

1 = use BIOS 0 = direct switch

fix Disable LCD (fix for some BIOSes that are set to use a panel)

- requires bios = 1 1 = disable LCD 0 = do not disable LCD

mem size of video memory

base address of linear base aperature

The driver will use the first un-commented entry.

bios=0,fix=0,mem=0x400000,base=0
}

devi-hirun driver in its path

#/usr/photon/bin/devgt-iographics=devgt-iographics
/etc/system/enum/devices/graphics=/etc/system/enum/devices/graphics
#phrelay

Photon files:

/usr/photon/keyboard/fr_FR_102.kbd=/usr/photon/keyboard/fr_FR_102.kbd
#/usr/photon/bin/fontsleuth=fontsleuth
/usr/photon/bin/phfont=phfont
/usr/photon/bin/devi-hirun=devi-hirun
/usr/photon/bin/pwm=pwm
#[+raw] /usr/photon/bin/shelf=shelf
/usr/photon/bin/Photon=Photon
/usr/photon/bin/io-graphics=io-graphics
[+raw] /usr/photon/bin/pterm=pterm
#[+raw] /usr/photon/bin/phcalc_sm=phcalc_sm
#[+raw] /usr/photon/bin/phshutdown=phshutdown
[+raw] /usr/photon/bin/bkgdmgr=bkgdmgr
[+raw] /usr/photon/bin/phshutdown=phshutdown
#[+raw] /usr/photon/bin/pwmopts=pwmopts
#[+raw] /usr/photon/bin/phmenu=phmenu

pwm and bkgdmgr config

#/usr/photon/config/wm/wm.cfg = /usr/photon/config/wm/wm.cfg

default image for bkdgmgr

#/usr/share/backdrops/640x480/fond1.jpg=/usr/qnx630/target/qnx6/share/backdrops/640x480/fond1.jpg # NOK ?!

pwm and bkgdmgr config

[uid=0 perms=a+rwx] /.ph/wm/wm.cfg={
[wm config]
fore_color = 0xD8D8D8
active_color = 0x5C8BDF
title_color = 0x65
inactive_color = 0xB1C1D9
base_color = 0xBDBDAA
border_active = 0
placement = 4
text_align = 2
auto_raise = 0
keyboard = 0
focus_cursor = 0
click_front = 1
drag = 1

[background]
image = /share/backdrops/640x480/fond1.jpg
vert_align = CENTER
horz_align = CENTER
image_op = STRETCH
}

screen saver

[uid=0 perms=a+rwx] /.ph/saver.cfg={
[saver config]
#saver = phmatrix
saver_enabled = YES
timer_value = 10
dpms_standby_enabled = NO
dpms_standby_timeout = 20
dpms_suspend_enabled = NO
dpms_suspend_timeout = 30
dpms_off_enabled = NO
dpms_off_timeout = 60
password_enabled = NO
password_use_system = NO
}

The parts of each entry in the wm.menu file must be separated by tabs.

/usr/photon/config/wm/wm.menu={
=Desktop Menu
Terminal photon c /usr/photon/bin/pterm -x60 -y60 -h100 -w150
-4
Shutdown… u phshutdown
}

graphics driver

/etc/system/config/crtc-settings=/etc/system/config/crtc-settings
/etc/system/config/graphics-traplist={
devgt-iographics -dldevg-chips.so -I0 -d0x03B0,0x03C0
}
/usr/photon/palette/default.pal=/usr/photon/palette/default.pal

shelf

/usr/photon/config/shelf/shelf.cfg=/usr/photon/config/shelf/shelf.cfg

lirairie du shelf

#/usr/photon/dll/shelf/taskbar.so= /usr/photon/dll/shelf/taskbar.so
#/usr/photon/dll/shelf/launchmenu.so=/usr/photon/dll/shelf/launchmenu.so
#/usr/photon/dll/shelf/launcher.so= /usr/photon/dll/shelf/launcher.so
#/usr/photon/dll/shelf/cdplayer.so= /usr/photon/dll/shelf/cdplayer.so
###############################################################


the “pin” command give us the ioport’s adresse for the CompactFlash in PCMCIA, and the IRQ number, it’s ok;
but if write in the .bootscript the line devb-eide eide ioport=0x300,irq=10 &, the devices /dev/hd1 and /dev/hd1t79 which waited doesn’t appear, and if i type it in the terminal’s target then it’s running ok ??? i don’t undestand in fact because it’s quite similar.
And i’ve the same problem if i use the “pccard-launch” command, the daemon run only when it’s started from the session pterm and not from the OS image ?? And when it run ok by a session and we plug the PCMCIA flash, there are signals coming but nothing appear in /dev/hd1… ?
Thank you for your answer.