Date: Tue, 1 Dec 2015 22:10:52 +0000 (UTC) From: Christian Weisgerber <naddy@mips.inka.de> To: freebsd-questions@freebsd.org Subject: Flashing a phone with Firefox OS Message-ID: <slrnn5s6nc.dob.naddy@lorvorc.mips.inka.de>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnn5s6nc.dob.naddy>