copying kernel image to sd card failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

copying kernel image to sd card failed

Jump to solution
1,857 Views
iDave
Contributor II

Hello, I am using imx8mm-evk, and testing to copy kernel image to sd card via dd command.

when I copy wic file(core-image-minimal) to sd card below, it boots well.

zstdcat core-image-minimal-imx8mm-lpddr4-evk-20231025060017.rootfs.wic.zst  | sudo dd of=/dev/sdb bs=1M conv=fsync status=progress

after I copied wic file, I copied kernel image(located /arch/arm64/boot/) from linux-imx below, but it doesn't boot after that.

sudo dd if=Image of=/dev/sdb bs=512 seek=2048 conv=fsync

is it right that the va seek parameter is 2048? 

 

The following image is booting with sdcard which is after copying kernel image.

iDave_0-1698393832284.png

 

0 Kudos
Reply
1 Solution
1,831 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @iDave 

bootloader would be located at the fixed offset, but the kernel is probably not. 

To load these individuals one-by-one, refer to the 4.3 Preparing an SD/MMC card to boot of Linux User guide.

 

Best regards

Harvey

View solution in original post

0 Kudos
Reply
2 Replies
1,832 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @iDave 

bootloader would be located at the fixed offset, but the kernel is probably not. 

To load these individuals one-by-one, refer to the 4.3 Preparing an SD/MMC card to boot of Linux User guide.

 

Best regards

Harvey

0 Kudos
Reply
1,823 Views
iDave
Contributor II
Thank you. '4.3.5 Copying the kernel image and DTB file - Default VFAT partition' method works.
0 Kudos
Reply