Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Eliminating delays in the QNX Loaders
Ref. No. QNX.000009534
Category(ies) Utilities, Filesystem, Configuration
Issue Instructions on how to eliminate delays in the QNX Loaders
========================================================

The QNX Loader installs with a Primary and Secondary Loader.  The Primary Loader builds in a 2 second delay, so that the operator can choose which partition to boot from.  The secondary Loader builds in a 2 second delay so that the operater can choose the alternate boot.

The Primary Loader is always found on /dev/hd0, the Secondary Loader is always found on the boot partition, in this case, /dev/hd0t78.

To effectively eliminate the loader's delay, use the spatch utility on the required partitions.  See examples below.


Solution Primary Partition:
==================

a>      spatch /dev/hd0

Edit Next Prev Home Lastblk Goto Find Continue Save Addr Display Mark Quit

000001:000: FA 33 C0 8E D0 BC 00 7C  8B F4 8E C0 8E D8 FB FC  .3.....|........
000001:010: BF 00 06 B9 00 01 F2 A5  EA 1D 06 00 00 BE BE 07  ................
000001:020: B3 04 80 7C 00 80 74 0F  80 7C 00 00 75 1E 83 C6  ...|..t..|..u...
000001:030: 10 FE CB 75 ED CD 18 8B  54 00 8B 4C 02 8B EE 83  ...u....T..L....

000001:040: C6 10 FE CB 74 2E 80 7C  00 00 74 F3 BE 18 07 E8  ....t..|..t.....
000001:050: 02 00 EB FE 51 32 ED AC  8A C8 AC E8 04 00 E2 FA  ....Q2..........
000001:060: 59 C3 50 53 51 56 55 BB  07 00 B4 0E CD 10 5D 5E  Y.PSQVU.......]^
000001:070: 59 5B 58 C3 BE EE 07 2B  F5 D1 EE D1 EE D1 EE D1  Y[X....+........

000001:080: EE B8 31 00 03 C6 A2 84  07 BE 68 07 E8 C5 FF B9  ..1.......h.....
000001:090: 24 00 B4 01 55 51 CD 16  59 5D 75 17 06 BA 40 00  $...UQ..Y]u...@.
            ^^

b>      Find the above hex signature.

c>      Use the edit menu item to edit the above line.  Change the
        24 to 01

000001:0a0: 8E C2 26 8B 16 6C 00 26  3B 16 6C 00 74 F9 07 E2  ..&..l.&;.l.t...
000001:0b0: E1 EB 20 B4 00 CD 16 3C  31 72 18 3C 34 77 14 E8  .. ....<1r.<4w..

000001:0c0: A0 FF 2C 31 B4 00 D1 E0  D1 E0 D1 E0 D1 E0 BD EE  ..,1............
000001:0d0: 07 2B E8 B0 0D E8 8A FF  B0 0A E8 85 FF BF 05 00  .+..............
000001:0e0: 8B F5 8B 54 00 B2 80 8B  4C 02 BB 00 7C B8 01 02  ...T....L...|...
000001:0f0: 57 CD 13 5F 73 0D 33 C0  CD 13 4F 75 ED BE 30 07  W.._s.3...Ou..0.

BLOCK: /dev/hd0

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Secondary Partition:
====================

a>      spatch /dev/hd0t78

Edit Next Prev Home Lastblk Goto Find Continue Save Addr Display Mark Quit

000001:000: EB 4A 90 48 51 4E 58 34  46 53 20 00 02 01 EF FF  .J.HQNX4FS .....
000001:010: 01 40 00 00 00 F8 10 00  3F 00 40 00 C1 36 05 00  .@......?.@..6..
000001:020: C0 36 06 00 80 00 29 FA  7D 47 34 50 72 65 73 73  .6....).}G4Press
000001:030: 20 45 73 63 20 66 6F 72  20 61 6C 74 65 72 6E 61    Esc for alterna

000001:040: 74 65 20 4F 53 00 00 18  3F 00 00 00 E8 00 00 CD  te OS...?.......
000001:050: 12 83 E8 04 C1 E0 06 0E  1F 5E 83 EE 4F 8E C0 31  .........^..O..1
000001:060: FF B9 00 01 FA F3 A5 FB  06 68 6D 00 CB 0E 1F 0E  .........hm.....
000001:070: 17 BC 00 08 BE 2B 00 AC  08 C0 74 05 E8 75 01 EB  .....+....t..u..

000001:080: F6 A1 1A 00 F6 26 18 00  A3 27 00 B8 02 00 99 BF  .....&...'......
000001:090: 01 00 BB 00 02 E8 C0 00  8E D9 B9 24 00 B8 00 01  ...........$....
                                              ^^

b>      Find the above hex signature.

c>      Use the edit menu item to edit the above line.  Change the
        24 to 01

000001:0a0: CD 16 75 0C 8B 16 6C 04  3B 16 6C 04 74 FA E2 ED  ..u...l.;.l.t...
000001:0b0: 0E 1F BE 80 02 3C 1B 75  0E 80 0E 03 00 20 83 7C  .....<.u..... .|

000001:0c0: 70 00 74 03 83 C6 40 8B  4C 30 8B 44 14 8B 54 16  p.t...@.L0.D..T.
000001:0d0: BB 00 04 E8 82 00 8B 2E  0A 04 89 2E 29 00 8B 44  ............)..D
000001:0e0: 1C 8B 54 1E A3 00 04 89  16 02 04 C6 06 08 04 01  ..T.............
000001:0f0: 83 C6 14 EB 1E 83 C6 08  FE 0E 08 04 75 15 A1 00  ............u...

BLOCK: /dev/hd0t78

-----------------------------------------------------------------------------

Note: after making the above changes, it is still possible to chose the alternate boot, or a different boot partition - you just need to have the appropriate keys pressed before the boot loader messages come up on the screen.