riscvarchive / riscv-edk2-platforms

Port of EDK2 implementation of UEFI to RISC-V. See documentation at:
https://github.com/riscv/riscv-uefi-edk2-docs
Other
18 stars 7 forks source link

Create CI with hardware #30

Open JohnAZoidberg opened 3 years ago

JohnAZoidberg commented 3 years ago

Can use https://github.com/HewlettPackard/osfci.

Need to figure out:

Possibly for:

JohnAZoidberg commented 2 years ago

Seems to be the easiest with the Nezha D1.

It has:

JohnAZoidberg commented 2 years ago
Board Reset Flash Serial
Nezha D1 P6 contact to GND Binary in RAM with FEL UART
BeagleV Starlight ? ? UART
Sifive Unleashed ? ? ?
lazyparser commented 2 years ago

Hi @JohnAZoidberg

I'm Wei Wu, the director of PLCT Lab, which is a development partner of RVI. We're building and maintaining the first RISC-V Lab. There are hundreds of D1 and Unmatched machines for RISC-V CI in open source projects. I'd like to contribute to this issue if remote CI is possible. (The devices are located in Nanjing, China.)

(There is only one BeagleV Starlight in my lab, so I'm afraid that it may need more help from others.)

JohnAZoidberg commented 2 years ago

That sounds great, @lazyparser, thanks! Do you have some more information about that? You've got my email address, right?

You (are going to) have an API to flash and reset the system, as well as to get the serial output?

lazyparser commented 2 years ago

That sounds great, @lazyparser, thanks! Do you have some more information about that? You've got my email address, right?

Yes sure. I've found your [anything] email address :)

I'll write a short manual after the new year holiday. Basically developers can login to these boards directly using ssh.

You (are going to) have an API to flash and reset the system, as well as to get the serial output?

Sure. The idea is to leverage a Jenkins instance for the triggering and log downloading. (e.g. https://ci.rvperf.org/ . the Jenkins itself does not save scripts. it pulls scripts from https://github.com/plctlab/riscv-ci . so we can use github PR for adding and updating build scripts)

JohnAZoidberg commented 2 years ago

Yes sure. I've found your [anything] email address :)

Oh good, I thought you were someone else.

Basically developers can login to these boards directly using ssh.

Since EDK2 is the firmware (like u-boot), we need to flash the SD card from outside the board and get the console using physical serial port (UART). Would that be possible? edk2 isn't software that runs inside the OS and can be run through an ssh shell.