iMX6 u-boot with a SD card question

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

iMX6 u-boot with a SD card question

1,919 次查看
tomsong
Contributor III

Hi,

     In order to flash U-boot to SD card the following two commands are given:

    sudo dd if=SPL of=/dev/sdc bs=1k seek=1

    sudo dd if=u-boot.img of=/dev/sdc bs=1k seek=69

     I understand the seek=1 in the first command which is to satisfy the 0x400 offset requirement of SD card (https://github.com/lentinj/u-boot/blob/master/doc/README.imximage). How about seek=69 in the second command? Can this offset be changed? If not where is the requirement documented?

    Thanks!

   

0 项奖励
回复
2 回复数

1,884 次查看
tomsong
Contributor III

Hi Aldo,

     Thanks! It is very helpful.

     Regards,

     Tom

   

1,900 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Yes it can be changed it depends on how you build your SPL, you may take a look here:
https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx6_spl.h?h=lf_v2022.04

Answering your original question 69 is the offset for uboot if SPL is used in the above file is explained as well.

Best regards,
Aldo.