[Libre-soc-bugs] [Bug 190] Setup Gitlab CI Runner for Kazan on a computer

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Apr 21 06:27:45 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=190

--- Comment #58 from Jacob Lifshay <programmerjake at gmail.com> ---
I added a uart_demo.py that programs the FPGA with a simple transmit-only UART
that's connected to all UART TX pins defined by the platform and transmits some
text in a repeating loop. The default text is "Hello World!\n" and the default
baud rate is 9600.

I built it with gitlab-ci and it successfully programmed the fpga, but since I
don't yet have the serial port passed into the gitlab-ci docker container, I
just logged onto the build server to test it...it works!

https://git.libre-soc.org/?p=utils.git;a=blob;f=uart_demo.py;h=89c40e71fc544d16e4c02464b00f20fb3d95ad05;hb=289ae5cc49eee8380210e09db3a8ec3f12ca176a

The reason I wrote the simple UART is so we have something to test that the
FPGA on gitlab-ci works without needing to build a whole soft-cpu that could
easily be broken by someone while their working on it...uart_demo.py is
unlikely to break.

I'll add code that reads from the serial port from inside the docker container
and checks that it got the right text and didn't time-out...at that point, I
can declare the FPGA to be officially working on gitlab-ci...I'll wire up the
hyperram later.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list