From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shannon Zhao Subject: Re: Android on virt device Date: Thu, 2 Mar 2017 21:08:53 +0800 Message-ID: <58B81965.6070402@huawei.com> References: <6e04464a-9570-7d62-4bf4-9bbc1fb46e6b@gmail.com> <20170302130442.GL1409@cbox> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 6182A40B8B for ; Thu, 2 Mar 2017 08:10:29 -0500 (EST) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0EtPS8tKYpsZ for ; Thu, 2 Mar 2017 08:10:28 -0500 (EST) Received: from dggrg01-dlp.huawei.com (unknown [45.249.212.187]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 6027740A74 for ; Thu, 2 Mar 2017 08:10:24 -0500 (EST) In-Reply-To: <20170302130442.GL1409@cbox> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Christoffer Dall , Roman Livshits Cc: kvmarm@lists.cs.columbia.edu List-Id: kvmarm@lists.cs.columbia.edu On 2017/3/2 21:04, Christoffer Dall wrote: > On Sun, Feb 26, 2017 at 12:12:35PM +0200, Roman Livshits wrote: >> Hi >> >> I am trying to run Android on qemu virt machine. >> I want to use virt as this was used by the op-tee for implementing >> TEE for ARM TrustZone, see >> https://github.com/OP-TEE/build#op-tee-buildgit, so hope that >> running Android on virt would be easier comparing to putting op-tee >> to ranchu, used by Android emulator >> (http://www.linaro.org/blog/core-dump/running-64bit-android-l-qemu/). >> >> Is there any advice how to do this? >> > > You'd need an Android guest kernel that runs on the virt board and you > may also need some userspace changes, because I believe the initial user > deamons in Android loads libraries and hardware management layers based > on the machine name (e..g Ranchu). > > The biggest challenge, however, is probably going to get the number of > devices needed to get Android booting properly so that you can interact > with it working on the virt board. For example, I'm not sure how you > plan on dealing with the framebuffer/graphics. > > Personally, for a quick solution, I would probably go the other route > and first try to make Android run under KVM using the Ranchu device > without any secure component. Then I would look at bringing together > the work in whichever of the two platforms you prefer. > > The Ranchu platform should be relatively similar to the virt platform, > so I wouldn't expect too much work in getting OP-TEE compiled and > running with Ranchu. > Maybe another way is porting the goldfish framebuffer to virt machine. Thanks, -- Shannon