Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2308-Xv6 移植和演示-RISC-V 软件移植及优化锦标赛 #3

Open
wants to merge 13 commits into
base: riscv
Choose a base branch
from

Conversation

Virus-V
Copy link

@Virus-V Virus-V commented Mar 1, 2024

参赛题目:Xv6 移植和演示-RISC-V 软件移植及优化锦标赛
参赛队:IEEE 80211 Team

1、GCC工具链使用玄铁:Xuantie-900 elf newlib gcc Toolchain V2.6.1 B-20220906
2、执行 make duo 命令,即可自动构建出 milkv-duo.img 镜像,路径在 vendor/milkv-duo/images 下面。

a、工程中使用到的elf、bin均可在官方 duo-buildroot-sdk 中找到。
b、mkimage可执行文件是 u-boot-2021.10/tools/mkimage.c 编译出来的。
c、fip_prebuilt目录中的bin,都是 duo-buildroot-sdk 构建时调用 fiptool.py 用到的bin,直接拷贝过来的。
d、gen_fip.sh 脚本生成 fip.bin、gen_bootsd.sh 生成 boot.sd 、gen_images.sh 生成 milkv-duo.img,关系整理如下图。

3、pull request对应的源码是这笔提交:deb251df4bf44725d6a5e5f9c8722a3c6c4dd6e2 ,本次提交的代码在此PR基础上增加了 I2C、GPIO、SPI、PWM驱动。

buffer-cv180x(2)

@sunmin89
Copy link

sunmin89 commented Mar 6, 2024

你好 IEEE 80211:
关于如何测试 I2C、GPIO、SPI、PWM等驱动,在文件系统下能找到一些用户态例程,比如 gpiotest、pwmtest 等,能否进一步提供明细的测试说明,谢谢

@Virus-V
Copy link
Author

Virus-V commented Mar 6, 2024

用户态增加了gpiotest、pwmtest、spilcdtest测试例程。
正常启动xv6之后:
1、执行gpiotest程序,能看到板载蓝色led灯闪烁。
2、执行pwmtest后,示波器能看到PWM5引脚有PWM信号输出,占空比依次从100%递减到0。
3、执行spilcdtest例程,SPI2_SCK、SPI2_TX引脚能看到有SPI信号输出。

@Virus-V
Copy link
Author

Virus-V commented Mar 6, 2024

I2C驱动没有测试例程,只是移植了driver。

@sunmin89
Copy link

sunmin89 commented Mar 7, 2024

用户态增加了gpiotest、pwmtest、spilcdtest测试例程。 正常启动xv6之后: 1、执行gpiotest程序,能看到板载蓝色led灯闪烁。 2、执行pwmtest后,示波器能看到PWM5引脚有PWM信号输出,占空比依次从100%递减到0。 3、执行spilcdtest例程,SPI2_SCK、SPI2_TX引脚能看到有SPI信号输出。

好的,感谢提供测试步骤

@shiptux
Copy link

shiptux commented Mar 26, 2024

尊敬的参赛选手,您好。
本次锦标赛您所提交的 PR 初步复测结果如 https://github.com/plctlab/rvspoc/blob/main/Results/Verifications/P2308/README.md 所示。如有任何异议请回复本条评论。如确认无误请回复 “确认无误”,感谢您的配合。

@Virus-V
Copy link
Author

Virus-V commented Mar 29, 2024

确认无误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants