Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] qemu-virt64-riscv failed to execute poweroff #9879

Open
unicornx opened this issue Jan 7, 2025 · 1 comment
Open

[Bug] qemu-virt64-riscv failed to execute poweroff #9879

unicornx opened this issue Jan 7, 2025 · 1 comment
Labels
Arch: RISC-V BSP related with risc-v RT-Smart RT-Thread Smart related PR or issues

Comments

@unicornx
Copy link
Contributor

unicornx commented Jan 7, 2025

RT-Thread Version

master

Hardware Type/Architectures

bsp/qemu-virt64-riscv

Develop Toolchain

GCC

Describe the bug

qemu-virt64-riscv 环境,smart 版本,带 ext4 文件系统启动后,执行 poweroff 原来是可以关机退出 qemu 的,但是从 944f3d0 开始,执行 poweroff 失败报错:

/ # poweroff
poweroff: (null): Operation not permitted

请问这是期望效果还是 944f3d0 改出了什么问题?

补充一下:这个问题其实应该不仅仅是在 qemu 上,在 duo 上测试也是类似现象。

Other additional context

No response

@unicornx unicornx added Arch: RISC-V BSP related with risc-v RT-Smart RT-Thread Smart related PR or issues labels Jan 7, 2025
@polarvid
Copy link
Contributor

polarvid commented Jan 7, 2025

期望效果。因为 poweroff 操作需要适配正确的流程。原来那套关机操作从系统角度并不“正确”。如果直接这么继续,会让用户误认为这个操作是合理的,继续不作为。所以直接封死了,抛出“Operation not permitted”。

P.S. 1 根据题主提供的有限信息,猜测是在这里返回的,不一定就是这样。如果题主补充其他信息,可以进一步确定。
P.S. 2 此处更新后,Busybox 也需要重新同步到新的 release(如果题主也是使用基于 BB 的根文件系统),userapps 主线上应该还没更新。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: RISC-V BSP related with risc-v RT-Smart RT-Thread Smart related PR or issues
Projects
None yet
Development

No branches or pull requests

2 participants