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.
已解决! 转到解答。
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.
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
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.
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
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
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.
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