Git Product home page Git Product logo

Comments (6)

sjg20 avatar sjg20 commented on June 30, 2024

Same problem on beaglebone black booting from uSD. This misses even the autoboot prompt, so cannot pass the 'U-Boot' test

U-Boot SPL 2020.04 (May 14 2024 - 07:57:58 -0600)
WDT:   Not found!
Trying to boot from MMC1
Loading Environment from FAT... ** No partition table - mmc 0 **
Loading Environment from MMC... *** Warning - bad CRC, using default environment



U-Boot 2020.04 (May 14 2024 - 07:57:58 -0600)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... MMC: no card present
Loading Environment from MMC... *** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM is          de:ad:be:ef:00:01
Address in environment is  34:84:e4:e7:f2:ef
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds

from labgrid.

jluebbe avatar jluebbe commented on June 30, 2024

labgrid-client console uses microcom as a telnet/RFC2217 client. That means, that the console is started after the strategy has reached to selected state (here: -s start). So any serial output from the board in the time between the completion of the state transition and microcom connecting is lost.

Usually, this is not a problem, as the strategy leaves the board in a "stable" state (at the bootloader promt, at the linux prompt, powered off, ...). So I'd suggest handling the bootloader autoboot interruption in the Strategy, by activating a UBootDriver with a config matching your UBoot setup.

Alternatively, you can try keeping a labgrid-client console open in second shell and running the setup from the first shell. Depending on your ser2net version, it might support multiple parallel connections.

In the longer term, we'd like to replace microcom with something built on top of the SerialDriver/ConsoleDriver, so that a connection activated earlier can be used and no data is lost. That would also be a prerequisite for triggering actions from labgrid-client console (e.g. cycle power).

from labgrid.

sjg20 avatar sjg20 commented on June 30, 2024

Thanks for the info.

In fact it turns out that the extreme loss for bbb was due to a serial adaptor failure:
[306094.679130] pl2303 ttyUSB14: pl2303_set_control_lines - failed: -32

Re the terminal, perhaps this terminal code from tbot would help?

https://github.com/Rahix/tbot/blob/master/tbot/machine/channel/channel.py#L1019

from labgrid.

jluebbe avatar jluebbe commented on June 30, 2024

Re the terminal, perhaps this terminal code from tbot would help?

https://github.com/Rahix/tbot/blob/master/tbot/machine/channel/channel.py#L1019

While we can't use that code due to the license, we'll likely need something similar. Internally, it was not urgent enough to find time for this (compared to other things like the move away from crossbar/authbahn). :/

from labgrid.

sjg20 avatar sjg20 commented on June 30, 2024

OK, I implemented a simple internal terminal, which fixes this problem. I will come up with a PR at some point

from labgrid.

sjg20 avatar sjg20 commented on June 30, 2024

See here:

3f6d723

from labgrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.