Other Parts Discussed in Thread: TPS65217
Tool/software: Linux
We use a custom PCB design based on the beaglebone Black.
After issuing /sbin/halt we get a kernel panic during shutdown. Below is the serial output form Am335x once the halt command is executed.
[ 67.247026] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 67.284712] systemd-journald[131]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 67.345959] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 67.377139] systemd-shutdown[1]: Unmounting file systems.
[ 67.384882] systemd-shutdown[1]: Unmounting /sys/fs/fuse/connections.
[ 67.413705] systemd-shutdown[1]: Unmounting /sys/kernel/config.
[ 67.443548] systemd-shutdown[1]: Unmounting /sys/kernel/debug.
[ 67.473490] systemd-shutdown[1]: Unmounting /dev/mqueue.
[ 68.620047] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 68.656456] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 68.662182] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 68.668229] systemd-shutdown[1]: All filesystems unmounted.
[ 68.674701] systemd-shutdown[1]: Deactivating swaps.
[ 68.680958] systemd-shutdown[1]: All swaps deactivated.
[ 68.686839] systemd-shutdown[1]: Detaching loop devices.
[ 68.700775] systemd-shutdown[1]: All loop devices detached.
[ 68.707199] systemd-shutdown[1]: Detaching DM devices.
[ 68.714447] systemd-shutdown[1]: All DM devices detached.
[ 68.762750] systemd-shutdown[1]: Powering off.
[ 68.792038] musb-dsps 47401c00.usb: otg: usb_otg_unregister_hcd: device not registered to otg core
[ 68.801615] musb-hdrc musb-hdrc.1.auto: remove, state 4
[ 68.807343] usb usb1: USB disconnect, device number 1
[ 68.815470] musb-hdrc musb-hdrc.1.auto: USB bus 1 deregistered
[ 68.855730] reboot: Power down
[ 68.858956] System will go to power_off state in approx. 1 second
[ 71.343720] rtc_power_off failed, bailing out.
[ 71.356128] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 71.356128]
[ 71.365545] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 4.1.8-ti-r18 #1
[ 71.372633] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 71.378928] [<c001a088>] (unwind_backtrace) from [<c0014aa4>] (show_stack+0x20/0x24)
[ 71.386873] [<c0014aa4>] (show_stack) from [<c09af280>] (dump_stack+0x8c/0xcc)
[ 71.394282] [<c09af280>] (dump_stack) from [<c09acb0c>] (panic+0xb0/0x230)
[ 71.401320] [<c09acb0c>] (panic) from [<c004aaf4>] (complete_and_exit+0x0/0x2c)
[ 71.408829] [<c004aaf4>] (complete_and_exit) from [<c00686e4>] (SyS_reboot+0x1c8/0x238)
[ 71.417042] [<c00686e4>] (SyS_reboot) from [<c0010920>] (ret_fast_syscall+0x0/0x3c)
[ 71.424894] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 71.424894]
We also had some problems inn keeping the sitara powered on using TPS65910 so, we worked around the issue by editing the uboot include/configs/am335x_evm.h by adding the following in bold.
#define CONFIG_BOOTCOMMAND \
"setenv umsmedia 0; "\
"run findfdt; " \
"setenv mmcdev 0; " \
"setenv bootpart 0:1; " \
"run mmcboot;" \
"setenv mmcdev 1; " \
"setenv bootpart 1:1; " \
"gpio clear 64; " \
"gpio clear 67; " \
"gpio clear 68; " \
"gpio clear 12; " \
"gpio clear 13; " \
"gpio clear 14; " \
"gpio clear 15; " \
"gpio clear 22; " \
"i2c mw 2d 3f 34; " \
"i2c mw 69 c0 3c; " \
"gpio clear 53; " \
"gpio set 54; " \
"gpio set 55; " \
"gpio set 56; " \
"gpio set 57; " \
"gpio set 58; " \
"gpio set 22; " \
"run mmcboot;" \
"run failumsboot;"
We are not sure if these two problems are related but they as well might be. Any help would be appreciated.
Regards,
Harshvardhan.