
On 8/4/23 19:46, Miquel Raynal wrote:
Hi Marek,
marex@denx.de wrote on Fri, 4 Aug 2023 19:31:50 +0200:
On 8/4/23 19:24, Miquel Raynal wrote:
Hi,
>>> exit not allowed from main input shell. >>> => unbind /ocp/usb@47400000/usb@47401000 usb_ether >> >> Does >> >>>> => unbind ethernet 0 >> >> work ? >> >> If so, 1/4 in this series can be skipped altogether. >> >> You likely won't even need the rebinding of ti-musb-peripheral anymore.
Did you test this yet ?
Unfortunately it does not work. Indeed it would be much simpler than using the node path. Any idea why?
Since you provided literally zero information, no.
Console log would be a good starting point.
Here it is, the unbind command itself does not complain has it seems to catch the regular Ethernet controller (there is one in the SoC, but it is not wired on the board). So the first time it does nothing, but the second time it works as the USB gadget get dropped! And after the second call, fastboot works without the bind call.
=> dm tree misc 0 [ + ] ti-musb-wrapper | |-- usb@47400000 usb 0 [ + ] ti-musb-peripheral | | |-- usb@47401000 ethernet 1 [ + ] usb_ether | | | `-- usb_ether
^^^^^^^^ ^
unbind ethernet 1