Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    R-01 library for small OS

    MR Series
    2
    2
    1517
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      ylyamin LV 4 last edited by

      Hi all,

      I created bare-metal library for R-01 (for Allwinner D1H RISC-V SOC).
      Tested in ClockworkPi DevTerm R-01
      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!

      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 Reply Last reply Reply Quote Share 1
      • Z
        zoengjay LV 5 last edited by

        @ylyamin 在 R-01 library for small OS 中说:

        requests

        Since LCD RGB is working, DE probably working fine. So what is left could be LCD MIPI part.

        Allwinner tends to use the same code everywhere, so there could be a problem to find alternatives. Mainline Linux kernel maybe the only place to look at. Also logic analyzer maybe needed for this kind of task.

        Another reference could be xboot project: https://github.com/xboot/xboot , but seems main activities goes into LCD RGB.

        1 Reply Last reply Reply Quote Share 1
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策