BelaPlatform / bela-image-builder

Scripts to build a Bela image from scratch
MIT License
37 stars 16 forks source link

configure gadget from BELABOOT #81

Open giuliomoro opened 6 years ago

giuliomoro commented 6 years ago

Since https://github.com/BelaPlatform/bela-image-builder/commit/355a2c9aedfa17da065a126ead5e1b977ea64733 there are two virtual network devices enabled over USB: one that should work natively for Windows and one that should work natively for Mac (and both on Linux). These interfaces usb0 and usb1 have the same IP address (192.168.7.2) and this seems to be working just fine in many cases. In a number of situations (e.g.: Linux, Mac with HORNDIS etc), they will both show up and this sometimes is source of confusion for the OS, which cannot resolve 192.168.7.2, or bela.local or both, or it works just fine. E.g.: on macOS 10.11.6+HORNDIS this is pretty much hit and miss (though removing HORNDIS fixes it, and having distinct IP addresses for the two drivers also fixes it)).

Is it worth adding a config file in BELABOOT where you can enable/disable gadgets? This would be sourced by /opt/Bela/bela_gadget.sh and would allow users that fail to log into the board to revert to the method that works for them without having to be able to read/write an ext4 partition.