From owner-freebsd-ports@freebsd.org Wed Jul 11 16:17:37 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 108E61022172 for ; Wed, 11 Jul 2018 16:17:37 +0000 (UTC) (envelope-from a.andersson.thn@gmail.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93963798B4 for ; Wed, 11 Jul 2018 16:17:36 +0000 (UTC) (envelope-from a.andersson.thn@gmail.com) Received: by mail-io0-x234.google.com with SMTP id z19-v6so24246880ioh.4 for ; Wed, 11 Jul 2018 09:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xhO/8M8NugZA+GehYOhQ7zVZy5hip49hRfz74Du06c0=; b=EAurXvdglLFHp5HoRoG1KUKKkopm6zFg/lID5VdVRjobFrBMObBzfDFo1AjLCQuakz lBNUiYH+I3wC2D8kI45IFRcs+5NRzYkZ1ZdRpAd2zNg/couF/VCk6a0q9fqLnak14EiV nAQktnYwXvQdJ1+GF52I/oMGFvSpZe5Lun1I25NcBbO1w6817eJSz1mn04alVCxK+RiM yfLuLBCrm1hiSYVUHlKcu7iNGJzK+N39LsHjLHeX0dYGN5nFQb4YmjrMLqVinhbEiqR6 W4c4gl593Kg+iRjGqfpYAK9y+vaWUnPvJIjCnyo/DmLdrBDhxMGZpmKv89YzsAm4qPsW DQhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xhO/8M8NugZA+GehYOhQ7zVZy5hip49hRfz74Du06c0=; b=q/IzJsSwYEI+WTt2bmE5ArlF7BXMOLw1zWroG0vrwLS6ee/UVDrel2GKSXhzzPWbkc T9Bj89A4WxJSirLIfXG0+yovkWDOFMmJ8ddCFgR/pYW5UkWQHcv5aRVO9OWX6Zr+mf08 Ozjrp0ypAnJweVqAWeH5lSVaMtqsMzB+MIIA+A0takyVFtKf2IgLdGcQ7sVqhMV/laOu yHHEzKYt2eENwa4XuwuqMGl4w1OdqxKx9X9jkyZwGc+vz0yuV/qk2z9hVjogSdEHdcpB UGGaKDLdQMJuMeeYukPyFga1siBAK8sF8xQehI2NHuPAbojalDS10qriUTgve9GvxjK2 h7dQ== X-Gm-Message-State: APt69E32ZPo+0hXLTlfqlN4UObVwD/MDFX1qZAchTbR/D9ixzhfPj6B7 5AKmr+Ruh/cXISYhKqSIWpYXd8sf3/NCSafE7moQer1w X-Google-Smtp-Source: AAOMgpeOwQA7oAv8DMJ7aJTltIvcHkX53lWA2oO0cGQwbdmpwjdLpjAxMDZE1NNYIgSjDXGXo+LmWH+PJrTxdiVz2lg= X-Received: by 2002:a02:a60e:: with SMTP id c14-v6mr24013562jam.69.1531325855622; Wed, 11 Jul 2018 09:17:35 -0700 (PDT) MIME-Version: 1.0 From: Andreas Andersson Date: Wed, 11 Jul 2018 18:17:24 +0200 Message-ID: Subject: Android auto on FreeBSD RPI - Call for testing. To: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 16:17:37 -0000 ust a bit of background. There's a piece of software called openauto[1]. What it does is that it emulates an android auto headunit. With that comes libraries called aasdk[2]. How it works is that you connect this to your android phone - you need android auto app on your phone. If that is unavilable it still works if you download from apkmirror. I am in Sweden where this is not yet unavailable. And downloading that worked for me. So you connect android to the raspberry pi by means of usb. And this should get you and android headunit. I've tested this in virtualbox, which works with usb hotplugging of phone. However, I only have a RPI 3B+. So I cannot test it fully on FreeBSD. If you have the time and the hardware (preferably with the official rpi touchscreen) let me know if it works or not. There are a few kinks to these ports. AASDK needs ninja, which I've not yet added as a BUILD_DEP. I will, I just want to know if I should continue this work or not. The other kink is that you need to change RPI makefile to say RPI3_BUILD=true. it should work with earlier versions of raspberry as well. You also probably need raspberrypi-userland installed for this as you need libbcm_host.so to link against. For 3 and 3b+ there is no support as of now (it relies on 2d/3d-acceleration with OpenMAX, I will excerpt an email which I got from gonzo (Oleaksandr Tymoshenko) Videocore 4 GPU is supported on armv7 but not on arm64. So it works on older Raspberry Pi's like Pi1 and Pi2 but doesn't work on newer ones: Pi3B, Pi3B+, Pi2 v1.2. I have some work in progress but haven't completed it yet. Performance-wise it's more or less the same I'd say. I haven't done any benchmarks but people ported Kodi player to FreeBSD on RPi so it must be powerful enough :) As for general support of RPi3B+ in FreeBSD: it's more or less the same as RPi3B now. The network card driver, the only major support part except GPU, has been committed couple of weeks ago. Please let me know if this is working or not. [1] https://github.com/f1xpl/openauto [2] https://github.com/f1xpl/aasdk Take care /Andreas