-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD support #18
FreeBSD support #18
Conversation
Hello @porsolic , thanks for the PR! The PR builds finely on every platform, what is great. I added some notes, also thank you @robertlipe for some nice notes too. After solving those, I think it is ready to be merged. |
Add missing part about git submodules. Without it build system won't find dependencies.
Set standard baudrate (460800) instead of non-standard (500000). This enables opening of serial device under FreeBSD without error.
Add sp_drain() where needed. Without it FreeBSD won't pass the handshake phase. Also decreate max buffer size. Tested with Pinecil v2 and it can write and check new firmware.
Can this be merged or are some other changes needed? |
@porsolic there are few things which needs changes, but I can edit them later (after merge) and make it only for FreeBSD. |
It does need it. If specific buffer size is not applied then it will stuck:
|
@porsolic thanks for confirming. It is really interesting that macOS and FreeBSD have same behavior, thus, it is not only Apple quirk. That leads me to question, why this happens... 🤔 |
Here are some patches which enable building, running and flashing under FreeBSD operating system.
Also some misc patches which are fixing build warnings and updated README.
Later I'll try to import it to FreeBSD ports so it can be installed as package, without manual compilation.
It would be helpful it these changes are merged upstream.