|
|
Line 100: |
Line 100: |
| = Create a Recovery SD card = | | = Create a Recovery SD card = |
|
| |
|
| 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-sd-image''', which inherits '''var-default-image''' and adds the following files needed for installing to eMMC:
| | {{#switch: {{#var:RELEASE_NAME}} |
| | | | am62-yocto-dunfell-5.10.168_08.06.00.42-v1.2 |
| {{AM62_RECOVERY_SD_FILES}} | | | am62-yocto-dunfell-5.10.168_08.06.00.42-v1.1 |
| | | | am62-yocto-dunfell-5.10.168_08.06.00.42-v1.0 |
| By default, the image will be named '''var-recovery-sd-image-am62x-var-som.wic.zst'''. It can be overridden adding the '''RECOVERY_SD_NAME''' variable to local.conf. For example:
| | = {{CreateRecoverySDCard |
| | | | var-recovery-recipe = var-recovery-sd-image |
| echo 'RECOVERY_SD_NAME="{{#var:RECOVERY_SD_NAME_BASE}}"' >> conf/local.conf
| | }} |
| | | | #default |
| Build the image:
| | = {{CreateRecoverySDCard |
| | | | var-recovery-recipe = var-recovery-image |
| $ MACHINE=am62x-var-som bitbake var-recovery-sd-image | | }} |
| | | }} |
| Write it to an SD Card:
| |
| | |
| $ {{#var:UNZIP}} {{#var:DEPLOY_DIR}}/images/{{#var:MACHINE_NAME}}/var-recovery-sd-image-{{#var:MACHINE_NAME}}.wic.zst | sudo dd of=/dev/sdX bs=1M && sync | |
| Or, if the image name was overidden 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 | |
| <!--
| |
| Note: Some SD card duplicator machines do not support 64-bit filesystems. To build a recovery SD card image with 32-bit filesystems, add '''MKE2FS_NO_64="y"''' to '''conf/local.conf''' and rebuild the image:
| |
| | |
| $ echo 'KE2FS_NO_64="y"' >> conf/local.conf
| |
| -->
| |
|
| |
|
| = Recovery SD card and eMMC partition table = | | = Recovery SD card and eMMC partition table = |