labgrid-project / labgrid

Embedded systems control library for development, testing and installation
https://labgrid.readthedocs.io/
Other
327 stars 164 forks source link

Missing start of console output when booting from USB bootrom #1380

Closed sjg20 closed 4 months ago

sjg20 commented 4 months ago

I am trying to get sunxi booting with labgrid using USB boot. With tbot I see this:

│   │   ├─Send SPL (pcduino3)
│   │   ├─[sglass] sunxi-fel -d 001:051 spl /home/sglass/tbot-workdir/uboot-pcduino3/spl/sunxi-spl.bin
│   │   ├─Send U-Boot (pcduino3)
│   │   ├─[sglass] sunxi-fel -d 001:051 write 0x4a000000 /home/sglass/tbot-workdir/uboot-pcduino3/u-boot.bin
│   │   ├─[sglass] sunxi-fel -d 001:051 exe 0x4a000000
│   │   ├─[sglass] sd-mux-ctrl --device-serial sdwire-7 --dut
│   │   └─Done. (4.339s)
│   ├─Entering interactive shell (CTRL+D to exit) ...

U-Boot SPL 2024.04-00517-gd41d4e9dc73 (Apr 28 2024 - 13:29:38 -0600)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from FEL

U-Boot 2024.04-00517-gd41d4e9dc73 (Apr 28 2024 - 13:29:38 -0600) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LinkSprite pcDuino3
DRAM:  1 GiB
Core:  58 devices, 24 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20c90
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Unknown monitor
Unknown monitor
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
...

With labgrid some of the output is missing:

 LG_CROSSBAR=ws://kea:20408/ws labgrid-client  -c /vid/software/devel/ubtest/lab/env_rpi_try.cfg -V do-bootstrap 1 -V do-build 0 -V do-send 1 -p pcduino3 -s start console 
Sending U-Boot using method sunxi
- Send SPL
- Send U-Boot
connected to 192.168.4.12 (port 59505)
Escape character: Ctrl-\
Type the escape character to get to the prompt.
Unable to use mmc 0:1...
Unknown monitor
Unknown monitor
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   eth0: ethernet@1c50000
hi3
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 2 USB Device(s) found
scanning bus usb@1c14400 for devices... 1 USB Device(s) found
scanning bus usb@1c1c000 for devices... 1 USB Device(s) found
scanning bus usb@1c1c400 for devices... 1 USB Device(s) found

I do activate the console before the 'Send SPL' bit. I wonder what could be dropping the initial output?

sjg20 commented 4 months ago

This was my fault...due to having two processes running at once. Somehow I missed it...