[virtual=x86,bios +compress] boot = { startup-bios -A -v -D8250..57600 -N WS3500 PATH=/proc/boot:/bin:/usr/bin LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll:/usr/lib procnto -fe } [+script] startup-script = { # These env variables inherited by all the programs which follow SYSNAME=nto TERM=qansi HTTPD_ROOT_DIR=/usr/www/pages HTTPD_SCRIPTALIAS=/usr/www/cgi-bin TZ=UTC00 # Start up some consoles devc-con -n4 & reopen /dev/con1 display_msg . display_msg ********************************************************* display_msg * Welcome to WS3500 QNX6.5.0 RTP [CON1] display_msg * RTU Test Build for Ethernet driver (November 2014) display_msg ********************************************************* display_msg Starting devc-ser8250... devc-ser8250 -b57600 -F -e -S 3f8,4 2f8,3 & # Start the main shell [+session] login -p & # [+session] sh & # Start a shell on PCCOM2/QNXser2/mCOM1 display_msg Starting /dev/ser2 (WS3500 COM1) shell... reopen /dev/ser2 display_msg .. display_msg ********************************************************** display_msg * Welcome to WS3500 QNX6.5.0 RTP [ser2/COM1] display_msg * RTU Test Build for Ethernet driver (November 2014) display_msg ********************************************************** #[+session] sh & [+session] conser2 & # Start the system log daemon, seems to work if started early... display_msg Starting slogger... slogger -l /tmp/slog,100k & # Start the pci server display_msg Starting pci server... seedres pci-bios & waitfor /dev/pci # Start the disc drivers. eide for CF and doc for DOC # Note: the incorrect driver will simply terminate. display_msg Starting Filesystem Driver... display_msg Starting devb-eide... devb-eide & #devb-eide blk cache=2m,automount=hd0t79:/,automount=cd0:/cd & # Mount DOC waitfor /dev/hd0t77 display_msg Mounting DOC/CF... mount /dev/hd0t77 / & waitfor /.boot # Set up Directory Permissions display_msg Setting Directory Permissions..... chmod 775 /bin chmod -R 775 /usr chmod 775 /dev chmod -R 775 /dll chmod -R 775 /etc display_msg Todays Date: date display_msg <-- # Some common servers display_msg Starting Common Servers... pipe & mqueue & devc-pty & # Wait for tep dir to set up log environment and RTC options waitfor /tmp # Set RTC Update #display_msg Setting /tmp/rtc_up... #touch /tmp/rtc_up & # Set CPU type display_msg Setting /tmp/cpu_doc... touch /tmp/cpu_doc & # Run chkfsys display_msg Running chkfsys... chkfsys -Pqrsu / # Run the WS3500 Applications start-up display_msg waitfor /usr/bin/filer #waitfor /usr/bin/filer } # Cheat and make the /temp point to the shared memory area... [type=link] /tmp=/dev/shmem # Some apps look for /bin (like ftpd) [type=link] /bin=/proc/boot [+raw] /etc/services { ftp-data 20/tcp ftp 21/tcp } # login looks here for commands to run on login [+raw] /etc/esh { } # Redirect console messages [type=link] /dev/console=/dev/ser2 # Programs require the runtime linker (ldqnx.so) to be at a fixed location [type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so # libsocket.so link needed by many. [type=link] /lib/libsocket.so=/lib/libsocket.so.2 # PPP needs this link #[type=link] /lib/dll/npm-pppmgr.so=/proc/boot/npm-pppmgr.so # We use the "c" shared lib (which also contains the runtime linker) libc.so # Required network libraries libsocket.so.2 #npm-ttcpip.so #small stack #npm-tcpip.so #npm-pppmgr.so devn-speedo.so devn-rtl.so devn-ne2000.so librpc.so.2 devn-vortex.so=./devn-vortex.so # Just incase someone needs floating point... New CPUs have FPU... fpemu.so.2 # Include the filesystem libs so we can access files on the disk/DOC libcam.so io-blk.so # filesystem required shared libs # For the QNX 4 filesystem cam-disk.so fs-qnx4.so libm.so.2 # The files above this line can be shared by mutiple processes # Copy code and data for all executables after this line [data=copy] # Executables must currently be below this line # Include a console driver devc-con # Include pci server pci-bios seedres # Use the "public domain korn shell" as the default shell "sh" # sh=ksh # This ksh shell locked up when serial port cable unplugged and # reconnected. The console would lockup! Besides its 70k(compressed) larger. # Use the smaller non-posix "Fat Embedded Shell" as the default shell "sh" # This fesh shell does not lock up with the start code reopen present. #sh=fesh # Try non-fat Embedded Shell sh=esh # Common servers: pipe mqueue pci devc-pty # Drivers: devc-ser8250 devb-doc=./devb-doc.5141 devb-eide mount # Error Log/DEBUG: slogger sloginfo syslogd shutdown # RTU Application Start-up: # start_gen=../../filesys/usr/bin/start_gen # For starting console without cable insertion hangup on ser2 conser2= C:/Deepain/conser2 #conser2=../../filesys/usr/bin/conser2 # setled=../../filesys/usr/bin/setled # Network Utils: ping ftpd slinger if_up pppd nicinfo rlogind ifconfig route io-pkt-v4 io-pkt-v4-hc fs-nfs3 # Misc Utils: rtc date ls cat pidin cp rm touch mkdir chmod chown login stty slay passwd df mv mkdir chkfsys telnet # End genrtu.build