Hi,
While still waiting for updates on https://community.nxp.com/t5/QorIQ/FMC-Crash-timeout-waiting-for-Tx-confirmation/m-p/1200434#M9994 we discovered another issue for fmc tool:
Steps to reproduce (100% reproducing rate):
Default LSDK19.06 build running on LS1043ARDB
root@localhost:/home/user# su user
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
user@localhost:~$ fmc -x
Segmentation fault
Setup details:
user@localhost:~$ cat /etc/issue
NXP LSDK 1906 main
user@localhost:~$ uname -a
Linux localhost 4.19.46 #1 SMP PREEMPT Mon Jul 29 21:22:12 CST 2019 aarch64 aarch64 aarch64 GNU/Linux
If the operation is illegal for unprivileged user this should clearly stated in the logs and no segmentation fault is expected.
BR,
Lucian
Hello @yipingwang
My name is Andrei and I have picked up this topic as Lucian is no longer working for this project.
Can you please share current status? Are you investigating the issue on your side!?
Thank you
You need to run fmc with "sudo <command>", please refer to the following.
NXP LSDK 1906 main
localhost login: root
Password:
Last login: Thu Mar 11 22:43:18 UTC 2021 on ttyS0
Welcome to NXP LSDK 1906 main (GNU/Linux 4.19.46 aarch64)
* Support: https://www.nxp.com/lsdk
* Documentation: https://lsdk.github.io/document
* Licensing: https://lsdk.github.io/eula
root@localhost:~# su user
user@localhost:/root$ cd ~
user@localhost:~$ sudo fmc -x
[sudo] password for user:
user@localhost:~$ cd /etc/fmc/config/private/ls1043ardb/RR_FQPP_1455
user@localhost:/etc/fmc/config/private/ls1043ardb/RR_FQPP_1455$ sudo fmc -c config.xml -p policy_ipv4.xml -a
user@localhost:/etc/fmc/config/private/ls1043ardb/RR_FQPP_1455$
Hi @yipingwang ,
We know about sudo this is how we currently managed to bypass the issue.
But the issue still remains .. no SEGFAULT is expected for the FMC tool, maybe have an error log mentioning that this is an illegal operation (for users not belonging to sudoers group), we have not backtraced yet the issue but the expectation is to have a fix for it.
I have already reported this issue to Linux SDK FMC tool development team.
Hello @yipingwang
Any updates on this!?
Note that we can't use sudo anyway as the production image does not have sudo ..
Thank you
Thank you, will wait for updates!