im8qxp on mek B0 and m4 firmware running from ddr

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

im8qxp on mek B0 and m4 firmware running from ddr

2,890件の閲覧回数
_angelo_
Contributor III

Hi all,

i need to run a m4 application.bin from 0x88000000 (ddr)

From yocto, i created a imx-boot bbappend to use my "application.bin" and i selected the target flash_linux_m4_ddr, btw, board is not booting, console blank.

Boards boot with flash_linux_m4 target and sampel app rinning from internal M4 sram area.

If any help, thanks !

0 件の賞賛
返信
10 返答(返信)

2,809件の閲覧回数
josephzhou1
Contributor V

watching...

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 件の賞賛
返信

2,863件の閲覧回数
_angelo_
Contributor III

HI,

i am working on both B0 and C0, always using  flash_linux_m4_ddr  

At now, on B0, cannot see application at 0x88000000 running. I am supposing scm fw is properly initializing ddr. Also since u-boot will run later. But once prepared the container with ddr appliciation, system does not boot.

0 件の賞賛
返信

2,870件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

Which option you are using  for imx-mkinge?   

flash_linux_m4_ddr? 
0 件の賞賛
返信

2,876件の閲覧回数
_angelo_
Contributor III

Any help on this ?

From mkimage_imx8, -d dcd option is not supported for B0. Does it mean i cannot run M4 app from ddr from the initial flash.bin ?

0 件の賞賛
返信

2,861件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

Please check the seco firmware is for B0.

0 件の賞賛
返信

2,854件の閲覧回数
_angelo_
Contributor III

Hello ByiongSun

thanks

i am not back working on b0

 

seco fw is correct : mx8qxb0-ahab-container.img

If i use target flash_linux_m4_ddr with an m4 application built for ddr (0x88000000) ststem resets continuosly, no chars on both m4 / linux console.

If i remove ddr m4 image, system hangs, no charts on console.

If i roll back to flash_linux_m4 target, all works.

 

 

 

0 件の賞賛
返信

2,843件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

You can use binary demo image imx-boot-imx8qxpmek-sd.bin-flash_linux_m4 m4 run test.

0 件の賞賛
返信

2,820件の閲覧回数
_angelo_
Contributor III

Hi BiyongSun,

well, i rebuilt scm fw with monitor enable (always using flash_linux_m4_ddr target),
and a simple m4 app built to run at 0x88000000.

As said, boards resets but now i can see why:

 

board

Hello from SCU (Build 5222, Commit bc122ee1, May 27 2021 16:21:58)

board_init(1)
board_init(4)
board_init_ddr(0)
SCFW: DDR frequency = 1200000000
board_system_config(0, 1)
board_set_voltage(A35, 1100, 0)
Start PMIC init
Finished PMIC init

board_set_power_mode(A35, 0, 0, 3)
board_init(5)
board_init(2)
ROM boot time = 212060 usec
Boot time = 51032 usec
Banner = 8 usec
Init = 10342 usec
Config = 2722 usec
DDR = 10730 usec
SConfig = 5259 usec
Prep = 15064 usec

*** Debug Monitor ***

>$ ipc_err: bad size (0)
ipc_err: bad size (0)

.. reset here

 

 

 

 

 

2,785件の閲覧回数
_angelo_
Contributor III

@NXP

@BiyongSUN 

I may be totally wrong, otherwise, please confirm my assumption.

m4 app cannot be run from initial container from ddr @ 0x88000000 (no bootaux, but using flash_linux_m4_ddr) for b0 revision, only app built for tcm seems able to run.

 

For the following reasons:


- scfw shows BOARD_CPU_RESET_MEM_ERR produced from m4
- m4 app seems to run in parallel to scfw, so probably starts when ddr is still not initialized
- same m4 app works from u-boot bootaux @0x88000000 (ddr properly initialized before)


- C0 revision uses DCD run from ROM bootloader, so ddr4 init at ROM stage allows m4 app to run properly from lpddr4.

Are the above assumptions correct ?

Thanks
angelo

0 件の賞賛
返信

2,759件の閲覧回数
_angelo_
Contributor III

Hello, 

finally i can close this thread.

Non working app on B0 from ddr was due to wrong m4 app compilation flags.

SDK demo apps are using the correct flags.

I can have m4 app working now from both TCM or DDR, on both B0 and C0.

0 件の賞賛
返信