copying kernel image to sd card failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

copying kernel image to sd card failed

跳至解决方案
2,274 次查看
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

 

标记 (5)
0 项奖励
回复
1 解答
2,248 次查看
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 项奖励
回复
2 回复数
2,249 次查看
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 项奖励
回复
2,240 次查看
iDave
Contributor II
Thank you. '4.3.5 Copying the kernel image and DTB file - Default VFAT partition' method works.
0 项奖励
回复