i.MX28 u-boot SPL fail

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX28 u-boot SPL fail

Jump to solution
1,048 Views
marcocavallini
Contributor IV

Hi,

On a custom i.MX28 board I am using u-boot-2015.01.

The debug port DUART is not the same as i.MX28, so I changed these settings in iomux.c:

const iomux_cfg_t iomux_setup[] = {

  /* DUART */

// MX28_PAD_PWM0__DUART_RX,

// MX28_PAD_PWM1__DUART_TX,

  /* DUART */

  /* Unconfigure BOOT ROM default DUART */

  MX28_PAD_PWM0__GPIO_3_16,

  MX28_PAD_PWM1__GPIO_3_17,

  /* Configure DUART on alternate pins */

  MX28_PAD_I2C0_SCL__DUART_RX,

  MX28_PAD_I2C0_SDA__DUART_TX,

I enabled #define CONFIG_SPL_SERIAL_SUPPORT and built uboot with : make u-boot.sb

At last I can program the board only using MfgTools or 'mxsldr'.

The problem is that I het no messages on output debug port or some random chars (like below) every 5, 10 boots:

Data Abort

r14_a

My questions are:

- is the u-boot.sb suitable to be run from MfgTools?

- should I expect any char on the serial debug port?

- do I have to use the 'elftosb' tool to convert my binary?

TIA

--

Marco

Labels (3)
0 Kudos
1 Solution
167 Views
marcocavallini
Contributor IV

Adding proper mDDR initialization solved the problem and now we can boot u-boot/SPL

http://lists.denx.de/pipermail/u-boot/2015-February/205775.html

--

Marco

View solution in original post

0 Kudos
4 Replies
167 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Marco

seems all is well described in below document

http://www.denx.de/wiki/pub/U-Boot/MiniSummitELCE2013/2013-u-boot-mxs-without-fsl-tools.pdf

since software generated with this concept does not support encrypted boot yet(with _ivt suffix), so

FSL SW will not run it. FSL uses encrypted images for all software

i.MX28 Evaluation Kit|Freescale

so suggest to post that on denx wiki:

3.1.4 Building U-Boot | www.denx-cs.de/doku

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
167 Views
marcocavallini
Contributor IV

Hi Igor,

I have already studied that 2013-u-boot-mxs-without-fsl-tools.pdf

I do not need any encryption.

I did exactly the same as explained here

3.1.4 Building U-Boot | www.denx-cs.de/doku

make u-boot.sb

Then I do not have SD nor other storage so I mus use USB firmware upload

3.1.5 USB Firmware Upload | www.denx-cs.de/doku

Load u-boot.sb onto the device:

sudo ./mxsldr <path to u-boot.sb>

This procedure works perfectly on the i.MX28evk, but doesn't on my custom board so I supposed that u-boot-2015.01 STL works perfecly on i.MX28 and MfgTools upload.

Differences are:

  • DUART on alternate pins
  • DDR different
  • eMMC instead of NAND

I don't know how i.MX28 ROM boot works so my question are:

  • should I see something on the serial port BEFORE the DDR settings are done?
  • if I put some code in mxs_common_spl_init() is this executed immediately BEFORE the DDR (and power) settings are done?


Thank you

--

Marco


0 Kudos
168 Views
marcocavallini
Contributor IV

Adding proper mDDR initialization solved the problem and now we can boot u-boot/SPL

http://lists.denx.de/pipermail/u-boot/2015-February/205775.html

--

Marco

View solution in original post

0 Kudos
167 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Marco

I think you should update DDR settings for this custom board

in ../mxs/spl_mem_init.c using link below

Board Bring-up and DDR Initialization Tools

Best regards

igor

0 Kudos