Enable the MQUEUE on the centos autosd on NXP S32G board

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

Enable the MQUEUE on the centos autosd on NXP S32G board

Jump to solution
199 Views
Shankar_1
Contributor I

Hi,

On centos Autosd with  NXP S32G board,  I am facing issue  " MessageProcessor error in mq_receive: Function not implemented ". I googled the reason. POSIX_MESSAGE_QUEUE is not enabled. 

Questions: 

1. Can we enable POSIX_MESSAGE_QUEUE on NXP board directly by running some commands? if yes please provide commands.

2. Can we enable POSIX_MESSAGE_QUEUE by including some files or by changing configurations on board itself? how to do that?

2.If we have to enable the POSIX_MESSAGE_QUEUE by rebuilding kernel, then at which stage we have enable it? and what are the commands? or steps to follow.?

Thanks in advance.

0 Kudos
Reply
1 Solution
108 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Shankar_1 

 a. do we need to modify on nxp board directly on current image. by modifying files or        running command?

[CY]: From my understanding, you do not need to modify anything on current running system.

  b. if question (a) is no then do we need to rebuild the kernel image?

[CY]: Yes, POSIX message queue support is an optional kernel component that is configured via the CONFIG_POSIX_MQUEUE option

   c. how to set the CONFIG_POSIX_MQUEUE while rebuilding kernel image?                                 which files to modify before running going for build the kernel? or any command to run? what is the procedure?

[CY]: You may rebuild the kernel by make menuconfig, then press "Y" to enable the feature as shown below, then rebuild the kernel to generate a new kernel image, with which to boot the board. After it, you may try your own application that need this feature to have a try.

chenyin_h_0-1734055067270.png

From NXP perspective, the BSP is based on Yocto/ubuntu, it is not tested with CentOS, but from my experience, the procedure to enable this feature may almost be the same on your own system.

I hope it will help.

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
6 Replies
109 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Shankar_1 

 a. do we need to modify on nxp board directly on current image. by modifying files or        running command?

[CY]: From my understanding, you do not need to modify anything on current running system.

  b. if question (a) is no then do we need to rebuild the kernel image?

[CY]: Yes, POSIX message queue support is an optional kernel component that is configured via the CONFIG_POSIX_MQUEUE option

   c. how to set the CONFIG_POSIX_MQUEUE while rebuilding kernel image?                                 which files to modify before running going for build the kernel? or any command to run? what is the procedure?

[CY]: You may rebuild the kernel by make menuconfig, then press "Y" to enable the feature as shown below, then rebuild the kernel to generate a new kernel image, with which to boot the board. After it, you may try your own application that need this feature to have a try.

chenyin_h_0-1734055067270.png

From NXP perspective, the BSP is based on Yocto/ubuntu, it is not tested with CentOS, but from my experience, the procedure to enable this feature may almost be the same on your own system.

I hope it will help.

 

BR

Chenyin

0 Kudos
Reply
46 Views
Shankar_1
Contributor I

 

The provided solution worked for the centos Auto SD Too.

Issue got resolved.

Thanks for support.

0 Kudos
Reply
146 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Shankar_1 

From my understanding, there is not any other settings needed to use this feature after rebuilding the kernel with the modification mentioned in the previous post. you may directly test with your application.

 

BR

Chenyin

0 Kudos
Reply
126 Views
Shankar_1
Contributor I

Thanks for reply.

1. how to enable the MQUEUE?  

   a. do we need to modify on nxp board directly on current image. by modifying files or        running command?

  b. if question (a) is no then do we need to rebuild the kernel image?

   c. how to set the CONFIG_POSIX_MQUEUE while rebuilding kernel image?                                 which files to modify before running going for build the kernel? or any command to run? what is the procedure?

Note: currently we are using centos stream 9 aws instance to build kernel.

 

 

0 Kudos
Reply
179 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Shankar_1 

Thanks for your post.

From my understanding, POSIX message queue support is an optional kernel component that is configured via the CONFIG_POSIX_MQUEUE option, as a result, you may have to enable it via kernel configuration, and then it could be available after boot the board with newly built kernel.

I hope it will help

 

BR

Chenyin

0 Kudos
Reply
158 Views
Shankar_1
Contributor I

Thanks for the reply,

while kernel build any command to be run to configure the kernel with CONFIG_POSIX_MQUEUE enabled? or any file to update? 

thanks,

Shankar.

0 Kudos
Reply