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.

Putting the board into operation - how?

I want to put my (custom) Sitara AM335x board into operation at power up, automatically.

That is I need to start my console Linux application right after the system is started (Angstroom/Arago).

It is valued also that if at any time I activate my terminal connection I will have a prompt from my console app, be it a hardware UART TTY, or SSL network terminal - as initially configured for the application in question, at it's start.

How do I do that?

The internet is full of advises on "how do I log in automatically?" of a sort "you never should do that"

I do not think this is the best answer and I'd like to invite the Linux experts to share better ideas on this.

Of course, there is an option to write something like a kernel driver/network service and allow the user, after regular log in, connect with this service, from the terminal. Those who tried, know that this is not always an acceptable solution.

So, at minimum,

can I somehow skip the log in process (log in the user automatically after the Linux is started) from the specified terminal, so that to using the bash script of this console terminal, start my console application?

Or any better idea...

Thanks!

  • sviss said:
    can I somehow skip the log in process (log in the user automatically after the Linux is started) from the specified terminal, so that to using the bash script of this console terminal, start my console application?

    You don't have to do anything with login to start your application automatically. You only need to write a shell script to start the app, and put the script into /etc/rc5.d/ directory.

    Please look at the /etc/rc5.d/S97matrix-gui-2.0 script in the root filesystem provided in the AM335x Linux SDK package as a reference.

  •  ,

    Thank you for the hint.

    I am pretty new in this area, and believed that to run console application, I need to have a respective console terminal, logged in.

    Probably my guess was somehow incorrect (I tried rc5.d script composition but got confused about console terminal specification).

    Currently I consider the question answered, thanks again.