Custom IMX28 board, no boot

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

Custom IMX28 board, no boot

Jump to solution
12,244 Views
dgotfroi
Contributor IV

Hello,

I design my own board with an imx28 CPU. I configured the board (resistors on LCD_D0 to LCD_05) to boot on SSP0 (SD card).

When I try to boot without SD card connected, I have the 0x8020a014 error code on the debug console. So it seems it want to boot on Sd card. So it's good.

But when I connect the SD card, I have absolutely nothing on the debug console.

I measured voltage and everything is good except VDD4P2. It equal to 0.8V !!!!!

This is the schematic :

Capture.PNG.png

Can you help me ?

Labels (1)
Tags (2)
0 Kudos
1 Solution
5,942 Views
dgotfroi
Contributor IV

In order to close this topic, please find attached my patch for VDD5V Only and the patch for my DDR2 (Samsung K4T51163QQ-BCE7).

Finaly, these patchs are very simple.

To explain what my patches do :

In spl_power_init.c, I set DROPOUT_CTRL (in HW_POWER_DCDC4P2 register) to "DcDc Converter power source is DCDC_4P2 regardless of BATTERY voltage" instead of "DcDc converter selects either VDD4P2 or BATTERY, which ever is higher."

In spl_mem_init.c, I set CS_MAP (in HW_DRAM_CTL29 register) to 1 instead of 16 (?) and I set EIGHT_BANK_MODE (in HW_DRAM_CTL31 register) to "Memory devices have 4 banks" instead of "Memory devices have 8 banks".

In mx28evk.h, I set "define PHYS_SDRAM_1_SIZE" to 0x04000000 (64MB) instead of 0x40000000 (1GB).

Now, everything is fully stable. After 200 loops of 30MB test with memtester I have 0 error. All the supply from the IMX a solid and with a correct voltage.

Many thanks for all your help during these 3 months. This is the culmination :).

View solution in original post

0 Kudos
74 Replies
343 Views
dgotfroi
Contributor IV

I tried with LTIB.

I've defined NO_DCDC_BATT_SOURCE an recompile the boot stream.

I've defined MEMORY_TEST in boot_prep.c

and I've blown HW_OCOTP_ROM7 ENABLE_SSP_12MA_DRIVE bit.

Now, when I power up my board, I have the following message continuously on the debug console :

PowerPrep start initialize power...

Configured for 5v only power source.            Battery powered operation disabled.

Nov 20 201410:49:11

FRAC 0x92925552

memory type is DDR2

                   Wait for ddr ready 1power 0x00820710

Frac 0x92925552

start change cpu freq

hbus 0x00000003

cpu 0x00010001

start test memory accress

ddr2 0x40000000

finish simple test

Undefined Ins

Do you have any idea what is the problem ?

Thank you

0 Kudos
343 Views
dgotfroi
Contributor IV

I'm sorry to post a new answer but someone can help me ?

If I plug my sd card in my custom board I have the following on the debug console :

PowerPrep start initialize power...

Configured for 5v only power source.            Battery powered operation disabled.

Nov 20 201410:49:11

FRAC 0x92925552

memory type is DDR2

                   Wait for ddr ready 1power 0x00820710

Frac 0x92925552

start change cpu freq

hbus 0x00000003

cpu 0x00010001

start test memory accress

ddr2 0x40000000

finish simple test

Undefined Ins

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

If I plug my SD card in IMX28EVK board I have the following on the debug console :

PowerPrep start initialize power...

Configured for 5v only power source.            Battery powered operation disabled.

Nov 25 201414:09:42

FRAC 0x92925552

memory type is DDR2

                   Wait for ddr ready 1power 0x00820710

Frac 0x92925552

start change cpu freq

hbus 0x00000003

cpu 0x00010001

start test memory accress

ddr2 0x40000000

finish simple test

U-Boot 2009.08 (Nov 25 2014 - 14:23:15)

Freescale i.MX28 family

CPU:   454 MHz

BUS:   151 MHz

EMI:   205 MHz

GPMI:   24 MHz

DRAM:  128 MB

MMC:   IMX_SSP_MMC: 0, IMX_SSP_MMC: 1

*** Warning - bad CRC or MMC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   got MAC address from IIM: 00:04:9f:02:09:37

FEC0

Hit any key to stop autoboot:  0

0 Kudos
343 Views
Yuri
NXP Employee
NXP Employee

The "Undefined Ins" message may be caused because of memory bug.

Also the follwoing may be helpful :

What does 'Undefined Ins' mean in u-boot?

iMX28evk u-boot sd-card -> Undefined Ins

~Yuri.

0 Kudos
343 Views
dgotfroi
Contributor IV

Thanks for your help.

I followed the tutorial here :

git.denx.de Git - u-boot.git/blob - doc/README.mxs

with U-boot 2015.01-rc2.

But the problem still appears.

What can I do ?

I have HTLLC message on debug console continuously. 

I also try to blow HAB_DISABLE fuse with BitBurner (saw in a topic on this forum), but the problem was not solved and now I can't unblow this fuse because when I select the IMX28 in "Select device" in Bitburner, the IMX28 is automatically disconnected from my computer. Do you have any idea ?

0 Kudos
343 Views
dgotfroi
Contributor IV

Thanks for your answer. I will try with LTIB.

Another little question, what is the role of the shottky diode between VDD4P2 and Battery/DCDC_BATT in the reference schematic ?

EDIT :

I found on this forum that the problem can come from a bad inductor.

I use the 744025150 from Wurth. Do you think I need to choose another one ?

0 Kudos
343 Views
Yuri
NXP Employee
NXP Employee

As  the shottky diode :

  First, if VDD4P2 may be used as power source for peripheral, such as

backlight, the  diode can keep the power available while VDD5V is removed.

  Second, if the DCDC power source is switched from the battery to VDD4P2 in

battery charging period, the diode can keep the DCDC power stream continually at

the meantime it is switched back to the battery while VDD5V is removed .

The Schottky diode can be removed if VDD4P2 will not be used continually at the

meantime it is switched back to the battery while VDD5V is removed. The Schottky

diode can be removed if VDD4P2 will not be used as power source of the external

peripherals and the internal DCDC. Any Schottky diode with low forward voltage

and 1A forward current can be used.

~Yuri.

0 Kudos
343 Views
victorien
Contributor IV

Did you try to boot from usb with mxsldr ?

In the errata document for imx28 ( http://cache.freescale.com/files/32bit/doc/errata/IMX28CE.pdf?fasp=1&WT_TYPE=Errata&WT_VENDOR=FREESC... ) you can see that there is and hardware bug for the boor from an SD card. During my test, I saw that same SD card work and some other don't. So, you can try with another kind of SD card.

Did you measure the current from your power supply and the voltage on LCD0...5 ?

0 Kudos
343 Views
dgotfroi
Contributor IV

Thanks for your answer.

The current consumtion is 1 mA and the voltage on LCD0..5 is :

LCD0 : 3.14V

LCD1 : 0V

LCD2 : 0V

LCD3 : 3.14V

LCD4 : 0V

LCD5 : 0V

I didn't try with mxsldr because I didn't route USB OTG on my board.

Thank you

0 Kudos
343 Views
victorien
Contributor IV

The current of 1mA is strange if your board is supplied by 5V power. On my board the current is between 120 and 180 mA.

Another question ; did you generate your bootloader with HAB mode or not ?

0 Kudos
343 Views
dgotfroi
Contributor IV

I think it don't start the 4V2 regulator at all. It's why I have 1mA.

I use Yocto (with bitbake) but I'm not familiar with it so I don't know what is HAB mode and how to generate bootloader with it ?

0 Kudos
343 Views
victorien
Contributor IV

I don't work with Yocto, so I don't know but somewhere there is a script u-boot.bd or u-boot_ivt.bd (if you use uboot). And when you program your sd card you write sudo dd if=header.bin of=/dev/sdX1 ibs=512 conv=sync before your bootloader

0 Kudos
343 Views
dgotfroi
Contributor IV

Thank you for your answer.

I don't have this u-boot.bd or u-boot_ivt.db. Neither the header.bin.

0 Kudos