Filesystems in embedded Systems

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
}

lcrocha@yahoo.com sed in Voyager.030327091718.524308A@gear10:

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.

devb-eide cam quiet blk auto=partition eide &

Where in the pathname are you trying to write and fail?

kabe

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.

devb-eide cam quiet blk auto=partition eide &

Where in the pathname are you trying to write and fail?

anywhere…
in /, /transf, /usr…

lcrocha@yahoo.com sed in Voyager.030327091718.524308A@gear10:

devb-eide cam quiet blk auto=partition eide &

root “/” partition isn’t automagically mounted by this;
your buildfile don’t have additional mount commands either.
Consult the devb-eide blk option document.

(This is becoming to be a FAQ…)

kabe

Right, you should be able to write into files that are under
the “subdirectories” of /fs/.

dB


<kabe@sra-tohoku.co.jp> wrote, ca. Fri, 28 Mar 2003 18:17:53 JST:

lcrocha@yahoo.com sed in Voyager.030327091718.524308A@gear10:

devb-eide cam quiet blk auto=partition eide &

root “/” partition isn’t automagically mounted by this;
your buildfile don’t have additional mount commands either.
Consult the devb-eide blk option document.

(This is becoming to be a FAQ…)

kabe

dbacon@qnx.com sed in <1048865866965.dB@nntp.qnx.com>:

Right, you should be able to write into files that are under
the “subdirectories” of /fs/.

/fs/ is a “diskboot” notation I guess.
You should still need blk automount for non-diskboot embedded systems.


kabe