USB->Serial Adapter Kernel Modules?

I have a new U22 on its way to replace my aging (but still great) Neo X5. I use these boxes in part for my home automation system which is based upon the Heyu package and this requires a serial port supported in the kernel. With the X5, I was able somehow to locate enough kernel source code to build working USB->Serial adapter support as loadable modules. I managed to get .ko for the ch341 and the keyspan units (which require the ezusb.ko file loaded first). Obviously, these will not work as they are Rockchip and certainly for a much older kernel version than the U22 is likely to employ since it is running Android 4.x.

I have found one location where someone has posted some .ko files for the AmLogic S912 SOC. But I have no idea if these will work with the U22 as it uses the S922 SOC. I can check it easily enough when the box gets here. But I thought I ought to start looking for assistance in this now as without this I simply cannot use the new box (and I want to!)

So if there are any kernel gurus who can lend a hand in either actually building/posting that would be fabulous. If not, maybe someone can point me at an appropriate kernel source tree and instructions on how to build things that might be enough to get me going. In the past I have managed to enable the needed config options using "make menuconfig" and then maybe performing a "make modules". But I am getting old and it has been a long while since I faced this so my recollection may be flawed.

I have asked Minix about this and have gotten nowhere except repeated statements that Minix doesn't release kernel source. I have tried to let Minix know that I am no threat to their proprietary stuff and really only need enough kernel code to build a few modules. But I am getting nowhere fast, it seems.

So any help/suggestions that can be offered are gladly accepted. Thanks!
 
Last edited by a moderator:
I have asked Minix about this and have gotten nowhere except repeated statements that Minix doesn't release kernel source.
Despite what Minix may have told you it is unfortunately not Minix but rather Amlogic who refuse to release the kernel source code.
 
Hi Marty and thanks for your interest and help.

I cannot say anything about AmLogic but here is the direct quote from Minix to me:

"We do not release any of the kernel source code." (1/3/21)

In this context, "we" sounds like Minix.

Of course, none of this gets me any closer to my goal and that is my focus.

In my past experience with AmLogic-based boxes like Tronsmart S95 and Ugoos AM1, they seemed to use reference boards from AmLogic (or at least closely related boards). Each of the AmLogic reference boards had a code name and I was finally able to track down the board code name for my devices. From this I was able to select the proper kernel build config within some source code I found and was finally able to create my needed kernel modules.

So if anyone has any information about which AmLogic 922-based reference board the U22 is built or related, that alone may prove of great help to me.

Take care. Stay safe. Stay sane.
 
Last edited by a moderator:
Success! I have support now for two USB->Serial adapters on firmware 004. Support for ch341 and keyspan 19. before insmod of keyspan you MUST insmod ezusb.
 

Attachments

  • NeoU22-UsbSerial.zip
    269.2 KB · Views: 15
Back
Top