u-boot i.MX6qsabresd

cancel
Showing results for 
Search instead for 
Did you mean: 

u-boot i.MX6qsabresd

Jump to solution
4,258 Views
matthiasniederm
Contributor II

Hello,

i compiled u-boot with:

  1. the linaro toolchain (gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux.tar.bz2)

    I have a Problem. If copied the compilied u-boot to sd-card it does not boot up.
    These are my steps:
    $ export ARCH=arm
    $ export CROSS_COMPILE=/home/matt/gcc-linaro/bin/arm-linux-gnueabi-
    $ make mx6qsabresd_config
    $ make all

    After that I copied u-boot to the SD-Card
    $ dd if=u-boot.bin of=/dev/sdb bs=512 seek=2 skip=2 conv=fsync
  2. Yocto (respectively the whole core-image-minimal)
    If I copy the whole Image all runs great, but if I only copy u-boot nothing happens.


On both methodes the board does not boot up. Any suggestions what I am doing wrong?

Regards

MaTT

Labels (4)
1 Solution
364 Views
fabio_estevam
NXP Employee
NXP Employee

You should copy the u-boot.imx binary with the following command:

sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=512 seek=2; sync

View solution in original post

8 Replies
365 Views
fabio_estevam
NXP Employee
NXP Employee

You should copy the u-boot.imx binary with the following command:

sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=512 seek=2; sync

View solution in original post

364 Views
fabio_estevam
NXP Employee
NXP Employee

The line I provided earlier is for the 2013 U-boot, not the 2009.08 one.

0 Kudos
364 Views
Rajput1z
Contributor II

Hai Fabio..

       " The line I provided earlier is for the 2013 U-boot, not the 2009.08 one."

     i am having problem with 2009 u-boot.bin ,

   i am working with i.mx53smd custom board. and i am having issue with u-boot.bin . i am using u-boot 2009-8 version with Freescale u-boot related patches(r10.4) . as per processor manual i am copying by using (dd if=u-boot.bin of=<sdcard "/dev/sdX"> bs=512 seek=2 )u-boot.bin at 0x400 location in sd card , but i am unable to get console.

        Again i tried to compile u-boot 2013 for my i.mx53 custom board and generated u-boot.imx and copied same 0x400 location it is working fine , but u-boot.bin not executing for both 2009 and 2013.

       so please help me !!!!!!

0 Kudos
364 Views
LeonardoSandova
Specialist I

Hi Rajput,

Make sure the u-boot.bin has NO padding. If it has, just add skip=2 into the dd command.

Leo

0 Kudos
364 Views
Rajput1z
Contributor II

Hi Leo,

    i tried  "dd if=u-boot.in of=/dev/sdb bs=512 seek=2 skip=2" still it is not working.

     and i tried " dd if=u-boot-no-padding off=/dev/sdb bs=512 seek=2 " it is also not working. And i am trying to load u-boot.bin through MFG tool it is hanging at Jump to os image .

   can you plz advise how to proceed with 2009.08 u-boot.bin in to sd card .

regards,

Rajput

0 Kudos
364 Views
matthiasniederm
Contributor II

Hello,


thank you Leonardo and Fabio! Your Solutions works, but I do not understand why.. because in the manual there is no explanation to do that this way. There is only mentioned that the board starts with an offset of 512 bytes from the SD-Card.. Can you help me and explain this behaviour?

Regards

MaTT

_______________________________________

Update: It works although if i copy it not to the first partition.

0 Kudos
364 Views
LeonardoSandova
Specialist I

Check this class:

./meta-fsl-arm/classes/image_types_fsl.bbclass

Leo

0 Kudos
364 Views
LeonardoSandova
Specialist I

On Yocto, u-boot is located on the first partition. So, do a dd like this

dd ... of=/dev/sdb1 ...

Also, I am not sure if seek & skip parameters are needed.

Leo