Skip to content

docs(contest_hk_2026): add a guide to running the AI Agent on the MIBOX-X1 - #664

Closed
tanghao-xiaomi wants to merge 2 commits into
open-vela:dev-ai-contest-2026from
tanghao-xiaomi:hk-ai-agent-board-guide
Closed

tanghao-xiaomi wants to merge 2 commits into
open-vela:dev-ai-contest-2026from
tanghao-xiaomi:hk-ai-agent-board-guide

Conversation

@tanghao-xiaomi

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #663: the first commit of this branch is the one from #663, so the diff shrinks once #663 is merged. This PR is a draft until then.

Add an experimental guide to running ai_agent on the R528 MIBOX-X1, in zh-cn, zh-hk and en. The default nsh config does not include ai_agent, so the guide covers:

  • Creating an nsh_agent config from nsh: delete one line, append five lines.
  • Building it with build.sh (m nsh always builds nsh) and packing.
  • Getting online, then set_llm with a preset or with a custom address. The MiMo Token Plan is the example: its key only works with its dedicated address, and the mimo preset returns 401 for it.
  • Reading the log when a request fails. The Agent's own reply can hide the real cause: it reports a request timeout after it resets a stale system clock to 2026-02-28, and Sorry, I encountered an error. for an HTTP 401.
  • A list of what has not been verified (voice, Feishu/WeChat/MQTT, tool calls, config kept after power cycle, memory use, 5 GHz Wi-Fi).

The guide is linked from the guide index (new row 4, the code submission guide becomes row 5) and from the document index of the development guide.

Impact

  • Three new files and six edited files, all under zh-cn/contest_hk_2026 and en/contest_hk_2026. No other docs are touched.
  • No board code is changed. The nsh_agent config is created by the reader, as described in the guide.

Testing

  • Built the firmware from the nsh_agent config on the current tip of dev-ai-contest-2026 (vendor_allwinnertech at ffb36e18), flashed it to a MIBOX-X1 board, joined Wi-Fi, set a model with a custom address and asked hello. The log shows Handshake OK and llm=ok, and the Agent printed the model's reply (about 3 s).
  • The nsh_agent config described in the guide (one line removed, five appended) was compared with the config that was built, as sets of lines: identical.
  • Checked in the source: ret=0x52 is MBEDTLS_ERR_NET_UNKNOWN_HOST, and the clock reset is in vela_tls.c.
  • All relative links and in-page anchors in the files of the two directories resolve (checked by script). The brand check (VelaClaw) is clean. markdownlint was not run because it is not installed in this environment.
  • Not tested: see the last section of the guide.

Add a guide on connecting to the R528 MIBOX-X1 board from a Windows computer: the serial cable and DIP switch, the CH340 driver, MobaXterm settings, how to read a successful boot log, joining Wi-Fi, and troubleshooting. Provide zh-cn, zh-hk and en versions, and link the guide from the guide index and the development guide.
…OX-X1

Add an experimental guide for building MIBOX-X1 firmware with ai_agent: the extra options on top of the nsh config, build and pack, getting online, set_llm with a preset or a custom address (using the MiMo Token Plan as the example), reading the log when a request fails, and what has not been verified. Provide zh-cn, zh-hk and en versions, and link the guide from the guide index and the development guide.
@tanghao-xiaomi

Copy link
Copy Markdown
Collaborator Author

Superseded by #663, which now contains the AI Agent guide as well. Closing this PR.

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.

1 participant