| 265 | [=#recovery] |
| 266 | = Creating a microSD recovery image = |
| 267 | If your primary boot won't boot for some reason (ie, you corrupted it during development) you can boot from a microSD (see [#bootdevice here]). |
| 268 | |
| 269 | To create a bootable microSD meant for recovery purposes only needing the Bootloader you can use [http://dev.gateworks.com/newport/boot_firmware/firmware-newport.img firmware-newport.img]: |
| 270 | * On a Linux host: |
| 271 | {{{#!bash |
| 272 | DEVICE=/dev/sdc # set to the microSD on your host |
| 273 | sudo dd if=firmware-newport.img of=$DEVICE |
| 274 | }}} |
| 275 | - '''Be careful to set the DEVICE above to the device the microSD appears as on your Linux host - you do not want to overwrite part of your hosts filesystem''' |
| 276 | * On a Newport board booted from eMMC from U-Boot: |
| 277 | {{{#!bash |
| 278 | mmc list # if booted from eMMC you should see microSD as dev 1 |
| 279 | mmc dev 1 # select microSD |
| 280 | tftpboot ${loadaddr} firmware-newport.img && mmc write ${loadaddr} 0 8000 |
| 281 | }}} |