您尚未登录。

楼主 # 2025-02-04 20:20:38

ylyamin
会员
注册时间: 2024-10-17
已发帖子: 6
积分: 38

Allwinner D1H library for small OS

Hi all,

I created bare-metal library for R-01 (for Allwinner D1H RISC-V SOC).
Tested in ClockworkPi DevTerm R-01 and  Sipeed lichee RV.
Everything actually is based on @robots allwinner_t113 and @ua1arn hftrx projects, these guys are genius.

Is minimal low-level library could be used to run own OS, or Doom or whatever.

Now is have:

  • Bootloader, could run from SD card.

  • USB keyboard working well

  • TWI (I2C) supported AXP228 Power management chip for Display backlight and USB power.

  • UART, GPIO

To run need configure UART adapter to 115200 baud rate.
Insert flashed SD card to device should see output like this:

[INF]:  \ | /
[INF]:  - Allwinner D1 HAL [ver: 0.0.1-5-gd69c9f1]
[INF]:  / | \
[INF]:  SoC: D1H
[INF]:  Platform: ClockworkPi Devterm R-01
[DBG]:irq_init
[DBG]:twi_init

With Display I have a big problem is work with external board with LCD RGB(ST7701S SPI) but with ClockworkPi LCD MIPI not work.
My dream to have just one C file to init LCD and framebuffer, but LCD driver stack is very complicated.

I found drivers in Linux and RT-Thread OS but is very big and I could not extract from it what should be set.
Tried configure registers the same as in Linux but is still not work.

Perhaps someone would enjoy diving deep into the LCD world to solve this riddle. Ready for issue reports and pull requests to bare-metal library for R-01!

Also I accumulated many knowledge and write articles when run RT-Thread OS in DevTerm/uConsole R-01, in this OS LCD and USB work well.

离线

#1 2025-02-06 09:24:19

lanlanzhilian
会员
注册时间: 2021-12-21
已发帖子: 138
积分: 43

Re: Allwinner D1H library for small OS

The bare machine workload is too large, we don't have that much time to study.

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn