Hello everyone,
I would like to establish a serial connection between my Raspberry PI 4 Model B and my PC on linux.
I follow several tutorials but no one seems to works for me.
So I changed in the /boot/firmware/config.txt file, the line :toIn this same file, I tried to with and without the line : otg_mode=1
And changed the /boot/firmware/cmdline.txt file to add between rootwait and quiet :Then I plugged my raspberry to my PC with a USB-C (alimentation slot) to USB-A cable but my PC doesn't see my RPI...
What am I missing here ?
Here is my full config.txt file :
I would like to establish a serial connection between my Raspberry PI 4 Model B and my PC on linux.
I follow several tutorials but no one seems to works for me.
So I changed in the /boot/firmware/config.txt file, the line :
Code:
dtoverlay=dwc2,dr_mode=host
Code:
dtoverlay=dwc2,dr_mode=peripheral
And changed the /boot/firmware/cmdline.txt file to add between rootwait and quiet :
Code:
modules-load=dwc2,g_serial
What am I missing here ?
Here is my full config.txt file :
Code:
# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfaces#dtparam=i2c_arm=on#dtparam=i2s=on#dtparam=spi=on# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.#otg_mode=1[cm5]dtoverlay=dwc2,dr_mode=peripheral[all]
Statistics: Posted by YohDono — Tue Jan 14, 2025 10:21 am — Replies 4 — Views 54