Skip to content
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

g_ether #8

Open
peterberbec opened this issue Aug 26, 2018 · 17 comments
Open

g_ether #8

peterberbec opened this issue Aug 26, 2018 · 17 comments

Comments

@peterberbec
Copy link
Contributor

According to the forums, a patch is required to enable OTG gadget ethernet. The file is here. Is this enabled on any of the kernels?

@avafinger
Copy link
Owner

This patch is for Kernel 3.4.112/113.

CONFIG_USB_OTG is not set for a reason, although I have it in DTB

&usb_otg {
	dr_mode = "**otg**";
	status = "okay";
};

When configured and enabled you will experience a high avg load > 1.0 and thus generate heat.
I can configure it on next release as experimental, although I don't use it and never tested it.

@peterberbec
Copy link
Contributor Author

Can I enable it by decompiling the dtb or does it take a kernel recompilation?

@avafinger
Copy link
Owner

It needs a kernel recompilation, I was expecting kernel 4.18.6 for today and I set it for one shot and you tell the results unless you are in a hurry.

@peterberbec
Copy link
Contributor Author

Oh great! Let me know when the deb is up and I'll test it.

Thanks for all your work. Best image out there! You actually make this sbc useful.

@avafinger
Copy link
Owner

I will build one with OTG support, takes a couple of hours...

@peterberbec
Copy link
Contributor Author

Thanks, I'm not home anyway.

In the readme you say the board is colder if you disable hdmi. How would I go about doing that?

@avafinger
Copy link
Owner

Ok, i will do thist on 4.18.6...

@avafinger
Copy link
Owner

Please, try this kernel image and report back your findings...
b753342

@peterberbec
Copy link
Contributor Author

[ 51.164710] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers

@peterberbec
Copy link
Contributor Author

Does this sound like it makes sense to this issue?

@avafinger
Copy link
Owner

Seems so, I will build a new kernel image with that config set, please report back when you test.

@avafinger
Copy link
Owner

Small question, do you have this working on 3.4.112?

@peterberbec
Copy link
Contributor Author

I have not tested otg on the board at all. I was concentrating on i2c, spi, wifi and ethernet. I just now got around to otg.

@avafinger
Copy link
Owner

b91c110

Built-in modules, you should have now OTG / gadget functionality. Hopefully.

@peterberbec
Copy link
Contributor Author

peterberbec commented Aug 27, 2018

Got the same dmesg output. Should I try a banana-supplied image, figure out what makes it tick, and come back? I don't want you spending hours on this if there's some trick we need to know.

I'm going to try this They claim it supports USB Ethernet. I'll report back if it works, and we can try to disect how.

@avafinger
Copy link
Owner

Maybe you should have some g_ether params like this: https://gist.github.com/dwilkins/2be58627bfdd675e3a53a011f55c5d07

Try that image and see if it is working and there are parameters to be passed to g_ether

Sounds like you can't have OTG and gadget at the same time, who knows...

@peterberbec
Copy link
Contributor Author

Possibly. The inner workings of these devices follow rules only Dali would understand...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants