Skip to content

feat(r528s3-mibox-x1): add nsh_workshop config with ai_agent and ai_hello - #26

Merged
yanxingyu17 merged 1 commit into
open-vela:dev-ai-contest-2026from
CV-Bowen:feat/mibox-x1-nsh-workshop
Dec 3, 2026
Merged

yanxingyu17 merged 1 commit into
open-vela:dev-ai-contest-2026from
CV-Bowen:feat/mibox-x1-nsh-workshop

Conversation

@CV-Bowen

@CV-Bowen CV-Bowen commented Dec 2, 2026

Copy link
Copy Markdown

Summary

Add r528s3-mibox-x1:nsh_workshop, a ready-to-flash config for the openvela AI workshop (hands-on with the ai_hello demo). Today students have to copy nsh and edit it by hand as described in docs/zh-cn/contest_hk_2026/mibox_x1_ai_agent_guide.md; this gives them a config they can build directly.

Delta from nsh:

Option Why
EXAMPLES_AI_AGENT_VELA, EVENT_FD, NETUTILS_WEBCLIENT, OPENSSL_MBEDTLS_WRAPPER, SYSTEM_POPEN, MBEDTLS_NET_C (no longer disabled) ai_agent and its dependencies, same as the guide's nsh_agent
AI_HELLO=y LVGL + velaclaw demo, open-vela/packages_demos#80
EXAMPLES_LVGLDEMO, LUNCHER_MINI_APP off both start from rcS and own LVGL, so ai_hello cannot create its UI
AI_AGENT_WEIXIN off unused; without a token it logs [weixin] No token, waiting... every 5 s
NSH_LINELEN=256 default 80 bytes is ~25 CJK characters, too short for echo <persona> > /data/ai_hello_persona.txt

Related: open-vela/packages_demos#80 (ai_hello), open-vela/packages_ai_agent#51 #52 #53 #54 (fixes needed for ai_hello to get correct answers). Until #80 is merged, AI_HELLO is an unknown symbol and is dropped by Kconfig; the rest of the config still builds.

Impact

New config only. nsh, nsh_sd and other boards are unchanged.

Testing

Host: Ubuntu 22.04 x86_64, toolchains from the openvela manifest (dev-ai-contest-2026).

cd vendor/allwinnertech/lichee && source envsetup.sh && lunch_nuttx r528s3-mibox-x1
cd ../../.. && ./build.sh vendor/allwinnertech/boards/r528/r528s3-mibox-x1/configs/nsh_workshop/ -e -Wno-error -j4
cd vendor/allwinnertech/lichee && pack

Flashed on R528 MIBOX-X1 with PhoenixSuit. ai_hello &, then ai_agent with set_wifi / set_llm deepseek: three taps on the screen return three different answers (latency 911-1109 ms). No [weixin] log lines after boot.

…ello

A ready-to-flash config for the openvela AI workshop, so students do not
have to edit nsh by hand as described in the MIBOX-X1 AI agent guide.

Delta from nsh:
  - ai_agent and its dependencies (EXAMPLES_AI_AGENT_VELA, EVENT_FD,
    NETUTILS_WEBCLIENT, OPENSSL_MBEDTLS_WRAPPER, SYSTEM_POPEN, and
    MBEDTLS_NET_C no longer disabled), same as the guide's nsh_agent;
  - AI_HELLO, the LVGL + velaclaw demo from packages_demos;
  - EXAMPLES_LVGLDEMO and LUNCHER_MINI_APP off: they start at boot and
    own LVGL, so ai_hello could not create its UI;
  - AI_AGENT_WEIXIN off: unused, and without a token it logs
    "[weixin] No token, waiting..." every 5 s;
  - NSH_LINELEN=256: the default 80 bytes is ~25 CJK characters, too
    short for "echo <persona> > /data/ai_hello_persona.txt".

Verified on R528 MIBOX-X1 with DeepSeek: ai_hello shows the three
questions, each tap returns a different answer in 0.9-1.1 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
@CV-Bowen
CV-Bowen requested review from a team as code owners December 2, 2026 09:29
@yanxingyu17
yanxingyu17 merged commit 69ca9be into open-vela:dev-ai-contest-2026 Dec 3, 2026
12 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.

2 participants