reboot and shutdown are not working in custom imx7 board..?

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

reboot and shutdown are not working in custom imx7 board..?

3,220 Views
flabyjacob
Contributor III

Hi all,

i am working on custom board base on imx7d, my board is freezing after a while when i reboot or shutdown,

also i tried reset command from uboot here also it is freezing can anyone suggest me any solution, i an not able to find root cause.

i have attached log while executing all above mentioned command,

please give your help and suggestions

1. while running reset from uboot.

U-Boot 2018.11+fslc+g6e25ce6 (Apr 23 2020 - 07:30:06 +0000)

CPU:   Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 38C
Reset cause: POR
Model: Freescale i.MX7 SabreSD Board
Board: i.MX7D SABRESD in secure mode
DRAM:  1 GiB
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Video: 480x272x24
In:    serial
Out:   serial
Err:   serial
Net:   FEC1 MXC: board_eth_init:failed
Board Net Initialization Failed
No ethernet found.
Hit any key to stop autoboot:  0
=>
=> reset
resetting ...

board will hang after this

2. when issuing reboot command from linux following is log,

root@datalogger:~# reboot
root@datalogger:~# [ OK ] Stopped target System Time Syn� Stopping D-Bus System Message Bus...
Stopping Kernel Logging Service...
[ OK ] Stopped target Host and Network Name Lookups.
Stopping Login Service...
Stopping System Logging Service...
[ OK ] Stopped target Containers.
[ OK ] Stopped target Timers.
[ OK ] Stopped target Network.
Stopping Network Name Resolution...
[ OK ] Stopped Daily Cleanup of Temporary Directories.
Stopping Getty on tty1...
[ OK ] Stopped Network Name Resolution.
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped NIE datalogger service.
[ OK ] Stopped Serial Getty on ttymxc0.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped Kernel Logging Service.
[ OK ] Stopped Getty on tty1.
[ OK ] Stopped Login Service.
[ OK ] Removed slice system-getty.slice.
[ OK ] Removed slice system-serial\x2dgetty.slice.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Sockets.
[ OK ] Closed dropbear.socket.
[ OK ] Closed Syslog Socket.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Paths.
[ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
[ OK ] Stopped Forward Password Requests to Wall Directory Watch.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target System Initialization.
Stopping Network Time Synchronization...
Stopping Load/Save Random Seed...
Stopping Update UTMP about System Boot/Shutdown...
Stopping Load/Save Screen Backlight…ightness of backlight:backlight...
Stopping Network Service...
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight.
[ OK ] Stopped Network Service.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Removed slice system-systemd\x2dbacklight.slice.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
Unmounting /var/volatile...
Unmounting Temporary Directory (/tmp)...
[ OK ] Unmounted /var/volatile.
[ OK ] Unmounted Temporary Directory (/tmp).
[ OK ] Reached target Unmount All Filesystems.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped target Swap.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
Starting Reboot...
watchdog: watchdog0: watchdog did not stop!
systemd-shutdow: 25 output lines suppressed due to ratelimiting
systemd-shutdown[1]: Syncing filesystems and block devices.
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[206]: Received SIGTERM from PID 1 (systemd-shutdow).
systemd-shutdown[1]: Sending SIGKILL to remaining processes...
systemd-shutdown[1]: Hardware watchdog 'imx2+ watchdog', version 0
systemd-shutdown[1]: Unmounting file systems.
[314]: Remounting '/' read-only in with options 'data=ordered'.
EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
systemd-shutdown[1]: All filesystems unmounted.
systemd-shutdown[1]: Deactivating swaps.
systemd-shutdown[1]: All swaps deactivated.
systemd-shutdown[1]: Detaching loop devices.
systemd-shutdown[1]: All loop devices detached.
imx2-wdt 30280000.wdog: Device shutdown: Expect reboot!
ci_hdrc ci_hdrc.1: remove, state 4
usb usb1: USB disconnect, device number 1
ci_hdrc ci_hdrc.1: USB bus 1 deregistered
reboot: Restarting system
imx2-wdt 30280000.wdog: failed to assert external reset, trying with timeout

3. when running shutdown command from linux following is log:

root@datalogger:~#
root@datalogger:~# shutdown -h now
root@datalogger:~# [  OK  ] Stopped t�         Stopping D-Bus System Message Bus...
         Stopping NIE datalogger service...
         Stopping Login Service...
[  OK  ] Stopped target Host and Network Name Lookups.
         Stopping Kernel Logging Service...
         Stopping System Logging Service...
[  OK  ] Stopped target Network.
         Stopping Network Name Resolution...
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped Network Name Resolution.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped NIE datalogger service.
[  OK  ] Stopped Kernel Logging Service.
[  OK  ] Stopped Serial Getty on ttymxc0.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed dropbear.socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target System Initialization.
         Stopping Load/Save Random Seed...
         Stopping Update UTMP about System Boot/Shutdown...
         Stopping Load/Save Screen Backlight…ightness of backlight:backlight...
         Stopping Network Time Synchronization...
[  OK  ] Closed Syslog Socket.
         Stopping Network Service...
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Network Service.
[  OK  ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight.
[  OK  ] Removed slice system-systemd\x2dbacklight.slice.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting Temporary Directory (/tmp)...
         Unmounting /var/volatile...
[  OK  ] Unmounted Temporary Directory (/tmp).
[  OK  ] Unmounted /var/volatile.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Swap.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
         Starting Power-Off...
systemd-shutdow: 25 output lines suppressed due to ratelimiting
systemd-shutdown[1]: Syncing filesystems and block devices.
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[205]: Received SIGTERM from PID 1 (systemd-shutdow).
systemd-shutdown[1]: Sending SIGKILL to remaining processes...
systemd-shutdown[1]: Unmounting file systems.
[291]: Remounting '/' read-only in with options 'data=ordered'.
EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
systemd-shutdown[1]: All filesystems unmounted.
systemd-shutdown[1]: Deactivating swaps.
systemd-shutdown[1]: All swaps deactivated.
systemd-shutdown[1]: Detaching loop devices.
systemd-shutdown[1]: All loop devices detached.
systemd-shutdown[1]: Detaching DM devices.
brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
ci_hdrc ci_hdrc.1: remove, state 4
usb usb1: USB disconnect, device number 1
ci_hdrc ci_hdrc.1: USB bus 1 deregistered
reboot: Power down
Unable to poweroff system
systemd-shutdow: 4 output lines suppressed due to ratelimiting
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

thnak you and help will be appreciated.

Labels (3)
Tags (1)
5 Replies

2,986 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Flaby,

You must check the DDR of your board since is not a problem with software. 

https://community.nxp.com/docs/DOC-105652 

Regards

2,986 Views
flabyjacob
Contributor III

Hello Bio_TICFSL,

thank you for your reply, sorry for late response as i was not having board with me and i was not able to reply.

i calibrated DDR and board reboot problem is solved  but shutdown problem is not still resolved.

please give your feedback on this.

thanks and regards.

0 Kudos

2,986 Views
javerv
Contributor I

Hello Flaby,

I have encountered the same issue in my custom imx7d board.

Have you fixed this issue? Can you share the fix?

Thanks,

Javer

0 Kudos

2,986 Views
flabyjacob
Contributor III

Hi Javer,

yes i was able to fix the issue with reboot, i performed the ddr calibration test and update .cfg file in <uboot-dir>/board/freescale/mx7dsabresd/ then board was rebooting fine.

late when board was loaded with few sensors in uart and spi i again faced same issue and i think this time maybe because of some running processes not getting killed.

Hope this information will help you.

Thanks,

Flaby

0 Kudos

2,986 Views
javerv
Contributor I
Hello Flaby,
Thank you very much for your suggestion.
I'll try it on my board and hope it will work.
Best Regards,
Javer
0 Kudos