Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
全志_RISCV_D1_D1S
## RT-Thread on Allwinner D1H. LCD work, USB in progress.
发布于 2024-10-17 19:51:56 浏览:305
订阅该版
Hi all, I successfully build and ran RT-Thread on the RISC-V [Allwinner D1H](https://d1.docs.aw-ol.com/en/) SoC. Executed at hardware such as [ClockworkPi uConsole R-01](https://www.clockworkpi.com/uconsole),[ClockworkPi DevTerm R-01](https://www.clockworkpi.com/home-devterm) and [Sipeed Lichee RV + Dock](https://wiki.sipeed.com/hardware/en/lichee/RV/Dock.html). @jusentari made uConsole display work in RTT (experimental display parameters, use with caution). Allwinner D1H documentation very limited regarding peripherals. However if you enjoy brainteaser and some low-level stuff, you’re welcome. Intention was to make RT-Thread portable terminal with working display and keyboard. I manage to: - Create a working LCD MIPI DSI Display driver with frame buffer. - Create a working LCD RGB Display driver with frame buffer. - Make some progress on a USB keyboard driver. - Boot from SD card and communicate via UART - Debugging with GDB The code is available at: https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H Ready images for SD card: - DevTerm R01: [sd_image_devterm.img](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/releases/download/v5.0.2.2/sd_image_devterm.img) - uConsole R01: [sd_image_uconsole.img](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/blob/master/image/sd_image_uconsole.img) (experimental display parameters, use with caution) - Sipeed Lichee RV: [sd_image_lichee.img](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/releases/download/v5.0.2.2/sd_image_lichee.img) Please note: The DevTerm/uConsole battery charging/discharging controller is not yet configured in the driver, so I’m unsure how it affects the battery. I suggest not using the battery with RT-Thread and powering it via USB instead. I’m writing a series of articles covering the knowledge and experience I’ve gained: - [D1-1. Introduction](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/blob/master/documentation/D1_1_introduction.md) - Motivation and intention. - [D1-2. Boot process](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/blob/master/documentation/D1_2_boot_process.md) - Existing Allwinner D1H bootloaders best practice in example with booting Linux and RT-Thread, also JTAG and GDB. - [D1-3. RT-Thread overview and Build](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/blob/master/documentation/D1_3_rtt_overview_and_build.md) - Overview of RT-Thread structure and libraries. Compile RT-Thread for Allwinner D1H platform. - [D1-4. Makefile and Hardware changes](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/blob/master/documentation/D1_4_make_and_hw.md) - My repository structure, Makefile and Hardware changes was needed to be done. - [D1-5. LCD Display driver](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/blob/master/documentation/D1_5_lcd_driver.md) - Display driver for [DevTerm R-01](https://www.clockworkpi.com/home-devterm), [uConsole R-01](https://www.clockworkpi.com/uconsole) and [Sipeed Lichee RV](https://wiki.sipeed.com/hardware/en/lichee/RV/Dock.html). - [D1-6. USB Keyboard](https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H/blob/master/documentation/D1_6_usb_keyboard.md) - USB Keyboard driver for ClockworkPi DevTerm, ~~still not working.~~ ~~Finally, I dare to ask for help from the community, please: I’m really stuck with the USB driver. It can detect device connections, but communication has not started. Perhaps someone would enjoy diving deep into the USB driver to solve this riddle. Ready for issue reports and pull requests.~~ Picture of LCD Display test in RT-Thread running on uConsole R-01: ![uConsole_dispaly_works.jpeg](https://oss-club.rt-thread.org/uploads/20241022/20d4a5df60265123c0c0f14f78511eb6.jpeg.webp) Picture of LCD Display test in RT-Thread running on Devterm R-01: ![devterm_lcd_mipi_work.jpg](https://oss-club.rt-thread.org/uploads/20241017/a4b71b81adb31770f280599ce3d8d7ff.jpg.webp)
4
条评论
默认排序
按发布时间排序
登录
注册新账号
关于作者
ylyamin
这家伙很懒,什么也没写!
文章
1
回答
2
被采纳
0
关注TA
发私信
相关文章
1
求助全志D1S&RDC纪念版资料以及RTSMART移植教程
2
D1S scons编译
3
D1s M7工具链求寻
4
全志D1运行RT-Thread在烧录程序时异常
5
rtthread d1s编译报错
6
目前最新版的userapps如何安装D1s环境
7
[SOLVED] Not compiled for Allwinner D1H
8
导入bsp\allwinner\d1sb出错
9
[SOLVED] Allwinner D1H USB host
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
ota在线升级
UART
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
at_device
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
张世争
8
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
KunYi
6
个答案
1
次被采纳
本月文章贡献
程序员阿伟
5
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
Betrayer
1
篇文章
1
次点赞
回到
顶部
发布
问题
投诉
建议
回到
底部