- Raspbian をダウンロード: Download Raspbian for Raspberry Pi
- full は非推奨だが lite でなくデスクトップでも良い
- Etcher でイメージを焼き込む balenaEtcher - Home
USB OTGを使ったRapsberry Pi Zero WH のセットアップ - Qiita
- 焼き込んだイメージの boot パーティーションをマウント
USB OTGを使ったRapsberry Pi Zero WH のセットアップ - Qiita
Format: Log Type - Time(microsec) - Message - Optional Info | |
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic | |
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.0-00261 | |
S - IMAGE_VARIANT_STRING=HAAAANAAA | |
S - OEM_IMAGE_VERSION_STRING=C-BPATTH | |
S - Boot Config, 0x000002e1 | |
S - Core 0 Frequency, 0 MHz | |
B - 1547 - PBL, Start | |
B - 3493 - bootable_media_detect_entry, Start | |
B - 176861 - bootable_media_detect_success, Start |
document.addEventListener('DOMContentLoaded', function () { | |
let{ spawn, sleep } = task; | |
spawn(function () { | |
const gpio = yieldnavigator.requestGPIOAccess(); | |
const sensor = gpio.ports.get(196); // Motion Sensor Data Pin: CN1 7 | |
const led = gpio.ports.get(198); // LED Anode Pin: CN1 9 | |
yield sensor.export('in'); | |
yield led.export('out'); | |
while (true) { | |
sensor.onchange = v => { |
# pref for useragent overrider https://addons.mozilla.org/ja/firefox/addon/user-agent-overrider/ | |
# Linux | |
Linux / Firefox 45: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 | |
Linux / Chrome 34: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36 | |
# Mac | |
Mac / Firefox 45: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Firefox/45.0 | |
Mac / Firefox 38: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Firefox/38.0 | |
Mac / Chrome 34: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36 |
{ | |
"app.reportCrashes": "always", | |
"app.update.interval": 86400, | |
"bluetooth.enabled": true, | |
"camera.sound.enabled": false, | |
"debug.console.enabled": true, | |
"debug.gaia.enabled": false, | |
"debugger.remote-mode": "adb-devtools", | |
"developer.menu.enabled": true, | |
"devtools.debugger.remote-enabled": true, |
#!/bin/bash | |
if [ ! -f locales/languages.json ]; then | |
wget -O locales/languages.json http://r.dynamis.jp/languages.json | |
fi | |
if [ ! -d locales/en-US ]; then | |
hg clone http://hg.mozilla.org/gaia-l10n/en-US locales/en-US | |
fi | |
if [ ! -d locales/ja ]; then | |
hg clone http://hg.mozilla.org/gaia-l10n/ja locales/ja |
{ | |
"en-US" : "English (US)", | |
"ja" : "日本語" | |
} |
// launch FM App | |
navigator.mozApps.mgmt.getAll().onsuccess = function() { | |
const appId = "app://fm.gaiamobile.org/manifest.webapp"; | |
var urls = []; | |
var apps = []; | |
var targetApp = null; | |
this.result.forEach(function(app) { | |
urls.push(app.manifestURL); | |
apps.push(app); | |
if (app.manifestURL==appId) { |
I/ThermalEngine( 236): Sensor:pa_therm0:39000 mC | |
I/WakeLock( 222): Request WakeLock : b2g | |
I/WakeLock( 222): Request WakeLock : b2g | |
I/Gecko ( 222): *** AUS:SVC Creating Downloader | |
E/GeckoConsole( 222): AUS:SVC Creating Downloader | |
I/Gecko ( 222): *** AUS:SVC UpdateService:_downloadUpdate | |
E/GeckoConsole( 222): AUS:SVC UpdateService:_downloadUpdate | |
I/Gecko ( 222): *** AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status | |
E/GeckoConsole( 222): AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status | |
I/Gecko ( 222): *** AUS:SVC Downloader:_selectPatch - found existing patch with state: null |
dynabook:dev dynamis$ adb devices -l | |
List of devices attached | |
LGOTMS19d9a863 device usb:1D110000 product:LGL25_jp_kdi model:LGL25 device:madai | |
dynabook:dev dynamis$ adb shell cat /system/b2g/defaults/pref/user.js | |
pref('browser.manifestURL', "app://system.gaiamobile.org/manifest.webapp"); | |
pref('b2g.system_manifest_url', "app://system.gaiamobile.org/manifest.webapp"); | |
pref('b2g.neterror.url', "app://system.gaiamobile.org/net_error.html"); | |
pref('browser.homescreenURL', "app://system.gaiamobile.org/index.html"); | |
pref('b2g.system_startup_url', "app://system.gaiamobile.org/index.html"); |