Bug 15910

Summary: USB keyboard is not working by default "raspberrypicm4io_64_defconfig"
Product: buildroot Reporter: Benoit Pereira da Silva <benoit>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Benoit Pereira da Silva 2024-01-06 17:38:21 UTC
I use the last :  Buildroot 2023.11-512-gd1c067e01b.

Without changing any options in "make menuconfig" excepted setting a root password

1. "make raspberrypicm4io_64_defconfig"
2. "make"
3. install on a Compute module 4 with its standard IO board.
4. I always boot with a screen + i ve tested various USB keyboard.

The log are correct, some usb device are detected. 
I m stuck on the prompt: "buildroot login: _"
 
Nothing Happens in the TTY when i press keys.

Note that the generated config.txt contains : 
# enable dwc2 USB controller (USB 2.0)
dtoverlay=dwc2,dr_mode=host
Comment 1 Peter Seiderer 2024-01-07 19:59:57 UTC
You need to load the module dwc2 ('modprobe dwc2' either over the serial console or from a startup script) AND disconnect micro USB port (J11 USB slave) you connected for flashing..., alternative is to enable '/dev management (Dynamic using devtmpfs + eudev' (BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y) for automatic module loading AND do not forget to disconnect micro USB port (J11 USB slave) you connected for flashing...
Comment 2 Benoit Pereira da Silva 2024-01-08 13:23:00 UTC
Peter, 

Thank you very much setting /dev management (Dynamic using devtmpfs + eudev)
Did solve my issue. 

I'm a newbie to buildroot, and did not know that "dev" were strictly static and i need to activate  "devtmpfs + eudev". 

I will read attentively the documentation next time.