init: execv(“/system/bin/init”) failed / No such file or directory / cyclic reboots while trying to virtualize android on my jetson nano
by marietto from LinuxQuestions.org on (#5FFWJ)
Hello.
I want to virtualize correctly Android 10 on top of my Jetson nano (arm64) using qemu and kvm on ubuntu 18.04. This is the tutorial that I'm following :
https://github.com/antmicro/kvm-aosp-jetson-nano
Unfortunately it ends with an error that it is a bug. It does not depend on my poor knowledge,even if I have it. There is another user on the nvidia forum that ended the tutorial with the same error. You can see the full log here :
[https://pastebin.com/xwrABAWr]
Unfortunately the developer of the github closed the bug section. This is the script that I use to run it :
Code:#!/bin/sh -e
qemu-system-aarch64 \
-machine virt,gic-version=host -cpu host -smp 4 -enable-kvm \
-append "console=ttyAMA0,38400 vt.global_cursor_default=0 androidboot.selinux=permissive debug drm.debug=0 androidboot.lcd_density=160" \
-m 3048 \
-kernel /root/Desktop/Work/I9/Android-arm/1/Image \
-initrd /root/Desktop/Work/I9/Android-arm/1/ramdisk.img \
-drive index=0,if=virtio,format=raw,id=system,file=/root/Desktop/Work/I9/Android-arm/1/system.img \
-drive index=1,if=virtio,format=raw,id=cache,file=/root/Desktop/Work/I9/Android-arm/1/cache.img \
-drive index=2,if=virtio,format=raw,id=userdata,file=/root/Desktop/Work/I9/Android-arm/1/userdata.img \
-netdev user,id=mynet,hostfwd=tcp::5401-:5555 -device virtio-net-pci,netdev=mynet \
-device qemu-xhci \
-device virtio-mouse-pci -device virtio-keyboard-pci \
-d guest_errors \
-serial mon:stdio \
-device ramfbI have compiled the Android files "system-rw.img" and "Image" and "following the instructions on the github and the other files that I have used (cache.img ; userdata.img ; ramdisk.img) are provided by the repo (no need to compile them). I've compiled everything on my Ubuntu 20.10 os. On my jetson nano is running with :
Code:root@ziomario-desktop:# ./jetsonInfo.py
NVIDIA Jetson Nano (Developer Kit Version)
L4T 32.5.1 [ JetPack UNKNOWN ]
Ubuntu 18.04.5 LTS Kernel Version: 4.9.201+
Xlib: extension "NV-GLX" missing on display ":1003.0".
Xlib: extension "NV-GLX" missing on display ":1003.0".
Xlib: extension "NV-GLX" missing on display ":1003.0".
CUDA 10.2.89
CUDA Architecture: 5.3
OpenCV version: 4.5.0
OpenCV Cuda: YES
CUDNN: 8.0.0.180
TensorRT: 7.1.3.0
Vision Works: 1.6.0.501 VPI: ii libnvvpi1 1.0.15 arm64 NVIDIA Vision Programming
Someone said to me : As you can see, it tries to boot the system by using the "fstab method". it maybe should be in the /system/etc/fstab. You have to populate the fstab correctly. Any help to understand how to do that ?


I want to virtualize correctly Android 10 on top of my Jetson nano (arm64) using qemu and kvm on ubuntu 18.04. This is the tutorial that I'm following :
https://github.com/antmicro/kvm-aosp-jetson-nano
Unfortunately it ends with an error that it is a bug. It does not depend on my poor knowledge,even if I have it. There is another user on the nvidia forum that ended the tutorial with the same error. You can see the full log here :
[https://pastebin.com/xwrABAWr]
Unfortunately the developer of the github closed the bug section. This is the script that I use to run it :
Code:#!/bin/sh -e
qemu-system-aarch64 \
-machine virt,gic-version=host -cpu host -smp 4 -enable-kvm \
-append "console=ttyAMA0,38400 vt.global_cursor_default=0 androidboot.selinux=permissive debug drm.debug=0 androidboot.lcd_density=160" \
-m 3048 \
-kernel /root/Desktop/Work/I9/Android-arm/1/Image \
-initrd /root/Desktop/Work/I9/Android-arm/1/ramdisk.img \
-drive index=0,if=virtio,format=raw,id=system,file=/root/Desktop/Work/I9/Android-arm/1/system.img \
-drive index=1,if=virtio,format=raw,id=cache,file=/root/Desktop/Work/I9/Android-arm/1/cache.img \
-drive index=2,if=virtio,format=raw,id=userdata,file=/root/Desktop/Work/I9/Android-arm/1/userdata.img \
-netdev user,id=mynet,hostfwd=tcp::5401-:5555 -device virtio-net-pci,netdev=mynet \
-device qemu-xhci \
-device virtio-mouse-pci -device virtio-keyboard-pci \
-d guest_errors \
-serial mon:stdio \
-device ramfbI have compiled the Android files "system-rw.img" and "Image" and "following the instructions on the github and the other files that I have used (cache.img ; userdata.img ; ramdisk.img) are provided by the repo (no need to compile them). I've compiled everything on my Ubuntu 20.10 os. On my jetson nano is running with :
Code:root@ziomario-desktop:# ./jetsonInfo.py
NVIDIA Jetson Nano (Developer Kit Version)
L4T 32.5.1 [ JetPack UNKNOWN ]
Ubuntu 18.04.5 LTS Kernel Version: 4.9.201+
Xlib: extension "NV-GLX" missing on display ":1003.0".
Xlib: extension "NV-GLX" missing on display ":1003.0".
Xlib: extension "NV-GLX" missing on display ":1003.0".
CUDA 10.2.89
CUDA Architecture: 5.3
OpenCV version: 4.5.0
OpenCV Cuda: YES
CUDNN: 8.0.0.180
TensorRT: 7.1.3.0
Vision Works: 1.6.0.501 VPI: ii libnvvpi1 1.0.15 arm64 NVIDIA Vision Programming
Someone said to me : As you can see, it tries to boot the system by using the "fstab method". it maybe should be in the /system/etc/fstab. You have to populate the fstab correctly. Any help to understand how to do that ?