otto001
Posts: 4
Joined: Thu Nov 07, 2019 7:31 pm

UART bootin problem

Thu Nov 07, 2019 7:36 pm

Hi!
I am trying to troubleshoot a network boot problem with one of my PIs.
So I got a serial--USB cable and enabled serial output in config.txt using

Code: Select all

enable_uart=1
console=serial0,115200
uart_2ndstage=1
I am getting some output, but then it stops:

Code: Select all

MESS:00:00:25.486785:0: brfs: File read: /mfs/sd/cmdline.txt
MESS:00:00:25.490776:0: Read command line from file 'cmdline.txt':
MESS:00:00:25.496648:0: 'dwc_otg.lpm_enable=0 console=tty1 root=/dev/nfs nfsroot=192.168.1.10:/mnt/k/k/raspis/doorpi,udp,vers=3 rw ip=dhcp rootwait elevator=deadline'
MESS:00:00:25.511463:0: brfs: File read: 142 bytes
MESS:00:00:28.188243:0: brfs: File read: /mfs/sd/kernel7.img
MESS:00:00:28.192202:0: Loading 'kernel7.img' to 0x8000 size 0x510210
MESS:00:00:28.202718:0: No kernel trailer - assuming DT-capable
MESS:00:00:28.206966:0: brfs: File read: 5308944 bytes
MESS:00:00:28.226386:0: brfs: File read: /mfs/sd/bcm2710-rpi-3-b.dtb
MESS:00:00:28.231043:0: Loading 'bcm2710-rpi-3-b.dtb' to 0x518210 size 0x675f
MESS:00:00:28.381988:0: brfs: File read: 26463 bytes
MESS:00:00:28.386779:0: brfs: File read: /mfs/sd/config.txt
MESS:00:00:28.391152:0: dtparam: i2c_arm=on
MESS:00:00:28.411480:0: dtparam: i2c_arm_baudrate=100000
MESS:00:00:28.430421:0: dtparam: audio=on
MESS:00:00:30.592068:0: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined
MESS:00:00:30.698673:0: Device tree loaded to 0x2eff9400 (size 0x6b72)
MESS:00:00:30.704773:0: uart: Set PL011 baud rate to 103448.300000 Hz
MESS:00:00:30.711214:0: uart: Baud rate change done...
MESS:00:00:30.714646:0: uart: Baud rate
can anyone tell me what I am doing wrong please
best regards and thanks in advance,
Otto

trejan
Posts: 2238
Joined: Tue Jul 02, 2019 2:28 pm

Re: UART bootin problem

Thu Nov 07, 2019 8:07 pm

"console=serial0,115200" goes into cmdline.txt not config.txt. change the existing "console=tty1"

The boot log looks normal. The next line would be the Linux kernel starting up but the console is still set to tty1 so you don't see anything on the serial port.

You mention network booting but the logs indicate that you're booting from the SD card?

otto001
Posts: 4
Joined: Thu Nov 07, 2019 7:31 pm

Re: UART bootin problem

Thu Nov 07, 2019 8:18 pm

Thanks for the hint with cmdline.txt
now I can see the same as in the boot of raspi using hdmi:

Code: Select all

My IP address is 192.168.1.174 fdd6:1b70:7f5d:0:ba27:ebff:fe76:2083 
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started OpenBSD Secure Shell server.
[FAILED] Failed to start Configure Bluetooth Modems connected by UART.
See 'systemctl status hciuart.service' for details.
[FAILED] Failed to mount /mnt/log.
See 'systemctl status mnt-log.mount' for details.
[DEPEND] Dependency failed for Remote File Systems.
[DEPEND] Dependency failed for Bareos File Daemon service.
[FAILED] Failed to mount /boot.
See 'systemctl status boot.mount' for details.
         Starting LSB: Switch to ondemand cp…r (unless shift key is pressed)...
         Starting LSB: Start NTP daemon...
         Starting LSB: Autogenerate and use a swap file...
         Starting LSB: IPv4 DHCP client with IPv4LL support...
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
         Starting Terminate Plymouth Boot Screen...
         Starting Hold until boot process finishes up...
unfortunately this does not really help me with debugging :-(

otto001
Posts: 4
Joined: Thu Nov 07, 2019 7:31 pm

Re: UART bootin problem

Fri Nov 08, 2019 8:04 am

Ahm... does anyone maybe know how to enable debug mode while booting?
I am havin issues with network boot and need to track it down...
@trejan: why does the log indicate booting from sdcard? There isnt even a sdcard in the Pi...
Best regards and thanks in advance,
Otto

trejan
Posts: 2238
Joined: Tue Jul 02, 2019 2:28 pm

Re: UART bootin problem

Fri Nov 08, 2019 11:35 am

otto001 wrote:
Fri Nov 08, 2019 8:04 am
Ahm... does anyone maybe know how to enable debug mode while booting?
What exactly is wrong? It looks like it is loading everything correctly over TFTP and starting the kernel so I'm unclear what part is failing.
otto001 wrote:
Fri Nov 08, 2019 8:04 am
@trejan: why does the log indicate booting from sdcard? There isnt even a sdcard in the Pi...
All of the paths say /mfs/sd/ and I thought it would say something else for network booting but it appears it always says /mfs/sd/ even if you're network booting.

otto001
Posts: 4
Joined: Thu Nov 07, 2019 7:31 pm

Re: UART bootin problem

Fri Nov 08, 2019 1:21 pm

Hmm... the problem WAS, that the raspi hung exactly on the end of the output from first post:

Code: Select all

Starting Hold until boot process finishes up...
This was yesterday and I tried many times. However, now it is booting without problems and also mounting nfs-shares...
Weird.
Anyway - thanks a lot for your help!
best regards,
Otto

Return to “Troubleshooting”