Other Parts Discussed in Thread: AM625
Hi Ti,
working on AM62X customised board with SDK version 09_00_00_03.
Observed that reboot is not working .
Could you please help me on this.
Thanks,
Naresh.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Ti,
working on AM62X customised board with SDK version 09_00_00_03.
Observed that reboot is not working .
Could you please help me on this.
Thanks,
Naresh.
Hi Naresh,
What is the AM62x part number on your board?
Observed that reboot is not working .
reboot with Linux 'reboot' command? What is "not working"? What is the console log after the "reboot" command?
Hi Bin Liu,
reboot command is not working in the linux shell.
please find the consol logs after reboot .
root@am62xx-evm:~# root@am62xx-evm:~# root@am62xx-evm:~# root@am62xx-evm:~# reboot root@am62xx-evm:~# Stopping Session c1 of User root... [ OK ] Removed slice Slice /system/modprobe. [ OK ] Stopped target Login Prompts. [ OK ] Stopped target RPC Port Mapper. [ OK ] Stopped target System Time Set. [ OK ] Stopped target Timer Units. [ OK ] Stopped Daily Cleanup of Temporary Directories. [ OK ] Closed Process Core Dump Socket. [ OK ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch. Stopping Avahi mDNS/DNS-SD Stack... Stopping containerd container runtime... Stopping Getty on tty1... Stopping Netperf Benchmark Server... Stopping NFS status monitor for NFSv2/3 locking.... Stopping Serial Getty on ttyS2... Stopping Load/Save Random Seed... Starting Record Runlevel Change in UTMP... Stopping TEE Supplicant... Stopping LSB: Expand Rootfs of boot device... [ OK ] Stopped TEE Supplicant. [ OK ] Stopped Wait for Network to be Configured. [ OK ] Stopped Avahi mDNS/DNS-SD Stack. [ OK ] Stopped Netperf Benchmark Server. [ OK ] Stopped NFS status monitor for NFSv2/3 locking.. [ OK ] Stopped containerd container runtime. [ OK ] Stopped Getty on tty1. [ OK ] Stopped Serial Getty on ttyS2. [ OK ] Stopped Load/Save Random Seed. [ OK ] Stopped LSB: Expand Rootfs of boot device. [ OK ] Stopped Session c1 of User root. [ OK ] Finished Record Runlevel Change in UTMP. [ OK ] Removed slice Slice /system/getty. [ OK ] Removed slice Slice /system/serial-getty. [ OK ] Stopped target Host and Network Name Lookups. Stopping User Login Management... Stopping telnetd.service... Stopping User Manager for UID 0... [ OK ] Stopped User Login Management. [ OK ] Stopped User Manager for UID 0. [ OK ] Stopped telnetd.service. Stopping User Runtime Directory /run/user/0... [ OK ] Unmounted /run/user/0. [ OK ] Stopped User Runtime Directory /run/user/0. [ OK ] Removed slice User Slice of UID 0. Stopping Permit User Sessions... [ OK ] Stopped Permit User Sessions. [ OK ] Stopped target Network. [ OK ] Stopped target Remote File Systems. Stopping Network Name Resolution... [ OK ] Stopped Network Name Resolution. Stopping Network Configuration... [ OK ] Stopped Network Configuration. [ OK ] Stopped target Preparation for Network. [ OK ] Stopped IPv6 Packet Filtering Framework. [ OK ] Stopped IPv4 Packet Filtering Framework. [ OK ] Stopped target Basic System. [ OK ] Stopped target Path Units. [ OK ] Stopped Dispatch Password …ts to Console Directory Watch. [ OK ] Stopped Forward Password R…uests to Wall Directory Watch. [ OK ] Stopped target Slice Units. [ OK ] Removed slice User and Session Slice. [ OK ] Stopped target Socket Units. [ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Closed Docker Socket for the API. [ OK ] Closed dropbear.socket. [ OK ] Closed GPS (Global Positioning System) Daemon Sockets. [ OK ] Closed Network Service Netlink Socket. Stopping D-Bus System Message Bus... [ OK ] Stopped D-Bus System Message Bus. [ OK ] Closed D-Bus System Message Bus Socket. [ OK ] Stopped target System Initialization. [ OK ] Stopped Apply Kernel Variables. Stopping Network Time Synchronization... [ OK ] Stopped Network Time Synchronization. [ OK ] Stopped Create Volatile Files and Directories. [ OK ] Stopped target Local File Systems. Unmounting /media/ram... Unmounting Temporary Directory /tmp... Unmounting /var/volatile... [ OK ] Unmounted /media/ram. [ OK ] Unmounted Temporary Directory /tmp. [ OK ] Unmounted /var/volatile. [ OK ] Stopped target Preparation for Local File Systems. [ OK ] Stopped target Swaps. [ OK ] Reached target Unmount All Filesystems. [ OK ] Stopped Remount Root and Kernel File Systems. [ OK ] Stopped Create Static Device Nodes in /dev. [ OK ] Reached target System Shutdown. [ OK ] Reached target Late Shutdown Services. [ OK ] Finished System Reboot. [ OK ] Reached target System Reboot. [ 43.737077] kauditd_printk_skb: 3 callbacks suppressed [ 43.737106] audit: type=1334 audit(1651169475.664:13): prog-id=8 op=UNLOAD [ 43.766681] audit: type=1334 audit(1651169475.684:14): prog-id=7 op=UNLOAD [ 43.782598] audit: type=1334 audit(1651169475.688:15): prog-id=10 op=UNLOAD [ 43.796365] audit: type=1334 audit(1651169475.688:16): prog-id=9 op=UNLOAD [ 43.809704] audit: type=1334 audit(1651169475.720:17): prog-id=6 op=UNLOAD [ 43.817246] audit: type=1334 audit(1651169475.720:18): prog-id=5 op=UNLOAD [ 43.827085] audit: type=1334 audit(1651169475.720:19): prog-id=4 op=UNLOAD [ 43.838384] audit: type=1334 audit(1651169475.720:20): prog-id=3 op=UNLOAD [ 43.877723] systemd-shutdown[1]: Syncing filesystems and block devices. [ 43.972394] systemd-shutdown[1]: Sending SIGTERM to remaining processes... [ 44.008877] systemd-journald[172]: Received SIGTERM from PID 1 (systemd-shutdow). [ 44.036076] audit: type=1335 audit(1651169475.964:21): pid=172 uid=0 auid=4294967295 tty=(none) ses=4294967295 comm="systemd-journal" exe="/lib/systemd/systemd-journald" nl-mcgrp=1 op=disconnect res=1 [ 44.092438] systemd-shutdown[1]: Sending SIGKILL to remaining processes... [ 44.116498] systemd-shutdown[1]: Unmounting file systems. [ 44.126961] [469]: Remounting '/' read-only with options 'n/a'. [ 44.156961] EXT4-fs (mmcblk0p1): re-mounted. Quota mode: none. [ 44.169182] systemd-shutdown[1]: All filesystems unmounted. [ 44.174921] systemd-shutdown[1]: Deactivating swaps. [ 44.180310] systemd-shutdown[1]: All swaps deactivated. [ 44.185576] systemd-shutdown[1]: Detaching loop devices. [ 44.195088] systemd-shutdown[1]: All loop devices detached. [ 44.200757] systemd-shutdown[1]: Stopping MD devices. [ 44.206289] systemd-shutdown[1]: All MD devices stopped. [ 44.211743] systemd-shutdown[1]: Detaching DM devices. [ 44.217194] systemd-shutdown[1]: All DM devices detached. [ 44.222624] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached. [ 44.241280] systemd-shutdown[1]: Syncing filesystems and block devices. [ 44.249581] systemd-shutdown[1]: Rebooting. [ 44.253880] kvm: exiting hardware virtualization [ 44.300639] reboot: Restarting system CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.1 | VT102 | Offline | ttyUSB0
Thanks,
Naresh
Hi Bin Liu,
Thanks for your Quick Response,
Logs snippet:
U-Boot 2023.04-00001-gf5b119738d (Nov 08 2023 - 15:51:26 +0530)
SoC: AM62X SR1.0 GP
Model: Texas Instruments AM625 SK
EEPROM not available at 80, trying to read at 81
Reading on-board EEPROM at 0x51 failed -121
DRAM: 2 GiB
Core: 71 devices, 31 uclasses, devicetree: separate
MMC: mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
EEPROM not available at 80, trying to read at 81
Reading on-board EEPROM at 0x51 failed -121
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
=>
=>
=> reset
resetting ...
Thanks,
Naresh
Hi Maresh,
Can you please try the following u-boot command, then try Linux reboot or u-boot reset?
=> mmc rst-function 0 1
Hi Bin Liu,
Thanks Bin Liu for your support , reset and reboot wokring fine after that issuing "mmc rst-function 0 1" command.
but in uboot even i eabled saveenv command in menuconfig , i didnt observed that saveenv command in uboot shell . so on everytime i will issue below commands in uboot in order to boot entire linux kernel through emmc .
uboot# setenv mmcdev 0
uboot#bootpart 0
uboot#boot.
observtions on my board:
=> saveenv
Unknown command 'saveenv' - try 'help'
=> env save
env - environment handling commands
Usage:
env default [-f] -a - [forcibly] reset default environment
env default [-f] var [...] - [forcibly] reset variable(s) to their default values
env delete [-f] var [...] - [forcibly] delete variable(s)
env edit name - edit environment variable
env exists name - tests for existence of variable
env export [-t | -b | -c] [-s size] addr [var ...] - export environment
env import [-d] [-t [-r] | -b | -c] addr [size] [var ...] - import environment
env print [-a | name ...] - print environment
env run var [...] - run commands in an environment variable
env set [-f] name [arg ...]
Could you please help me how to enable saveenv in uboot ?
Thanks,
Naresh
Hi Naresh,
Glad the reboot issue is resolved.
Please create a new E2E post for the U-Boot ENV issue so that it will be routed to our U-Boot expert for comments.