请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:AM625 Thread 中讨论的其他器件:SK-AM62-LP
工具与软件:
您好!
我的客户使用 SK-AM62-LP 和 Linux SDK 09.02.01.10 /评估挂起至 RAM 10.00.07.04。
挂起至 RAM 进入由以下命令完成。
root@am62xx-LP-EVM:~# echo deep >/sys/power/mem_sleep
root@am62xx-LP-EVM:~# echo mem >/sys/power/state
将 USB 电缆连接到板上的 Type-C 连接器即可唤醒。
当所有4个内核都启用后、它会正常运行。
下面是日志。
root@am62xx-lp-evm:~# cat /proc/cmdline console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait resume=/dev/mmcblk1p3 resumewait no_console_suspend root@am62xx-lp-evm:~# root@am62xx-lp-evm:~# cat /proc/cpuinfo processor : 0 BogoMIPS : 400.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 1 BogoMIPS : 400.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 2 BogoMIPS : 400.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 3 BogoMIPS : 400.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 root@am62xx-lp-evm:~# uname -a Linux am62xx-lp-evm 6.1.83-ti-gc1c2f1971fbf #1 SMP PREEMPT Mon May 13 20:19:51 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux root@am62xx-lp-evm:~# root@am62xx-lp-evm:~# echo deep > /sys/power/mem_sleep root@am62xx-lp-evm:~# echo mem > /sys/power/state [ 40.801705] PM: suspend entry (deep) [ 41.073248] Filesystems sync: 0.267 seconds [ 41.112697] remoteproc remoteproc0: stopped remote processor 5000000.m4fss [ 41.120145] Freezing user space processes [ 41.126412] Freezing user space processes completed (elapsed 0.002 seconds) [ 41.133495] OOM killer disabled. [ 41.136737] Freezing remaining freezable tasks [ 41.142749] Freezing remaining freezable tasks completed (elapsed 0.001 seconds) [[ 41.830706] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19 [ 41.846209] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL) [ 41.855547] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode [ 41.997888] OOM killer enabled. [ 42.001117] Restarting tasks ... done. [ 42.007708] random: crng reseeded on system resumption [ 42.013012] remoteproc remoteproc0: powering up 5000000.m4fss [ 42.018860] remoteproc remoteproc0: Booting fw image am62-mcu-m4f0_0-fw, size 55016 [ 42.028102] rproc-virtio rproc-virtio.2.auto: assigned reserved memory node m4f-dma-memory@9cb00000 [ 42.038833] virtio_rpmsg_bus virtio0: rpmsg host is online [ 42.039140] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd [ 42.044598] rproc-virtio rproc-virtio.2.auto: registered virtio0 (type 7) [ 42.053845] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe [ 42.058750] remoteproc remoteproc0: remote processor 5000000.m4fss is now up [ 42.073111] PM: suspend exit root@am62xx-lp-evm:~# [ 42.489760] xhci-hcd xhci-hcd.7.auto: xHCI Host Controller [ 42.495601] xhci-hcd xhci-hcd.7.auto: new USB bus registered, assigned bus number 2 [ 42.504081] xhci-hcd xhci-hcd.7.auto: USB3 root hub has no ports [ 42.510217] xhci-hcd xhci-hcd.7.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000008000010010 [ 42.519827] xhci-hcd xhci-hcd.7.auto: irq 464, io mem 0x31000000 [ 42.527166] hub 2-0:1.0: USB hub found [ 42.531215] hub 2-0:1.0: 1 port detected [ 42.788555] usb 2-1: new low-speed USB device number 2 using xhci-hcd [ 42.990339] input: USB Keyboard as /devices/platform/bus@f0000/f900000.dwc3-usb/31000000.usb/xhci-hcd.7.auto/usb2/2-1/2-1:1.0/0003:0566:3107.0001/input/input0 [ 43.065930] hid-generic 0003:0566:3107.0001: input: USB HID v1.10 Keyboard [ USB Keyboard] on usb-xhci-hcd.7.auto-1/input0 [ 43.087592] input: USB Keyboard System Control as /devices/platform/bus@f0000/f900000.dwc3-usb/31000000.usb/xhci-hcd.7.auto/usb2/2-1/2-1:1.1/0003:0566:3107.0002/input/input1 [ 43.161530] input: USB Keyboard Consumer Control as /devices/platform/bus@f0000/f900000.dwc3-usb/31000000.usb/xhci-hcd.7.auto/usb2/2-1/2-1:1.1/0003:0566:3107.0002/input/input2 [ 43.178332] hid-generic 0003:0566:3107.0002: input: USB HID v1.10 Device [ USB Keyboard] on usb-xhci-hcd.7.auto-1/input1 root@am62xx-lp-evm:~#
但是、当仅启用1个内核时、系统不会从挂起至 RAM 唤醒。 CPU 内核受"maxcpus=1"内核选项限制。
这是日志。
root@am62xx-lp-evm:~# cat /proc/cmdline console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait resume=/dev/mmcblk1p3 resumewait no_console_suspend maxcpus=1 root@am62xx-lp-evm:~# cat /proc/cpuinfo processor : 0 BogoMIPS : 400.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 root@am62xx-lp-evm:~# uname -a Linux am62xx-lp-evm 6.1.83-ti-gc1c2f1971fbf #1 SMP PREEMPT Mon May 13 20:19:51 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux root@am62xx-lp-evm:~# echo deep > /sys/power/mem_sleep root@am62xx-lp-evm:~# echo mem > /sys/power/state [ 62.851102] PM: suspend entry (deep) [ 62.945695] Filesystems sync: 0.090 seconds [ 62.978549] remoteproc remoteproc0: stopped remote processor 5000000.m4fss [ 62.994514] Freezing user space processes [ 63.004070] Freezing user space processes completed (elapsed 0.001 seconds) [ 63.011291] OOM killer disabled. [ 63.014521] Freezing remaining freezable tasks [ 63.020376] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
您能告诉我哪里出了问题、如何解决它吗?
谢谢。此致、
田代浩一郎