From owner-freebsd-questions@freebsd.org Tue Dec 1 22:15:08 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9534FA3C9B5 for ; Tue, 1 Dec 2015 22:15:08 +0000 (UTC) (envelope-from news@mips.inka.de) Received: from mail.inka.de (quechua.inka.de [IPv6:2001:7c0:407:1001:217:a4ff:fe3b:e77c]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DDEB1D1D for ; Tue, 1 Dec 2015 22:15:08 +0000 (UTC) (envelope-from news@mips.inka.de) Received: from mips.inka.de (news@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1a3tCS-0006n2-Ma; Tue, 01 Dec 2015 23:15:04 +0100 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.15.2/8.15.2) with ESMTP id tB1MAqoS014452 for ; Tue, 1 Dec 2015 23:10:52 +0100 (CET) (envelope-from news@lorvorc.mips.inka.de) Received: (from news@localhost) by lorvorc.mips.inka.de (8.15.2/8.15.2/Submit) id tB1MAqZV014451 for freebsd-questions@freebsd.org; Tue, 1 Dec 2015 23:10:52 +0100 (CET) (envelope-from news) To: freebsd-questions@freebsd.org From: Christian Weisgerber Newsgroups: list.freebsd.questions Subject: Flashing a phone with Firefox OS Date: Tue, 1 Dec 2015 22:10:52 +0000 (UTC) Lines: 56 Message-ID: X-Trace: lorvorc.mips.inka.de 1449007852 14092 ::1 (1 Dec 2015 22:10:52 GMT) X-Complaints-To: usenet@mips.inka.de User-Agent: slrn/1.0.2 (FreeBSD) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 22:15:08 -0000 If you want to use FreeBSD to flash your phone with Firefox OS... https://firefoxos.mozilla.community/devices/ ... you need to install these packages: bash android-tools-adb android-tools-fastboot And you'll want to apply the simple patch at the end of this message to circumvent some Linux-isms in Mozilla's flashing script. I've successfully used this to put Firefox OS onto a Nexus 5. Details on Firefox OS are sparse, but judging from the availability of Mozilla-maintained nightly builds, the Nexus 4 and Nexus 5 serve as the current development platforms. The Nexus 5 is a two-year old design with reasonable specs and it looks like the remaining stock is currently being sold, so this is an opportunity to jump on the Firefox OS bandwagon. diff -uNrp b2g-distro.orig/flash.sh b2g-distro/flash.sh --- b2g-distro.orig/flash.sh 2015-11-30 13:28:22.000000000 +0100 +++ b2g-distro/flash.sh 2015-11-30 21:36:50.038615000 +0100 @@ -1,10 +1,10 @@ -#!/bin/bash +#!/usr/local/bin/bash . load-config.sh test -f $DEVICE_DIR/flash.sh && . $DEVICE_DIR/flash.sh ADB=${ADB:-adb} -FASTBOOT=${FASTBOOT:-fastboot} +FASTBOOT=${FASTBOOT:-/usr/local/bin/fastboot} HEIMDALL=${HEIMDALL:-heimdall} VARIANT=${VARIANT:-eng} FULLFLASH=false @@ -33,7 +33,7 @@ run_fastboot() update_time() { - if [ `uname` = Darwin ]; then + if [ `uname` != Linux ]; then OFFSET=`date +%z` OFFSET=${OFFSET:0:3} TIMEZONE=`date +%Z$OFFSET|tr +- -+` diff -uNrp b2g-distro.orig/load-config.sh b2g-distro/load-config.sh --- b2g-distro.orig/load-config.sh 2015-11-30 13:28:22.000000000 +0100 +++ b2g-distro/load-config.sh 2015-11-30 21:32:36.328867000 +0100 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/local/bin/bin/bash if [[ ! -n "$B2G_DIR" ]]; then B2G_DIR=$(cd `dirname ${BASH_SOURCE[0]}`; pwd) -- Christian "naddy" Weisgerber naddy@mips.inka.de