Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/TDA2E: TDA2X/Linux : Application (apps.out) Autorun can't work by standard input(fd=0, ttyS0)

$
0
0

Part Number:TDA2E

Tool/software: Linux

Hi,

I build Linux image (apps.out) with VSDKv3.5 which could work fine by run shell script from terminal on the TDA2X EVM board.

The shell script (autorun.sh):

#!/bin/bash

cd  /opt/vision_sdk

source ./vision_sdk_load.sh

./apps.out

Then I add the autorun.sh script into /etc/init.d by the command :

          update_rc.d autorun.sh defaults

And confirmed that apps.out application(PID) start normally after reboot.

But I can't select the user case via STDIN (user input)

[HOST] [HOST  ]  ====================
 [HOST] [HOST  ]  Vision SDK Usecases
 [HOST] [HOST  ]  ====================
 [HOST] [HOST  ]  1: Single Camera Usecases
 [HOST] [HOST  ]  2: Multi-Camera LVDS Usecases
 [HOST] [HOST  ]  3: Open-Compute Usecases
 [HOST] [HOST  ]  4: AVB RX Usecases, (TDA2x & TDA2Ex ONLY)
 [HOST] [HOST  ]
 [HOST] [HOST  ]  p: CPU Status
 [HOST] [HOST  ]  i: Show IP Addr (IPU + NDK + AVB)
 [HOST] [HOST  ]
 [HOST] [HOST  ]  s: System Settings
 [HOST] [HOST  ]
 [HOST] [HOST  ]  x: Exit
 [HOST] [HOST  ]  z: Exit - AND SHUTDOWN Remote CPUs
 [HOST] [HOST  ]

And I observed that the STDIN (/proc/pid/fd/0) is link to /dev/null  in autorun mode,

but the STDIN (/proc/pid/fd/0) is link to /dev/ttyS0 in terminal/console mode.

Could you help teach me how to select the menu of autorun program via STDIN in autorun mode? Thanks.

regards,

Sam Hsieh


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>