View previous topic :: View next topic |
Author |
Message |
EvanFoss n00b
Joined: 12 Oct 2019 Posts: 13
|
Posted: Mon Sep 23, 2024 3:50 pm Post subject: Framework 16 |
|
|
Before you read the original post here is what I ultimately learned. It was an error on my part I had this kernel option turned on:
[ ] Disable external hubs
aka
USB_OTG_DISABLE_EXTERNAL_HUB
In the middle of setting all the needed options I must have turned it on by accident.
-Evan
***********************
Hi (again),
I have been trying to install gentoo on my Framework 16 laptop. I think I have found an issue with the wiki entry for it.
https://wiki.gentoo.org/wiki/Framework_Laptop_16
The entry is marked as incomplete so I am bouncing between it, the suggested entry for the 13" variant and of course the AMD64 variation of the gentoo installation handbook.
I think I have everything working except for 2 issues (keyboard/usb and sound). All the firmware loads correctly and the ALSA devices appear for sound, video, wifi, and microcode. The ALSA devices for sound appear so I think I just need to set some defaults. I can work that problem on my own but I want to mention it in case it's somehow connected. The real issue is the keyboard which I think is connected to the USB issues.
When I boot off the minimal installer iso the keyboard and all the USB ports appear. Here is an lsusb of that:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 046d:c33a Logitech, Inc. G413 Gaming Keyboard
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 004: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 005: ID 32ac:0003 Framework DisplayPort Expansion Card
Bus 001 Device 006: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 007: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 008: ID 0e8d:e616 MediaTek Inc. Wireless_Device
Bus 001 Device 009: ID 27c6:609c Shenzhen Goodix Technology Co.,Ltd. Goodix USB2.0 MISC
Bus 001 Device 010: ID 32ac:0012 Framework Laptop 16 Keyboard Module - ANSI
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 05e3:0625 Genesys Logic, Inc. USB3.2 Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
When I boot of the kernel I manually configured I don't see 2 of the USB ports and the built in keyboard is missing:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 004: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 005: ID 0e8d:e616 MediaTek Inc. Wireless_Device
Bus 001 Device 006: ID 046d:c33a Logitech, Inc. G413 Gaming Keyboard
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 05e3:0625 Genesys Logic, Inc. USB3.2 Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
I suspect there is a builtin USB hub that connects those 2 USB C ports and the keyboard to the rest of the machine.
I have tried booting off the installer and removing modules to see if I could find the one I need in my config. I have tried re-re-rechecking my config against the listing in the wiki. It's unclear to me what I am missing. I don't see anything in the wiki for the 13" config that is related so I assume that model has a very different architecture (i mean it's also intel vs amd so...) I would really appreciate any pointers someone could provide on this.
PS: To anyone else setting one of these up who gets a "super early kernel panic" like this
https://forums.gentoo.org/viewtopic-p-8814070.html?sid=e99a997e93673bb79dd3a14701d666ce
Try turning AMDGPU from built-in to a module.
Last edited by EvanFoss on Mon Sep 30, 2024 9:53 pm; edited 1 time in total |
|
Back to top |
|
|
EvanFoss n00b
Joined: 12 Oct 2019 Posts: 13
|
Posted: Mon Sep 23, 2024 5:27 pm Post subject: |
|
|
As an added data point: I tried using the USB keyboard and a thumbdrive I know work with the machine via the working USB-A port on a USB hub (usb 2.0) in the USB port that works in my configured kernel. Now maybe this is because it's a USB2.0 device in a much more modern situation (unlikely) or more likely I bungled what ever settings are needed to make hubs work in general. |
|
Back to top |
|
|
EvanFoss n00b
Joined: 12 Oct 2019 Posts: 13
|
Posted: Mon Sep 23, 2024 10:03 pm Post subject: |
|
|
I got the sound working. It was just a configuration issue.
I am still stuck on this keyboard/usb thing. |
|
Back to top |
|
|
sinatosk n00b
Joined: 04 Sep 2024 Posts: 13
|
|
Back to top |
|
|
EvanFoss n00b
Joined: 12 Oct 2019 Posts: 13
|
Posted: Fri Sep 27, 2024 2:05 am Post subject: |
|
|
The keyboard was just never working and I was going nuts checking and rechecking the settings in the wiki. Turns out I was being stupid. Sorry forum members this wasn't some grand technical problem. It was PEBKAC.
I went back to my desktop and looked at it's kernel config and was about to compare it to my laptop config when I realized an option existed that I never noticed before.
[ ] Disable external hubs
Yeah I had accidentally set that to Yes in my laptop build...
Again my apologies for wasting everyone's time reading this thread. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22634
|
Posted: Fri Sep 27, 2024 12:48 pm Post subject: |
|
|
Although unfortunate that this was user error, your closing post is still helpful. Since you explained how it was wrong, people who followed this thread will know another thing to include on the checklist offered to the next person who reports a non-working USB keyboard.
The option that caused this, USB_OTG_DISABLE_EXTERNAL_HUB, requires USB_OTG || EXPERT, so perhaps you normally build with both those set to off, and therefore the option is new to you now that you turned one of those on. The option itself is quite old. git blame traces the Kconfig line to 2006. I didn't try to determine how much older the feature might be. |
|
Back to top |
|
|
EvanFoss n00b
Joined: 12 Oct 2019 Posts: 13
|
Posted: Fri Sep 27, 2024 9:11 pm Post subject: |
|
|
Hu wrote: | Although unfortunate that this was user error, your closing post is still helpful. Since you explained how it was wrong, people who followed this thread will know another thing to include on the checklist offered to the next person who reports a non-working USB keyboard.
The option that caused this, USB_OTG_DISABLE_EXTERNAL_HUB, requires USB_OTG || EXPERT, so perhaps you normally build with both those set to off, and therefore the option is new to you now that you turned one of those on. The option itself is quite old. git blame traces the Kconfig line to 2006. I didn't try to determine how much older the feature might be. |
Yeah this is why I shared it.
Your reasoning is probable and thanks for the history. Some of the settings recommended in the wiki entry for this model machine were not visible to me so I had to switch from
make menuconfig
to
vim .config
and ultimately
make nconfig
I had never used nconfig before. I should have known when I was entering leaving my comfort zone of menuconfig that I should have stopped and re-read.
In retrospect:
* I should have read the kernel config I was generating more carefully
* I should have compared my new build on this machine to another sooner
* I should have tested an external hub earlier
* Someone (glares at Framework) should have published a diagram of the bus layout for this machine.
I think I will TLDR the original post with
[ ] Disable external hubs
aka
USB_OTG_DISABLE_EXTERNAL_HUB |
|
Back to top |
|
|
|