On Wed, Nov 30, 2022 at 03:41:13PM +0100, Marek Vasut wrote: > On 11/30/22 14:52, Francesco Dolcini wrote: > > [ 0.000000] Booting Linux on physical CPU 0x0 > > [ 0.000000] Linux version 6.0.10 (francesco@francesco-nb) (arm-linux-gnueabihf-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9. > > 4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #36 SMP Wed Nov 30 14:07:15 CET 2022 > > ... > > [ 4.407499] gpmi-nand: error parsing ofpart partition /soc/nand-controller@33002000/partition@0 (/soc/nand-controller > > @33002000) > > [ 4.438401] gpmi-nand 33002000.nand-controller: driver registered. > > ... > > [ 5.933906] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19 > > [ 5.946504] Please append a correct "root=" boot option; here are the available partitions: > > ... > > > > Any idea? I'm not familiar with the gpmi-nand driver and I would just revert it, but > > maybe you have a better idea. > > Can you share the relevant snippet of your nand controller DT node ? We just have from imx7-colibri.dtsi, &gpmi { fsl,use-minimum-ecc; nand-ecc-mode = "hw"; nand-on-flash-bbt; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpmi_nand>; }; OF partition are created by U-Boot from mtdparts=mtdparts=gpmi-nand:512k(mx7-bcb),1536k(u-boot1)ro,1536k(u-boot2)ro,512k(u-boot-env),-(ubi) env variables calling fdt_fixup_mtdparts from colibri_imx7.c Everything is available in the upstream Linux/U-Boot git, no downstream repo of any sort. > Probably up to first partition is enough. I suspect you need to fill in the > correct address-cells/size-cells there, which might be currently missing in > your DT and worked by chance. This is generated by U-Boot, I would need to dump what he did generate from the standard fdt_fixup_mtdparts(). I will try to do it tomorrow unless what I wrote here is already enough to understand what's going on. Francesco