platform: add interactive shell to Zynq-A9 QEMU#79
Merged
Conversation
Implement console I/O driver for Cadence UART and port the chat-first shell to the Zynq-A9 platform. New files: - drivers/console.c: claw_console_init/read/write for Cadence UART (UART0 at 0xE0000000, RX polling with taskYIELD) - shell.c: full chat-first REPL ported from esp_shell.c — insert-mode line editing, UTF-8, tab completion, thinking animation, AI chat Changes: - main.c: wait 10s for DHCP, then enter zynq_shell_loop() - syscalls.c: add sched_tool_remove_by_name stub (tool_sched.c is ESP-IDF only due to NVS dependency) Verified: shell prompt appears on QEMU, /help and AI chat available. Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add chat-first interactive shell to the Zynq-A9 QEMU platform, bringing feature parity with ESP32 platforms.
Components
Console driver (
platform/zynq-a9/drivers/console.c):claw_console_read()with timeout and taskYIELD pollingclaw_console_write()via UART FIFOShell (
platform/zynq-a9/shell.c):esp_shell.cBoot sequence
Test plan
make build-zynq-a9-qemucompiles (shell + console driver)make run-zynq-a9-qemushows shell prompt<You>-nographicstdin → UART RX works/helpcommand lists available commands