Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX7/QEMU virt machine ARM64 with u-boot: loading kernel OK but stucks on Starting application... : (1 Item)
   
QNX7/QEMU virt machine ARM64 with u-boot: loading kernel OK but stucks on Starting application...  
IFS QNX image using mkifs builded successfully (ELF type, see attached to get full log)

[image=0x40000000]
[virtual=aarch64le,elf] boot = {
      startup-armv8_fm
      PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/lib/dll procnto-
smp-instr-safety
}

mkifs output: 

40000200    100     ----      --- Startup-header
40000300  11208 40000800      --- /tmp/file6FDyfo (1510146467)
40011308     5c     ----      --- Image-header
40011364   25c8     ----      --- Image-directory

I used mkimage to make the image bootable from u-boot

$mkimage -A arm64 -O QNX -T kernel -C none  -a 0x40000000 -e 0x40000000  -n Test QNX arm64 image -d aarch64le.bin uboot-
image.img

The image is recognized successfully by u-boot as ELF image but the boostrap process is blocked after the loading kernel
:

=> fatload nvme 0:1 0x40000000  .boot/uboot-image.img
20608792 bytes read in 10 ms (1.9 GiB/s)
=> bootm 0x40000000                                  
## Booting kernel from Legacy Image at 40000000 ...
   Image Name:   VRTE QNX arm64 image
   Created:      2019-01-25  10:34:11 UTC
   Image Type:   AArch64 QNX Kernel Image (uncompressed)
   Data Size:    20608728 Bytes = 19.7 MiB
   Load Address: 40000000
   Entry Point:  40000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
## Starting application at 0x40000800 ...

QEMU-configuration: 

$qemu-system-aarch64 -cpu cortex-a53 -machine virt,highmem=off -serial stdio -bios ../u-boot-2018.11/u-boot.bin -drive 
if=none,file=qnx-aarch64le-qemu.img,id=mydisk,format=raw -device nvme,drive=mydisk,serial=foo -device virtio-rng-pci -m 
1G -display none  -netdev user,id=net0 -device e1000,netdev=net0 -monitor none -smp 1 

Thank you!
Attachment: Text mkifs_mkdisk_output.log 22.12 KB