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.

How to let AM3517 log in automatically as "root"?

Other Parts Discussed in Thread: OMAPL138

I'm a green hand, and I have to write programs on AM3517 Experiment Kit which I have just got from my supervisor. Could anyone help me to solve a problem?

The problem:   When the I reboot the system, how to let the kit  log in automatically as "root"?

My OS:   Linux

Thanks a lot!

  • So do you want to boot to a command prompt and not have to log in as root?

    Steve K.

  • Yes!

    That is my first problem.Could you tell me the how to acheive the goal step by step?

    And I want to get my programs started when I power on my board!

    Thank you very much! 

  • Hi,

    If you want programs/scripts to run as part of linux initialization, then its not necessary for you to login. Typically, /etc/init.d has a number of scripts that are run at init time and you can also define specific init commands in /etc/inittab. So you could get your programs to launch on power up by adding scripts accordingly.

    http://en.wikipedia.org/wiki/Linux_startup_process may have information that may be useful. http://www.debian-administration.org/article/Making_scripts_run_at_boot_time_with_Debian also has steps for the PC but uses key ideas that can be done on OMAP as well.

  • Hi,

    The first webpage really helped me understand the flow of Linux's starting-up.

    But I am still not sure whether the method provided by the second webpage can  skim over the logining-in step.

    However,I will do have a try with the help of it .

    Thanks!

  • /etc/inittabHi,

    The problem is still not been solved with the help of the two webpage.And I do agree that the key is to modify some commands in /etc/inittab.But I do not how to modify it to get my system login automatically.

    Could you tell me how to modify it?

    The source code of /etc/inittab is followed:

     

     

    # /etc/inittab: init(8) configuration.
    # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

    # The default runlevel.
    id:5:initdefault:

    # Boot-time system configuration/initialization script.
    # This is run first except when booting in emergency (-b) mode.
    si::sysinit:/etc/init.d/rcS

    # What to do in single-user mode.
    ~~:S:wait:/sbin/sulogin

    # /etc/init.d executes the S and K scripts upon change
    # of runlevel.
    #
    # Runlevel 0 is halt.
    # Runlevel 1 is single-user.
    # Runlevels 2-5 are multi-user.
    # Runlevel 6 is reboot.

    l0:0:wait:/etc/init.d/rc 0
    l1:1:wait:/etc/init.d/rc 1
    l2:2:wait:/etc/init.d/rc 2
    l3:3:wait:/etc/init.d/rc 3
    l4:4:wait:/etc/init.d/rc 4
    l5:5:wait:/etc/init.d/rc 5
    l6:6:wait:/etc/init.d/rc 6
    # Normally not reached, but fallthrough in case of emergency.
    z6:6:respawn:/sbin/sulogin
    S:2345:respawn:/sbin/getty 115200 ttyS2
    # /sbin/getty invocations for the runlevels.
    #
    # The "id" field MUST be the same as the last
    # characters of the device (after "tty").
    #
    # Format:
    #  <id>:<runlevels>:<action>:<process>
    #

    1:2345:respawn:/sbin/getty 38400 tty1

     

    Thank you!

  • <quote>The problem is still not been solved with the help of the two webpage.And I do agree that the key is to modify some commands in /etc/inittab.But I do not how to modify it to get my system login automatically.</quote>

    Adding an inittab entry will not remove the login step and I'm not sure to completely eliminate that without changing the inittab quite a bit. The only thing it can do is run programs as part of the init process. So, if you have specific programs that you want to run, just copy the entry /sbin/getty, replace the fields as per the instructions in http://www.debian-administration.org/article/Making_scripts_run_at_boot_time_with_Debian.

    --Sid

  • I have solve the problem by another way.

    Thank you very much!

  • df Zzz,

    Could you please post your solution here?

    I am struggling with the auto-login thing, have tried modifying inittab. Doesn't work for me (OMAPL138, 2.6.33-rc4)

    Thanks,

  • Actually,I did not solve the problem.

    I just let my PC send "root" to the board.