Confirmed users
699
edits
Line 125: | Line 125: | ||
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. | 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.) | 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.) | ||
Line 132: | Line 134: | ||
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. | 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! :) | 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! :) |