IMX6SX M4 BOOT

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6SX M4 BOOT

1,093 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

1,074 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

1,061 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

963 Views
terry_lv
NXP Employee
NXP Employee

Which dtb file are you using?

0 Kudos

958 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

918 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

937 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos

920 Views
2548903578
Contributor III

Hi igorpadykov,

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

微信图片_20200910150358.png

0 Kudos

1,054 Views
igorpadykov
NXP TechSupport
NXP TechSupport

also one can look at m4ctrl tool

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

 

Best regards
igor

 

0 Kudos

950 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

967 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

971 Views
2548903578
Contributor III
 
0 Kudos

1,035 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

1,022 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos

1,014 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

1,069 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

1,086 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi 2548903578

 

one can look at imx-m4fwloader :

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

 

Best regards
igor

0 Kudos

1,076 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

1,080 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