QNX7: Intel Generic x86_64 build crashes on bootup

Hi everyone,

I recently brought my QNX7 to the latest patch (QNX Version 7.0.4) from the ultra-conservative first version.

Any ideas how I can resolve this issue ?

Things I have tried:

  1. Rolling back to the firrt QNX7 image. (Works but not useful since I need the newest QNX7 patch with network QOS features).

  2. Tried the image on CentOS 7 KVM, VirtualBox and real physical hardware. (All failed with the latest patch).

  3. Tried to uninstalling the whole QNX SDP 7 and installing only the latest libc (failed this time…)

  4. Tried with the stock BSP package for Generic Intel X86, failed with the same error message as well.

  5. Tried ultraconservative, liberal, conservative setup all failed.[/list][/list]

Is this crashing on timestamp.c binary ? I tried to look at the library files, but looking at the header file, the error message matches what the console debug output saying goto to the SVN site for more details.

Any suggestions/help will be appreciated. I’m totally clueless now after trying out everything. Thanks in advance.


non UEFI or UEFI+CSM boot
LAPIC id: 0000
LAPIC addr: 0x00000000fee00000
Added /memory/lapic
ACPI header found for IO-APIC 1 @ 00000000fec00000 [base=0]
Added IO-APIC 1 @ 00000000fec00000 (vaddr: ffff808000002000)
Added 1 IOAPIC from ACPI tables
Base CPU interrupt for APIC is 48
lapic_configure(cpu=0), lapic_id: 0x00000000
amd LPC devfunc = ffffffff
Unknown vendor chipset, Generic IOAPIC config
Found 1 IOAPIC's ...
configuring IOAPIC id:1
Autofill: Only 16 of requested 24 entries available for profile 6
Search for ACPI INTSRC's
ACPI header found for Interrupt source override: bus:0, SrcIRQ:0, GSI:2, Flags:0                                                                                                                                                             0000000
** NEED A RESOLVER for ACPI INTSRC FLAGS **
[0] IOAPIC 1 intsrc: busid:0, busintr:0, gsi:2, flags:00000000
Overriding pin 2 intsrc @ idx 2

Clearing 24 IOAPIC entries

Configuring 24 IOAPIC entries
[0] vec: 54,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:0, type:0                                                                                                                                                             , flags:00000005
[1] vec: 55,   cpumask:00000001, ID: 1, busid:0, busintr:1, dest intin:1, type:0                                                                                                                                                             , flags:00000005
[2] vec: 56,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:2, type:0                                                                                                                                                             , flags:00000000
[3] vec: 57,   cpumask:00000001, ID: 1, busid:0, busintr:3, dest intin:3, type:0                                                                                                                                                             , flags:00000005
[4] vec: 58,   cpumask:00000001, ID: 1, busid:0, busintr:4, dest intin:4, type:0                                                                                                                                                             , flags:00000005
[5] vec: 59,   cpumask:00000001, ID: 1, busid:0, busintr:5, dest intin:5, type:0                                                                                                                                                             , flags:00000005
[6] vec: 60,   cpumask:00000001, ID: 1, busid:0, busintr:6, dest intin:6, type:0                                                                                                                                                             , flags:00000005
[7] vec: 61,   cpumask:00000001, ID: 1, busid:0, busintr:7, dest intin:7, type:0                                                                                                                                                             , flags:00000005
[8] vec: 62,   cpumask:00000001, ID: 1, busid:0, busintr:8, dest intin:8, type:0                                                                                                                                                             , flags:00000005
[9] vec: 63,   cpumask:00000001, ID: 1, busid:0, busintr:9, dest intin:9, type:0                                                                                                                                                             , flags:00000005
[10] vec: 64,   cpumask:00000001, ID: 1, busid:0, busintr:10, dest intin:10, typ                                                                                                                                                             e:0, flags:00000005
[11] vec: 65,   cpumask:00000001, ID: 1, busid:0, busintr:11, dest intin:11, typ                                                                                                                                                             e:0, flags:00000005
[12] vec: 66,   cpumask:00000001, ID: 1, busid:0, busintr:12, dest intin:12, typ                                                                                                                                                             e:0, flags:00000005
[13] vec: 67,   cpumask:00000001, ID: 1, busid:0, busintr:13, dest intin:13, typ                                                                                                                                                             e:0, flags:00000005
[14] vec: 68,   cpumask:00000001, ID: 1, busid:0, busintr:14, dest intin:14, typ                                                                                                                                                             e:0, flags:00000005
[15] vec: 69,   cpumask:00000001, ID: 1, busid:0, busintr:15, dest intin:15, typ                                                                                                                                                             e:0, flags:00000005
[16] vec: 70,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:16, type                                                                                                                                                             :0, flags:0000000f
[17] vec: 71,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:17, type                                                                                                                                                             :0, flags:0000000f
[18] vec: 72,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:18, type                                                                                                                                                             :0, flags:0000000f
[19] vec: 73,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:19, type                                                                                                                                                             :0, flags:0000000f
[20] vec: 74,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:20, type                                                                                                                                                             :0, flags:0000000f
[21] vec: 75,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:21, type                                                                                                                                                             :0, flags:0000000f
[22] vec: 76,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:22, type                                                                                                                                                             :0, flags:0000000f
[23] vec: 77,   cpumask:00000001, ID: 1, busid:0, busintr:0, dest intin:23, type                                                                                                                                                             :0, flags:0000000f
Interrupts routed to Boot CPU (APIC ID 0x00000000) by default
IOAPIC 1: successfully configured 24 vectors from 0 to 23
MSI interrupt = 0x00000100
MSI vector no = 78 0x0000004e
MSI vec count = 177
8254 selected for system clock on IRQ 2
Determine which IOAPIC INTPIN 8254 timer is connected to ...
        Try IOAPIC ID:1, gsi 0qtime interrupt 2
**checking smp_hwcoreid for cpu 0
found ACPI reset reg addr/value of 0000000000004050/00000010
using reset reg addr/value of 0000000000004050/00000010
Loading IFS...decompressing...done
Header size=0x00000108, Total Size=0x00000c38, #Cpu=1, Type=256
Section:system_private offset:0x000002a8 size:0x000000b8
  syspage ptr user:ffff808000003000 kernel:ffff808000006000
  cpupage ptr user:ffff8080000040d0 kernel:ffff8080000070d0 spacing:112
  kdebug info:0000000000000000 callback:0000000000000000 num_ready:0
  pagesize:00001000 flags:00000000, kdinfo:00000000 tracebuf:0000000000000000
Section:qtime offset:0x00000228 size:0x00000060
  boot:5d51805c CPS:00000000a76336c1 rate/scale:838095345/-15 intr:2
  flags:00000000 load:0 epoch:1970 rr_mul:0 adj count/inc:0/0
Section:callout offset:0x00000108 size:0x000000c0
  reboot:ffff808000006e42 power:0000000000000000 watchdog:0000000000000000
  timer_load:ffff808000006e90 reload:0000000000000000 value:ffff808000006eb3
  0) display:ffff808000006ecc poll:ffff808000006f0c break:ffff808000006f4f
  1) display:ffff808000006f8e poll:ffff808000006fce break:ffff808000007011
Section:cpuinfo offset:0x00000288 size:0x00000020 elsize:0x00000020
  0) cpu:000902ae flg:c037ffff spd:2827 hwid:00000000 cache i/d:255/255 name:168
Section:cacheattr offset:0x00000b38 size:0x00000000 elsize:0x00000020
Section:asinfo offset:0x00000678 size:0x00000340 elsize:0x00000020
  0000) 0000000000000000-000000000000ffff o:ffff a:0000 p:100 c:0 n:21
  0020) 0000000000000000-000fffffffffffff o:ffff a:0010 p:100 c:0 n:24
  0040) 0000000000000000-00000000ffffffff o:0020 a:0010 p:100 c:0 n:31
  0060) 0000000000000000-0000000000ffffff o:0020 a:0010 p:100 c:0 n:39
  0080) 0000000006000000-00000000ffefffff o:0020 a:0013 p:100 c:0 n:43
  00a0) 00000000fff00000-00000000ffffffff o:0020 a:0005 p:100 c:0 n:50
  00c0) 0000000000000000-000000000009fbff o:0060 a:0017 p:100 c:0 n:54
  00e0) 0000000000100000-0000000000ffffff o:0060 a:0037 p:100 c:0 n:54
  0100) 0000000001000000-0000000005ffffff o:0040 a:0037 p:100 c:0 n:54
  0120) 0000000006000000-00000000dffeffff o:0080 a:0017 p:100 c:0 n:54
  0140) 0000000100000000-000000011fffffff o:0020 a:0017 p:100 c:0 n:54
  0160) 00000000000e0000-00000000000e0023 o:0020 a:0007 p:100 c:0 n:58
  0180) 00000000fee00000-00000000fee003ef o:0020 a:0003 p:100 c:0 n:68
  01a0) 0000000001428038-000000000340152f o:0020 a:0005 p:100 c:0 n:187
  01c0) 0000000001400f30-0000000001428037 o:0020 a:0007 p:100 c:0 n:195
  01e0) 0000000001428038-000000000340152f o:0020 a:0007 p:100 c:0 n:203
  0200) 0000000000000000-00000000ffffffff o:ffff a:0010 p:100 c:0 n:211
  0220) 0000000000400000-00000000004eac10 o:0200 a:0000 p:100 c:0 n:219
  0240) 0000000000001000-000000000009fbff o:00c0 a:0007 p:100 c:0 n:225
  0260) 0000000000106000-0000000000108fff o:00e0 a:0007 p:100 c:0 n:225
  0280) 000000000010c640-0000000000dbcfff o:00e0 a:0007 p:100 c:0 n:225
  02a0) 0000000000dbe000-0000000000ffffff o:00e0 a:0027 p:100 c:0 n:225
  02c0) 0000000001000000-0000000001428037 o:0100 a:0007 p:100 c:0 n:225
  02e0) 0000000003401530-0000000005ffffff o:0100 a:0027 p:100 c:0 n:225
  0300) 0000000006000000-00000000dffeffff o:0120 a:0007 p:100 c:0 n:225
  0320) 0000000100000000-000000011fffffff o:0140 a:0007 p:100 c:0 n:225
Section:hwinfo offset:0x00000470 size:0x00000208
  0) size:3 tag:3(Group) isize:3, iname:0(hw), owner:65535, kids:3
  12) size:3 tag:17(Bus) isize:3, iname:9(unknown), owner:0, kids:2
  24) size:3 tag:17(Bus) isize:3, iname:74(pci), owner:0, kids:1
  36) size:4 tag:83(Device) isize:4, iname:78(bios), owner:24, kids:0
     00 00 00 00
  52) size:3 tag:17(Bus) isize:3, iname:39(isa), owner:0, kids:3
  64) size:3 tag:3(Group) isize:11, iname:90(disk), owner:52, kids:0
  76) size:4 tag:95(diskgeometry)
     00 09 ff 00 01 04 3f 00 10 fc fb 00
  92) size:4 tag:95(diskgeometry)
     01 09 ff 00 01 04 3f 00 10 fc fb 00
  108) size:3 tag:3(Group) isize:3, iname:108(misc), owner:52, kids:1
  120) size:4 tag:83(Device) isize:12, iname:113(pckbd), owner:108, kids:0
     00 00 00 00
  136) size:2 tag:119(irq)
     01 00 00 00
  144) size:6 tag:123(location)
     05 00 00 00 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  168) size:3 tag:3(Group) isize:3, iname:132(serial), owner:52, kids:1
  180) size:4 tag:83(Device) isize:21, iname:139(8250), owner:168, kids:0
     00 00 00 00
  196) size:2 tag:119(irq)
     04 00 00 00
  204) size:1 tag:144(pad)
  208) size:6 tag:123(location)
     07 00 00 00 f8 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  232) size:2 tag:119(irq)
     03 00 00 00
  240) size:6 tag:123(location)
     07 00 00 00 f8 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  264) size:3 tag:3(Group) isize:3, iname:108(misc), owner:12, kids:1
  276) size:4 tag:83(Device) isize:33, iname:148(in-use), owner:264, kids:0
     00 00 00 00
  292) size:1 tag:144(pad)
  296) size:6 tag:123(location)
     00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  320) size:6 tag:123(location)
     00 01 00 00 00 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  344) size:6 tag:123(location)
     00 40 03 00 00 00 0a 00 00 00 00 00 00 00 20 00 00 00 00 00
  368) size:6 tag:123(location)
     00 a0 02 00 00 60 0d 00 00 00 00 00 00 00 20 00 00 00 00 00
  392) size:2 tag:119(irq)
     0e 00 00 00
  400) size:2 tag:119(irq)
     0f 00 00 00
  408) size:3 tag:3(Group) isize:3, iname:155(rtc), owner:12, kids:1
  420) size:4 tag:83(Device) isize:11, iname:159(mc146818), owner:408, kids:0
     00 00 00 00
  436) size:1 tag:144(pad)
  440) size:6 tag:123(location)
     02 00 00 00 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Section:typed_strings offset:0x00000360 size:0x00000020
  off:0 type:5 string:'x86pc'
  off:12 type:2 string:'localhost'
Section:strings offset:0x00000380 size:0x000000f0
  [0]'hw' [3]'Group' [9]'unknown' [17]'Bus' [21]'io' [24]'memory' [31]'below4G'
  [39]'isa' [43]'device' [50]'rom' [54]'ram' [58]'acpi_rsdp' [68]'lapic'
  [74]'pci' [78]'bios' [83]'Device' [90]'disk' [95]'diskgeometry' [108]'misc'
  [113]'pckbd' [119]'irq' [123]'location' [132]'serial' [139]'8250' [144]'pad'
  [148]'in-use' [155]'rtc' [159]'mc146818' [168]'Intel 686 F6M1▒S10'
  [187]'imagefs' [195]'startup' [203]'bootram' [211]'virtual' [219]'vboot'
  [225]'sysram'
Section:intrinfo offset:0x000009b8 size:0x00000180 elsize:0x00000060
  0) vector_base:80010000, #vectors:6, cascade_vector:7fffffff
     cpu_intr_base:00000030, cpu_intr_stride:1, flags:0000, local_stride:16
      id => flags:0800, size:0000, rtn:ffff808000006c40
     eoi => flags:0000, size:002b, rtn:ffff808000006c40
     mask:ffff808000006c6b, unmask:ffff808000006ce4, config:ffff808000006d5d
  1) vector_base:8001ffff, #vectors:1, cascade_vector:7fffffff
     cpu_intr_base:0000002f, cpu_intr_stride:1, flags:0000, local_stride:16
      id => flags:0000, size:0005, rtn:ffff808000006d60
     eoi => flags:0000, size:0000, rtn:ffff808000006d65
     mask:ffff808000006d65, unmask:ffff808000006d6b, config:ffff808000006d6e
  2) vector_base:00000000, #vectors:24, cascade_vector:7fffffff
     cpu_intr_base:00000036, cpu_intr_stride:1, flags:0000, local_stride:0
      id => flags:0800, size:0000, rtn:ffff808000006d74
     eoi => flags:0000, size:002b, rtn:ffff808000006d74
     mask:ffff808000006d9f, unmask:ffff808000006dd5, config:ffff808000006e0b
  3) vector_base:00000100, #vectors:177, cascade_vector:7fffffff
     cpu_intr_base:0000004e, cpu_intr_stride:1, flags:0400, local_stride:0
      id => flags:0000, size:0000, rtn:ffff808000006e0e
     eoi => flags:0800, size:002b, rtn:ffff808000006e0e
     mask:ffff808000006e39, unmask:ffff808000006e3c, config:ffff808000006e3f
Section:smp offset:0x00000b38 size:0x00000000
Section:pminfo offset:0x00000b38 size:0x00000000
Section:mdriver offset:0x00000b38 size:0x00000000 elsize:0x00000030
Section:gdt offset:0x00000048
  base:ffff808000007140
00000000,00000000
00000000,00000000
b14004ff,00008210
00000000,00000000
0000ffff,00af9b00
0000ffff,00cf9300
0000ffff,00afbb00
0000ffff,00cfb300
00000000,00000000
0000ffff,00cffb00
0000ffff,00cff300
0000ffff,00affb00
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000
00000000,00000000

Section:idt offset:0x00000050
  base:ffff808000007640
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000
00200000,00000000

Section:pgdir offset:0x00000058
  Page Directory 0000000000dbd000

System page at phys:000000000010a000 user:ffff808000003000 kern:ffff808000006000
Starting next program at v000000000044172b
MMFLAGS=1

Shutdown[0,0] S/C/F=5/4/3 C/D=0000000000400290/00000000004e6f60 state(4c00)= now                                                                                                                                                              lock
QNX Version 7.0.4 Release 2019/06/07-21:00:46EDT KSB:0000000000000000
$URL: http://svn.ott.qnx.com/product/branches/7.0.0/BC700_6762_sdp704/services/s                                                                                                                                                             ystem/ker/timestamp.c $
x86_64 context[00000000004cfd00]:
0000: 00000000004d6f20 0000008000000000 00000000004cfe58 00000000004a7d20
0020: 0000000000000020 0000000000000000 0000000000dbd000 00000000004da3c0
0040: 00000000004cbc70 0000000000dbd000 00000000004cfdb5 00000000004a7410
0060: 0000000000000001 00000000004e6700 00000000004aa4b0 000000000043f072
0080: 0000000000000020 0000000000201046 00000000004cfe20 0000000000000028
instruction[000000000043f072] (x86_64_hat@1990):
eb 0a 52 b4 4a 00 00 00 00 00 c6 07 e9 94 fe ff ff 0f 1f 00 66 2e 0f 1f 84 00
stack[00000000004cfe20]:
0000:>00000000004cfe58 0000000000439c20 0000000000000000 0000000000000000
0020: 0000000000000000 0000000000428814 0000000000000000 ffff800004200000
0040: ffff8001041fffff 0000000000000000 0000000000000000 0000000000000000
0060: 0000000000000000 0000000000000000 0000000000000000 0000000000000000

I will have to check tomorrow what release/patch of QNX7 I am using but whatever it is I have it working fine on two x86_64 target machines now.

But if it is NOT 7.04 and moving to 7.04 breaks things I may be in trouble.

My QNX7 is quite recent - I got it about three months ago. I have not had any dramas with it with x86 except for a WAFER LX800 32-bit based processor. Won’t even try to boot. A desktop 32-bit was fine.

I also now have it working fine with the latest release of the Xilinx ZCU102 SBC (ARM A53 processor). A couple of quirks but no showstoppers.

Geoff.

Installing 7.0.4 has not been a happy experience for me either but I am not experiencing the crashes you are. In my case it’s looking for SMMU stuff all over the place. The ethernet driver won’t start because of this. I can’t build the xzynq serial driver because it can’t resolve a call to a function called smmu_init() - I have no idea what this function is or where it is.

I think it will be something stupid I have done so I am rolling back to 7.0.0 and will have another crack at it. I installed quite a few packages dated early August so I’ve probably done something silly. Another shot at this is justified but with one package at a time (starting with the updated kernel and clib) I think.

I was using BTW the “exprimental” 3 August generic x86_64 (there is no 32-bit BSP it seems). It doesn’t crash (as I said) but without the network (looks for devnp-e1000.so that in turn looks for this smmc stuff but can’t find it) it’s not of much use to me. I do get a shell so that is encouraging!

From what I understand the SMMC package is not mandatory.

Geoff.