You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] macOS QEMU quick start documents a literal PATH suffix and a missing restart script #12082
master at 6fdfe70062ec394e5dd7099c51cbcff127cacab1
Affected area
Documentation
Hardware/BSP vendor
Not applicable / Other
Architecture
ARM / AArch64
Board and hardware details
bsp/qemu-vexpress-a9 (emulated ARM vexpress A9). The affected instructions target an Intel macOS host.
Develop Toolchain
GCC
Describe the bug
Two commands in the Intel macOS QEMU quick start can block readers:
Step 1.3 adds a quoted ~ to PATH. Inspecting the final component with printf '%s\n' "${PATH##*:}" shows it is stored literally. In a Bash POSIX-mode test, the documented pattern failed to locate an executable under the home directory. Using $HOME inside the quoted value sets an absolute path. Quick start, step 1.3 · Bash POSIX mode
Step 5.3 asks readers to run ./qemu_nographic.sh after formatting sd0. This name is absent from the BSP directory. Readers can restart using ./qemu.sh as in step 5.1, or ./qemu-nographic.sh for a terminal-only session. Quick start, step 5.3 · BSP directory
Other additional context
Verified the PATH behavior with a temporary executable in Git Bash and checked the script names and executable modes in the repository tree. No macOS build or QEMU boot was performed. Drafted with assistance from OpenAI Codex.
Confirmed both issues and fixed them in PR #12083:
The quoted ~ in step 1.3 is not expanded; switched to $HOME.
qemu_nographic.sh in step 5.3 does not exist in the BSP; changed it to the actual qemu-nographic.sh.
Verified the PATH expansion in POSIX bash with a temporary $HOME, and checked that the script exists and is executable. No macOS QEMU boot was performed.
Activity
github-actions commentedon Nov 22, 2026
如需认领并处理此 Issue,请评论
/claim。To claim and work on this issue, comment
/claim.BernardXiong commentedon Nov 22, 2026
已确认这两个问题,并在 PR #12083 中修复:
~不会被展开,已改用$HOME。qemu_nographic.sh在 BSP 中不存在,已改为实际的qemu-nographic.sh。已在 POSIX bash 下用临时
$HOME验证 PATH 展开,并确认该脚本存在且可执行;未在 macOS 上实际启动 QEMU。Confirmed both issues and fixed them in PR #12083:
~in step 1.3 is not expanded; switched to$HOME.qemu_nographic.shin step 5.3 does not exist in the BSP; changed it to the actualqemu-nographic.sh.Verified the PATH expansion in POSIX bash with a temporary
$HOME, and checked that the script exists and is executable. No macOS QEMU boot was performed.[docs] fix macOS QEMU quick start PATH expansion and restart script