embedded linux shell prompt

Aug 23, 2005 4 Replies

Hi



Does embedded linux spawns any task to listen at the serial port ? (Shell task specifically).That is to say, is it possible to execute shell commands from serial port console ?



Also, can the shell prompt be reached via other interfaces - ethernet port etc ?



In how many ways can we reach at the shell prompt in embedded linux ?



Thanks



There is no difference between 'embedded' and any other linux... You get the shell prompt whereever you allow it.... If you allow logins or run a shell on that (p)tty, you get a prompt.....

Hi

It should be having the serial driver, which keeps track of the serial port...it doesnt have to spawn a task to listen to it. When a character comes, it just simply raises the interrupt which in turn calls the driver routine.

yes, surely

yes..anything, it all depends on the driver

: >Also, can the shell prompt be reached via other interfaces - ethernet : >port etc ?

: yes..anything, it all depends on the driver

well yes and no. The driver provides the software in the kernel to do the provide the interface between userspace and the hardware.

All the rest is userspace issue. The shell can be run from any device with a kernel api that supports a tty or a pseudo tty.

All u have to do is point ur login script to the /dev/tty or /dev/stty and connect there the serial port or the keyboard are just devices whatever file u ask for as a console that is the one u will get

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required