agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
505 stars 395 forks source link

why my yocto image pi5 serial console port does not work , no output? #1325

Closed gitgonewithwind closed 1 month ago

gitgonewithwind commented 1 month ago

Hi all same as setting as pi4 in config.txt: enable_uart=1

cmdline.txt is yocto image default

dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait or dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait silent quiet splash loglevel=0 logo.nologo

first I thought my TTL-232R-RPI cable is broken, but it works well in pi4

who has the same issue? any help? the meta-raspberrypi commit is 1879cb831f4ea3e532cb5ce9fa0f32be917e8fa3 (HEAD -> master, origin/master, origin/HEAD) Author: Max Stepanov mast@imast.ru Date: Thu Mar 21 13:50:55 2024 -0400

gitgonewithwind commented 1 month ago

any help? I think this is not an occasional issue only for my board. I changed a seral cable, but the issue still exist

gitgonewithwind commented 1 month ago

I find something here https://forums.raspberrypi.com/viewtopic.php?p=2154799&hilit=%22Configuring+Pi+5%22#p2154799 but the solution is no clear. let me take time to read it

gitgonewithwind commented 1 month ago

I added enable_uart=1 console=serial0,115200 dtparam=uart0

in config.txt I changed cmdline.tx to :

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

now it can output boot info. it seems I can input,but there is no login: and password prompt. so I still can not login with console

NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery d irectory
[ 12.891281] NFSD: Using legacy client tracking operations.
[ 12.896778] NFSD: starting 90-second grace period (net f0000000)
done
starting mountd: done
Starting system log daemon...0
Starting Telephony daemon
Starting Linux NFC daemon
Starting crond: OK
Invalid .desktop file: /etc/xdg/autostart/xinput_calibrator.desktop

^[[A^[[A^[[A

cccc

gitgonewithwind commented 1 month ago

soloved,close this issue 1. add: (do not need to add enable_uart=1) dtparam=uart0 in config.txt

  1. change /etc/inittab to:

1:12345:respawn:/sbin/getty 38400 tty1

1:12345:respawn:/sbin/getty -L ttyAMA0 115200 vt100