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.

AM6412: Linux reboot reset signal

Part Number: AM6412

Hi,

on the AM64xx EVM, what is the actual Reset Signal being used when doing a Linux "reboot" or a u-boot "reset"?

The EVM has a number of Resets connected such as MCU_RESET and MCU_POR and RESET_REQ.

Is the "reboot" using one of those, and if so, which pin is it driving to get that Reset asserted?

Or is "reboot" using the SW_MCU_WARMRESET?

Thanks!

--Gunter

  • Hi Gunter,
    I'll look into your inquiry, and get back to you early next week.
    Best,
    -Hong

  • Thanks, Hong. Do you have an update?

    Regards,

    --Gunter

  • Hi Gunter,
    I'm attaching the two log files I captured using SDK 7.3.1 on AM64x GP EVM:
    1. am6_7.3.1_reset.txt: the log file from "reset" cmd @u-boot
    2. am6_7.3.1_reboot.txt: the log file from "reboot" cmd @kernel

    Based on reading from two registers: 1/. CTRLMMR_MCU_RST_SRC register @0x04518178, 2/. CTRLMMR_RST_SRC register @0x43018178,
    => "SW_MCU_WARMRST" for both cases: "reset" cmd @u-boot and "reboot" cmd @kernel.
    You may refer to the section 5.3.5.2.5 SW_MCU_WARMRESETz Reset in AM64x TRM for more details on "SW_MCU_WARMRST".

    Best,
    -Hong

    am6_7.3.1_reset.txt
    => md.l 0x04518174 2
    04518174: 00000001 00000000                      ........
    => md.l 0x43018174 2
    43018174: 00000000 00000000                      ........
    => reset
    resetting ...�
    U-Boot SPL 2020.01-ge995ed0ec1 (May 28 2021 - 16:20:13 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    SPL initial stack usage: 13396 bytes
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.4(release):2021.00.003-dirty
    NOTICE:  BL31: Built : 14:41:43, May 28 2021
    
    U-Boot SPL 2020.01-ge995ed0ec1 (May 28 2021 - 14:48:57 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    Trying to boot from MMC2
    
    
    U-Boot 2020.01-ge995ed0ec1 (May 28 2021 - 14:48:57 +0000)
    
    SoC:   AM64X SR1.0
    Model: Texas Instruments AM642 EVM
    Board: AM64-GPEVM rev E2
    DRAM:  2 GiB
    not found for dev mux
    MMC:   sdhci@fa10000: 0, sdhci@fa00000: 1
    Loading Environment from FAT... In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   
    Warning: ethernet@8000000 using MAC address from ROM
    eth0: ethernet@8000000
    Hit any key to stop autoboot:  2  0 
    => md.l 0x04518174 2
    04518174: 00000001 00010000                      ........
    => md.l 0x43018174 2
    43018174: 00000000 00010000                      ........
    => 

    am6_7.3.1_reboot.txt
    root@am64xx-evm:~# uname -a 
    Linux am64xx-evm 5.4.106-g023faefa70 #1 SMP PREEMPT Fri May 28 14:38:23 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
    root@am64xx-evm:~# devmem2 0x04518174 
    /dev/mem opened.
    Memory mapped at address 0xffffb8210000.
    Read at address  0x04518174 (0xffffb8218174): 0x00000001
    root@am64xx-evm:~# devmem2 0x04518178
    /dev/mem opened.
    Memory mapped at address 0xffff875f0000.
    Read at address  0x04518178 (0xffff875f8178): 0x00000000
    root@am64xx-evm:~# devmem2 0x43018174
    /dev/mem opened.
    Memory mapped at address 0xffffad960000.
    Read at address  0x43018174 (0xffffad968174): 0x00000000
    root@am64xx-evm:~# devmem2 0x43018178
    /dev/mem opened.
    Memory mapped at address 0xffff83ad0000.
    Read at address  0x43018178 (0xffff83ad8178): 0x00000000
    root@am64xx-evm:~# reboot
             Stopping Session c1 of user root.
    [  OK  ] Stopped target Multi-User System.
    [  OK  ] Stopped target Login Prompts.
    [  OK  ] Stopped target RPC Port Mapper.
    [  OK  ] Stopped target Timers.
    [  OK  ] Stopped Daily rotation of log files.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Stopping Job spooling tools...
             Stopping Avahi mDNS/DNS-SD Stack...
             Stopping benchmark_server.service...
             Stopping Periodic Command Scheduler...
             Stopping Ethernet Bridge Filtering Tables...
             Stopping Getty on tty1...
             Stopping irqbalance daemon...
             Stopping Reboot and dump vmcore via kexec...
             Stopping Lighttpd Daemon...
    [  OK  ] Stopped Matrix GUI.
             Stopping NFS status monitor for NFSv2/3 locking....
             Stopping rpmsg_json.service...
             Stopping Serial Getty on ttyS1...
             Stopping Serial Getty on ttyS2...
             Stopping Simple Network Ma�ent Protocol (SNMP) Daemon....
    [  OK  ] Stopped startwlan.
             Stopping strongSwan IPsec �Ev2 daemon using ipsec.conf...
             Stopping System Logger Daemon "default" instance...
             Stopping Load/Save Random Seed...
             Stopping thermal-zone-init.service...
             Stopping Vsftpd ftp daemon...
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped irqbalance daemon.
    [  OK  ] Stopped System Logger Daemon "default" instance.
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped Vsftpd ftp daemon.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS2.
    [  OK  ] Stopped Simple Network Man�ement Protocol (SNMP) Daemon..
    [  OK  ] Stopped benchmark_server.service.
    [  OK  ] Stopped rpmsg_json.service.
    [  OK  ] Stopped strongSwan IPsec I�IKEv2 daemon using ipsec.conf.
    [  OK  ] Stopped Lighttpd Daemon.
    [  OK  ] Stopped Serial Getty on ttyS1.
    [  OK  ] Stopped Reboot and dump vmcore via kexec.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped thermal-zone-init.service.
    [  OK  ] Stopped Session c1 of user root.
    [  OK  ] Removed slice system-getty.slice.
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Removed slice system-syslog\x2dng.slice.
             Stopping LSB: network benchmark...
             Stopping syslog.service...
             Stopping Login Service...
             Stopping User Manager for UID 0...
    [  OK  ] Stopped Ethernet Bridge Filtering Tables.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped LSB: network benchmark.
    [  OK  ] Stopped syslog.service.
    [  OK  ] Stopped target Network is Online.
    [  OK  ] Stopped target Host and Network Name Lookups.
    [  OK  ] Stopped target System Time Synchronized.
    [  OK  ] Stopped target System Time Set.
             Stopping telnetd.service...
             Stopping User Runtime Directory /run/user/0...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped telnetd.service.
    [  OK  ] Stopped User Runtime Directory /run/user/0.
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping D-Bus System Message Bus...
             Stopping Permit User Sessions...
    [  OK  ] Stopped D-Bus System Message Bus.
    [  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 Service...
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped target Network (Pre).
    [  OK  ] Stopped IPv6 Packet Filtering Framework.
    [  OK  ] Stopped IPv4 Packet Filtering Framework.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Dispatch Password �ts to Console Directory Watch.
    [  OK  ] Stopped Forward Password R�uests to Wall Directory Watch.
    [  OK  ] Stopped target Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Hardware RNG Entropy Gatherer Daemon...
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Load Kernel Modules.
             Stopping Network Time Synchronization...
    [  OK  ] Stopped Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /media/ram...
             Unmounting /run/media/mmcblk1p1...
             Unmounting Temporary Directory (/tmp)...
             Unmounting /var/volatile...
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted Temporary Directory (/tmp).
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Stopped target Swap.
    [  OK  ] Unmounted /run/media/mmcblk1p1.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped File System Check on /dev/mmcblk1p1.
    [  OK  ] Removed slice system-systemd\x2dfsck.slice.
    [  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 Shutdown.
    [  OK  ] Reached target Final Step.
    [  OK  ] Started Reboot.
    [  OK  ] Reached target Reboot.
    [  389.716241] systemd-shutdown[1]: Syncing filesystems and block devices.
    [  392.254362] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  392.269876] systemd-journald[154]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  392.279371] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  392.295795] systemd-shutdown[1]: Unmounting file systems.
    [  392.304542] [1172]: Remounting '/' read-only in with options '(null)'.
    [  392.347186] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [  392.358768] systemd-shutdown[1]: All filesystems unmounted.
    [  392.364405] systemd-shutdown[1]: Deactivating swaps.
    [  392.369603] systemd-shutdown[1]: All swaps deactivated.
    [  392.374838] systemd-shutdown[1]: Detaching loop devices.
    [  392.384685] systemd-shutdown[1]: All loop devices detached.
    [  392.390358] systemd-shutdown[1]: Detaching DM devices.
    [  392.395973] systemd-shutdown[1]: All DM devices detached.
    [  392.401398] systemd-shutdown[1]: All filesystems, swaps, loop devices and DM devices detached.
    [  392.417579] systemd-shutdown[1]: Syncing filesystems and block devices.
    [  392.424554] systemd-shutdown[1]: Rebooting.
    [  392.449792] pci_generic_config_write32: 20 callbacks suppressed
    [  392.449811] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xdc may corrupt adjacent RW1C bits
    [  392.465592] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xc8 may corrupt adjacent RW1C bits
    [  392.475559] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits
    [  392.485283] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x9c may corrupt adjacent RW1C bits
    [  392.495110] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits
    [  392.504846] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [  392.514577] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [  392.524865] reboot: Restarting system
    
    U-Boot SPL 2020.01-ge995ed0ec1 (May 28 2021 - 16:20:13 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    SPL initial stack usage: 13396 bytes
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.4(release):2021.00.003-dirty
    NOTICE:  BL31: Built : 14:41:43, May 28 2021
    
    U-Boot SPL 2020.01-ge995ed0ec1 (May 28 2021 - 14:48:57 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    Trying to boot from MMC2
    
    
    U-Boot 2020.01-ge995ed0ec1 (May 28 2021 - 14:48:57 +0000)
    
    SoC:   AM64X SR1.0
    Model: Texas Instruments AM642 EVM
    Board: AM64-GPEVM rev E2
    DRAM:  2 GiB
    not found for dev mux
    MMC:   sdhci@fa10000: 0, sdhci@fa00000: 1
    Loading Environment from FAT... In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   
    Warning: ethernet@8000000 using MAC address from ROM
    eth0: ethernet@8000000
    Hit any key to stop autoboot:  2  0 
    => md.l 0x04518174 2
    04518174: 00000001 00010000                      ........
    => md.l 0x43018174 2
    43018174: 00000000 00010000                      ........
    =>