Skip to content

snagrecover: imx: add support for the i.MX95#93

Open
YanAkkI2S wants to merge 3 commits into
bootlin:mainfrom
YanAkkI2S:imx95
Open

snagrecover: imx: add support for the i.MX95#93
YanAkkI2S wants to merge 3 commits into
bootlin:mainfrom
YanAkkI2S:imx95

Conversation

@YanAkkI2S

Copy link
Copy Markdown

This adds i.MX95 recovery support, tested on a Variscite DART-MX95 (full ROM → SPL → U-Boot).

It was first modelled on the i.MX91/93 but the i.MX95 needs a bit more:

  1. Its boot ROM expects the SDPS stream on a dedicated interrupt OUT endpoint, which the hidraw backend can't target, so HIDDevice gets a prefer_libusb flag (only set for the i.MX95, so nothing else changes path, but any future SoC that needs the same can simply opt in the same way).
  2. The boot image uses "v2" containers (larger alignment + a V2X tag), so get_container_size() now handles those as well.
  3. Like the i.MX8QM it's a two-stage flow (SDPS to the ROM, then SDPV to the SPL), and the ROM re-enumerates once it has consumed the first container.

I don't have other i.MX9 / i.MX8Q boards on hand, but the HID backend change is gated on the SoC, so existing devices keep their exact current behaviour.

Signed-off-by: AKKOUCHE Yanis <y.akkouche@i2s.fr>
Signed-off-by: AKKOUCHE Yanis <y.akkouche@i2s.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant