Skip to content

device: add the console over a NuttX netdev console - #37

Merged
xiaoxiang781216 merged 1 commit into
apache:mainfrom
raiden00pl:netdev-console
Nov 15, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:mainfrom
raiden00pl:netdev-console

Conversation

@raiden00pl

Copy link
Copy Markdown
Member

A target built with CONFIG_CONSOLE_NETDEV has its NSH console on a
network transport, UDP or CAN ISO-TP, not on a serial port.

  • The new netconsole core option runs the sim/qemu console over the
    transport instead of the child pty; the pty output goes to the debug
    log.
  • The new netdev device is for real hardware: NTFC talks to the board
    only over the transport and resets it with the reboot command.

The host opens the transport before the target is started or reset, so
the boot output is not lost. UDP learns the target address from the
datagrams it receives. Writes are split into datagrams that fit the
target console receive buffer, and each one waits for the previous one
to leave, as an ISO-TP socket sends one message at a time.

A target built with CONFIG_CONSOLE_NETDEV has its NSH console on a
network transport, UDP or CAN ISO-TP, not on a serial port.

- The new netconsole core option runs the sim/qemu console over the
  transport instead of the child pty; the pty output goes to the debug
  log.
- The new netdev device is for real hardware: NTFC talks to the board
  only over the transport and resets it with the reboot command.

The host opens the transport before the target is started or reset, so
the boot output is not lost. UDP learns the target address from the
datagrams it receives. Writes are split into datagrams that fit the
target console receive buffer, and each one waits for the previous one
to leave, as an ISO-TP socket sends one message at a time.

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Assisted-by: Claude Code:claude-opus-5-5
@xiaoxiang781216
xiaoxiang781216 merged commit 7449a06 into apache:main Nov 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants