Skip to content

[Bug] macOS QEMU quick start documents a literal PATH suffix and a missing restart script #12082

Open

Description

@ZRZ-2006

RT-Thread Version

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:

  1. 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
  2. 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.

Activity

  1. added
    Arch: ARM/AArch64
    Doc
    on Nov 22, 2026
  2. github-actions commented on Nov 22, 2026

    @github-actions

    如需认领并处理此 Issue,请评论 /claim。

    To claim and work on this issue, comment /claim.

  3. BernardXiong commented on Nov 22, 2026

    @BernardXiong
    Member

    已确认这两个问题,并在 PR #12083 中修复:

    • 步骤 1.3 中双引号内的 ~ 不会被展开,已改用 $HOME。
    • 步骤 5.3 的 qemu_nographic.sh 在 BSP 中不存在,已改为实际的 qemu-nographic.sh。

    已在 POSIX bash 下用临时 $HOME 验证 PATH 展开,并确认该脚本存在且可执行;未在 macOS 上实际启动 QEMU。

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: ARM/AArch64Doc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions