Skip to content

Commit

Permalink
classes/image_types_meson: Fix image creation
Browse files Browse the repository at this point in the history
$IMAGE_NAME_SUFFIX no longer needs to be separately added to the image
name, so remove it otherwise the images are not created correctly and
will not boot.
  • Loading branch information
JPEWdev authored and superna9999 committed Jan 24, 2024
1 parent 622f44c commit 9c4acbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/image_types_meson.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ WIC_COMMAND = "wic_command_meson_gx"
WIC_COMMAND:amlogic-s400 = "wic_command_s400"

wic_command_meson_gx () {
dd if=${DEPLOY_DIR_IMAGE}/u-boot.bin.sd.bin of=$out${IMAGE_NAME_SUFFIX}.wic conv=notrunc bs=1 count=440
dd if=${DEPLOY_DIR_IMAGE}/u-boot.bin.sd.bin of=$out${IMAGE_NAME_SUFFIX}.wic conv=notrunc bs=512 skip=1 seek=1
dd if=${DEPLOY_DIR_IMAGE}/u-boot.bin.sd.bin of=$out.wic conv=notrunc bs=1 count=440
dd if=${DEPLOY_DIR_IMAGE}/u-boot.bin.sd.bin of=$out.wic conv=notrunc bs=512 skip=1 seek=1
}

wic_command_s400 () {
dd if=${DEPLOY_DIR_IMAGE}/u-boot.bin.mmc.bin of=$out${IMAGE_NAME_SUFFIX}.wic conv=notrunc bs=512 seek=1
dd if=${DEPLOY_DIR_IMAGE}/u-boot.bin.mmc.bin of=$out.wic conv=notrunc bs=512 seek=1
}

IMAGE_CMD:wic:append () {
Expand Down

0 comments on commit 9c4acbb

Please sign in to comment.