How to reboot i.MX6 by MfgTool after burning firmware?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to reboot i.MX6 by MfgTool after burning firmware?

跳至解决方案
1,292 次查看
m_c
Senior Contributor I

Is there any command that can add in ucl.xml to reboot i.MX6 by MfgTool after burning firmware?

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,157 次查看
max_tsai
NXP Employee
NXP Employee

Saw your discussion with customer. Replied here.

Checked with L4.1.15.

In normal rootfs, reboot is /sbin/halt.sysvinit.

In initramfs, reboot is linked to /bin/busybox.nosuid

/bin/busybox.nosuid is not the real function of reboot. 

//normal rootfs

root@imx6slevk:~# /bin/busybox.nosuid
BusyBox v1.24.1 (2016-09-08 18:25:03 CDT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed

root@imx6slevk:~# whereis reboot
reboot: /sbin/reboot /sbin/reboot.sysvinit
root@imx6slevk:~# ls -l /sbin/reboot.sysvinit
lrwxrwxrwx 1 root root 13 Sep 16 22:35 /sbin/reboot.sysvinit -> halt.sysvinit

//initramfs

UTP: sending Success to kernel for command $ whereis reboot.
utp_poll: pass returned.
UTP: received command '$ ls -l /sbin/reboot'
UTP: executing "ls -l /sbin/reboot"
lrwxrwxrwx 1 root root 19 May 10 2017 /sbin/reboot -> /bin/busybox.nosuid
UTP: sending Success to kernel for command $ ls -l /sbin/reboot.
utp_poll: pass returned.
UTP: received command '$ ls -l /bin/busybox.nosuid'
UTP: executing "ls -l /bin/busybox.nosuid"
-rwxr-xr-x 1 root root 548048 Apr 13 2017 /bin/busybox.nosuid
UTP: sending Success to kernel for command $ ls -l /bin/busybox.nosuid.
utp_poll: pass returned.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,158 次查看
max_tsai
NXP Employee
NXP Employee

Saw your discussion with customer. Replied here.

Checked with L4.1.15.

In normal rootfs, reboot is /sbin/halt.sysvinit.

In initramfs, reboot is linked to /bin/busybox.nosuid

/bin/busybox.nosuid is not the real function of reboot. 

//normal rootfs

root@imx6slevk:~# /bin/busybox.nosuid
BusyBox v1.24.1 (2016-09-08 18:25:03 CDT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed

root@imx6slevk:~# whereis reboot
reboot: /sbin/reboot /sbin/reboot.sysvinit
root@imx6slevk:~# ls -l /sbin/reboot.sysvinit
lrwxrwxrwx 1 root root 13 Sep 16 22:35 /sbin/reboot.sysvinit -> halt.sysvinit

//initramfs

UTP: sending Success to kernel for command $ whereis reboot.
utp_poll: pass returned.
UTP: received command '$ ls -l /sbin/reboot'
UTP: executing "ls -l /sbin/reboot"
lrwxrwxrwx 1 root root 19 May 10 2017 /sbin/reboot -> /bin/busybox.nosuid
UTP: sending Success to kernel for command $ ls -l /sbin/reboot.
utp_poll: pass returned.
UTP: received command '$ ls -l /bin/busybox.nosuid'
UTP: executing "ls -l /bin/busybox.nosuid"
-rwxr-xr-x 1 root root 548048 Apr 13 2017 /bin/busybox.nosuid
UTP: sending Success to kernel for command $ ls -l /bin/busybox.nosuid.
utp_poll: pass returned.

0 项奖励
回复