Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4779

Troubleshooting • Re: Pi 4 can ONLY boot FreeBSD

$
0
0
Can I somehow get into the board with a debugger and see what's going on?
You can enable the UART output on the Pi and connect a 3.3V serial adaptor to GND (pin 6), TxD (pin 8) and RxD (pin 10) on the 40 pin header. Connect the serial adaptor to another computer and set speed to 115200. You should then see boot messages.

To enable the UART, edit config.txt on the SD card and add

Code:

enable_uart=1uart_2ndstage=1
to the end of the file after the last "[all]" line.

Also edit the cmdline.txt file and change the start of the line from

Code:

console=tty1 root=PARTUUID=(loads more stuff)
to

Code:

console=serial0,115200 console=tty1 root=PARTUUID=(leave all the rest unchanged)
You can use another Pi as the other computer, i2n which case you can skip the serial adaptor and connect pins 6 to 6, 8 to 10 and 10 to 8. Enable the serial port (but not login) using raspi-config (interfacing) then use the terminal software of your choice. I use screen like: "screen /dev/serial0 115200".

Statistics: Posted by rpdom — Thu Feb 06, 2025 7:24 am



Viewing all articles
Browse latest Browse all 4779

Trending Articles