[BPI-M7] Installing ubuntu-22.04.3-preinstalled-desktop-arm64-bpi-m7_armsom-sige7.img.xz to NVMe

How do I install ubuntu-22.04.3-preinstalled-desktop-arm64-bpi-m7_armsom-sige7.img.xz to eMMC and NVMe ?

https://wiki.banana-pi.org/Banana_Pi_BPI-M7

https://drive.google.com/drive/folders/1MXqanJ0zd62XpOwRxqmlx9xuqbonhIKW?usp=sharing

Presumably I install it to eMMC first then have that set the root to the NVMe with the / copied to NVMa ?

@frank-w Are there any instructions anywhere at all ?

I have no m7,so cannot answer it.

If you see mmc after booting from sdcardaybe just flash the sdcard image to emmc from there…afair rockchip did not need bl2 in boot0 and partconf changed.

I guess similar to mtk devices you cannot boot directly from nvme and need to boot from mmc first till uboot and then load kernel+rootfs from nvme. Nvme flashing is then not recommended…more likely create bpi-boot and bpi-root partitions and copy content from sdcard image there,change fstab and uboot config to load kernel and rootfs from nvme…of course you need nvme support in uboot for rk3588. If not load kernel from mmc and only pass correct root cmdline in uboot

I think I have worked out a possible solution. pointing /dev/mmcblk1p1 /boot/firmware/UbuntuEnv.txt :-

bootargs=root=UUID=88582feb-35c9-41f9-b9b3-b44a1511c5ed rootfstype=ext4 rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 systemd.unified_cgroup_hierarchy=0 quiet splash plymouth.ignore-serial-consoles

UUID to my NVMe’s UUID Then also updating rdinit.img and vmlinuz on eMMC too ?

Do not forget /etc/fstab.

If you use armbian then

armbian-install

select boot mmc (builtin sd card) and system on nvme
ok
will do it for you