Skip to content

[Feature] rt_null.c 初始化顺序太低 无法作为默认的日志口 #11472

Open

Description

@meng-plus

Describe problem solved by the proposed feature

实际应用中 日志口与其它上行通信口复用,在需要调试时,特殊命令触发将上行协议通信口切换为常规日志口,但是如果想上电就不打印日志就需要将日志口切到无关的设备上,而 null设备就是一个理想的设备口,但是发现在初始化流程中 初始化日志口顺序比null高, 建议提高null初始顺序到 RT_USING_CONSOLE 之前

Describe your preferred solution

No response

Describe possible alternatives

No response

Activity

  1. BernardXiong commented on Sep 25, 2026

    @BernardXiong
    Member

    可以尝试进行调整,或者日志部分可以考虑拆分成两部分,一部分是early_console,一部分是normal_console。early_console部分在一些例外场景下可以开启,而normal_console相对容易可控制。

  2. cms19859230182-lang commented on Oct 17, 2026

    @cms19859230182-lang
    Contributor

    已把 rt_null 注册提到 INIT_BOARD,qemu-vexpress-a9 验证 null 可作默认控制台。
    PR:#11884

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions