Moving custom board imx6q from u-boot-imx 2014.04 to 2015.04 lead to freeze

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

Moving custom board imx6q from u-boot-imx 2014.04 to 2015.04 lead to freeze

2,239 Views
robyf
Contributor IV

Hi All,

I've a working u-boot-imx 2014.04 running on a custom imx6q board. I've decided to move uboot-imx to v2015.04 for testing because I'm having some problem on getting a PCIe-to-PCI bridge working, it's a TI XIO2001. So far so good, I've migrated the board setup to the new uboot configuration and everything build straight. However as soon as I boot the board everything stops basically at relocation step. I've tried both u-boot-fslc and -imx version but all are basically freezing at similar place.

Do you have any suggestion where to look?

Thanks in advance,

Roberto Fichera.

U-Boot 2015.04+fslc+g5d9ffd2 (Jan 26 2016 - 18:41:31)

initcall: 17805c64

U-Boot code: 17800000 -> 1784AF9C  BSS: -> 178988F0

initcall: 17801f3c

CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)

Reset cause: POR

initcall: 1780611c

Board: Janas iMX6Q (ID:e315c0641d0f31d4)

initcall: 17805ca8

I2C:   ready

initcall: 17805c90

DRAM:  initcall: 17802fe4

initcall: 17805e80

Monitor len: 000988F0

Ram size: 80000000

Ram top: 90000000

initcall: 17805a2c

initcall: 17805c0c

TLB table from 8fff0000 to 8fff4000

initcall: 17805a44

initcall: 17805bc0

Reserving 610k for U-Boot at: 8ff57000

initcall: 17805b90

Reserving 10248k for malloc() at: 8f555000

initcall: 17805d60

Reserving 80 Bytes for Board Info at: 8f554fb0

initcall: 17805a4c

initcall: 17805b5c

Reserving 248 Bytes for Global Data at: 8f554eb8

initcall: 17805af8

initcall: 17805a54

initcall: 17805eec

initcall: 17805e5c

initcall: 17805db8

RAM Configuration:

Bank #0: 10000000 2 GiB

DRAM:  2 GiB

initcall: 17805adc

New Stack Pointer is: 8f554e90

initcall: 17805a5c

initcall: 17805a8c

Relocation Offset is: 78757000

Relocating to 8ff57000, new gd at 8f554eb8, sp at 8f554e90

initcall: 17831028

<...freeze...>

U-Boot 2015.04-imx_v2015.04_3.14.38_6qp_ga+gf80d628 (Jan 26 2016 - 19:11:43)

initcall: 1780611c

U-Boot code: 17800000 -> 1784176C  BSS: -> 1787BC10

initcall: 17801d54

CPU:   Freescale i.MX6Q rev1.5 at 792 MHz

uclass_find_device_by_seq: 0 -1

uclass_find_device_by_seq: 0 0

   - -1 -1

   - not found

CPU:   Temperature 45 C

Reset cause: POR

initcall: 178065d4

Board: Janas iMX6Q (ID:e315c0641d0f31d4)

initcall: 17806160

I2C:   ready

initcall: 17806148

DRAM:  initcall: 17803388

initcall: 17806338

Monitor len: 0007BC10

Ram size: 80000000

Ram top: 90000000

initcall: 17805ee4

initcall: 178060c4

TLB table from 8fff0000 to 8fff4000

initcall: 17805efc

initcall: 17806078

Reserving 495k for U-Boot at: 8ff74000

initcall: 17806048

Reserving 10248k for malloc() at: 8f572000

initcall: 17806218

Reserving 80 Bytes for Board Info at: 8f571fb0

initcall: 17805f04

initcall: 17806014

Reserving 248 Bytes for Global Data at: 8f571eb8

initcall: 17805fb0

initcall: 17805f0c

initcall: 178063a4

initcall: 17806314

initcall: 17806270

RAM Configuration:

Bank #0: 10000000 2 GiB

DRAM:  2 GiB

initcall: 17805f94

New Stack Pointer is: 8f571e90

initcall: 17805f14

initcall: 17805f44

Relocation Offset is: 78774000

Relocating to 8ff74000, new gd at 8f571eb8, sp at 8f571e90

<...freeze...>

Labels (1)
0 Kudos
11 Replies

1,058 Views
宗標廖
Contributor V

Hello Roberto

For u-boot-2015.04,you should pay attention to something as bellow:

1)In include/configs/<board>.h, you should not use // to comment out something.

2)You should add #define CONFIG_SYS_GENERIC_BOARD to include/configs/<board>.h.

3)CONFIG_ENV_OFFSET in  include/configs/<board>.h should be larger than 400K(e.g.(8 * 64 * 1024)).

Have a great day!

ZongbiaoLiao

0 Kudos

1,058 Views
robyf
Contributor IV

Hi ZongbiaoLiao,

yes! the 3 things you listed are exactly ok in my config. I've attached my current config so you can have a look.

Cheers,

Roberto Fichera.

0 Kudos

1,058 Views
robyf
Contributor IV

I've actually found that uboot doesn't returns from asm function relocate_vectors. The function board_init_f() and relocate_code is executed fine. This is within arch/arm/lib/crt0.S

Any idea?

Cheers,

Roberto Fichera.

0 Kudos

1,059 Views
robyf
Contributor IV

Just found that uboot boot fine when removing the call to asm function relocate_vectors from arch/arm/lib/crt0.S, basically reverting back to how v2014.04 works.

0 Kudos

1,059 Views
igorpadykov
NXP Employee
NXP Employee

Hi Roberto

from log: "2015.04-imx_v2015.04_3.14.38_6qp_ga"

3.14.38_6qp tested only with i.MX6QP processor, one can try

uboot used with consolidated BSP L3.14.52_1.1.0 GA:

uboot-imx.git - Freescale i.MX u-boot Tree

L3.14.52_1.1.0 GA BSP with documentation:

Board Support Packages (29)

L3.14.52_1.1.0_MX6QDLSOLO (REV L3.14.52_1.1.0)

http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-process...

Best regards

igor

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

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

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

0 Kudos

1,059 Views
robyf
Contributor IV

Hi Igor,

I've just tried it but still the same issue:

initcall: 17829b0c

U-Boot 2015.04-imx_v2015.04_3.14.52_1.1.0_ga+g6cf684a (Jan 27 2016 - 09:06:55)

initcall: 1780611c

U-Boot code: 17800000 -> 1784176C  BSS: -> 1787BC10

initcall: 17801d58

CPU:   Freescale i.MX6Q rev1.5 at 792 MHz

uclass_find_device_by_seq: 0 -1

uclass_find_device_by_seq: 0 0

   - -1 -1

   - not found

CPU:   Temperature 39 C

Reset cause: POR

initcall: 178065d4

Board: Janas iMX6Q (ID:e315c0641d0f31d4)

initcall: 17806160

I2C:   ready

initcall: 17806148

DRAM:  initcall: 17803388

initcall: 17806338

Monitor len: 0007BC10

Ram size: 80000000

Ram top: 90000000

initcall: 17805ee4

initcall: 178060c4

TLB table from 8fff0000 to 8fff4000

initcall: 17805efc

initcall: 17806078

Reserving 495k for U-Boot at: 8ff74000

initcall: 17806048

Reserving 10248k for malloc() at: 8f572000

initcall: 17806218

Reserving 80 Bytes for Board Info at: 8f571fb0

initcall: 17805f04

initcall: 17806014

Reserving 248 Bytes for Global Data at: 8f571eb8

initcall: 17805fb0

initcall: 17805f0c

initcall: 178063a4

initcall: 17806314

initcall: 17806270

RAM Configuration:

Bank #0: 10000000 2 GiB

DRAM:  2 GiB

initcall: 17805f94

New Stack Pointer is: 8f571e90

initcall: 17805f14

initcall: 17805f44

Relocation Offset is: 78774000

Relocating to 8ff74000, new gd at 8f571eb8, sp at 8f571e90

0 Kudos

1,059 Views
igorpadykov
NXP Employee
NXP Employee

Hi Roberto

had you built 3.14.52 linux images, as

uboot 2015.04 uses L3.14.52_1.1.0 kernel ?

~igor

0 Kudos

1,059 Views
robyf
Contributor IV

Hi Igor,

no only the uboot version you suggested.

Cheers,

Roberto Fichera.

0 Kudos

1,059 Views
igorpadykov
NXP Employee
NXP Employee

Hi Roberto

one can printenv uboot environment variables and

compare them for both cases.

~igor

0 Kudos

1,059 Views
robyf
Contributor IV

Hi Igor,

the code is exactly the same for both v2014.04 and v2015.04 so no env problem at all.

0 Kudos

1,059 Views
igorpadykov
NXP Employee
NXP Employee

Hi Roberto

please post this on uboot mail list

U-Boot Info Page

Best regards

igor

0 Kudos