USB disabled at bootstrap

Hi everyone,

I have a question similar to this Linux control USB power-enable switch - Toradex Community but related to IMX7D.

Starting from the colibri evaluation board image, I can disable all the ports as suggested in the linked question, but how can I modify my device tree in order to have USBs disabled at bootstrap?

For security reason, I would like to have USBs and Ethernet disabled at bootstrap, enabling them through my application.

Is it possible?

Thank you.

Luca

Hi @lupo

Thanks for writing to the Toradex Community!

Starting from the colibri evaluation board image, I can disable all the ports as suggested in the linked question, but how can I modify my device tree in order to have USBs disabled at bootstrap?

If you disable a device in devicetree then it cannot be enabled from Linux. The best would be disable the USBs and Ethernet at startup with a service and enable it using your application.

Best regards,
Jaski

Hi @jaski.tx

Thanks for your reply!

The best would be disable the USBs and
Ethernet at startup with a service and
enable it using your application.

Can you provide an example of how can I create this kind of service?

Thank you for your support.

Luca

Hi Luca

Can you provide an example of how can I create this kind of service?

Sure, please have a look here.

Best regards,
Jaski

I will have a look.

Thank you.

Luca

You are welcome. Let us know your results.