Well, I was hoping for something I could do inside the boot image. Anyway,
I tried this by including the necessary files in the boot image and writing
the following script:
devb-eide blk cache=2m,auto=none &
waitfor /dev/hd0 10
always wait 2 seconds
waitfor /dummy 2 2>/dev/null
if test -f /dev/hd1; then
mount -e /dev/hd0
mount -e /dev/hd1
waitfor /dummy 2 2>/dev/null
mount /dev/hd1t77 /
else
mount -e /dev/hd0
waitfor /dummy 2 2>/dev/null
mount /dev/hd0t77 /
fi
I need to support two configurations: first, /dev/hd0 is on the primary IDE
controller and /dev/hd1 is on the secondary, second, only /dev/hd0 on the
secondary IDE.
When the flash card is not installed on the primary IDE, the system boots up
and runs fine. When the card is installed on the primary, there are
problems. The “mount -e /dev/hd0” doesn’t work. I can only see /dev/hd0,
no partitions. No matter what combinations I’ve tried, I can not get QNX to
show me the partitions. I’ve tried types 11, 77, and 79.
I added extra waitfor’s to delay during the boot to make sure there is
enough time for stuff to initialize, but it didn’t help.
So, my new question is: why can’t I see the partitions on the primary IDE
controller’s disk when I boot from the secondary controlller?
Thanks,
Mark
“Igor Kovalenko” <kovalenko@comcast.net> wrote in message
news:es30ck$19c$1@inn.qnx.com…
rootfs=/dev/hd0
devb-eide blk cache=2m,automount=none
waitfor /dev/hd0
if [ -f /dev/hd1 ]; then
rootfs=/dev/hd1
fi
mount $rootfs /
– igor
“Mark Dornbush” <markxd(delme)@cyberdude.com> wrote in message
news:es2eoe$k21$> 1@inn.qnx.com> …
I’m booting of of a compact flash card on the secondary IDE controller on
an embedded board. Boot up is fine, everything is loaded the way I
expect. However, in our configuration, a removable flash card can be
installed on the primary IDE controller. When the extra card is
installed on the primary, QNX always wants to mount that card at ‘/’ but
I always want the card on the secondary IDE to be mounted at ‘/’. The
extra card is formatted FAT32.
I tried using the “ioport” and “automount” options to specify the proper
mount point that didn’t work:
devb-eide blk cache=2m,automount=hd0t77:/ eide ioport=170 &
Any suggestions on how to get the flash card on the secondary IDE
controller to always mount at ‘/’?
Thanks