Dear all,
I was using a PC/104 (advantech.net.au/products/PC … C91D8.aspx) for my project. it only has 1 ethernet port. My boot script is working fine.
However, I have got a new PC/104 (advantech.net.au/products/PC … 36A1C.aspx). I tried to apply the same boot script for this new PC/104. However it gives me error said that:
ifconfig: SIOCGIFFLAGS en0: no such device or address
I don’t know how to fix this. May I get some help please? Thanks a lot
Donald
[code][virtual=x86,bios +compress] boot = {
startup-bios
PATH=/proc/boot:/bin
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll procnto
}
[+script] startup-script = {
Programs require the runtime linker (ldqnx.so) to be at a fixed location
procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
display_msg Booting...
#System logger
slogger &
Start up some consoles
devc-con -n2 &
reopen /dev/con1
Start the PCI server
display_msg Starting PCI Server...
Seed system resources on x86 platforms
seedres
pci-bios &
waitfor /dev/pci
Some common servers
pipe &
mqueue &
devc-pty &
Start IDE and mount the flash disk in /usr/hdd
devb-eide blk automount=hd0t77:/usr/hdd &
#######################################################################
#serial driver #
#######################################################################
display_msg Starting Serial Com…
devc-ser8250 0x3F8,4 0x2F8,3 -t 8 -b 9600 &
# Start a debug server for debugging programs
waitfor /dev/ser1
waitfor /dev/ser2
stty par=none -ihflow -ohflow +cs8 stopb=1
#######################################################################
## network driver: Substitute your IP address for x.x.x.x
#######################################################################
display_msg Starting Networking…
io-pkt-v4 -d speedo duplex=1 -p tcpip &
waitfor /dev/socket
ifconfig en0 169.254.45.90 netmask 255.255.255.0
qconn port=8000
#Programs to run
/usr/hdd/IMU
# These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi
# Start some extra shells on other consoles
reopen /dev/con2
[pri=25 +session] sh &
reopen /dev/con1
[+session] sh
}
Make the /temp point to the shared memory area
[type=link] /dev/console=/dev/ser1
[type=link] /bin/sh=/proc/boot/ksh
[type=link] /tmp=/dev/shmem
Programs require the runtime linker (ldqnx.so) to be at a fixed location
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
[type=link] /lib/libm.so.2=/proc/boot/libm.so
libc.so.2
libc.so
libm.so
/lib/libhiddi.so.1
#For floating points
fpemu.so.2
#########################################################################
Networking
#########################################################################
libsocket.so
devn-speedo.so
devnp-shim.so
lsm-qnet.so
/usr/sbin/qconn
#########################################################################
uncomment for BLOCK driver
#########################################################################
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
fs-qnx6.so
fs-ext2.so
These programs need to be run only once from the boot image.
“data=uip” will waste less memory as the RAM from the boot
image will be used directly without making a copy of the data
(i.e. as the default “data=cpy” does). When they have been
run once, they will be unlinked from /proc/boot.
Seed system resources on x86 platforms
[data=c]
#########################################################################
general commands
#########################################################################
ls
pipe
pidin
ksh
slogger
slay
mqueue
#########################################################################
uncomment for serial
#########################################################################
devc-con
devc-pty
devc-ser8250
#########################################################################
uncomment for tcpip &pci
#########################################################################
pci-bios
pci
seedres
io-pkt-v4
ifconfig
ping
stty
#########################################################################
uncomment for BLOCK driver
#########################################################################
devb-eide
Use the “public domain korn shell” as the default shell “sh”
sh=ksh
/usr/hdd/IMU
#/usr/hdd/ssc4
[/code]