Latest u-boot (2013.01) on mx28evk

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

Latest u-boot (2013.01) on mx28evk

Jump to solution
1,894 Views
slay
Contributor III

Hi everyone,

I tried to run the latest u-boot-imx on the mx28evk, but this hangs just after startup reporting only 61 bytes of DRAM. This is the debug output it shows:

PowerPrep start initialize power...

Battery Voltage = 4.23V

boot from battery. 5v input not detected

Feb 26 201314:24:45

FRAC 0x92925552

memory type is DDR2

                   Wait for ddr ready 1power 0x00820616

Frac 0x92925552

start change cpu freq

hbus 0x00000003

cpu 0x00010001

start test memory accress

ddr2 0x40000000

finish simple test

U-Boot 2013.01-10534-gbec0160 (Feb 26 2013 - 15:35:44)

CPU:   Freescale i.MX28 rev1.2 at 454 MHz

BOOT:  PHY ID 1 register

I2C:   ready

DRAM:  61 Bytes

I followed these steps to create this u-boot version:

//Get latest u-boot-imx

git clone git://git.denx.de/u-boot-imx.git

//Set cross compiler environment

export ARCH=arm

export CROSS_COMPILE=arm-none-linux-gnueabi-

export PATH="$PATH:/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/"

export PATH="$PATH:/opt/freescale/ltib/usr/bin/"

//Make the u-boot for the mx28evk

make mx28evk_config

make u-boot.sb

Since the imx28 on the evk requires a secure boot, I took the following extra steps:

  • copied the generated u-boot file to the ltib/rootfs/u-boot
  • ran "./ltib -p boot_stream.spec -f" to create a secured bootstream
  • ran "./mk_mx28_sd -u -b /dev/sdc" to create a bootable sd-card

Plugged in the sd-card and powered on the board.


My guess is, that the building of the u-boot requires some extra configuration. But from earlier posts I understood it could run "out of the box". Does anyone have an idea what goes wrong here?


N.B. The board itself is OK. If I take the u-boot from the original ltib (2009.08), the startup is OK, showing 128 MB of DRAM.


Regards,


Ruud

Labels (1)
1 Solution
749 Views
fabio_estevam
NXP Employee
NXP Employee

You do not need to use the bootlets packages at all when using mainline U-boot.

Please read these two docs that will explain how to build and flash the U-boot binary:

http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.mx28_common;h=8bacaf8a5e5a19b33b695b7861510bbbd...

and

http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.mx28evk;h=2fc50696f5ef3175ea5211565d59f33d1280a...

If you have further questions, please post into the U-boot mailing list and I will help you from there.


View solution in original post

3 Replies
750 Views
fabio_estevam
NXP Employee
NXP Employee

You do not need to use the bootlets packages at all when using mainline U-boot.

Please read these two docs that will explain how to build and flash the U-boot binary:

http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.mx28_common;h=8bacaf8a5e5a19b33b695b7861510bbbd...

and

http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.mx28evk;h=2fc50696f5ef3175ea5211565d59f33d1280a...

If you have further questions, please post into the U-boot mailing list and I will help you from there.


749 Views
slay
Contributor III

Hi Fabio,

Thanks for your answer, that helped. By just writing the earlier created u-boot.sb to SD-card, I could startup the mainline u-Boot. I was convinced that I should use a HAB encrypted boot stream (like the _ivt_ ones from ltib) for the mx28evk, but apparently this is not required.

Anyway: I do have some further questions, but if you say "post into the U-boot mailing list", do you mean mailing to u-boot@lists.denx.de, or just another entry within this community?

Thanks, Ruud

0 Kudos
749 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Ruud,

Correct, I mean the public U-boo mailing list:

U-Boot mailing list

U-Boot@lists.denx.de

http://lists.denx.de/mailman/listinfo/u-boot

Regards,

Fabio Estevam

0 Kudos