cant boot from compact flash (even if i follow qnx knowledge

this is getting really annoying … ive been tring to embed qnx on a
compact flash card for 2 weeks now with absolutly no sucess.
i suspect it can’t be done but just incase im missing somthing,
here’s what ive done…

  1. fdisk /dev/hd1 add qnx all

  2. fdisk /dev/hd1 boot qnx

  3. fdisk /dev/hd1 loader

  4. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77

  5. cd /fs/qnx-hd1

  6. mkdir boot

  7. cd boot
    :sunglasses: mkdir fs

  8. cd fs

  9. cp /boot/fs/qnxbase.qfs .

  10. touch /fs/qnx-hd1/.diskboot

and then i reboot

when it is done post it seeks the floppy and locks up…

nothing i have tried had made any difference . it just dies every
time…

is qnx compatible with compact flash or am i trying to do somthing
that is impossable??

vince

vince <lab-101@usa.net> wrote in message
news:clko1ts4skqs3k1g1n6r0mdf0r0kjqnvof@4ax.com

this is getting really annoying … ive been tring to embed qnx on a
compact flash card for 2 weeks now with absolutly no sucess.
i suspect it can’t be done but just incase im missing somthing,
here’s what ive done…

I had the same problem. We have a QNX support contract, so I contacted
my local tech support. He seemed to be already aware of the problem (in
the RTP boot loader, I think), and sent me a QNX4 boot disk I could use
fdisk and dinit from to make the flash drive bootable. He didn’t know when
this would be fixed in RTP.

I think it would be helpful if QNX acknowledged this problem.

Cheers
Philip Brown

On Thu, 23 Nov 2000 10:51:16 -0000, “Philip Brown”
<philip.brown@cursor-system.com> wrote:

vince <> lab-101@usa.net> > wrote in message
news:> clko1ts4skqs3k1g1n6r0mdf0r0kjqnvof@4ax.com> …

this is getting really annoying … ive been tring to embed qnx on a
compact flash card for 2 weeks now with absolutly no sucess.
i suspect it can’t be done but just incase im missing somthing,
here’s what ive done…


I had the same problem. We have a QNX support contract, so I contacted
my local tech support. He seemed to be already aware of the problem (in
the RTP boot loader, I think), and sent me a QNX4 boot disk I could use
fdisk and dinit from to make the flash drive bootable. He didn’t know when
this would be fixed in RTP.

I think it would be helpful if QNX acknowledged this problem.

Cheers
Philip Brown

hmmm… an embedded o/s that you can’t embed… that’s useful… i
would call that a LARGE bug… i am so annoyed by this… Ive Spent 3
months developing my app and now that im down to the last two weeks of
my project and only one task left i cant embed the stuped thing…
arrgghhh…

Just a stab in the dark. Is the compact flash setup to be the /dev/hd1
when you boot?

The QNX boot loader and only boot of bios drive C

vince <lab-101@usa.net> wrote:

this is getting really annoying … ive been tring to embed qnx on a
compact flash card for 2 weeks now with absolutly no sucess.
i suspect it can’t be done but just incase im missing somthing,
here’s what ive done…

  1. fdisk /dev/hd1 add qnx all

  2. fdisk /dev/hd1 boot qnx

  3. fdisk /dev/hd1 loader

  4. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77

  5. cd /fs/qnx-hd1

  6. mkdir boot

  7. cd boot
    :sunglasses: > mkdir fs

  8. cd fs

  9. cp /boot/fs/qnxbase.qfs .

  10. touch /fs/qnx-hd1/.diskboot

and then i reboot

when it is done post it seeks the floppy and locks up…

nothing i have tried had made any difference . it just dies every
time…

is qnx compatible with compact flash or am i trying to do somthing
that is impossable??

vince


cburgess@qnx.com

no… its only /dev/hd1 when im setting it up after that i disable the
hard drive on the primary master ide controller so that it becomes
/dev/hd0 on the secondary master ide controller…

On 23 Nov 2000 16:45:46 GMT, cburgess@qnx.com wrote:

Just a stab in the dark. Is the compact flash setup to be the /dev/hd1
when you boot?

The QNX boot loader and only boot of bios drive C

vince <> lab-101@usa.net> > wrote:

this is getting really annoying … ive been tring to embed qnx on a
compact flash card for 2 weeks now with absolutly no sucess.
i suspect it can’t be done but just incase im missing somthing,
here’s what ive done…

  1. fdisk /dev/hd1 add qnx all

  2. fdisk /dev/hd1 boot qnx

  3. fdisk /dev/hd1 loader

  4. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77

  5. cd /fs/qnx-hd1

  6. mkdir boot

  7. cd boot
    :sunglasses: > mkdir fs

  8. cd fs

  9. cp /boot/fs/qnxbase.qfs .

  10. touch /fs/qnx-hd1/.diskboot

and then i reboot

when it is done post it seeks the floppy and locks up…

nothing i have tried had made any difference . it just dies every
time…

is qnx compatible with compact flash or am i trying to do somthing
that is impossable??

vince

Previously, vince wrote in qdn.public.qnxrtp.os:
*

  • this is getting really annoying … ive been tring to embed qnx on a
  • compact flash card for 2 weeks now with absolutly no sucess.
  • i suspect it can’t be done but just incase im missing somthing,
  • here’s what ive done…
    1. fdisk /dev/hd1 add qnx all
    1. fdisk /dev/hd1 boot qnx
    1. fdisk /dev/hd1 loader
    1. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77
    1. cd /fs/qnx-hd1
    1. mkdir boot
    1. cd boot
  • :sunglasses: mkdir fs
    1. cd fs
    1. cp /boot/fs/qnxbase.qfs .

/* change this to */
cp /boot/fs/qnxbase.ifs .

and let me know the result

Charles Larence

\

    1. touch /fs/qnx-hd1/.diskboot
  • and then i reboot
  • when it is done post it seeks the floppy and locks up…
  • nothing i have tried had made any difference . it just dies every
  • time…
  • is qnx compatible with compact flash or am i trying to do somthing
  • that is impossable??
  • vince

Previously, Charles Lawrence wrote in qdn.public.qnxrtp.os:

  • Previously, vince wrote in qdn.public.qnxrtp.os:
    • this is getting really annoying … ive been tring to embed qnx on a
    • compact flash card for 2 weeks now with absolutly no sucess.
    • i suspect it can’t be done but just incase im missing somthing,
    • here’s what ive done…
      1. fdisk /dev/hd1 add qnx all
      1. fdisk /dev/hd1 boot qnx
      1. fdisk /dev/hd1 loader
      1. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77
      1. cd /fs/qnx-hd1
      1. mkdir boot
      1. cd boot
    • :sunglasses: mkdir fs
      1. cd fs
      1. cp /boot/fs/qnxbase.qfs .
  • /* change this to */
  • cp /boot/fs/qnxbase.ifs .
  • and let me know the result
  • Charles Larence
      1. touch /fs/qnx-hd1/.diskboot
        and this touch is done in / of bootable disk and it is diskroot.
    • and then i reboot
    • when it is done post it seeks the floppy and locks up…
    • nothing i have tried had made any difference . it just dies every
    • time…
    • is qnx compatible with compact flash or am i trying to do somthing
    • that is impossable??
    • vince

same result… no change

On Thu, 23 Nov 2000 13:00:11 -0500, Charles Lawrence
<clawrence@qnx.com> wrote:

Previously, Charles Lawrence wrote in qdn.public.qnxrtp.os:

  • Previously, vince wrote in qdn.public.qnxrtp.os:
    • this is getting really annoying … ive been tring to embed qnx on a
    • compact flash card for 2 weeks now with absolutly no sucess.
    • i suspect it can’t be done but just incase im missing somthing,
    • here’s what ive done…
      1. fdisk /dev/hd1 add qnx all
      1. fdisk /dev/hd1 boot qnx
      1. fdisk /dev/hd1 loader
      1. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77
      1. cd /fs/qnx-hd1
      1. mkdir boot
      1. cd boot
    • :sunglasses: > mkdir fs

      1. cd fs
      1. cp /boot/fs/qnxbase.qfs .
  • /* change this to */
  • cp /boot/fs/qnxbase.ifs .
  • and let me know the result
  • Charles Larence
      1. touch /fs/qnx-hd1/.diskboot
        and this touch is done in / of bootable disk and it is diskroot.
    • and then i reboot
    • when it is done post it seeks the floppy and locks up…
    • nothing i have tried had made any difference . it just dies every
    • time…
    • is qnx compatible with compact flash or am i trying to do somthing
    • that is impossable??
    • vince

Charles Lawrence <clawrence@qnx.com> wrote:

    1. fdisk /dev/hd1 add qnx all
    1. fdisk /dev/hd1 boot qnx
    1. fdisk /dev/hd1 loader
    1. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77
    1. cd /fs/qnx-hd1
    1. mkdir boot
    1. cd boot
  • :sunglasses: > mkdir fs

    1. cd fs
    1. cp /boot/fs/qnxbase.qfs .
    1. touch /fs/qnx-hd1/.diskboot

Here is the order that I used to use under QNX4 to make a disk-on-chip
bootable on an embedded system I used (taken from an auto-build script
so I hope I didn’t miss anything! )…

fdisk /dev/tffs0 add -f 4 QNX ALL
fdisk /dev/tffs0 loader
fdisk /dev/tffs0 boot QNX
fdisk /dev/tffs0 show

mount -p /dev/tffs0
dinit -h /dev/tffs0t77
dinit -h -b /dev/tffs0t77
dinit -h -f /boot/images/flash /dev/tffs0t77

dcheck -m /dev/tffs0t77


So, my guess is that you are missing the -b option to install the QNX
bootloader in your part above. I think that you can skip the mount
part since it should automount stuff on RtP - but I am not 100% sure what
the behaviour is. Let us know the results if you use these commands with
/dev/hd1 instead of /dev/tffs0.

chris

cdm@qnx.com > “The faster I go, the behinder I get.”

Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

i tried your method with the only variation being that i used /dev/hd1
rather than /dev/tffs0 because the compact flash is located on the ide
bus. now i get the <hit esc for alternate o/s> message and then my
floppy begins constantly seeking and a stream of ?'s are printed acros
the screen…

vince

On 24 Nov 2000 15:08:39 GMT, Chris McKillop <cdm@qnx.com> wrote:

Charles Lawrence <> clawrence@qnx.com> > wrote:
*

    1. fdisk /dev/hd1 add qnx all
    1. fdisk /dev/hd1 boot qnx
    1. fdisk /dev/hd1 loader
    1. dinit -f /boot/fs/qnxbase.ifs -h /dev/hd1t77
    1. cd /fs/qnx-hd1
    1. mkdir boot
    1. cd boot
  • :sunglasses: > mkdir fs

    1. cd fs
    1. cp /boot/fs/qnxbase.qfs .
    1. touch /fs/qnx-hd1/.diskboot

Here is the order that I used to use under QNX4 to make a disk-on-chip
bootable on an embedded system I used (taken from an auto-build script
so I hope I didn’t miss anything! )…

fdisk /dev/tffs0 add -f 4 QNX ALL
fdisk /dev/tffs0 loader
fdisk /dev/tffs0 boot QNX
fdisk /dev/tffs0 show

mount -p /dev/tffs0
dinit -h /dev/tffs0t77
dinit -h -b /dev/tffs0t77
dinit -h -f /boot/images/flash /dev/tffs0t77

dcheck -m /dev/tffs0t77


So, my guess is that you are missing the -b option to install the QNX
bootloader in your part above. I think that you can skip the mount
part since it should automount stuff on RtP - but I am not 100% sure what
the behaviour is. Let us know the results if you use these commands with
/dev/hd1 instead of /dev/tffs0.

chris

vince <vgeisler@engineer.com> wrote:

i tried your method with the only variation being that i used /dev/hd1
rather than /dev/tffs0 because the compact flash is located on the ide
bus. now i get the <hit esc for alternate o/s> message and then my
floppy begins constantly seeking and a stream of ?'s are printed acros
the screen…

Question marks indicate that the loader is getting errors trying
to load blocks from the boot device.

Some questions:

  1. Do you have a floppy in the drive?
  2. Have you ever booted this machine off the Compact Flash? (I mean
    with some other OS?) The QNX loader just calls into the BIOS to
    load blocks. Maybe your BIOS isn’t configured
  3. Maybe the BIOS and the OS have different ideas as to the geometry
    of your CF Drive? When you boot QRTP from disk, does the output
    of fdisk match wrt Heads, Cylinders etc match what the BIOS thinks?


cburgess@qnx.com

On 28 Nov 2000 04:47:33 GMT, cburgess@qnx.com wrote:

vince <> vgeisler@engineer.com> > wrote:
i tried your method with the only variation being that i used /dev/hd1
rather than /dev/tffs0 because the compact flash is located on the ide
bus. now i get the <hit esc for alternate o/s> message and then my
floppy begins constantly seeking and a stream of ?'s are printed acros
the screen…

Question marks indicate that the loader is getting errors trying
to load blocks from the boot device.

Some questions:

  1. Do you have a floppy in the drive?
    no but it makes no difference if i do or not
  2. Have you ever booted this machine off the Compact Flash? (I mean
    with some other OS?) The QNX loader just calls into the BIOS to
    load blocks. Maybe your BIOS isn’t configured
    i have tested dos, linux and bsd all work just fine
  3. Maybe the BIOS and the OS have different ideas as to the geometry
    of your CF Drive? When you boot QRTP from disk, does the output
    of fdisk match wrt Heads, Cylinders etc match what the BIOS thinks?
    perfect match.

If it is seeking floppy, you almost certainly have a problem with BIOS or
hardware. Unless of course, QNX loader is doing something very esoteric to
cause that effect, but I really doubt it. Which loader do you use, older one
or new one (8G) ? What kind of BIOS? What else do you have on IDE interface?
Can you boot QNX from another IDE device or floppy using the same image?

This sounds very odd and there is reasonable possibility that you’re doing
something wrong yourself. I have systems booting from CF without any
problems. If you want better support you should try harder to isolate the
problem and give them more hints. It would be very hard to guess what is
wrong just on information you’ve posted…

  • igor

“smeghead” <lab-101@usa.net> wrote in message
news:v4ll2t07980oqdkgie3n4ar6sdlv6gmnus@4ax.com

On 28 Nov 2000 04:47:33 GMT, > cburgess@qnx.com > wrote:

vince <> vgeisler@engineer.com> > wrote:
i tried your method with the only variation being that i used /dev/hd1
rather than /dev/tffs0 because the compact flash is located on the ide
bus. now i get the <hit esc for alternate o/s> message and then my
floppy begins constantly seeking and a stream of ?'s are printed acros
the screen…

Question marks indicate that the loader is getting errors trying
to load blocks from the boot device.

Some questions:

  1. Do you have a floppy in the drive?
    no but it makes no difference if i do or not
  2. Have you ever booted this machine off the Compact Flash? (I mean
    with some other OS?) The QNX loader just calls into the BIOS to
    load blocks. Maybe your BIOS isn’t configured
    i have tested dos, linux and bsd all work just fine
  3. Maybe the BIOS and the OS have different ideas as to the geometry
    of your CF Drive? When you boot QRTP from disk, does the output
    of fdisk match wrt Heads, Cylinders etc match what the BIOS thinks?
    perfect match.