扫码加入

  • 正文
  • 相关推荐
申请入驻 产业图谱

飞凌精灵(ElfBoard)|如何在【RK3588】ELF 2开发板上部署小龙虾OpenClaw

8小时前
160
加入交流群
扫码加入
获取工程师必备礼包
参与热点资讯讨论

2026全国大学生嵌入式芯片与系统设计竞赛应用赛道报名正在火热进行中,其中瑞芯微&飞凌嵌入式赛题重磅选用基于旗舰芯片RK3588设计的ELF 2开发板以及ELF-RV1126B开发板、ELF-RK3506开发板作为参赛平台。

所有的选题都是采用开放和半开放的方式设定,核心宗旨绝非简单的技术验证,而是重点考察同学们对特定行业的洞察力与实际问题解决能力。我们鼓励参赛团队立足真实行业场景,深挖场景痛点,把所学的嵌入式专业知识转化为切实可行的解决方案,最终打磨出可落地、可现场演示的完整作品,真正实现从理论知识到工程实践的转化。

近期,AI圈现象级开源项目OpenClaw刷屏全网,凭借 “能动手执行” 的硬核能力,彻底打破传统AI“只说不做”的局限。基于RK3588设计的ELF 2开发板搭载6TOPS NPU,正是OpenClaw落地边缘智能的绝佳平台。

今天我们就带来实战教程:如何在ELF 2开发板上部署 OpenClaw,为你的竞赛项目解锁AI自动执行新能力,助力创意快速落地!

1.1.网络配置

需要确保开发板具备联网能力。此处开发板通过以太网接入网络(亦可使用无线通信模块)执行ping www.elfboard.com -c 5命令后,成功收到回包且无丢包,表明网络连接正常。

elf@elf2-desktop:~$ sudo nmcli con mod 'Wired connection 1' ipv4.method manual ipv4.addresses 172.20.8.7/24 ipv4.gateway 172.20.8.254 ipv4.dns 8.8.8.8 connection.autoconnect yes
[sudo] password for elf: 
elf@elf2-desktop:~$ sudo nmcli con up 'Wired connection 1'
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)
elf@elf2-desktop:~$ ping www.elfboard.com -c 5
PING www.elfboard.com (211.149.236.219) 56(84) bytes of data.
64 bytes from 211.149.236.219 (211.149.236.219): icmp_seq=1 ttl=54 time=36.2 ms
64 bytes from 211.149.236.219 (211.149.236.219): icmp_seq=2 ttl=54 time=36.9 ms
64 bytes from 211.149.236.219 (211.149.236.219): icmp_seq=3 ttl=54 time=35.1 ms
64 bytes from 211.149.236.219: icmp_seq=4 ttl=54 time=43.5 ms
64 bytes from 211.149.236.219: icmp_seq=5 ttl=54 time=35.3 ms
--- www.elfboard.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 14515ms
rtt min/avg/max/mdev = 35.054/37.380/43.513/3.136 ms

1.2.OpenClaw安装及配置

OpenClaw官方提供了一种安装脚本的方式来安装OpenClaw,会自动升级Node.js等配置。

elf@elf2-desktop:~$ curl -fsSL https://openclaw.ai/install.sh | bash
  🦞 OpenClaw Installer
  I'm not magic—I'm just extremely persistent with retries and coping strategies.
✓ Detected: linux
Install plan
OS: linux
Install method: npm
Requested version: latest
[1/3] Preparing environment
· Node.js not found, installing it now
· Installing Node.js via NodeSource
· Installing Linux build tools (make/g++/cmake/python3)
✓ Build tools installed
✓ Node.js v22 installed
· Active Node.js: v22.22.1 (/usr/bin/node)
· Active npm: 10.9.4 (/usr/bin/npm)
[2/3] Installing OpenClaw
✓ Git already installed
· Configuring npm for user-local installs
✓ npm configured for user installs
· Installing OpenClaw v2026.3.13
✓ OpenClaw npm package installed
✓ OpenClaw installed
[3/3] Finalizing setup
! PATH missing npm global bin dir: /home/elf/.npm-global/bin
  This can make openclaw show as "command not found" in new terminals.
  Fix (zsh: ~/.zshrc, bash: ~/.bashrc):
    export PATH="/home/elf/.npm-global/bin:$PATH"
🦞 OpenClaw installed successfully (OpenClaw 2026.3.13 (61d171a))!
The lobster has landed. Your terminal will never be the same.
· Starting setup
安装完成之后,就会进入新手引导界面:

在引导配置界面中,我们需要进行一些基础的配置来让OpenClaw能够正常使用,其他的都可以后续再进行更改,在引导页面操作主要依靠键盘的上下左右键来进行选择,空格选中,回车键来确认选择。这个过程不小心退出了,可以使用openclaw onboard重新向导。风险提示,选择yes
◆  I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
│  ● Yes / ○ No
└

快速开始,选择QuickStart

◆  Onboarding mode
│  ● QuickStart (Configure details later via openclaw configure.)
│  ○ Manual
└

模型配置,先跳过后续再配置

◆  Model/auth provider
......
│  ● Skip for now
└

模型供应商选择所有供应商

◆  Filter models by provider
│  ● All providers
.....
└

默认模型,默认保持不动,后续再配置

◆  Default model
│  ● Keep current (default: anthropic/claude-opus-4-6)
......
└

连接频道设置,先跳过,后续再单独配置

◆  Select channel (QuickStart)
......
│  ● Skip for now (You can add channels later via `openclaw channels add`)
└

联网搜索提供商设置,先跳过

Search provider
│  ○ 
Brave Search
│  ○ 
Gemini (Google Search)
│  ○ 
Grok (xAI)
│  ○ 
Kimi (Moonshot)
│  ○ 
Perplexity Search
│  ● 
Skip for now (Configure later with openclaw configure --section web)

当前不配置Skills,后续可以让openclaw自己配置

◆  Configure skills now? (recommended)
│  ○ Yes / ● No
└

使能hooks,将所有的配置全部使用空格选中,然后回车确认

◆  Enable hooks?
│  ◻ Skip for now
│  ◼ 🚀 boot-md (Run BOOT.md on gateway startup)
│  ◼ 📎 bootstrap-extra-files (Inject additional workspace bootstrap files via glob/path patterns)
│  ◼ 📝 command-logger (Log all command events to a centralized audit file)
│  ◼ 💾 session-memory (Save session context to memory when /new or /reset command is issued)

完成安装

1.3.模型配置

1.3.1.获取模型的APIKEY

APIKEY可以理解为是身份证,配置OpenClaw时会绑定API Key,每次调用api运行模型时都会从该API Key的账户中扣钱。

MiniMax网站:https://platform.minimaxi.com/

注册账号,并进行实名认证,只有进行实名认证才会获得15元额度。打开个人账户,接口密钥,创建新的API Key。

密钥界面关了就无法再次进入查看了,可以先不关闭,泄露密钥可能会导致余额损失。

1.3.2.配置模型API Key

打开界面配置

elf@elf2-desktop:~$ source ~/.bashrc
elf@elf2-desktop:~$ openclaw config

选择Local

◆  Where will the Gateway run?
│  ● Local (this machine) (No gateway detected (ws://127.0.0.1:18789))
│  ○ Remote (info-only)
└

选择模型

◆  Select sections to configure
│  ○ Workspace
│  ● Model (Pick provider + credentials)
│  ○ Web tools
│  ○ Gateway
│  ○ Daemon
│  ○ Channels
│  ○ Skills
│  ○ Health check
│  ○ Continue
└

这里以选择MinMax为例进行操作,这是个国内的模型,并且注册新用户会有15元的额度。

◆  Model/auth provider
│  ○ OpenAI
│  ○ Anthropic
│  ○ Chutes
│  ● MiniMax (M2.5 (recommended))
│  ○ Moonshot AI (Kimi K2.5)
│  ○ Google
│  ○ xAI (Grok)
│  ○ Mistral AI
│  ○ Volcano Engine
│  ...
└

选择MiniMax CN — API Key

◆  MiniMax auth method
│  ○ MiniMax Global — OAuth (minimax.io)
│  ○ MiniMax Global — API Key (minimax.io)
│  ○ MiniMax CN — OAuth (minimaxi.com)
│  ● MiniMax CN — API Key (minimaxi.com) (sk-api- or sk-cp- keys supported)
│  ○ Back
└

选择Paste API key now

◆  How do you want to provide this API key?
│  ● Paste API key now (Stores the key directly in OpenClaw config)
│  ○ Use external secret provider
└

粘贴API Key

◆  Enter MiniMax CN API key (sk-api- or sk-cp-)
https://platform.minimaxi.com/user-center/basic-information/interface-key
│  
└

接下来选择模型,已选择MiniMax-M2.5为例

◆  Models in /model picker (multi-select)
│
│  Search: _
│  ...
│  ◻ huggingface/zai-org/GLM-4.7-Flash
│  ◻ huggingface/zai-org/GLM-5
│  ◻ huggingface/moonshotai/Kimi-K2-Instruct
│  ◻ huggingface/moonshotai/Kimi-K2-Instruct-0905
│  ◻ huggingface/moonshotai/Kimi-K2-Thinking
│  ◻ huggingface/moonshotai/Kimi-K2.5
│  ◻ huggingface/XiaomiMiMo/MiMo-V2-Flash
│  ◻ huggingface/MiniMaxAI/MiniMax-M2.1
│  ◻ huggingface/MiniMaxAI/MiniMax-M2.5
│  ◻ huggingface/Qwen/Qwen3-235B-A22B-Thinking-2507
│  ◻ huggingface/Qwen/Qwen3-Coder-480B-A35B-Instruct
│  ◻ huggingface/Qwen/Qwen3-Coder-Next
│  ◻ huggingface/Qwen/Qwen3-Next-80B-A3B-Instruct
│  ◻ huggingface/Qwen/Qwen3-Next-80B-A3B-Thinking
│  ◻ huggingface/Qwen/Qwen3.5-397B-A17B
│  ◻ kimi-coding/kimi-k2-thinking
│  ◻ kimi-coding/k2p5
│  ◼ minimax/MiniMax-M2.5 (MiniMax M2.5 · ctx 195k · reasoning · alias: Minimax)
│  ◻ minimax/MiniMax-M2.5-highspeed
│  ...
│  ↑/↓ to navigate • Tab: select • Enter: confirm • Type: to search
└

1.3.3.测试

开发板端启用网关

elf@elf2-desktop:~$ openclaw gateway
🦞 OpenClaw 2026.3.13 (61d171a)
   If it works, it's automation; if it breaks, it's a "learning opportunity."
13:01:05 [canvas] host mounted at http://0.0.0.0:18789/__openclaw__/canvas/ (root /home/elf/.openclaw/canvas)
13:01:05 [gateway] ⚠️  Gateway is binding to a non-loopback address. Ensure authentication is configured before exposing to public networks.
13:01:05 [gateway] ⚠️  gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback=true is enabled. Host-header origin fallback weakens origin checks and should only be used as break-glass.
13:01:05 [heartbeat] started
13:01:05 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
13:01:05 [gateway] agent model: minimax/MiniMax-M2.5
13:01:05 [gateway] listening on ws://0.0.0.0:18789 (PID 6807)
13:01:05 [gateway] log file: /tmp/openclaw/openclaw-2026-03-20.log
13:01:05 [gateway] security warning: dangerous config flags enabled: gateway.controlUi.allowInsecureAuth=true, gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback=true, gateway.controlUi.dangerouslyDisableDeviceAuth=true. Run `openclaw security audit`.
13:01:05 [browser/server] Browser control listening on http://127.0.0.1:18791/ (auth=token)
13:01:06 [hooks:loader] Registered hook: boot-md -> gateway:startup
13:01:06 [hooks:loader] Registered hook: bootstrap-extra-files -> agent:bootstrap
13:01:06 [hooks:loader] Registered hook: command-logger -> command
13:01:06 [hooks:loader] Registered hook: session-memory -> command:new, command:reset
13:01:06 [hooks] loaded 4 internal hook handlers
13:01:08 [ws] security warning: websocket origin accepted via Host-header fallback conn=2d7442a3-61c7-4165-9b3f-b373559d5061 count=1 host=localhost:18789 origin=http://localhost:18789
13:01:08 [gateway] security metric: gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback accepted a websocket connect request
13:01:08 [ws] webchat connected conn=2d7442a3-61c7-4165-9b3f-b373559d5061 remote=127.0.0.1 client=openclaw-control-ui webchat v2026.3.13
13:01:14 [ws] webchat disconnected code=1006 reason=n/a conn=2d7442a3-61c7-4165-9b3f-b373559d5061
在本地电脑执行:

#ssh
 -N -L 18789:127.0.0.1:18789 <用户名>@<服务器公网IP>
PS C:\Users\Administrator> ssh -N -L 18789:127.0.0.1:18789 elf@172.20.8.7
elf@172.20.8.7's password:

在本地浏览器访问:

http://localhost:18789

http://localhost:18789/#token=<你的Token>

1.4.接入飞书

打开飞书的开发者后台,并注册账号,

网址:https://open.feishu.cn/

1.4.1.创建企业自建应用

1.4.2.添加机器人

1.4.3.开通权限

1.4.4.创建版本

填写内容,拉到最下面,点击保存,确认发布
1.4.5.配置Channels

打开OpenClaw的配置界面,选择Channels

◆  Select sections to configure
│  ○ Workspace
│  ○ Model
│  ○ Web tools
│  ○ Gateway
│  ○ Daemon
│  ● Channels (Link WhatsApp/Telegram/etc and defaults)
│  ○ Skills
│  ○ Health check
│  ○ Continue
└
选择Configure/link

◆  Channels
│  ● Configure/link (Add/update channels; disable unselected accounts)
│  ○ Remove channel config
└
选择Feishu/Lark (飞书)
◆  Select a channel
│  ○ Telegram (Bot API)
│  ○ WhatsApp (QR link)
│  ○ Discord (Bot API)
│  ○ IRC (Server + Nick)
│  ○ Google Chat (Chat API)
│  ○ Slack (Socket Mode)
│  ○ Signal (signal-cli)
│  ○ iMessage (imsg)
│  ○ LINE (Messaging API)
│  ● Feishu/Lark (飞书) (plugin · install)
│  ○ Nostr (NIP-04 DMs)
│  ○ Microsoft Teams (Bot Framework)
│  ○ Mattermost (plugin)
│  ○ Nextcloud Talk (self-hosted)
│  ○ Matrix (plugin)
│  ○ BlueBubbles (macOS app)
│  ○ Zalo (Bot API)
│  ○ Zalo (Personal Account)
│  ○ Synology Chat (Webhook)
│  ○ Tlon (Urbit)
│  ○ Finished
└
选择Download from npm

◆  Install Feishu plugin?
│  ● Download from npm (@openclaw/feishu)
│  ○ Use local plugin path
│  ○ Skip for now

配置APP secret和 APP ID,选择Enter App Secret

◆  How do you want to provide this App Secret?
│  ● Enter App Secret (Stores the credential directly in OpenClaw config)
│  ○ Use external secret provider
└

打开飞书的凭证与基础信息,依次粘贴到openclaw的配置中

选择实时通信

◆  Feishu connection mode
│  ● WebSocket (default)
│  ○ Webhook
└

选择国内飞书

◆  Which Feishu domain?
│  ● Feishu (feishu.cn) - China
│  ○ Lark (larksuite.com) - International
└

选择所有群聊都可以使用机器人

◆  Group chat policy
│  ○ Allowlist - only respond in specific groups
│  ● Open - respond in all groups (requires mention)
│  ○ Disabled - don't respond in groups
└

退出配置

◆  Select a channel
│  ○ Telegram (Bot API)
│  ○ WhatsApp (QR link)
│  ○ Discord (Bot API)
│  ○ IRC (Server + Nick)
│  ○ Google Chat (Chat API)
│  ○ Slack (Socket Mode)
│  ○ Signal (signal-cli)
│  ○ iMessage (imsg)
│  ○ LINE (Messaging API)
│  ○ Feishu/Lark (飞书)
│  ○ Nostr (NIP-04 DMs)
│  ○ Microsoft Teams (Bot Framework)
│  ○ Mattermost (plugin)
│  ○ Nextcloud Talk (self-hosted)
│  ○ Matrix (plugin)
│  ○ BlueBubbles (macOS app)
│  ○ Zalo (Bot API)
│  ○ Zalo (Personal Account)
│  ○ Synology Chat (Webhook)
│  ○ Tlon (Urbit)
│  ● Finished (Done)
└

同意私聊访问策略

◆  Configure DM access policies now? (default: pairing)
│  ● Yes / ○ No
└

便于测试,选择open不需要进行配对,正式使用选择Pairing

◆  Feishu DM policy
│  ○ Pairing (recommended)
│  ○ Allowlist (specific users only)
│  ● Open (public inbound DMs)
│  ○ Disabled (ignore DMs)
└

退出

◆  Select sections to configure
│  ○ Workspace
│  ○ Model
│  ○ Web tools
│  ○ Gateway
│  ○ Daemon
│  ○ Channels
│  ○ Skills
│  ○ Health check
│  ● Continue (Done)
└

启用网关

elf@elf2-desktop:~$ openclaw gateway

1.4.6. 事件配置

1.4.7. 添加事件

选择接收消息的订阅

1.4.8. 更新版本

1.4.9. 测试

手机下载飞书app,打开应用进行对话测试

以上就是在基于【RK3588】ELF 2开发板上部署OpenClaw的完整流程,希望能为大家的开发与参赛项目带来实际帮助。
飞凌嵌入式

飞凌嵌入式

保定飞凌嵌入式技术有限公司,创建于2006年,是一家专注嵌入式核心控制系统研发、设计和生产的高新技术企业,是国内较早专业从事嵌入式技术的企业之一。 经过十几年的发展与积累,公司拥有业内优秀的软硬件研发团队,在北京及保定建立两大研发基地,在苏州、深圳设有华东、华南技术服务中心,并在北美、欧洲以及亚太等其他国家和地区拥有国际业务网络。公司研发的智能设备核心平台广泛应用于物联网、工控、轨道交通、医疗、电力、商业电子、智能家居、安防、机器人、环境监测等诸多领域。

保定飞凌嵌入式技术有限公司,创建于2006年,是一家专注嵌入式核心控制系统研发、设计和生产的高新技术企业,是国内较早专业从事嵌入式技术的企业之一。 经过十几年的发展与积累,公司拥有业内优秀的软硬件研发团队,在北京及保定建立两大研发基地,在苏州、深圳设有华东、华南技术服务中心,并在北美、欧洲以及亚太等其他国家和地区拥有国际业务网络。公司研发的智能设备核心平台广泛应用于物联网、工控、轨道交通、医疗、电力、商业电子、智能家居、安防、机器人、环境监测等诸多领域。收起

查看更多

相关推荐