Boot the Linux kernel, and run the pingpong master side demo in IMX7

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

Boot the Linux kernel, and run the pingpong master side demo in IMX7

Jump to solution
4,994 Views
chandiniindavar
Contributor IV

could anyone help me with this please ?

I am using "FreeRTOS_BSP_1.0.0_iMX7D" for demo example programs.

Successfully run the hello_world and led blinky easily by following Getting_Started_with_FreeRTOS_BSP_for_iMX_7Dual

Just trying to get ping-pong working on i.MX7, but can’t find a Linux side demo. Can anyone help me to locate it?

Getting Started guide has this:

5.4.1 Prepare the Demo

  1. Connect a USB cable between the PC host and the Debug UART port on the board.
  2. Open two serial terminals with these settings for each of the virtual serial instances:

• 115200 baud rate

• 8 data bits

• No parity

• One stop bit

• No flow control

   3.   Load the demo binary to target board using U-Boot.

   4.   Boot auxiliary ARM Cortex-M4 Core to begin running the demo.

   5.   Boot the Linux kernel, and run the pingpong master side demo.

anyone has idea how to boot linux kernel and run the pingpong master side demo ?

Labels (4)
0 Kudos
1 Solution
2,492 Views
chandiniindavar
Contributor IV

I got it working.

Procedure:

1.Download FreeRTOS_BSP_1.0.0_iMX7D

2.Follow “Getting_Started_with_FreeRTOS_BSP_for_iMX_7Dual.pdf”  to build M4 side Code

3. Run

$ fatload mmc 0:1 0x7F8000 rpmsg_pingpong_example.bin

$ dcache flush

$ bootaux 0x7F8000

4.Set environment variable and Save:

$ setenv fdt_file imx7d-sdb-m4.dtb   [Note : important step ]

$ saveenv

5.Boot the Linux kernel

    $ boot

6. cd to /lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/rpmsg

Note:

follow yocto guide to build modules, file attached.

7. insert module:

$ insmod imx_rpmsg_pingpond.ko

8.Now you can see results in both terminals.

View solution in original post

0 Kudos
8 Replies
2,492 Views
chandiniindavar
Contributor IV

Test utilities don’t seem relevant:

unit_tests.PNG

0 Kudos
2,492 Views
igorpadykov
NXP Employee
NXP Employee

Hi chandini

test programs are described in sect.52.5 Running i.MX RPMsg Test Programs

attached Linux Manual.

Best regards

igor

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

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

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

0 Kudos
2,492 Views
chandiniindavar
Contributor IV

Hi Igor

Thanks for your information . I think I need to spend few times in reading because I don’t know how to build ‘.ko ’ file

Now I found how to boot auxiliary to Linux kernel, next thing which I have to do imx_rpmsg_pingpong.ko and imx_rpmsg_tty.ko are built out.

As per 52.5[point 3]

Do you have any documents how to setup linux for IMX7 and to build .ko files

Regard’s

Chandini

0 Kudos
2,492 Views
chandiniindavar
Contributor IV

any idea what pingpong does which is under  /opt/ltp/testcases /bin ?

pastedImage_0.png

0 Kudos
2,492 Views
chandiniindavar
Contributor IV

I am trying to run rpmsg/pingpong demo .

build file and loaded to M4 after that by using "boot" command , boot linux kernel from auxiliary boot .

next thing what i have to do i am not sure.

do i need to setup linux development environment to build imx_rpmsg_pingpong.ko and imx_rpmsg_tty.ko ?

any one has idea ?

0 Kudos
2,492 Views
soumyaks
Contributor II

Hi,

Did you happen to solve this? How do you build .ko in Android? I tried to do menuconfig and made the relevant RPMSG as modules, but still I get .o files when building the same. What am I missing??

Thanks,

Soumya

0 Kudos
2,492 Views
chandiniindavar
Contributor IV

Soumya 

Which kernel version your currently using ?

How do you build your linux ?

Thank you

Chandini

0 Kudos
2,493 Views
chandiniindavar
Contributor IV

I got it working.

Procedure:

1.Download FreeRTOS_BSP_1.0.0_iMX7D

2.Follow “Getting_Started_with_FreeRTOS_BSP_for_iMX_7Dual.pdf”  to build M4 side Code

3. Run

$ fatload mmc 0:1 0x7F8000 rpmsg_pingpong_example.bin

$ dcache flush

$ bootaux 0x7F8000

4.Set environment variable and Save:

$ setenv fdt_file imx7d-sdb-m4.dtb   [Note : important step ]

$ saveenv

5.Boot the Linux kernel

    $ boot

6. cd to /lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/rpmsg

Note:

follow yocto guide to build modules, file attached.

7. insert module:

$ insmod imx_rpmsg_pingpond.ko

8.Now you can see results in both terminals.

0 Kudos