Ok, let me refine my question: I’ve managed to see it work on vim2 with the latest Nougat firmware (kernel 3.14), but has anyone made it work with a 4.9 kernel ?
Would imagine you need to build your own kernel using the fenix scripts?
I guess the USB flash method to load an image shows it can work at a very low level, but have no idea what is needed in a 4.9 kernel to prop things up. I am running balbes150 Armbian 4.9.40 and am happy to try test except am still powered via the USB-C.
[Presume you have sorted power via VIN - has always been 1 of my aims but have yet to take the leap to pay RS Components for qty 10 - any tips?]
I’m using 150balbes 4.9-khadas branch, but I can’t quite figure out the stuff to be done with configfs, since it looks a bit different between 3.14 and 4.9, so I can’t just use the same procedure as the 3.14 nougat ROM… (btw, I’m powering the board through USB-C too)
here’s my current script, but nothing happens on the host when I write the UDC part to enable device mode:
and notably, 3.14 has properties in /sys/class/android_usb/android0 (like enable), that don’t exist in 4.9, and I don’t know what to replace them with…
for reference, the issue was that my dtb had ‘controller-type = <3>’ in dwc2_a section, while it should be <2>, 3 meaning ‘otg’ and 2 meaning ‘device’.