Hi again,
sorry about this new article but i have some problems with my newsreader.
So, let’s get to work…
Backing to my problem, let’s review some things.
I need to configure an embedded system that works like this:
Boot the machine (of course),
configure network,
*configure filesystem,
**execute a program forever.
*I need to use the same filesystem that QNX uses in a developer system. I need to have full access because the program will create a lot of files for later transfer via NFS or SAMBA (cifs). The initial test are made in a specific partition of a computer with IDE disks. So, how to configure the filesystem?
** As I told before, this program will gather information from a Data-Acquisition board and create a lot of text files with the information.
The bigger problem is that I’m trying to configure the filesystem but I have no success to have create/write access in the filesystem. I’m not using flash or RAM… I have to use the disk.
Leandro
P.S. Here’s the buildfile that i’m using now.
test.bld
[virtual=x86,bios +compress] boot = {
startup-bios
PATH=/proc/boot:/bin:./ procnto
LD_LIBRARY_PATH=/lib:/proc/boot
procnto
}
[+script] startup-script = {
display_msg “QNX em Embedded Systems”
slogger -l /tmp/tess
Seedres configura parametros de hardware como IRQ, Channel…
seedres
Inicializa interface pci
pci-bios &
waitfor /dev/pci
TCP/IP
display_msg “Configurando TCP/IP”
io-net -dsis9 -ptcpip
waitfor /dev/socket
dhcp.client
ifconfig en0 192.168.2.7 netmask 255.255.0.0
route add default 192.168.0.1
display_msg “TCP/IP OK”
inicializando EIDE
devb-eide cam quiet blk auto=partition eide &
devc-pty &
pipe &
display_msg “Inicializacao nfsd”
portmap &
nfsd &
display_msg nfsd ok
devc-con -n2 &
reopen /dev/con2
[+session] esh &
reopen /dev/con1
[+session] esh &
}
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
[type=link] /usr/lib/libcam.so.2=/proc/boot/libcam.so.2
[perms=+r,+x]
/lib/dll/devn-sis9.so
npm-tcpip.so
libc.so
fpemu.so
libsocket.so
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
librpc.so.2
[data=copy]
[perms=+r,+x]
slogger
devc-con
devc-ser8250
devb-eide
io-net
pipe
devc-pty
pdebug
fs-nfs2
nfsd
stty
esh
ls
ifconfig
pidin
dhcp.client
slay
shutdown
cp
pci-bios
seedres
route
/root/dt2801/ad_conv4
portmap
showmount
vi
cat
/etc/exports = {
/tmp
}
/tmp/teste = {
lixxoooooo
}
/lib/teste = {
lixxo
}