leetronics / infnoise

The world's easiest TRNG to get right
Creative Commons Zero v1.0 Universal
122 stars 25 forks source link

FreeBSD and macOS support #8

Open jj1bdx opened 6 years ago

jj1bdx commented 6 years ago

Is there any plan to support FreeBSD or macOS?

FYI, I've removed the Linux-dependent part and fix the Makefile for the FreeBSD libraries and the code seems to be working fine for FreeBSD 11.2-STABLE. Patch: https://github.com/jj1bdx/infnoise/commit/3aafc0ab5924ecef6d6e8c7ff738b1ab51cf7924

jj1bdx commented 6 years ago

Update for macOS 10.13.5: you do not have to use FTDI Drivers. The macOS stock drivers will do better. Do not install either the VCP or D2XXHelper. If you install them, remove them. They are in /Library/Extensions. For macOS 10.13.5: D2XXHelper from FTDI Driver page seems to be required to prevent loading the Virtual COM Port (VCP) driver. Patch: https://github.com/jj1bdx/infnoise/commit/0cd7e724bd704613e3ced06148318a0c9fd45ea3

jj1bdx commented 6 years ago

I think the Linux-dependent code first should be rewritten to make this driver compatible with the other UNIX-based operating systems. OTOH, things look ok also on FreeBSD and macOS in the other parts of the infnoise driver software.

manuel-domke commented 6 years ago

See my latest comment in https://github.com/waywardgeek/infnoise/issues/59 for my plans to build this project cross-platform (using CMake).

Received lots of pull requests for Mac, FreeBSD and Windows and will try to include all of your work. Thanks a lot!

It's also worth mentioning the latest pull request from @dylanmc in one of my other forks: https://github.com/manuel-domke/infnoise/pull/3

Sorry for the current mess.

jj1bdx commented 6 years ago

@manuel-domke FYI: I've made some repositories for mostly testing and debugging purpose for each OS of Linux (Ubuntu primarily), FreeBSD, and Windows as:

You can freely include the code. I'll try to leave them public domain as possible, but some code might have to be MIT or BSD licensed later.

jj1bdx commented 6 years ago

Update for macOS 10.13.5: you do not have to use FTDI Drivers. The macOS stock drivers will do better. Do not install either the VCP or D2XXHelper. If you install them, remove them. They are in /Library/Extensions.