IMX6SX M4 BOOT

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

IMX6SX M4 BOOT

2,519 Views
2548903578
Contributor III

Hi!

I want to use the A9 kernel of imx6sx to start the M4 kernel. Does anyone know what to do. The information on the official website is to first put the bin file into the SD card, and then use u-boot to start it. Our product does not use SD card, so can we boot A9 core (linux boot) first, and then boot M4 through A9? Use DDR as memory. What information can be used as a reference?

0 Kudos
18 Replies

2,500 Views
terry_lv
NXP Employee
NXP Employee

Hi 2548903578,

  What kernel version are you using?

  On 5.4.x kernel, there's a remoteproc driver which can be used to send firmware to M4 from A9 user space.

  User needs to change default dtb to xxx-m4.dtb.

  See 4.1.1 in https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview

  Some notes on using remoteproc on i.MX soc:

  1. firmware must be put under /lib/firmware.
  2. We don't recommend to use stop, which needs M4 to enter IDLE mode itself.
  3. The image file must be in elf format.

  Thanks!

Regards

Terry

0 Kudos

2,487 Views
2548903578
Contributor III

Hi terry_lr,

The kernel version we used was imx-5.4.24, but the remoteproc driver was not found.

J$DIQ{CK(XE~[V7V2YG4X@6.png

0 Kudos

2,389 Views
terry_lv
NXP Employee
NXP Employee

Which dtb file are you using?

0 Kudos

2,383 Views
2548903578
Contributor III

Hi,

The device tree I am using is generated by Yocto, as shown in the figure:

QQ截图20200910102555.png

0 Kudos

2,344 Views
terry_lv
NXP Employee
NXP Employee

Hi,

  Sorry for that imx6sx and imx7d don't support remoteproc yet.

  Just confirmed the information from RD.

  Thanks!

Regards

Terry

0 Kudos

2,363 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

2,346 Views
2548903578
Contributor III

Hi igorpadykov,

I have tried it, but there are other errors. There is no such device.

微信图片_20200910150358.png

0 Kudos

2,479 Views
igorpadykov
NXP Employee
NXP Employee

also one can look at m4ctrl tool

https://source.codeaurora.org/external/imxsupport/m4ctrl/tree/README.md

 

Best regards
igor

 

0 Kudos

2,376 Views
2548903578
Contributor III

Hi igorpadykov,

  The screenshot is the cross-compiled version I'm using, generated by Yocto. It's different from the version you gave me. I can compile imx-m4fwloader, but cannot compile m4ctrl.QQ截图20200910104324.png

0 Kudos

2,393 Views
2548903578
Contributor III

Hi igorpadykov,

What should I do now, can you give me some suggestions? I have tried many methods and I really don't know how to do it.

0 Kudos

2,397 Views
2548903578
Contributor III
 
0 Kudos

2,461 Views
2548903578
Contributor III

Hi igorpadykov,

I am prompted that some header files cannot be found. Are these header files included with Linux?

 

微信截图_20200909134522.png

0 Kudos

2,448 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

2,440 Views
2548903578
Contributor III

Hi igorpadykov,

I think it is the address of my screenshot, but I still can’t use this address.QQ截图20200909163241.png

0 Kudos

2,495 Views
2548903578
Contributor III

Hi, terry_lr

We are now using EMMC to start. I have used the xxx-m4.dtb device tree through mfg-tools, and found that the development board did not start normally.

0 Kudos

2,512 Views
igorpadykov
NXP Employee
NXP Employee

Hi 2548903578

 

one can look at imx-m4fwloader :

https://lists.yoctoproject.org/pipermail/meta-freescale/2018-March/022340.html

 

Best regards
igor

0 Kudos

2,502 Views
2548903578
Contributor III

Hi igorpadykov,

 I tried several addresses that were the same. I cut the picture of the phenomenon as a reference. Hope you can give me some suggestions. thank you very much.f7c1a0a90cbe9b77e67dd06d96473a7.png8cf036d8db86b20d07eeb7ff2d1fea4.png

0 Kudos

2,506 Views
2548903578
Contributor III

Hi  igorpadykov,

   Thank you very much for your reply, I don't know which address to give when using this tool. I used DDR, and then used the address 0x8000000 as the starting address. I found that the system crashed directly. May I ask how much my address should be given when using DDR to start M4 on IMX6SX.

 

0 Kudos