Hello,
My goal is to write some script in order to restart devb-eide driver. Since 6.2 NC release doesn’t
include tools for rebuilding images and my system is very limited in RAM size, I still use 6.1A
release. I suppose the options for eide from /etc/system/enum/include/block are not used in 6.2
release also, isn’t it? So, there is no any way to pass parameters during start-up.
In order to move to new 6.2NC and don’t waste 6Mb for cache from total 32Mb of memory, I’m trying
the next script (QNX6.1A):
==========eide.rst================
#!/bin/sh
An useful function
function waitfor {
typeset -i i=0
while test $i -lt 60 -a ! $1 -ef $1 ; do
sleep 1 ;
let i=i+1 ;
done
unset i
}
Start ramdisk manager (just now anounced by RK)
/root/ramdisk/ramdisk &
waitfor /ramdisk
Copy required files to ramdisk
cp -p /x86/sbin/devb-eide /ramdisk/devb-eide
cp -p /x86/bin/mount /ramdisk/mount
Unmount automounted filesystems
umount -v -f /fs/*
Kill EIDE manager
slay devb-eide
Start EIDE manager
/ramdisk/devb-eide blk noatime,cache=1m,rmvto=3s,bufsz=512:32k,automount=/dev/hd1t79:/:qnx4 dos
noexec cam quiet &
waitfor /boot/fs/qnxbase.qfs
Mount base package of binaries
/ramdisk/mount -t qnx4 /boot/fs/qnxbase.qfs /pkgs/base
Mount a rest stuff (using ‘mount’ from /bin)
mount -t dos /dev/hd0t6 /fs/hd0-C
mount -t dos /dev/hd0t6.1 /fs/hd0-D
mount -t dos /dev/hd0t6.2 /fs/hd0-E
mount -t dos /dev/hd1t6 /fs/hd1-myC
Remove ramdisk
slay ramdisk
==========end of eide.rst================
I get
…/eide.rst[28]: cannot fork - try again
So it cannot launch devb-eide. I guess it is because there is no sh link nor ksh under /bin at this
time, no? How can I avoid this problem? After that error report I have normal shell prompt and all
is OK when I start the driver by hands from that prompt. Why?
Thanks in advance and sorry for stupid newbie’s questions
Eduard.
ed1k at ukr dot net