Problem setting Pine64 as a USB device
#1
Hello,
I am looking for help with setting the Pine64 LTS upper USB port as a USB Device(serial port)

My setup:
Pine64 LTS
Armbian_5.38_Pine64so_Ubuntu_xenial_default_3.10.107( I have also tried Armbian_5.35_Pine64so_Ubuntu_xenial_default_3.10.105 with the same results)
Original kernel configuration: Original kernel configuration
My current configuration: My current configuration
Kernel sources I use are form armbian package linux-source-default-pine64_5.38_all.deb and contain git versioning information with remote repository at https://github.com/ayufan-pine64/linux-pine64

What I tried:
Rebooting without SD card into FEL mode to see if Pine will be enumerated on my PC, this works ok, so the actual connection works and the USB port on the Pine I picked is the correct one.

Armbian seem to be lacking the g_serial driver, so I recompiled the kernel with gadget support + g_serial module.
From what I understand https://www.kernel.org/doc/Documentation...serial.txt, doing :
Code:
Code:
echo 0 > /sys/bus/platform/devices/usbc0.6/otg_role # I read somewhere that it's to be disabled before loading g_serial
modprobe g_serial use_acm=0
echo usb_device > /sys/bus/platform/devices/usbc0.6/otg_role # Cannot find where I got this from, but it makes sense
should be all that is required to make it work.
Here is the dmesg output taken after running these commands: https://pastebin.com/AFYE2f2n

I tried this with and without Device Drivers -> USB support -> OTG support support in the kernel, does not seem to make a difference.

What happens:
/dev/ttyGS0 is created as expected

What does not happen:
I when I connect the Pine to my PC, it does not enumerate(it's missing from lsusb ) [Image: sad.png]

Can anyone tell me what I am doing wrong? Do I need some different version of the kernel?


Messages In This Thread
Problem setting Pine64 as a USB device - by martin357 - 07-01-2018, 02:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Kernel rebuild resources and process for pine64-LTS Atreyo tech 2 3,337 07-02-2021, 12:23 AM
Last Post: Atreyo tech
  Building OP-TEE OS for pine64-LTS foreverska 1 3,404 12-13-2019, 03:32 PM
Last Post: foreverska
  SoPine/Pine64 LTS: Ubuntu Mate is not booting jaganteki 0 2,864 11-20-2018, 10:49 PM
Last Post: jaganteki

Forum Jump:


Users browsing this thread: 1 Guest(s)