Jetson nano - KVM Acceleration - Android VM / Emulation Demo

Its found in the Issues:

I’m freezed on this error. Did u find it ? did u find a solution ?

[ 2.532754] init: init first stage started!
[ 2.535936] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt
[ 2.540632] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
[ 2.546246] init: Failed to fstab for first stage mount
[ 2.549616] init: Using Android DT directory /proc/device-tree/firmware/android/
[ 2.555116] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
[ 2.560762] init: First stage mount skipped (missing/incompatible/empty fstab in device tree)
[ 2.566906] init: Skipped setting INIT_AVB_VERSION (not in recovery mode)
[ 2.571227] init: execv(“/system/bin/init”) failed: No such file or directory
[ 2.593768] init: #00 pc 00000000000e90a0 /init
[ 2.599958] reboot: Restarting system with command ‘bootloader’

No. The problem was the startup of services was failing in a loop.
I stopped that line as I want to try proceed with Android 9 instead of 10 (sometime later).

In the meantime I found I could run Anbox on Jetson Nano. See here:

can u give a look inside your log ? I have the same problem as you,it reboots ciclically. So,you should have the same error that I have. Are u asking all around for a workaround ? I don’t want to resign for sure.

The problem with Android for me is that I don’t have a separate powerful machine to build android. Already I spent up $10 on an AWS VM to build that android 10 image and without success.

But I have focus on running armhf VM with KVM and GPU acceleration and I did succeed. Please see my post here for how to run armhf VM on jetson-nano.

you should be more careful when you wrote the commands that u issue. You skip a lot of steps and when I try to replicate,it fails. And u are missing the post with the problems that I found when I tried to replicate your steps. I have the powerful machine that u need to build android. I can make a remote account for you,so that u can work on mine. Go here and check the reason why Anbox does not work in my case :

Just a thought … If ChromeOS could be ported to the jetson devices it would certainly make things interesting as it has Android app support …

1 Like

I’ve thought the same,but after some research I’ve ended thinking that it’s more complicated to port Chrome OS than Android itself. Chrome needs some specific patches necessary to boot it that only a very experienced programmer can do.

1 Like

Yes. I am looking to see if Chromium OS (not ChromeOS) is runnable on qemu+kvm. I have had some discussions with chromium os developers on this topic:

1 Like

I know,but I have some doubts that chromium OS is good as chrome os for running the android apps. Yesterday I found a website that collects a lof of useful android images :

I think that the image that we need is the arm64,right ? there is also a qemu-kernel inside…I tried to boot it,without having success…give a look here :

1 Like

ChromiumOS does not have the Android Runtime and Play Store support. Its just a start.

For PC’s (x86) there are ways to convert this ChromiumOS to ChromeOS using a recovery image -

I think that the road that you have taken is a dead road for many reasons :

  1. chromium os is not easy at all to boot on the jetson nano
  2. chromium os does not support the android stuff,so for what it is useful ? your goal is not to run android on the nano ?
  3. your brunch framework runs on x86_64,it’s not good on the arm platform

yesterday I tried to boot android x86 with qemu-i386. it has been installed without problems,but it is not able to work at all. and even if it worked,it is very slow. I’m also trying some alternative roads,like trying to emulate android for the raspberry PI on the nano with qemu with the parameter raspi3 and kvm…we will lose 64 bit,but maybe it will work. what is working for sure with qemu is windows xp sp3 :P. I’ve read that windows xp supports the android emulator x86. but it will be too slow. it does not worth. It is very slow also the android emulator for arm64. Below I post some promising ideas that could be developed. I mean,try to emulate FydeOS and Lineage 16 with qemu and kvm. These are images which can emulate android on the raspberry. Since we know that we can emulate the raspberry on the nano,maybe with some efforts we can also emulate those images. As u can see,the chromium os is also involved.

or try to boot the old jedroid with qemu and kvm :P

Yes, I know it might be. They are just two parallel experiments I am up to…

I now have a AOSP build setup on my laptop and can try something. I have built the
branch with some difficulty on by 8GB laptop

My steps are as follows:

  1. See if I get same result as the images I built previously or if something different.
  2. If not working, analyze the manifest.xml file of the ant-micro to see what specific changes they have done and try to do the same for AOSP 9 version and check it.

Android x86 should run fine on any x86 system with virtualisation (not emulation). You can run it using qemu or VirtualBox on Windows or Linux. Emulation is too slow to be of any use.

All other options like running RPi image on nano using qemu wont work because the RPi hw is quite different (VideoCore GPU etc.) and qemu wont be able to virtualize it. At the most emulate it which will be pretty damn slow.

RPi has a large community and they why we see Android and Chromium OS ported to it. Jetson Nano itself will have less support from Nvidia in future

write me the commands that you issue for completing the ant micro tutorial. I’ve repeated a lot of times that tutorial but I still get a different error than you.

I have done nothing different from the ant-micro steps. Previously I was not able to build AOSP as my system didnt have sufficient resources. But now I am able to and am checking.

As I told you,I get a different output than you,so I do something different using the same tutorial or my environment is different than the one requested by the tutorial. I’m not able to understand why,since I don’t know anyone else who wants to try the tutorial. Me and you are trying to get the same result,to run Android on the jetson nano. But it seems to me that you want to work alone,you don’t seem to be available to collaborate closely with me. In addition,I’ve already offered to you the resources of my powerful PC to make the experiments,but you said no. I have built the AOSP image several times.

1 Like

I have latest JetPack 4.5.1 and latest QEMU built from sources with following config:

./configure --prefix=/usr/local --target-list=aarch64-softmmu,arm-softmmu,x86_64-softmmu --enable-kvm --enable-sdl --enable-virglrenderer --enable-opengl --enable-gtk --with-gtkabi=3.0 --enable-spice --enable-usb-redir --enable-libusb

No other difference I think

This never happens for me. It looks like the system could not find the init executable. Maybe the rsync command did not go through correctly. Retry the rsync with sudo.

rsync -avxHAX vendor-r{o,w}/

Must have sudo.

In your case the reboot is for a different reason:

[ 2.571227] init: execv(“/system/bin/init”) failed: No such file or directory

In my log it does not reboot but tries the startup sequence again and again. The main problem is starting the graphics driver…