TI中文支持网
TI专业的中文技术问题搜集分享网站

关于am335x的系统自动登录

我需要自动登录root权限。然后运行程序。 修改rc.local文件。

 

# rc.local

#

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other # value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

 # By default this script does nothing.

login -f root exit 0

 

但是执行出问题。

root@beaglebone:/# systemctl start rc-local.service

 Job for rc-local.service failed because the control process exited with error code.

 See "systemctl status rc-local.service" and "journalctl -xe" for details.

 

root@beaglebone:/# systemctl status rc-local.service 鈼[0m rc-local.service – /etc/rc.local Compatibility

    Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset:

   Drop-In: /lib/systemd/system/rc-local.service.d

            鈹斺攢debian.conf

   Active: failed (Result: exit-code) since Sun 2017-03-19 15:07:08 UTC; 5min ag

   Process: 21842 ExecStart=/etc/rc.local start (code=exited, status=1/FAILURE)

Mar 19 15:07:08 beaglebone systemd[1]: Starting /etc/rc.local Compatibility…

 Mar 19 15:07:08 beaglebone systemd[1]: rc-local.service: Control process exited,

 Mar 19 15:07:08 beaglebone systemd[1]: Failed to start /etc/rc.local Compatibili

 Mar 19 15:07:08 beaglebone systemd[1]: rc-local.service: Unit entered failed sta

 Mar 19 15:07:08 beaglebone systemd[1]: rc-local.service: Failed with result 'exi

 

在网上查了资料。说是执行的权限可能有问题。了权限没有问题。执行rc.local是可以的。就是启动服务不行。

还有什么方法可以自动root?我在旧的内核用的就是这种方法。是可以的。更换内核后就不行了。请问是为什么。

Steven Liu1:

相似问题:

http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/p/139145/391246.aspx#391246

赞(0)
未经允许不得转载:TI中文支持网 » 关于am335x的系统自动登录
分享到: 更多 (0)