iMX6 u-boot with a SD card question

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

iMX6 u-boot with a SD card question

1,938 Views
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 Kudos
Reply
2 Replies

1,903 Views
tomsong
Contributor III

Hi Aldo,

     Thanks! It is very helpful.

     Regards,

     Tom

   

1,919 Views
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.