OpenBSD-Patch: Added the #include <sys/socket.h> in xvc_server.cpp to allow for compilation. Added a section to the README.md.
This commit is contained in:
parent
50e1ebe1c3
commit
5a3b8b943e
35
README.md
35
README.md
|
|
@ -156,6 +156,41 @@ OPENFPGALOADER_SOJ_DIR=/somewhere openFPGALoader xxxx
|
||||||
`OPENFPGALOADER_SOJ_DIR` must point to directory containing **spiOverJtag**
|
`OPENFPGALOADER_SOJ_DIR` must point to directory containing **spiOverJtag**
|
||||||
bitstreams.
|
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/Partners
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
#include "xvc_server.hpp"
|
#include "xvc_server.hpp"
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue