Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Framework 16
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
EvanFoss
n00b
n00b


Joined: 12 Oct 2019
Posts: 13

PostPosted: Mon Sep 23, 2024 3:50 pm    Post subject: Framework 16 Reply with quote

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
View user's profile Send private message
EvanFoss
n00b
n00b


Joined: 12 Oct 2019
Posts: 13

PostPosted: Mon Sep 23, 2024 5:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
EvanFoss
n00b
n00b


Joined: 12 Oct 2019
Posts: 13

PostPosted: Mon Sep 23, 2024 10:03 pm    Post subject: Reply with quote

I got the sound working. It was just a configuration issue.

I am still stuck on this keyboard/usb thing.
Back to top
View user's profile Send private message
sinatosk
n00b
n00b


Joined: 04 Sep 2024
Posts: 13

PostPosted: Thu Sep 26, 2024 8:12 am    Post subject: Reply with quote

Does your keyboard/touchpad sometimes show/work and sometimes not ?

I'm using an FW16 myself with Gentoo and sometimes after boot and tty showing, if I press some keys as soon as the tty shows, no chars show but then after about 0.5-2 seconds they do but sometimes they don't and I have to cold reboot

https://community.frame.work/t/touchpad-not-working-since-update-archlinux/50304

https://bugzilla.kernel.org/show_bug.cgi?id=218836

What Arch Linux did was not put the kernel modules related to the keyboard in the initramfs which basically increases the delay of the modules loading which in turn gives the device a bit more time to correctly initialize

https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/commit/e835a32f0d4e44e2897e52a4eb151f95f4e18329

and it looks like a new driver is in the works ( it's not in 6.11 yet )

https://lore.kernel.org/linux-input/cover.1715224143.git.zhoubinbin@loongson.cn/T/#t
Back to top
View user's profile Send private message
EvanFoss
n00b
n00b


Joined: 12 Oct 2019
Posts: 13

PostPosted: Fri Sep 27, 2024 2:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22658

PostPosted: Fri Sep 27, 2024 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
EvanFoss
n00b
n00b


Joined: 12 Oct 2019
Posts: 13

PostPosted: Fri Sep 27, 2024 9:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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