打印
[技术讨论]

全志D1-H适配Debian by PerfXLab

[复制链接]
159|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
神棍地海棠|  楼主 | 2024-2-21 10:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
简介
[color=rgba(0, 0, 0, 0.87)]本威力加强包由 PerfXLab 提供,主要包括:
  • 基于D1-H哪吒开发板移植 Debian11 系统,并预装LXDE桌面环境。
  • 适配多款传感器,包括:倾斜模块sw-520 d、循迹避障模块TCRT5000、光照强度传感器BH1750FVI----i2c、大气压强传感器BMP280等。传感器套件可在PerfXLab官方淘宝店上购买到。
上手说明
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)]1.于HDMI接口接入线缆至显示器;
[color=rgba(0, 0, 0, 0.87)]2.于USB HOST 接口上连接鼠标和键盘;
[color=rgba(0, 0, 0, 0.87)]3.于POWER接口上连接供电线;
[color=rgba(0, 0, 0, 0.87)]4.通电1分钟左右系统启动完成进入登录界面,在此过程中,LED灯会亮蓝灯,5秒后熄灭。
[color=rgba(0, 0, 0, 0.87)]5.系统账户和密码:
[color=rgba(0, 0, 0, 0.87)]账号:root
[color=rgba(0, 0, 0, 0.87)]密码:rvboards
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)]6.终端
[color=rgba(0, 0, 0, 0.87)]双击桌面第五个图标LXTerminal;
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)]7.wifi配置
[color=rgba(0, 0, 0, 0.87)]双击桌面第二个图标connman setting:
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
传感器Demo倾斜模块sw-520 d
  • 模块代码地址:[color=var(--md-typeset-a-color)]rvboards/D1-H_demo: The demo projects for Allwinner D1-H SBC (github.com)
  • 代码运行方法(需要sudo权限):

code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">sudo ./sw520dgpio44.sh
  • 需要使用杜邦线连接模块;
  • 连接实物图如下图所示,具体请查看原理图:

[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
循迹避障模块TCRT5000
  • 模块代码地址:[color=var(--md-typeset-a-color)]rvboards/D1-H_demo: The demo projects for Allwinner D1-H SBC (github.com)
  • 代码运行方法(需要sudo权限):

code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">sudo ./tcrt5000gpio44.sh
  • 需要使用杜邦线连接模块,具体请查看原理图:
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
光照强度传感器BH1750FVI----i2c
  • 模块代码地址:[color=var(--md-typeset-a-color)]rvboards/D1-H_demo: The demo projects for Allwinner D1-H SBC (github.com)
  • 代码运行方法(需要sudo权限):

code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">make ./runtest.sh
  • 光照强度传感器模块连接图如下,具体请查看原理图。
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
大气压强传感器BMP280
  • 模块代码地址:[color=var(--md-typeset-a-color)]rvboards/D1-H_demo: The demo projects for Allwinner D1-H SBC (github.com)
code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">make./runtest.sh
  • 大气压强传感器BMP280模块连接图如下,具体请查看原理图:
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
固件(镜像)基本介绍
[color=rgba(0, 0, 0, 0.87)]RVBoards提供的镜像包含4个文件,开发者可以根据自己的需求下载相应的文件。
[color=rgba(0, 0, 0, 0.87)]Windows环境下:
[color=rgba(0, 0, 0, 0.87)]RVBoards_D1-H_Debian_lxde_img_win_v0.3.img,镜像里安装了LXDE桌面环境;烧录成功后通电进入登录界面;
[color=rgba(0, 0, 0, 0.87)]RVBoards_D1-H_Debian_consose_img_win_v0.3.img,该镜像没有安装GUI,需要使用串口进入系统;
[color=rgba(0, 0, 0, 0.87)]Linux环境下:
[color=rgba(0, 0, 0, 0.87)]RVBoards_D1-H_Debian_lxde_img_linux_v0.3.gz,镜像里安装了LXDE桌面环境;烧录成功后通电进入登录界面;
[color=rgba(0, 0, 0, 0.87)]RVBoards_D1-H_Debian_consose_img_linux_v0.3.gz,该镜像没有安装GUI,需要使用串口进入系统;
[color=rgba(0, 0, 0, 0.87)]下载地址: 见文末 固件版本 章节。
[color=rgba(0, 0, 0, 0.87)]该固件由 PerfXLab 提供,版本不断更新中,详见:[color=var(--md-typeset-a-color)]Perf-ABC(RISC-V SoC Board) | RVBoards 论坛
固件烧写Windows10系统下烧写
  • 需要的文件
[color=rgba(0, 0, 0, 0.87)]RVBoards_D1-H_Debian_lxde_img_win_v0.3.img或者RVBoards_D1-H_Debian_consose_img_win_v0.3.img
  • PC系统环境要求
[color=rgba(0, 0, 0, 0.87)]Windows10
  • 需要的工具
[color=rgba(0, 0, 0, 0.87)]软件部分:AW PhoenixCard 硬件部分:SD卡,推荐使用32GB
  • PhoenixCard软件安装(需要环境windows)
[color=rgba(0, 0, 0, 0.87)]点击PhoenixCard.exe进**软件安装;
  • 烧录镜像
[color=rgba(0, 0, 0, 0.87)][color=var(--md-typeset-a-color)]
Linux系统下烧写
  • 需要的文件
[color=rgba(0, 0, 0, 0.87)]RVBoards_D1-H_Debian_lxde_img_linux_v0.3.gz或者RVBoards_D1-H_Debian_consose_img_linux_v0.3.gz
  • 需要的系统环境
[color=rgba(0, 0, 0, 0.87)]Linux(Ubuntu或者Debian)
  • 需要的工具
code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">dd
  • 烧写命令
code" style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; font-size: inherit; font-family: inherit; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0.5em; right: 0.5em; z-index: 1; width: 1.5em; height: 1.5em; border-radius: 0.1rem; outline: none; outline-offset: 0.1rem; cursor: pointer; transition: color 0.25s ease 0s;">sudo gzip -dc RVBoards_D1_Debian_lxde_img_linux_v0.3.gz | sudo dd of=/dev/sdcorsudo gzip -dc RVBoards_D1_Debian_consose_img_linux_v0.3.gz | sudo dd of=/dev/sdc

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

190

主题

198

帖子

0

粉丝