Skip to content

Adding more tracking/events on the flashing and post install progress to help non-technical operators follow along the production process for mass production. #65

@MJDaBoss

Description

@MJDaBoss

Hi,

I am trying to setup a manufacturing line that would be used to provision CM4s. We are currently still using bullseye on our CM4s and would like to continue using it for the time being. The CM4s will use a signed OS and secureboot for regular operation after provisioning is complete. Our team comprises of a bunch of electrical engineers and hence we lack PHP knowledge to do any development on the existing CMprovisioner.

The current process following stages:

  • Flash
  • encrypt
  • verify device can boot in secure boot mode
  • lock device

Our goal is simple:

  • Mass produce a product based on CM4
  • Setup a manufacturing line where an operator is non technical person.
  • Design an interface for this operator who does not have any knowledge of the product.
  • Simply show a status and a pass fail message.
  • In case of a fail, recommend an action (retry provisioning, put aside for engineering inspection etc)
  • Catch and contextualize different types of errors to help take the appropriate action (status codes to tell us what failed)

One of the things that we would like to do to help the operator is to give him simple feedback through UI, for that we need to be able to catch events and raise any additional events we might find useful.

I have following questions:

  • Is there a way to track the status of TFTP file transfer as the image is sent over?
  • How can we add additional events for?:
    • file transfer beginning
    • tracking file transfer progress.
    • file transfer completion
    • post install script download
    • post install script starting
  • How can we capture these events in PHP or better yet another language like python since we lack PHP knowledge?
  • Can we toggle a bunch of I/Os to track the progress of the provisioning stages (flashing start, flashing complete, encryption start (post-install script) encryption done, device locked etc.
  • Can we add return codes of some kind and associate those to each stage either passing or failing, which can be mapped to a status code event?
  • If we stick to PHP, can this be addressed by:
    • Touching the controller for scriptexecute?
    • Updating the blade php file for script execute to
    • creating additional custom events?
    • adding customizations to scriptexecute image?

I will appreciate some help and guidance on this.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions