Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB-C devices not recognized
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sat Aug 05, 2023 10:41 pm    Post subject: USB-C devices not recognized Reply with quote

I'm having trouble getting a USB-C port to work. When I plug a device into it, nothing happens. I get no output on dmesg, nothing shows up on lsusb, etc. The port in question doubles is also the charging port for my computer, and it does charge when plugged in. The devices I've tried to connect to the port do work on USB-C ports on my other machines, so they aren't the issue. I've enabled pretty much everything related to USB in my kernel config (see below). This computer is a Samsung Chromebook 4. When I opened it up, the first chip connected to the USB-C port is a "Parade" chip (the numbers are too small to read), which I believe has something to do with mode-switching. Regardless, here are my kernel config and dmesg:
.config: http://0x0.st/H_-i.txt
dmesg: https://bpa.st/2WIQ


Any help or advice would be much appreciated
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sat Aug 05, 2023 11:24 pm    Post subject: Reply with quote

Have you tried genkernel? If using genkerknel works, you could diff the two configs to find out what you're missing.

Along the same lines, if you can boot up on another USB port with System Rescue CD and the USB-C port works, you could lsmod to see what modules are in use.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sat Aug 05, 2023 11:30 pm    Post subject: Reply with quote

I hadn't looked into genkernel. The way this thing is booted, I have to format the kernel a "special" way. That involves building the initramfs into the kernel itself, then dd-ing the kernel directly to a "chromeOS kernel" partition. There's some coreboot/chromeOS firmware stuff that requires I do it that way. I'm not familiar enough with genkernel to know if that can be done...
And that also prevents me from booting from USB, unless I make my own custom image. Gentoo is the only distro I was able to boot on this laptop (not that that's a bad thing :lol: ).
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sat Aug 05, 2023 11:33 pm    Post subject: Reply with quote

Oh, wow. Well, that's a win for Gentoo.

What if you go into the USB options in the kernel config and enable them all?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sun Aug 06, 2023 12:05 am    Post subject: Reply with quote

I just found one device that seems to work just fine.
Code:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0fd9:007b Elgato Systems GmbH Cam Link 4K
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 002: ID 04f2:b657 Chicony Electronics Co., Ltd 720p HD Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

It's the "Elgato Systems GmbH Cam Link 4K" listed above. Works perfectly fine - I can capture video from it just as designed.
I hadn't previously tested that one. But devices that don't work include:
-Flash drives
-Android phone
-2.5" external mechanical hard drive
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sun Aug 06, 2023 12:07 am    Post subject: Reply with quote

audiodef wrote:
What if you go into the USB options in the kernel config and enable them all?

I have. Everything I see that could affect it is enabled (built-in, not as modules).
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1890
Location: Germany

PostPosted: Sun Aug 06, 2023 7:35 am    Post subject: Reply with quote

Did you read https://wiki.gentoo.org/wiki/USB/Guide#USB_Type-C_and_Thunderbolt (also read the whole page and not only this section. Maybe something you need is also there)
and also endabled USB-C support in the kernel (https://cateee.net/lkddb/web-lkddb/TYPEC.html)
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5380
Location: Bavaria

PostPosted: Sun Aug 06, 2023 9:33 am    Post subject: Reply with quote

Maybe you need also "Unified support for USB4 and Thunderbolt" in your kernel configuration ?

You have:
Code:
# CONFIG_USB4 is not set
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sun Aug 06, 2023 9:24 pm    Post subject: Reply with quote

pietinger wrote:
Maybe you need also "Unified support for USB4 and Thunderbolt" in your kernel configuration ?

You have:
Code:
# CONFIG_USB4 is not set


I enabled that, but still no luck. Same symptoms as before.

Banana wrote:
Did you read https://wiki.gentoo.org/wiki/USB/Guide#USB_Type-C_and_Thunderbolt (also read the whole page and not only this section. Maybe something you need is also there)
and also endabled USB-C support in the kernel (https://cateee.net/lkddb/web-lkddb/TYPEC.html)

I did read through that document and had everything set up according to it. USB-C is enabled.

Thanks for everyone's input so far...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54835
Location: 56N 3W

PostPosted: Sun Aug 06, 2023 9:28 pm    Post subject: Reply with quote

skiwarz,

Pastebin your entire kernel config please.
It should take the guesswark out of this.

Also check the date/time in
Code:
uname -a
Thats the build date/time of the running kernel.
Is it when you last remember building the kernel or are you not booting the kernel you think you are.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sun Aug 06, 2023 9:33 pm    Post subject: Reply with quote

NeddySeagoon wrote:
skiwarz,

Pastebin your entire kernel config please.
It should take the guesswark out of this.

Also check the date/time in
Code:
uname -a
Thats the build date/time of the running kernel.
Is it when you last remember building the kernel or are you not booting the kernel you think you are.


Here's my latest config: http://0x0.st/H_Zx.txt
uname -a shows a timestamp of 45 minutes ago, when I built with the above config.

edit: made some more changes to my config, re-enabled every USB option I could find, but still nothing. Here's the config for that (my latest one): http://0x0.st/H_ZG.txt
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Wed Aug 09, 2023 4:40 am    Post subject: Reply with quote

I've done some more troubleshooting, and if I do a "hard reset" or so (on these chrome OS devices it's the power+f3 combo), WITHOUT a power cable connected, the usb-c port works as it's supposed to - USB storage works without issue. As soon as I connect a charger to the USB-C port, that port again prevents any usb storage devices plugged into it from being recognized. Reboots via ctl-alt-del, "shutdown -r now", and my DE's power menu have no effect. But as soon as I do that "hard reset" as stated above, the port once again recognizes storage devices.
I've also managed to get debian :? (with its generic, modular kernel) to boot off usb, and it exhibits similar symptoms.

Any thoughts?
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1890
Location: Germany

PostPosted: Wed Aug 09, 2023 4:15 pm    Post subject: Reply with quote

I do not know the hardware, but does it provide some kind of BIOS in which you may modify this setting?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2203

PostPosted: Wed Aug 09, 2023 5:54 pm    Post subject: Reply with quote

I also don't know this hardware, but came across a thread on Reddit.
_________________
Greybeard
Back to top
View user's profile Send private message
C5ace
Guru
Guru


Joined: 23 Dec 2013
Posts: 489
Location: Brisbane, Australia

PostPosted: Thu Aug 10, 2023 9:56 am    Post subject: Reply with quote

My Desktop has a USB-C socket on it's front pannel for charging only. Verified that there is a 2 wire connection from the USB-C socket to the +5V and ground on the main board.
_________________
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes.
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sun Aug 13, 2023 7:28 am    Post subject: Reply with quote

Turns out it was crappy firmware. I uodated the "EC" (embedded controller) device's firmware provided by google, and now it works perfectly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum