I haven't found my feet yet!

Hi,
I use the following build file but it doesn’t work as I expect!

[virtual=x86,bios +compress ] boot = {
startup-bios

PATH=.:/proc/boot:/bin:/usr/sbin:/usr/bin:/x86/bin:/x86/sbin:/x86/usr/photon/bin/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/x86/usr/lib procnto
}

[+script] startup-script = {

display_msg Booting Neutrino on Pentium

These env variables inherited by all the programs which follow

SYSNAME=nto
TERM=qansi-m

PATH=.:/proc/boot:/bin:/usr/bin:/x86/bin:/x86/sbin:/x86/usr/photon/bin:/usr/local/bin:/sbin

LD_LIBRARY_PATH=.:/opt/lib:/proc/boot:/lib:/usr/lib:/lib/dll:/x86/usr/lib:/usr/photon/lib:/usr/local/lib:/usr/photon/dll
PROCESSOR=x86
HOSTNAME=estape_qrtp_2
PHOTON_PATH=/usr/photon
PHOTON2_PATH=/usr/photon

display_msg “”

Remap IRQs to use Estape Board

display_msg Remap Network and IEEE1394 IRQs to use Estape Board
iniEst -IRQ:11 -CKPENTIUM -v

Montage du disque IDE

devb-eide blk automount=hd0t77:/ qnx4&
waitfor /dev/hd0t77
display_msg Montage partition QNX
waitfor /boot/fs 10
mount /boot/fs/qnxbase.qfs /pkgs/base
waitfor /pkgs/base 10
waitfor /etc/system/package/packages 10

Start file system packager

display_msg Start file system packager
fs-pkg

Start pipe

waitfor /sbin/pipe
pipe &

Lancement du serveur PCI

display_msg Start PCI server
seedres
pci-bios
waitfor /dev/pci 10

Start ethernet driver

display_msg Start ethernet driver
io-net -dpcnet -p tcpip
waitfor /dev/socket
netmanager

Fix error 13 on phrelay connection

display_msg Start font server
/usr/photon/bin/phfont &

Telnet server initialisation…

display_msg Start Internet Server
inetd &

Serial link driver

display_msg Start serial link driver 9600b
devc-ser8250 -b 9600 &

Start rc.local

display_msg Start /etc/rc.local

waitfor /bin/sh 5

/bin/sh /etc/rc.d/rc.local

Start shell devc-con

devc-con -e &
waitfor /dev/con1 5
reopen /dev/con1
#[+session] /bin/sh &
[+session] login -p

tinit

}

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

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

Information file

readme = {
This image is for use with hard disk.
(c) Centralp Automatismes 2002.
}

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

[type=link] /usr/lib/libc.so=/proc/boot/libc.so.2
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so.2
#[type=link] /usr/lib/libcam.so.1=/proc/boot/libcam.so.1

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

libc.so.2
libcam.so
cam-disk.so
io-blk.so
fs-qnx4.so

The files above this line can be shared by mutiple processes

[data=copy]

Executables must currently be below this line

#diskboot
devb-eide
mount
devc-con
ls
fs-pkg
slogger
seedres
pci-bios
esh
/usr/DemoCentralp/tools/iniEst



1- I don’t want to set HOSTNAME like that; I’d like to set it from
/etc/net.cfg!
2- I start phfont to prevent “connection error 13” in phditto but I
still get it!
3- If I try to telnet this node, I get “telnetd: all network ports in use”!


cheers
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

3- If I try to telnet this node, I get “telnetd: all network ports in use”!

You need devc-pty

(Don’t know about the others…know the answer to that one, though.)

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

For net.cfg, try doing something like the following in your build script:

fs-pkg slogger seedres pci-bios esh /usr/DemoCentralp/tools/iniEst

[perms=+r,+x uid=0 gid=0] /etc/net.cfg = {

nto network config file v1.2

version v1.2

[global]
hostname voltaire
domain ott.qnx.com
nameserver x.x.x.x
nameserver y.y.y.y
route 10.7.0.36 0.0.0.0 0.0.0.0

[en0]
type ethernet
mode manual
manual_ip 10.9.0.59
manual_netmask 255.0.0.0
}

Hope this helps.

Cheers,
-Brian

“Alain Bonnefoy” <alain.bonnefoy@icbt.com> wrote in message
news:3DB7FD98.9000003@icbt.com

Hi,
I use the following build file but it doesn’t work as I expect!

[virtual=x86,bios +compress ] boot = {
startup-bios


PATH=.:/proc/boot:/bin:/usr/sbin:/usr/bin:/x86/bin:/x86/sbin:/x86/usr/photon

/bin/sbin

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/x86/usr/lib procnto
}

[+script] startup-script = {

display_msg Booting Neutrino on Pentium

These env variables inherited by all the programs which follow

SYSNAME=nto
TERM=qansi-m


PATH=.:/proc/boot:/bin:/usr/bin:/x86/bin:/x86/sbin:/x86/usr/photon/bin:/usr/

local/bin:/sbin

LD_LIBRARY_PATH=.:/opt/lib:/proc/boot:/lib:/usr/lib:/lib/dll:/x86/usr/lib:/u

sr/photon/lib:/usr/local/lib:/usr/photon/dll

PROCESSOR=x86
HOSTNAME=estape_qrtp_2
PHOTON_PATH=/usr/photon
PHOTON2_PATH=/usr/photon

display_msg “”

Remap IRQs to use Estape Board

display_msg Remap Network and IEEE1394 IRQs to use Estape Board
iniEst -IRQ:11 -CKPENTIUM -v

Montage du disque IDE

devb-eide blk automount=hd0t77:/ qnx4&
waitfor /dev/hd0t77
display_msg Montage partition QNX
waitfor /boot/fs 10
mount /boot/fs/qnxbase.qfs /pkgs/base
waitfor /pkgs/base 10
waitfor /etc/system/package/packages 10

Start file system packager

display_msg Start file system packager
fs-pkg

Start pipe

waitfor /sbin/pipe
pipe &

Lancement du serveur PCI

display_msg Start PCI server
seedres
pci-bios
waitfor /dev/pci 10

Start ethernet driver

display_msg Start ethernet driver
io-net -dpcnet -p tcpip
waitfor /dev/socket
netmanager

Fix error 13 on phrelay connection

display_msg Start font server
/usr/photon/bin/phfont &

Telnet server initialisation…

display_msg Start Internet Server
inetd &

Serial link driver

display_msg Start serial link driver 9600b
devc-ser8250 -b 9600 &

Start rc.local

display_msg Start /etc/rc.local

waitfor /bin/sh 5

/bin/sh /etc/rc.d/rc.local

Start shell devc-con

devc-con -e &
waitfor /dev/con1 5
reopen /dev/con1
#[+session] /bin/sh &
[+session] login -p

tinit

}

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

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

Information file

readme = {
This image is for use with hard disk.
(c) Centralp Automatismes 2002.
}

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

[type=link] /usr/lib/libc.so=/proc/boot/libc.so.2
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so.2
#[type=link] /usr/lib/libcam.so.1=/proc/boot/libcam.so.1

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

libc.so.2
libcam.so
cam-disk.so
io-blk.so
fs-qnx4.so

The files above this line can be shared by mutiple processes

[data=copy]

Executables must currently be below this line

#diskboot
devb-eide
mount
devc-con
ls
fs-pkg
slogger
seedres
pci-bios
esh
/usr/DemoCentralp/tools/iniEst



1- I don’t want to set HOSTNAME like that; I’d like to set it from
/etc/net.cfg!
2- I start phfont to prevent “connection error 13” in phditto but I
still get it!
3- If I try to telnet this node, I get “telnetd: all network ports in
use”!


cheers
Alain.

humm, not really, I don’t want to make an image for each machine so, I’d
like to be able to get HOSTNAME from net.cfg.
The problem is that the following line is illegal in build script. I
suppose that the only way is to execute a shell script.
HOSTNAME=$(hostname -s)

regards
Alain.

Brian K. Hlady a écrit:

For net.cfg, try doing something like the following in your build script:

snip
fs-pkg
slogger
seedres
pci-bios
esh
/usr/DemoCentralp/tools/iniEst

[perms=+r,+x uid=0 gid=0] /etc/net.cfg = {

nto network config file v1.2

version v1.2

[global]
hostname voltaire
domain ott.qnx.com
nameserver x.x.x.x
nameserver y.y.y.y
route 10.7.0.36 0.0.0.0 0.0.0.0

[en0]
type ethernet
mode manual
manual_ip 10.9.0.59
manual_netmask 255.0.0.0
}

Hope this helps.

Cheers,
-Brian

“Alain Bonnefoy” <> alain.bonnefoy@icbt.com> > wrote in message
news:> 3DB7FD98.9000003@icbt.com> …


Hi,
I use the following build file but it doesn’t work as I expect!

[virtual=x86,bios +compress ] boot = {
startup-bios




PATH=.:/proc/boot:/bin:/usr/sbin:/usr/bin:/x86/bin:/x86/sbin:/x86/usr/photon
/bin/sbin


LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/x86/usr/lib procnto
}

[+script] startup-script = {

display_msg Booting Neutrino on Pentium

These env variables inherited by all the programs which follow

SYSNAME=nto
TERM=qansi-m




PATH=.:/proc/boot:/bin:/usr/bin:/x86/bin:/x86/sbin:/x86/usr/photon/bin:/usr/
local/bin:/sbin




LD_LIBRARY_PATH=.:/opt/lib:/proc/boot:/lib:/usr/lib:/lib/dll:/x86/usr/lib:/u
sr/photon/lib:/usr/local/lib:/usr/photon/dll


PROCESSOR=x86
HOSTNAME=estape_qrtp_2
PHOTON_PATH=/usr/photon
PHOTON2_PATH=/usr/photon

display_msg “”

Remap IRQs to use Estape Board

display_msg Remap Network and IEEE1394 IRQs to use Estape Board
iniEst -IRQ:11 -CKPENTIUM -v

Montage du disque IDE

devb-eide blk automount=hd0t77:/ qnx4&
waitfor /dev/hd0t77
display_msg Montage partition QNX
waitfor /boot/fs 10
mount /boot/fs/qnxbase.qfs /pkgs/base
waitfor /pkgs/base 10
waitfor /etc/system/package/packages 10

Start file system packager

display_msg Start file system packager
fs-pkg

Start pipe

waitfor /sbin/pipe
pipe &

Lancement du serveur PCI

display_msg Start PCI server
seedres
pci-bios
waitfor /dev/pci 10

Start ethernet driver

display_msg Start ethernet driver
io-net -dpcnet -p tcpip
waitfor /dev/socket
netmanager

Fix error 13 on phrelay connection

display_msg Start font server
/usr/photon/bin/phfont &

Telnet server initialisation…

display_msg Start Internet Server
inetd &

Serial link driver

display_msg Start serial link driver 9600b
devc-ser8250 -b 9600 &

Start rc.local

display_msg Start /etc/rc.local

waitfor /bin/sh 5

/bin/sh /etc/rc.d/rc.local

Start shell devc-con

devc-con -e &
waitfor /dev/con1 5
reopen /dev/con1
#[+session] /bin/sh &
[+session] login -p

tinit

}

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

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

Information file

readme = {
This image is for use with hard disk.
(c) Centralp Automatismes 2002.
}

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

[type=link] /usr/lib/libc.so=/proc/boot/libc.so.2
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so.2
#[type=link] /usr/lib/libcam.so.1=/proc/boot/libcam.so.1

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

libc.so.2
libcam.so
cam-disk.so
io-blk.so
fs-qnx4.so

The files above this line can be shared by mutiple processes

[data=copy]

Executables must currently be below this line

#diskboot
devb-eide
mount
devc-con
ls
fs-pkg
slogger
seedres
pci-bios
esh
/usr/DemoCentralp/tools/iniEst



1- I don’t want to set HOSTNAME like that; I’d like to set it from
/etc/net.cfg!
2- I start phfont to prevent “connection error 13” in phditto but I
still get it!
3- If I try to telnet this node, I get “telnetd: all network ports in


use”!


cheers
Alain.



\

alain.bonnefoy@icbt.com sed in <3DB8D442.7080100@icbt.com>

humm, not really, I don’t want to make an image for each machine so, I’d
like to be able to get HOSTNAME from net.cfg.

Then how do you feed the contents of /etc/net.cfg to the target?


kabe

That’s not a problem, if I know how to fdisk and dinit the disk as I
want, up to know that’s not really obvious, it’s easy to create and copy
a net.cfg file to the disk before installing it to the target.

regards,
Alain.


kabe@sra-tohoku.co.jp a écrit:

alain.bonnefoy@icbt.com > sed in <> 3DB8D442.7080100@icbt.com



humm, not really, I don’t want to make an image for each machine so, I’d
like to be able to get HOSTNAME from net.cfg.



Then how do you feed the contents of /etc/net.cfg to the target?