From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 7 20:32:50 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 50B184CE; Sun, 7 Sep 2014 20:32:50 +0000 (UTC) Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com [IPv6:2607:f8b0:400d:c04::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D29EA18EC; Sun, 7 Sep 2014 20:32:49 +0000 (UTC) Received: by mail-qg0-f47.google.com with SMTP id i50so310928qgf.34 for ; Sun, 07 Sep 2014 13:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=qjD/4mZXcqXbD3kRE4IBtfypR4RkfZJMeb+AvZdW7hA=; b=pO1by0zuUmKP+MGh5rTmgAnihkJkSf/CfejD9VLFVUYvbD41tdPJdz3KAY/6BYlUZW S1RYKfYh4BJ4HwzdqPcvhCH8b0tcPVMbv72Vkm66OxTb/XXEBzRUklbLNX6huUyIbPJJ jlpG/fQoMQWusCEpWWnkPkRZCg5fWMo+4bpGI7HDDipV73Qz16ZTwjQnJtsIhafCt8qg ULA9TGHrncuwsezw53bgytOw2Bl4673en6ifdFTUbgy1PEP46joVcUocQWOsuWoDSVf3 av0Xz7MPr9JsGLz1u4kT+QvQg9zVcO2STdVS5Nc9ayWqrH6niqhKlZQLkid13fbNCjwd h4jA== MIME-Version: 1.0 X-Received: by 10.224.151.69 with SMTP id b5mr36549971qaw.37.1410121968853; Sun, 07 Sep 2014 13:32:48 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.39.139 with HTTP; Sun, 7 Sep 2014 13:32:48 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Sep 2014 13:32:48 -0700 X-Google-Sender-Auth: xUycw52RJnT7I_ozjXhKuDhMrQA Message-ID: Subject: Re: Android Emulator for FreeBSD + FreeBSD/ARM port From: Adrian Chadd To: Alexander Tarasikov Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" , "freebsd-arm@freebsd.org" , Gavin Atkinson , freebsd-emulation@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 20:32:50 -0000 On 7 September 2014 11:01, Alexander Tarasikov wrote: > Hi, FreeBSD crowd! > > During summer as part of GSoC program I was working on porting FreeBSD > to the Android Emulator. Cool! > Besides, I have ported Android Emulator to run natively on x86_64 as opposed to > using linuxulator for 32-bit support. Double cool! > As for the kernel side, I have implemented the support for the > following hardware: > *IRQ, Timer, UART > *MMC > *Ethernet > *Framebuffer (using NEWCONS) Triple cool! > It allows to mount rootfs and boot up to login prompt with raspberry > pi sd card image. > > As for the emulator, it's a bit complicated. FreeBSD boots fine if you > launch the emulator on Linux or Mac OS X. I have fixed some parts of > the build system and headers to make it compile and pass the tests on > FreeBSD. Unfortunately, the GUI doesn't work right now and only > console output (virtual UART) works. > > If anyone is interested, I would like that you read my blog post, > review my kernel commit and suggest ways to improve and push the > changes upstream. As for the Emulator, I think we can get it running > with GUI and everything because it just has too many "#ifdef > __linux__" stuff around the code which should compile and run on > FreeBSD as well, we just need to gradually uncomment each of these > sections. > > Relevant links: > [kernel code commit] > https://github.com/astarasikov/freebsd/commit/514be1f08a552f54abef83232498559c72e1d33b > [README, compilation instructions] > https://github.com/astarasikov/freebsd/blob/android_goldfish_arm_master/sys/arm/goldfish/README > [Emulator with patches] > https://github.com/astarasikov/qemu/tree/l-preview-freebsd > [blog] http://allsoftwaresucks.blogspot.ru/2014/09/gsoc-results-or-how-i-nearly-wasted.html This work is awesome. I'll see if I can spin it up! -a