Skip to content

try-agaaain/Hello-D1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hello-D1

这是一个简单的hello程序,可以在LicheeRV Dock开发板裸机环境下运行。它的功能很简单:向uart输出“hello,world”。

代码实现参考自 第7章 Hello RVOS_哔哩哔哩_bilibilixfel/payloads/d1_f133/d1-ddr/source/sys-uart.c

编译方式

在Ubuntu 20.04环境下,可以直接使用官方的GNU工具链,执行以下命令安装并编译:

$ sudo apt update
$ sudo apt install build-essential gcc make perl dkms git gcc-riscv64-unknown-elf gdb-multiarch
$ make

Blog

1、uart串口通信.md

2、程序的移植和运行.md

3、补充内容.md

效果

程序借用xboot/xfel工具烧录到开发板的内存中并执行:

result

左侧为执行命令,右侧程序输出为:

###########################################
####        Hello, D1 & RISC-V!        ####
###########################################

上面的测试是在Lichee RV Dock上进行的,由于Lichee RV Nezha和Lichee RV-86 Panel也采用D1芯片,所以在这两个开发板上应该也能通过测试。

About

A hello-world program running on the Allwinner D1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published