This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2HG: ps command support in linux based on VSDK 03 05

Part Number: TDA2HG


Hello,

We use tda2hg device based on VSDK 03 05.We set it as  Linux + BIOS mode.  It can not support 'ps -ef' command in shell, but 'ps -l' is normal. We need 'ps -ef' command, how do we do? Could you help to have a look?

=====================================================

root@dra7xx-evm:~# ps -ef
ps: invalid option -- 'e'
BusyBox v1.24.1 (2018-09-17 14:56:41 IST) multi-call binary.

Usage: ps
root@dra7xx-evm:~# ps -l
S UID PID PPID VSZ RSS TTY STIME TIME CMD
S 0 1 0 5076 4188 0:0 09:22 00:00:04 {systemd} /sbin/init
S 0 2 0 0 0 0:0 09:22 00:00:00 [kthreadd]
S 0 3 2 0 0 0:0 09:22 00:00:00 [ksoftirqd/0]
S 0 4 2 0 0 0:0 09:22 00:00:02 [kworker/0:0]
S 0 5 2 0 0 0:0 09:22 00:00:00 [kworker/0:0H]
S 0 6 2 0 0 0:0 09:22 00:00:00 [kworker/u4:0]
S 0 7 2 0 0 0:0 09:22 00:00:00 [rcu_preempt]

  • Hi Terence,

    the ps command is part of BusyBox (which is a community project and not developed by TI) and supports limited number of options. I did some experiments and found that only options '-l' and '-w' are supported.

    On the other hand running 'ps -l' gives more verbose output than 'ps -ef'. Doesn't it work for you?

    Regards,

    Yordan

  • Hi Yordan,

    Thank you very much.

    For TI VSDK, Can we add or modify the command into BusyBox? where can we config it in the VSDK code?

    Terence

  • Hi Terence,

    you can check section "3.7 Build Linux Vision SDK file-system" in VisionSDK_Linux_UserGuide.pdf for direction how to use Yocto to add/rebuild components of the rootfs.

    BTW, I see that 'ps' command in PSDKLA's rootfs is not a symlink to busybox, but a standalone program which might be the full version. You can download "tisdk-rootfs-image-dra7xx-evm.tar.xz" from here:

    and copy /bin/ps.procps to your rootfs (in PSDKLA /bin/ps is a symlink to /bin/ps.procps) and check if that works.

    Regards,

    Yordan

  • Hi Yordan,

    We don't find the chapter 3.7  VisionSDK_Linux_UserGuide.pdf. Because, We use VSDK 03 05. I don't understand that you said "copy /bin/ps.procps to your rootfs (in PSDKLA /bin/ps is a symlink to /bin/ps.procps)".

    Thanks

    Terence