Booting from SanDisk SD25?

Hi all,

Some our customers are experiencign the same troubles booting QNX4
from SanDisk SD25. The loader just says,

Press ESC for alternate OS …C

and hangs. IDE mode and partitioning are OK.

Did anyone meet anything like this? Wise advices greatly appreciated.

Thanks in advance.

  • Nick

Nikolai Gorbunov <n.gorbunov@swd.ru> wrote:

Hi all,

Some our customers are experiencign the same troubles booting QNX4
from SanDisk SD25. The loader just says,

Press ESC for alternate OS …C

and hangs. IDE mode and partitioning are OK.

Did anyone meet anything like this? Wise advices greatly appreciated.

Thanks in advance.

  • Nick

here’s a note i have that could help you… the C means a block is unreadable

A customer is having problems getting the QNX bootloader to
work.

here’s the sequence used recently to get an 8M SanDisk CompactFlash
card to work (your numbers may vary depending on the size of the card):

\

  1. Boot the host PC into QNX, and run the Pcmcia manager (Pcmcia.generic)

  2. Insert the CompactFlash card into the PCMCIA adapter, and insert the
    adapter into the PCMCIA socket

  3. Run the QNX “pin” utility. This will show the currently detected cards in
    the PCMCIA sockets. The CompactFlash card should be detected as follows:


    Sock Win Type Flags PID Base Size IRQ Base Size DMA
    1 0 ATA C—I-±-------W None 0x320 16 7
    2 Empty ----MF---------- None

Note : the values for Base and IRQ may be different, depending on your
particular PCMCIA configuration. If so, make note of the values,
and enter the appropriate values when performing step 5.

  1. Start the QNX Fsys driver (if not already running).

Fsys &

  1. Start the QNX Fsys.eide driver as follows (substitute values for -a and -i
    as determined by pin output if necessary):

Fsys.eide -v fsys -h2,32 -NFLASH -n0=flash eide -b -l -a0x320 -i7 -S &

A device called flash0 should appear under the /dev/ directory.

  1. Run the QNX fdisk utility as follows:

fdisk -z /dev/flash0

This will zero the existing partition table.

Once in fdisk, all 4 positions should be blank, with the arrow pointing at the
first position.

Press C (change). The cursor will go to the “type” field. Type 77 and press
Enter. The cursor will go to the “Start Cylinder” field, with 0 showing. Press
Enter. The “End Cylinder” field will show 244. Press Enter. The rest of the
fields will fill in, and the size will be 7M. Press B to make the partition
bootable. A * should appear under the “Boot” field. Press S to save the
changes. Fdisk will exit, and prompt you to reboot. Reboot the machine.

  1. Start the Fsys and Fsys.eide drivers as in steps 4 and 5.

  2. mount the partition (/dev/flash0) as follows:

mount -p /dev/flash0 /dev/flash0t77 /flash

The first time you do this procedure, you’ll likely get an error message
saying that the mount of /dev/flash0t77 failed (corrupted filesystem
detected), but /dev/flash0 will be mounted.

  1. Format the partition as follows:

dinit -h /dev/flash0t77

  1. Mount the filesystem partition:

mount /dev/flash0t77 /flash

You should now have a writeable filesystem under /flash.


11. create a boot image using the following build file:

sys/boot
$ boot -v

sys/Proc32
$ Proc32 -l 1

sys/Slib32
$ Slib32

sys/Slib16
$ Slib16

/bin/Fsys
$Fsys

/bin/Fsys.eide
$ Fsys.eide -vvv fsys -n0=san eide -a320 -i7

/bin/mount
$ mount -p /dev/san0 /dev/san0t77

/bin/sinit
$ sinit TERM=qnx


12. copy the new boot image to /.boot of the sandisk




\

Randy Martin randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579