Booting using devb-eide from the secondary IDE controller

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

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

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

Do you actually have partitions on your “optional” drive? Can you see them
when that drive is alone?

– igor

“Mark Dornbush” <markxd(delme)@cyberdude.com> wrote in message
news:es4u5r$bvc$1@inn.qnx.com

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

\

Yes, I do have a partition. Normally, it is a t11, FAT32. I even
reformatted it to be a QNX partition and tried again, no luck.

I can see the partitions if I boot the system to a hard drive.

“Igor Kovalenko” <kovalenko@comcast.net> wrote in message
news:es5kr8$p33$1@inn.qnx.com

Do you actually have partitions on your “optional” drive? Can you see them
when that drive is alone?

– igor

“Mark Dornbush” <markxd(delme)@cyberdude.com> wrote in message
news:es4u5r$bvc$> 1@inn.qnx.com> …
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



\

I removed devb-eide from my boot image and played around manually to see
what I could learn.

I found that running devb-eide with the “nobmstr” option will cause the card
on the primary IDE controller to not see any partitions. If I remove that
option I can see the partitions but devb-eide takes 5 minutes to start!

I have sloginfo for each case but I haven’t had a chance to go through them
yet.


“Mark Dornbush” <markxd(delme)@cyberdude.com> wrote in message
news:es4u5r$bvc$1@inn.qnx.com

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

\