Changes

Jump to: navigation, search

Hacking b2g on Raspberry Pi

289 bytes added, 03:33, 18 October 2014
Flashing b2g onto an SD card
You only need to follow these steps once. After your SD card is prepared for the first time, you can update it with new build files without removing it from your RPi. Those partial-update steps are described below.
 
Note: you may find it more convenient to simply flash an existing image, following the instructions above.
To flash an SD card with a B2G build for the first time, run the commands below. (If you built in a guest VM, be sure to follow the steps above to mirror your build into your host machine.)
You have to run the flash.sh command as superuser because it directly writes to your SD card block device. Follow the instructions and prompts presented by <code>flash.sh</code> to complete the setup process.
 
The script attempts to auto-detect your SD card. If it fails, then simply pass your SD card device to the script manually as follows
 
sudo DISK="/dev/your-sd-card" ./flash.sh -f
When the flashing script finishes, your SD card is ready. Congratulations! Remove it from your host machine, insert it into your Raspberry Pi and start up b2g! :)
Confirm
699
edits

Navigation menu