Starting M4 on SoloX

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

Starting M4 on SoloX

3,881 Views
danielkuhne
Contributor I

Hello,

I managed to boot A9 (CPU0) of solox. I used master branch of yocto to build uboot, zImage and RFS and boot into linux.

How to run an simple application on M4?

BR,

Daniel

Labels (1)
Tags (2)
0 Kudos
Reply
8 Replies

1,362 Views
danielkuhne
Contributor I

I can not find PERSISTENT_ENTRY1 (Holds entry function for secondary core) in

i.MX 6 SoloX Applications Processor Reference Manual

0 Kudos
Reply

1,362 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Have you tried the mcc demo? You can find more information in the i.MX_6_Linux_Reference_Manual.pdf found in the Linux BSP documentation.

There you can find the steps and the necessary to start the M4 and communicate with the A9.

For example, enable the driver and the demo in menuconfig:

Kernel Configurations

Symbol: IMX_SEMA4 [=y]

Type : tristate

Prompt: IMX SEMA4 driver

Location:

     -> Device Drivers

          -> Character devices

Symbol: IMX_MCC_DEMO [=y]

Type : tristate

Prompt: IMX MCC demo driver

Location:

     -> Device Drivers

          -> Character devices

               -> IMX SEMA4 driver (IMX_SEMA4 [=y])

Program the MQX-M4 binary in QuadSPI and Configure the U-Boot environment.

Best Regards,

Alejandro

0 Kudos
Reply

1,362 Views
danielkuhne
Contributor I

>> Program the MQX-M4 binary in QuadSPI and Configure the U-Boot environment.

Could you pls explain more in detail?

a) where is mqx-m4 binary located?

b) how to place it in quadspi?

c) how to configure u-boot env?

Cheers,

Daniel

0 Kudos
Reply

1,362 Views
igorpadykov
NXP Employee
NXP Employee

Hi Daniel

one can program A9 u-boot to an SD card as usual then

load the M4 binary out.bin to the SD at offset 1MB, (ex: dd if=out.bin of=<sd card> bs=512 seek=2k)

Insert the SD card on the board and when u-boot comes up execute the following commands:

// Read the code from the SD into DDR

mmc read 0x80800000 0x800 2

// Copy the code from DDR to TCM

cp.l 0x80800000 0x007f8000 1024

// Enable the M4

mw.l 0x020d8000 0xA0480539 1

// Release M4 reset

mw.l 0x020d8000 0xA0480529 1

The M4 binary should start

Best regards

igor

0 Kudos
Reply

1,362 Views
danielkuhne
Contributor I

Hi Igor,

thanks for detail. Could you please tell me how you build your m4 firmware? Could you provide a simple demo source code?

Thanks!

BR,

Daniel

0 Kudos
Reply

1,362 Views
igorpadykov
NXP Employee
NXP Employee

Hi Daniel

I am afraid source code can not be released until

public launch of this processor. I think you can request it

from contact who provided you with board.

Best regards

igor

0 Kudos
Reply

1,362 Views
danielkuhne
Contributor I

Hi Igor,

I have access to i.MX 6SoloX (SX) Customer Extranet. We are in the role of NDACustomer.

Do you work for freescale?


BR,

Daniel

0 Kudos
Reply

1,362 Views
igorpadykov
NXP Employee
NXP Employee

Hi Daniel

one can look at Hello World example on below link

https://community.freescale.com/thread/351961

Best regards

igor

0 Kudos
Reply