Template:AM62-recovery-image: Difference between revisions
From Variscite Wiki
(Created page with "<includeonly> As mentioned above, the wic image only supports booting from an SD card. To flash an image to eMMC, Variscite provides an image '''{{{var-recovery-recipe}}}''',...") |
No edit summary |
||
Line 12: | Line 12: | ||
$ MACHINE=am62x-var-som bitbake {{{var-recovery-recipe}}} | $ MACHINE=am62x-var-som bitbake {{{var-recovery-recipe}}} | ||
Write it to an SD | Write it to an SD card: | ||
$ sudo umount /dev/sdX* | |||
$ {{#var:UNZIP}} {{#var:DEPLOY_DIR}}/images/{{#var:MACHINE_NAME}}/{{{var-recovery-recipe}}}-{{#var:MACHINE_NAME}}.wic.zst | sudo dd of=/dev/sdX bs=1M && sync | $ {{#var:UNZIP}} {{#var:DEPLOY_DIR}}/images/{{#var:MACHINE_NAME}}/{{{var-recovery-recipe}}}-{{#var:MACHINE_NAME}}.wic.zst | sudo dd of=/dev/sdX bs=1M && sync | ||
Or, if the image name was | Or, if the image name was overridden with RECOVERY_SD_NAME: | ||
$ {{#var:UNZIP}} {{#var:DEPLOY_DIR}}/images/{{#var:MACHINE_NAME}}/{{#var:RECOVERY_SD_NAME}} | sudo dd of=/dev/sdX bs=1M && sync | $ {{#var:UNZIP}} {{#var:DEPLOY_DIR}}/images/{{#var:MACHINE_NAME}}/{{#var:RECOVERY_SD_NAME}} | sudo dd of=/dev/sdX bs=1M && sync | ||
Replace sdX with the right device name. This can be obtained by "dmesg" command on your host Linux PC, after the SD card reader is inserted. | |||
</includeonly> | </includeonly> |