Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reason for disabled OTG

Featured Replies

Hi, just a quick question: Why is OTG disabled?  I read some "performance issues" or "high CPU usage by OTG" etc...  But can someone be more specific?

my answer for OTG disabling on OLD  kernels :

 

any ARM kernel below 3.11 known to have a lot of harsch bugs  that make USB useless , system unstable.

so STOP use kernel 3.4.

 

- 0 read CERT allerts for OUTdated kernels

 - 0.1 most OTG bugs had been beed 2 years ago on ARM6 & 7  with kernel 3.12.x and up on rasberry PI's

  see at git //github.com/raspberrypi/linux.git for OTG armhf patches.

 

-1 update kernel

   Kick the old 3.4.x kernels of your desk and servers.

 

 use https://github.com/igorpecovnik/lib, with

KERNEL_ONLY="yes"  and KERNEL_CONFIGURE="no" 

re-enable complete USB stuff , as modules , INCLUDE OTG

 

- 2 if custom kernel modules , port them , give igor patches .

  • Author

Thanks Igor for that link. Now it is clear to me.

 

remset, thank you too. I would correct your adwise to:

KERNEL_ONLY="yes"  and KERNEL_CONFIGURE="yes" //re-enable complete USB stuff , as modules , INCLUDE OTG

I am working on re-enabling OTG in mainline, I am not done so I am not sure, but I think you also need to enable OTG in script.bin, right?

I am working on re-enabling OTG in mainline, I am not done so I am not sure, but I think you also need to enable OTG in script.bin, right?

 

Mainline doesn't have script.bin any more but Device Tree which has similar role but completely different structure.

 

Sources are located in /arch/arm/boot/dts/ ... compiled under /boot/dtb

 

Documentation:

http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf

  • Author

Mainline doesn't have script.bin any more but Device Tree which has similar role but completely different structure.

 

Sources are located in /arch/arm/boot/dts/ ... compiled under /boot/dtb

 

Documentation:

http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf

Well, interesting. :P

 

Any way or link to "how to enable OTG in mainline"? I have not found anything useful (for OTG) in /arch/arm/boot/dts/. :( I enabled needed things (later also not needed things to be sure) in .config, but that is not enough. Maybe I will find something helpful in that pdf.

Hi to All,

 

I have read this and other discussions on the USB OTG issue in old kernels but the need to use legacy kernel 3.4 and 2+ USB Hosts on Lime 2 without hub force me to test system behavior with USB0 enabled as host only (usb_port_type = 1 and usb_detect_type = 0).

 

The result is good for "high CPU usage at OTG detect enabled" phenomena. In the beginning the CPU load average is relatively high but less than 1.0.

It goes down and become close to 0 after short time without heavy system load.

 

As I read there is other "performance issues" and many bugs but the truth is that I use on A20-SOM Olimex image with kernel 3.4 for months without any problems even did not notice high the CPU load average reported by tools like top and htop.

 

My question is about other side effects, issues and instability in case of usb_port_type = 1 and usb_detect_type = 0 setup?

 

Regards

Chris

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.