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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
988 Views
m_c
Senior Contributor I

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

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
853 Views
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.

View solution in original post

0 Kudos
Reply
1 Reply
854 Views
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 Kudos
Reply