Unable to boot a custom Fenix image from NVMe SSD

Which system do you use? Android, Ubuntu, OOWOW, or others?

Ubuntu 22.04 (custom image built with Fenix).

Which version of the system do you use? Please provide the version of the system here:

Khadas VIM4 with the supported system installed on eMMC using OOWOW, and a custom system on NVMe SSD (Ubuntu 22.04, kernel 6.11.2).

Please describe your issue below:

I want to boot my Khadas VIM4 from an NVMe SSD using a custom Ubuntu 22.04 (kernel 6.11.2) made with Fenix. An important constraint is that I cannot simply use the official Khadas Ubuntu image. My project requires an Intel RealSense camera, and the official image/kernel does not include the required kernel support and modules for stable operation. The custom image works correctly when installed, but I am currently unable to make the VIM4 boot from the NVMe.

The board always boots from the eMMC. Changing the root UUIDs or boot files to use the NVMe made the board unbootable and caused a boot loop. I am trying to understand the correct way to boot a custom Fenix-built Ubuntu image from NVMe on a VIM4.

My questions are:

  1. Does VIM4 officially support booting a custom Fenix image directly from an NVMe SSD? If yes, what is the recommended procedure?

  2. Is a U-Boot rebuild or environment modification required?

  3. Where is the U-Boot environment stored on VIM4 for the current Ubuntu/OOWOW releases?

  4. Is there a recommended fw_env.config version for VIM4?

Kernel 6.11 is not supported for VIM4.

Is there any supported kernel created using Fenix that I can boot from the NVMe SSD? I do not know why all recent supported kernels do not include the proper modules to work with accelerometer and gyroscope sensors. I used Khadas VIM3 a while ago, and it worked just fine.

Can you answer the fourth question? It would help me solve my problem.