From 5a3b8b943ecf1a3a63e15e83e6afe4a8053f5722 Mon Sep 17 00:00:00 2001 From: Thomas Dettbarn Date: Thu, 23 Apr 2026 09:47:13 +0200 Subject: [PATCH] OpenBSD-Patch: Added the #include in xvc_server.cpp to allow for compilation. Added a section to the README.md. --- README.md | 35 +++++++++++++++++++++++++++++++++++ src/xvc_server.cpp | 1 + 2 files changed, 36 insertions(+) diff --git a/README.md b/README.md index cc2d2c6..0e84b31 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,41 @@ OPENFPGALOADER_SOJ_DIR=/somewhere openFPGALoader xxxx `OPENFPGALOADER_SOJ_DIR` must point to directory containing **spiOverJtag** bitstreams. +## Disabling uftdi on OpenBSD + +Certain evaluation boards can cause the following error when running openFPGAloader on OpenBSD: + +``` +fail to read data usb bulk read failed +JTAG init failed with: low level FTDI init failed +``` + +This issue is most likely caused by the uftdi module, trying to access the device. To disable it, +the following commands can be used: + +```bash +# doas config -e -f -o /bsd.nouftdi /bsd +OpenBSD 7.8 (GENERIC) #54: Sun Oct 12 12:45:58 MDT 2025 + deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC +Enter 'help' for information +ukc> disable uftdi* +356 uftdi* disabled +ukc> disable uftdi0 +ukc> disable uftdi1 +ukc> quit +Saving modified kernel. +# reboot +``` + +At the boot prompt, typing in + +``` +boot> boot /bsd.nouftdi +``` + +will boot the new kernel with the disabled module. + + ## Sponsors/Partners ![Sponsors](https://github.com/user-attachments/assets/cb4efce1-ed0c-461c-bd05-9caeb440870d) diff --git a/src/xvc_server.cpp b/src/xvc_server.cpp index f710a79..bd660ee 100644 --- a/src/xvc_server.cpp +++ b/src/xvc_server.cpp @@ -6,6 +6,7 @@ #include "xvc_server.hpp" #include +#include #include #include #include