FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
797 stars 136 forks source link

Add support for the Orange Crab #198

Closed Obijuan closed 4 years ago

Obijuan commented 4 years ago

For supporting the Orange Crab board in icestudio (see this issue in Icestudio) it should be first supported in Apio

Obijuan commented 4 years ago

The first step is to add the board information in this file: boards.json @jmi2k could you help on this?

jmi2k commented 4 years ago

I'm on it, but right now the VID/PID pair used on the DFU bootloader conflicts with Fomu. The author has requested a new PID here which I'm going to use temporarily as a placeholder.

jmi2k commented 4 years ago

I've updated the PR info, as he finally got the PID. Now it can be merged.

Obijuan commented 4 years ago

Great! Thanks a lot! 🙂

Obijuan commented 4 years ago

I am reopening this issue again. The building and bitstream generation works fine, but not the upload. It need more testing and polishing, as reported by @gregdavill in this icestudio's issue #392

jmi2k commented 4 years ago

The issue he is raising seems unrelated to this PR specifically. He has more than one DFU programmer attached to his computer, so the flashing step is complaining because it cannot choose one by default. Can anyone test flashing something to a DFU-based device while having another DFU-based board connected at the same time?

Obijuan commented 4 years ago

It is also important to remove the sudo command as it is not available in other platforms (like Windows). I will open another issue for that

The solution is to add a udev rule when executing an apio drivers command (that should be defined, it can be called dfu-enable)