| 234 | [=#serial-microSD-uboot] |
| 235 | === Update Firmware via Serial Console and microSD from Bootloader === |
| 236 | Adapting what we know from updating firmware via serial console and ethernet, if no TFTP server/ethernet is available we can use a similar method to write a compressed disk image from microSD or USB to the eMMC. |
| 237 | |
| 238 | For example when booted from eMMC, to flash the eMMC with a compressed disk image stored on an ext4 formatted microSD: |
| 239 | |
| 240 | {{{#!bash |
| 241 | ext4load mmc 1:1 ${loadaddr} bionic-newport.img.gz && gzwrite mmc 0 ${loadaddr} ${filesize} #mmc 1 is microSD, mmc 0 is eMMC |
| 242 | }}} |