telnet to an embedded system...

Hi…

I have a file system mounted in a DiskOnChip which resides on an Adastra
small embedded computer. The build code is shown bellow, but I can not
telnet to my DOC. I have all the libraries that telnet, login need.

What do I have to have so that I can telnet to an embedded system?
Does any one know about a sample build file that includes the necessary
components so that we can telnet to that system? I guess that I need to
know what are the minimum necessary components or the script combination
such that I can telnet to an embedded system hosting a DOC or a SanDisk
or any other such solid state disks.

Thanks…

Best Regards…

Miguel.


###############################################################
[search=/sbin:/usr/sbin:/bin:/usr/bin:/lib:/lib/dll:/boot/sys]
[virtual=x86,bios +compress] boot = {

startup-bios -Nmachine-name

startup-bios -s 64k
PATH=/proc/boot:/bin:/sbin
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll procnto
}

[+script] startup-script = {
seedres

These env variables inherited by all the programs which follow

TERM=qansi
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll
DL_DEBUG=1

\

Start up some consoles

devc-con -n4 &
reopen /dev/con1

display_msg Welcome to Neutrino on an PC compatible BIOS system

Start the pci server

pci-bios &
waitfor /dev/pci

Network drivers and filesystems

io-net -dpcnet -ptcpip
waitfor /dev/io-net
sleep 2
ifconfig en0 10.2.108.203 netmask 255.255.255.0 up
waitfor /dev/socket
netmanager
sleep 2
mount -Tio-net -o"host=saic3.saic.com" npm-qnet.so

fs-nfs2 10.2:/usr/nto / 10.2:/ /usr/qnx4 &

Disk drivers (The default one and some fun others for your

pleasure…)
devb-doc -w:0xd4000
waitfor /dev/hd0t77

devb-doc blk automount=hd0t77:/ &

Wait for a bin for the rest of the commands (up to 30 secs)

mount /dev/hd0t77 /
waitfor /bin 30

Some common servers

pipe &
mqueue &
devc-pty &

Start some extra shells on other consoles

reopen /dev/con2
[+session pri=10r] fesh &
reopen /dev/con3
[+session pri=10r] fesh &

[+session] fesh &

Start a high priority shell just in case…

reopen /dev/con4
[+session pri=30r] fesh &

[pri=25 +session] fesh &

Start the main shell

reopen /dev/con1
[+session pri=10r] fesh &

[+session] fesh

[+session] login -p

}

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.2

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

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

Just incase someone needs floating point…

#fpemu.so.2

Include the socket library

libsocket.so

Include the hard disk files so we can access files on the disk

libcam.so
io-blk.so

filesystem required shared libs

cam-disk.so
fs-qnx4.so

Include the socket library

libsocket.so

Include the network files so we can access files across the net

devn-pcnet.so
npm-tcpip.so
npm-qnet.so


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

The files above this line can be shared by mutiple processes

###############################################################
[data=c]
seedres

Executables must currently be below this line

devc-con # Include a console driver
devb-doc # Include DiskOnChip driver.
devb-fdc
pci-bios # Include pci server

/bin/mount
/bin/fesh
/sbin/pipe
/sbin/mqueue

Include the network executables.

/sbin/io-net
/usr/sbin/fs-nfs2
/usr/sbin/fs-cifs
/usr/bin/telnet
/bin/netmanager
/bin/df
/bin/slay
/usr/bin/sleep
/usr/bin/ifconfig
/usr/bin/ping
/usr/bin/netstat
###############################################################

\


my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

I’m not 100% sure this is your problem, but I couldn’t find inetd in your
script. You need inetd for telnet to work.

HTH,

Jim


“Miguel Simon” <simon@ou.edu> wrote in message
news:3C23AB97.42B6FD37@ou.edu

Hi…

I have a file system mounted in a DiskOnChip which resides on an Adastra
small embedded computer. The build code is shown bellow, but I can not
telnet to my DOC. I have all the libraries that telnet, login need.

What do I have to have so that I can telnet to an embedded system?
Does any one know about a sample build file that includes the necessary
components so that we can telnet to that system? I guess that I need to
know what are the minimum necessary components or the script combination
such that I can telnet to an embedded system hosting a DOC or a SanDisk
or any other such solid state disks.

Thanks…

Best Regards…

Miguel.


###############################################################
[search=/sbin:/usr/sbin:/bin:/usr/bin:/lib:/lib/dll:/boot/sys]
[virtual=x86,bios +compress] boot = {

startup-bios -Nmachine-name

startup-bios -s 64k
PATH=/proc/boot:/bin:/sbin
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll procnto
}

[+script] startup-script = {
seedres

These env variables inherited by all the programs which follow

TERM=qansi
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll
DL_DEBUG=1

\

Start up some consoles

devc-con -n4 &
reopen /dev/con1

display_msg Welcome to Neutrino on an PC compatible BIOS system

Start the pci server

pci-bios &
waitfor /dev/pci

Network drivers and filesystems

io-net -dpcnet -ptcpip
waitfor /dev/io-net
sleep 2
ifconfig en0 10.2.108.203 netmask 255.255.255.0 up
waitfor /dev/socket
netmanager
sleep 2
mount -Tio-net -o"host=saic3.saic.com" npm-qnet.so

fs-nfs2 10.2:/usr/nto / 10.2:/ /usr/qnx4 &

Disk drivers (The default one and some fun others for your

pleasure…)
devb-doc -w:0xd4000
waitfor /dev/hd0t77

devb-doc blk automount=hd0t77:/ &

Wait for a bin for the rest of the commands (up to 30 secs)

mount /dev/hd0t77 /
waitfor /bin 30

Some common servers

pipe &
mqueue &
devc-pty &

Start some extra shells on other consoles

reopen /dev/con2
[+session pri=10r] fesh &
reopen /dev/con3
[+session pri=10r] fesh &

[+session] fesh &

Start a high priority shell just in case…

reopen /dev/con4
[+session pri=30r] fesh &

[pri=25 +session] fesh &

Start the main shell

reopen /dev/con1
[+session pri=10r] fesh &

[+session] fesh

[+session] login -p

}

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.2

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

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

Just incase someone needs floating point…

#fpemu.so.2

Include the socket library

libsocket.so

Include the hard disk files so we can access files on the disk

libcam.so
io-blk.so

filesystem required shared libs

cam-disk.so
fs-qnx4.so

Include the socket library

libsocket.so

Include the network files so we can access files across the net

devn-pcnet.so
npm-tcpip.so
npm-qnet.so


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

The files above this line can be shared by mutiple processes

###############################################################
[data=c]
seedres

Executables must currently be below this line

devc-con # Include a console driver
devb-doc # Include DiskOnChip driver.
devb-fdc
pci-bios # Include pci server

/bin/mount
/bin/fesh
/sbin/pipe
/sbin/mqueue

Include the network executables.

/sbin/io-net
/usr/sbin/fs-nfs2
/usr/sbin/fs-cifs
/usr/bin/telnet
/bin/netmanager
/bin/df
/bin/slay
/usr/bin/sleep
/usr/bin/ifconfig
/usr/bin/ping
/usr/bin/netstat
###############################################################

\


my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

Hi Jim…

Notice that I have a file system mounted, and inetd is in this file
system. So I suppose that this build file is not a good example.
Sufice it to say that I have, in the file system, all of the libraries
that telnet, login, inetd, ftp, tftp, etc. need. I suppose that what I
am missing is the script sequence that will enable me to telnet to the
embedded system. For example, do I have to use init or tinit
somewhere? If so, where and when?

However you are right that we need inetd present if I would have a build
file with no file system mounted. My question would then be, is there a
sample build file that shows the sequence necessary to get telnet to
work?

Regards…

Miguel.


Jim Lambert wrote:

I’m not 100% sure this is your problem, but I couldn’t find inetd in your
script. You need inetd for telnet to work.

HTH,

Jim

“Miguel Simon” <> simon@ou.edu> > wrote in message
news:> 3C23AB97.42B6FD37@ou.edu> …
Hi…

I have a file system mounted in a DiskOnChip which resides on an Adastra
small embedded computer. The build code is shown bellow, but I can not
telnet to my DOC. I have all the libraries that telnet, login need.

What do I have to have so that I can telnet to an embedded system?
Does any one know about a sample build file that includes the necessary
components so that we can telnet to that system? I guess that I need to
know what are the minimum necessary components or the script combination
such that I can telnet to an embedded system hosting a DOC or a SanDisk
or any other such solid state disks.

Thanks…

Best Regards…

Miguel.


###############################################################
[search=/sbin:/usr/sbin:/bin:/usr/bin:/lib:/lib/dll:/boot/sys]
[virtual=x86,bios +compress] boot = {

startup-bios -Nmachine-name

startup-bios -s 64k
PATH=/proc/boot:/bin:/sbin
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll procnto
}

[+script] startup-script = {
seedres

These env variables inherited by all the programs which follow

TERM=qansi
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll
DL_DEBUG=1

\

Start up some consoles

devc-con -n4 &
reopen /dev/con1

display_msg Welcome to Neutrino on an PC compatible BIOS system

Start the pci server

pci-bios &
waitfor /dev/pci

Network drivers and filesystems

io-net -dpcnet -ptcpip
waitfor /dev/io-net
sleep 2
ifconfig en0 10.2.108.203 netmask 255.255.255.0 up
waitfor /dev/socket
netmanager
sleep 2
mount -Tio-net -o"host=saic3.saic.com" npm-qnet.so

fs-nfs2 10.2:/usr/nto / 10.2:/ /usr/qnx4 &

Disk drivers (The default one and some fun others for your

pleasure…)
devb-doc -w:0xd4000
waitfor /dev/hd0t77

devb-doc blk automount=hd0t77:/ &

Wait for a bin for the rest of the commands (up to 30 secs)

mount /dev/hd0t77 /
waitfor /bin 30

Some common servers

pipe &
mqueue &
devc-pty &

Start some extra shells on other consoles

reopen /dev/con2
[+session pri=10r] fesh &
reopen /dev/con3
[+session pri=10r] fesh &

[+session] fesh &

Start a high priority shell just in case…

reopen /dev/con4
[+session pri=30r] fesh &

[pri=25 +session] fesh &

Start the main shell

reopen /dev/con1
[+session pri=10r] fesh &

[+session] fesh

[+session] login -p

}

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.2

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

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

Just incase someone needs floating point…

#fpemu.so.2

Include the socket library

libsocket.so

Include the hard disk files so we can access files on the disk

libcam.so
io-blk.so

filesystem required shared libs

cam-disk.so
fs-qnx4.so

Include the socket library

libsocket.so

Include the network files so we can access files across the net

devn-pcnet.so
npm-tcpip.so
npm-qnet.so


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

The files above this line can be shared by mutiple processes

###############################################################
[data=c]
seedres

Executables must currently be below this line

devc-con # Include a console driver
devb-doc # Include DiskOnChip driver.
devb-fdc
pci-bios # Include pci server

/bin/mount
/bin/fesh
/sbin/pipe
/sbin/mqueue

Include the network executables.

/sbin/io-net
/usr/sbin/fs-nfs2
/usr/sbin/fs-cifs
/usr/bin/telnet
/bin/netmanager
/bin/df
/bin/slay
/usr/bin/sleep
/usr/bin/ifconfig
/usr/bin/ping
/usr/bin/netstat
###############################################################

\


my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

Mario Charest wrote:

“Miguel Simon” <> simon@ou.edu> > wrote in message
news:> 3C23BDE8.690EED18@ou.edu> …

Hi Jim…

Notice that I have a file system mounted, and inetd is in this file
system.


Doesn’t matter, inetd is on the file system or in the image,
you need to start inetd.

Agreed. I start inetd manually or in the ifs image, doesn’t matter.
Still can not telenet to the embedded system. It closes the connection.

So, I suppose that a simplified question would be:

All I need to do so that I can telnet to an embedded system is start
inetd. Is this correct? Do I need any thing else other than inetd
(i.e. login, rlogin, etc.)?

A second related question would be:

Does any one have a minimal sample build file which (i.e. no package
manager), when installed as .boot, enables the system to host a telnet
section? I’ve tried different things to no avail.

Regards…

Miguel.


So I suppose that this build file is not a good example.
Sufice it to say that I have, in the file system, all of the libraries
that telnet, login, inetd, ftp, tftp, etc. need. I suppose that what I
am missing is the script sequence that will enable me to telnet to the
embedded system. For example, do I have to use init or tinit
somewhere?


No you don’t, you just need to start inetd. The fact that’s it on
the filesystem or in the image is irrelavant.

“Miguel Simon” <simon@ou.edu> wrote in message
news:3C23BDE8.690EED18@ou.edu

Hi Jim…

Notice that I have a file system mounted, and inetd is in this file
system.

Doesn’t matter, inetd is on the file system or in the image,
you need to start inetd.

So I suppose that this build file is not a good example.
Sufice it to say that I have, in the file system, all of the libraries
that telnet, login, inetd, ftp, tftp, etc. need. I suppose that what I
am missing is the script sequence that will enable me to telnet to the
embedded system. For example, do I have to use init or tinit
somewhere?

No you don’t, you just need to start inetd. The fact that’s it on
the filesystem or in the image is irrelavant.

If so, where and when?

However you are right that we need inetd present if I would have a build
file with no file system mounted. My question would then be, is there a
sample build file that shows the sequence necessary to get telnet to
work?

Regards…

Miguel.


Jim Lambert wrote:

I’m not 100% sure this is your problem, but I couldn’t find inetd in
your
script. You need inetd for telnet to work.

HTH,

Jim

“Miguel Simon” <> simon@ou.edu> > wrote in message
news:> 3C23AB97.42B6FD37@ou.edu> …
Hi…

I have a file system mounted in a DiskOnChip which resides on an
Adastra
small embedded computer. The build code is shown bellow, but I can
not
telnet to my DOC. I have all the libraries that telnet, login need.

What do I have to have so that I can telnet to an embedded system?
Does any one know about a sample build file that includes the
necessary
components so that we can telnet to that system? I guess that I need
to
know what are the minimum necessary components or the script
combination
such that I can telnet to an embedded system hosting a DOC or a
SanDisk
or any other such solid state disks.

Thanks…

Best Regards…

Miguel.


###############################################################
[search=/sbin:/usr/sbin:/bin:/usr/bin:/lib:/lib/dll:/boot/sys]
[virtual=x86,bios +compress] boot = {

startup-bios -Nmachine-name

startup-bios -s 64k
PATH=/proc/boot:/bin:/sbin
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll procnto
}

[+script] startup-script = {
seedres

These env variables inherited by all the programs which follow

TERM=qansi
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll
DL_DEBUG=1

\

Start up some consoles

devc-con -n4 &
reopen /dev/con1

display_msg Welcome to Neutrino on an PC compatible BIOS system

Start the pci server

pci-bios &
waitfor /dev/pci

Network drivers and filesystems

io-net -dpcnet -ptcpip
waitfor /dev/io-net
sleep 2
ifconfig en0 10.2.108.203 netmask 255.255.255.0 up
waitfor /dev/socket
netmanager
sleep 2
mount -Tio-net -o"host=saic3.saic.com" npm-qnet.so

fs-nfs2 10.2:/usr/nto / 10.2:/ /usr/qnx4 &

Disk drivers (The default one and some fun others for your

pleasure…)
devb-doc -w:0xd4000
waitfor /dev/hd0t77

devb-doc blk automount=hd0t77:/ &

Wait for a bin for the rest of the commands (up to 30 secs)

mount /dev/hd0t77 /
waitfor /bin 30

Some common servers

pipe &
mqueue &
devc-pty &

Start some extra shells on other consoles

reopen /dev/con2
[+session pri=10r] fesh &
reopen /dev/con3
[+session pri=10r] fesh &

[+session] fesh &

Start a high priority shell just in case…

reopen /dev/con4
[+session pri=30r] fesh &

[pri=25 +session] fesh &

Start the main shell

reopen /dev/con1
[+session pri=10r] fesh &

[+session] fesh

[+session] login -p

}

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.2

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

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

Just incase someone needs floating point…

#fpemu.so.2

Include the socket library

libsocket.so

Include the hard disk files so we can access files on the disk

libcam.so
io-blk.so

filesystem required shared libs

cam-disk.so
fs-qnx4.so

Include the socket library

libsocket.so

Include the network files so we can access files across the net

devn-pcnet.so
npm-tcpip.so
npm-qnet.so


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

The files above this line can be shared by mutiple processes

###############################################################
[data=c]
seedres

Executables must currently be below this line

devc-con # Include a console driver
devb-doc # Include DiskOnChip driver.
devb-fdc
pci-bios # Include pci server

/bin/mount
/bin/fesh
/sbin/pipe
/sbin/mqueue

Include the network executables.

/sbin/io-net
/usr/sbin/fs-nfs2
/usr/sbin/fs-cifs
/usr/bin/telnet
/bin/netmanager
/bin/df
/bin/slay
/usr/bin/sleep
/usr/bin/ifconfig
/usr/bin/ping
/usr/bin/netstat
###############################################################

\


my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

telnetd requires pty and termdef

Miguel Simon <simon@ou.edu> wrote:

Mario Charest wrote:

“Miguel Simon” <> simon@ou.edu> > wrote in message
news:> 3C23BDE8.690EED18@ou.edu> …

Hi Jim…

Notice that I have a file system mounted, and inetd is in this file
system.


Doesn’t matter, inetd is on the file system or in the image,
you need to start inetd.



Agreed. I start inetd manually or in the ifs image, doesn’t matter.
Still can not telenet to the embedded system. It closes the connection.

So, I suppose that a simplified question would be:

All I need to do so that I can telnet to an embedded system is start
inetd. Is this correct? Do I need any thing else other than inetd
(i.e. login, rlogin, etc.)?

A second related question would be:

Does any one have a minimal sample build file which (i.e. no package
manager), when installed as .boot, enables the system to host a telnet
section? I’ve tried different things to no avail.

Regards…

Miguel.



So I suppose that this build file is not a good example.
Sufice it to say that I have, in the file system, all of the libraries
that telnet, login, inetd, ftp, tftp, etc. need. I suppose that what I
am missing is the script sequence that will enable me to telnet to the
embedded system. For example, do I have to use init or tinit
somewhere?


No you don’t, you just need to start inetd. The fact that’s it on
the filesystem or in the image is irrelavant.

My public key can be found at
http://mama.indstate.edu/users/liug/key.txt

Hi Liu…

Thanks.

I have pty and termdef present.

I modified the build file as shown bellow, now I CAN telnet, but the line:

reopen /dev/con1
[+session pri=10r] sh /sbin/tinit &

blocks and never returns (I still have other shells however). This
means that the console # 1 does not become available. I’ve tried other
combinatios such as:

[+session pri=10r] /sbin/tinit &
[+session pri=10r] init &
[+session pri=10r] sh /sbin/tinit &

and a number of other ones, all more or less (less than more) successful
combinations.

I have:

/etc/termcap
/etc/shells
/usr/lib/terminfo
/etc/rc.d/*
/etc/system/*
/etc/passwd

etc…

Also, what is the diference between ‘init’ and ‘tinit’ ? What is the
correct way to invoque these?

Thanks…

Regards…

Miguel.



LiuG wrote:

telnetd requires pty and termdef

[search=/sbin:/usr/sbin:/bin:/usr/bin:/lib:/lib/dll:/boot/sys]
[virtual=x86,bios +compress] boot = {

startup-bios -Nmachine-name

startup-bios -s 64k
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib procnto -v

}

Once procnto is running it will mount the image filesystem and

run this script.

[+script] startup-script = {

Populate the kernel resource database

seedres

Start the PCI server for drivers that need pci.

display_msg “Starting pci-bios server…”
pci-bios &
waitfor /dev/pci

These env variables inherited by all the programs which follow

TERM=qansi
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib
DL_DEBUG=1

Start the standard PC console driver and

make it the default output (reopen).

display_msg “Starting up console driver…”
devc-con -n4 &
waitfor /dev/con1
reopen /dev/con1

Pipe provides pipe() services.

display_msg “Starting pipe manager…”
pipe &
mqueue &
devc-pty &
waitfor /dev/pipe

Start eide driver to get drive access.

display_msg “Starting eide driver…”
devb-eide blk automount=hd1t79:/ &
waitfor /bin 30

Network drivers and filesystems

display_msg “Starting Network driver…”
io-net -dspeedo -ptcpip
sleep 4
waitfor /dev/io-net
ifconfig en0 129.15.98.40 netmask 255.255.255.0 up
sleep 2
waitfor /dev/socket
route add -net default 129.15.98.1
#mount -Tio-net -o"bind=ip" -o"host=vmic.ou.edu" nomulticast /lib/dll/npm-qnet.so
mount -Tio-net -o"host=vmic.ou.edu" /lib/dll/npm-qnet.so
sleep 2
waitfor /net/vmic
netmanager
sleep 2
/usr/sbin/inetd /etc/inetd.conf
portmap
Nfsd

fs-nfs2 10.2:/usr/nto / 10.2:/ /usr/qnx4 &

#serial port
/sbin/devc-ser8250 -b 19200 -F 3f8,4 -F 2f8,3 &
waitfor /dev/ser1

welcome

display_msg “…”
display_msg “Welcome to Neutrino on an PC compatible BIOS system”
display_msg “…”

Start some extra shells on other consoles

reopen /dev/con2
[+session pri=10r] fesh &
reopen /dev/con3
[+session pri=10r] fesh &

[+session] fesh &

Start a high priority shell just in case…

reopen /dev/con4
[+session pri=30r] fesh &

[pri=25 +session] fesh &

Start the main shell

reopen /dev/con1
[+session pri=10r] sh /sbin/tinit &

[+session] fesh

[+session] login -p

}

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

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

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

Just incase someone needs floating point…

#fpemu.so

Include the socket library

libsocket.so

Include the hard disk files so we can access files on the disk

libcam.so
io-blk.so

filesystem required shared libs

cam-disk.so
cam-cdrom.so
fs-qnx4.so

Include the network files so we can access files across the net

#devn-speedo.so
#npm-tcpip.so
#npm-qnet.so


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

The files above this line can be shared by mutiple processes

###############################################################
[data=c]
seedres

Executables must currently be below this line

devc-con # Include a console driver
devc-pty
devb-eide # Include DiskOnChip driver.
pci-bios # Include pci server

/bin/mount
/bin/fesh
/sbin/pipe
/sbin/mqueue
/usr/bin/sleep
/usr/bin/ifconfig

Hi…

when I attempt to telnet into the sand disk which boots with the build
file shown bellow and containing a fylesystem with all the required
binaries and libraries, I get:

telnet icl1

Trying 129.15.98.40…
Connected to icl1.engr.ou.edu.
Escape character is ‘^]’.
load_object: attempt load of libsocket.so.2



…and the section dies. The folling is part of the build file:

Start the main shell

reopen /dev/con1
#[+session pri=10r] sh -c tinit &
[+session pri=10r] sh -c /etc/system/sysinit &

but does not work from a rtp machine. However, (to my surprise) if you
telnet from a Linux machine, all is fine (i.e. you can have a successful
telnet section). What gives?

Similarly, with an embedded system with a DiskOnChip I have:

Start the main shell

reopen /dev/con1
[+session pri=10r] fesh -c tinit &

This works more times that with the sandisk, but it fails at times.

Again, when I telnet to these systems from a Linux box all is fine.

This is confusing…


Any ideas?

Regards…

Miguel.




[search=/sbin:/usr/sbin:/bin:/usr/bin:/lib:/lib/dll:/boot/sys]
[virtual=x86,bios +compress] boot = {

startup-bios -s 64k
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib procnto -v

}

Once procnto is running it will mount the image filesystem and

run this script.

[+script] startup-script = {

Populate the kernel resource database

seedres

Start the PCI server for drivers that need pci.

display_msg “Starting pci-bios server…”
pci-bios &
waitfor /dev/pci

These env variables inherited by all the programs which follow

TERM=qansi
HOSTNAME=vmic
HOME=/
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib
DL_DEBUG=1

Start the standard PC console driver and

make it the default output (reopen).

display_msg “Starting up console driver…”
devc-con -n6 &
waitfor /dev/con1
reopen /dev/con1

Pipe provides pipe() services.

display_msg “Starting pipe manager…”
pipe &
mqueue &
devc-pty &
waitfor /dev/pipe

Start eide driver to get drive access.

display_msg “Starting eide driver…”
devb-eide blk automount=hd0t79:/ &
waitfor /bin 30

Network drivers and filesystems

display_msg “Starting Network driver…”
io-net -dspeedo -ptcpip
sleep 4
waitfor /dev/io-net
ifconfig en0 129.0.0.40 netmask 255.255.255.0 up
sleep 2
waitfor /dev/socket
route add -net default 129.0.0.1
mount -Tio-net -o"host=vmic.ou.edu" /lib/dll/npm-qnet.so
sleep 2
waitfor /net/vmic
netmanager
sleep 2
/usr/sbin/inetd /etc/inetd.conf
portmap
Nfsd

fs-nfs2 10.2:/usr/nto / 10.2:/ /usr/qnx4 &

#serial port
/sbin/devc-ser8250 -b 19200 -F 3f8,4 -F 2f8,3 &
waitfor /dev/ser1

welcome

display_msg
“…”
display_msg “Welcome to Neutrino on an VMIC cPCI system”
display_msg “…”

Start some extra shells on other consoles

reopen /dev/con2
[+session pri=10r] fesh &
reopen /dev/con3
[+session pri=10r] fesh &
reopen /dev/con4
[+session pri=15r] fesh &
reopen /dev/con5
[+session pri=20r] fesh &

[+session] fesh &

Start a high priority shell just in case…

reopen /dev/con6
[+session pri=30r] fesh &

[pri=25 +session] fesh &

Start the main shell

reopen /dev/con1
#[+session pri=10r] sh -c tinit &
[+session pri=10r] sh -c /etc/system/sysinit &

[+session] fesh

[+session] login -p
}

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

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

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

Just incase someone needs floating point…

#fpemu.so

Include the socket library

libsocket.so

Include the hard disk files so we can access files on the disk

libcam.so
io-blk.so

filesystem required shared libs

cam-disk.so
cam-cdrom.so
fs-qnx4.so

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

The files above this line can be shared by mutiple processes

###############################################################
[data=c]
seedres

Executables must currently be below this line

devc-con

Include a console driver

devc-pty
devb-eide # Include hd driver.
pci-bios

Include pci server

/bin/mount
/bin/fesh
/sbin/pipe
/sbin/mqueue
/usr/bin/sleep
/usr/bin/ifconfig