network config for boot image

Hi. I’m having trouble getting an image file to install my network
drivers. I am including the ethernet chip device driver, but I don’t
think it’s in the right place because when the image is loaded I get the
following error:

unable to init dll devn-pcnet: No such file or directory

I am trying to make a bootable image to put on a floppy, my build file
is listed below. I tried making a [type=link] to the /usr/lib dir but
that doesn’t work, Where do I want to put the ethernet library so it
can be found?

build file

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
}

[+script] startup.script={

devc-con &
waitfor /dev/con1
reopen /dev/con1
io-net -dpcnet -pttcpip
waitfor /dev/socket

[+session] esh &
}

[type=link] /lib/dll/devn-pcnet.so = /usr/lib/devn-pcnet.so
[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so
[type=link] /tmp=/dev/shmem
[type=link] /dev/console = /dev/con1
[type=link] /x86/lib/libsocket.so=/proc/boot/libsocket.so

libc.so
libsocket.so

npm-ttcpip.so
devn-pcnet.so

[data=copy]
io-net
devc-con
esh
shutdown
ls
nicinfo
ping
nettrap

Ryan Fauth <ryan@fauth.com> wrote:
: Hi. I’m having trouble getting an image file to install my network
: drivers. I am including the ethernet chip device driver, but I don’t
: think it’s in the right place because when the image is loaded I get the
: following error:

: unable to init dll devn-pcnet: No such file or directory

: I am trying to make a bootable image to put on a floppy, my build file
: is listed below. I tried making a [type=link] to the /usr/lib dir but
: that doesn’t work, Where do I want to put the ethernet library so it
: can be found?

: # build file

: [virtual=x86,bios +compress] .bootstrap = {
: startup-bios
: PATH=/proc/boot procnto

Try defining LD_LIBRARY_PATH here. Change the above to something like:
PATH=/proc/boot LD_LIBRARY_PATH=/proc/boot:/dev/shmem procnto

: }

: [+script] startup.script={

: devc-con &
: waitfor /dev/con1
: reopen /dev/con1
: io-net -dpcnet -pttcpip

if you’re still having problems, you can pass the fullpath to io-net:
io-net -d /proc/boot/devn-pcnet.so -p /proc/boot/npm-ttcpip.so

-seanb

Ryan Fauth <ryan@fauth.com> wrote:

Hi. I’m having trouble getting an image file to install my network
drivers. I am including the ethernet chip device driver, but I don’t
think it’s in the right place because when the image is loaded I get the
following error:

unable to init dll devn-pcnet: No such file or directory

I am trying to make a bootable image to put on a floppy, my build file
is listed below. I tried making a [type=link] to the /usr/lib dir but
that doesn’t work, Where do I want to put the ethernet library so it
can be found?

Just a couple of things. You probably want to set the
LD_LIBRARY_PATH environment variable both in the startup
script (all files started will inherit this LD_LIBRARY_PATH)
and on the procnto line (procnto will use this to look for
libraries to load). Without it all dlls and shared objects
only get searched in the default path (which used to be
only /proc/boot if I remember correctly).

In addition you might want to set DL_DEBUG=1 to get some
verbose output which can help you to debug which libraries
are being loaded and which are failing.

Thomas

build file

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
^^^^^^^^^^^^^^^^^^^^^^^^

Try replacing with this:
PATH=/proc/boot LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll procnto

}

[+script] startup.script={

You can add the environment variables here to be inherited by all programs:
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll

Get DLL loading debug information.

DL_DEBUG=1

devc-con &
waitfor /dev/con1
reopen /dev/con1
io-net -dpcnet -pttcpip
waitfor /dev/socket

[+session] esh &
}

[type=link] /lib/dll/devn-pcnet.so = /usr/lib/devn-pcnet.so
[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so
[type=link] /tmp=/dev/shmem
[type=link] /dev/console = /dev/con1
[type=link] /x86/lib/libsocket.so=/proc/boot/libsocket.so

libc.so
libsocket.so

npm-ttcpip.so
devn-pcnet.so

[data=copy]
io-net
devc-con
esh
shutdown
ls
nicinfo
ping
nettrap

Thanks, getting all the paths correct did the trick

Thomas Fletcher wrote:

Ryan Fauth <> ryan@fauth.com> > wrote:
Hi. I’m having trouble getting an image file to install my network
drivers. I am including the ethernet chip device driver, but I don’t
think it’s in the right place because when the image is loaded I get the
following error:

unable to init dll devn-pcnet: No such file or directory

I am trying to make a bootable image to put on a floppy, my build file
is listed below. I tried making a [type=link] to the /usr/lib dir but
that doesn’t work, Where do I want to put the ethernet library so it
can be found?

Just a couple of things. You probably want to set the
LD_LIBRARY_PATH environment variable both in the startup
script (all files started will inherit this LD_LIBRARY_PATH)
and on the procnto line (procnto will use this to look for
libraries to load). Without it all dlls and shared objects
only get searched in the default path (which used to be
only /proc/boot if I remember correctly).

In addition you might want to set DL_DEBUG=1 to get some
verbose output which can help you to debug which libraries
are being loaded and which are failing.

Thomas

build file

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
^^^^^^^^^^^^^^^^^^^^^^^^
Try replacing with this:
PATH=/proc/boot LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll procnto
}

[+script] startup.script={

You can add the environment variables here to be inherited by all programs:
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll

Get DLL loading debug information.

DL_DEBUG=1

devc-con &
waitfor /dev/con1
reopen /dev/con1
io-net -dpcnet -pttcpip
waitfor /dev/socket

[+session] esh &
}

[type=link] /lib/dll/devn-pcnet.so = /usr/lib/devn-pcnet.so
[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so
[type=link] /tmp=/dev/shmem
[type=link] /dev/console = /dev/con1
[type=link] /x86/lib/libsocket.so=/proc/boot/libsocket.so

libc.so
libsocket.so

npm-ttcpip.so
devn-pcnet.so

[data=copy]
io-net
devc-con
esh
shutdown
ls
nicinfo
ping
nettrap