Hi Daniel, I work on creating an OpenWrt image which I can just flash over an UGW (Lantiq's/Intel's OpenWrt distribution) distribution with the normal U-Boot. Then you do not have to touch the bootloader or the flash layout and can just run OpenWrt. UGW is mostly focused on NAND flash based devices. The partition layout for one device is shown in [0], the size of the system_sw partition differs depending on the nand flash size and contains an UBI layer. A partition ending with A or B means there are two versions and when we upgrade only one is replaced and the other is used for a backup. U-Boot says which partition to use with some kernel command line parameters.
The UBI layer contains a kernelA, kernelB, rootfsA, rootfsB, firmwareA, firmwareB and data_vol partition. Can I change your UBI patches in a way that they accept a name for the rootfs partition from the kernel command line? Are you planing to upstream them or can I try? Hauke [0] UGW partition setup: partition@0 { label = "uboot"; reg = <0x00000 0x100000>; /* 1024 KB */ }; partition@100000 { label = "uboot_env"; reg = <0x100000 0x40000>; /* 256 KB */ }; partition@140000 { label = "ubootconfigB"; reg = <0x140000 0x40000>; /* 256 KB */ }; partition@180000 { label = "gphyfirmware"; reg = <0x180000 0x40000>; /* 256 KB */ }; partition@1c0000 { label = "system_sw"; reg = <0x1c0000 0xc800000>; }; partition@c9c0000 { label = "calibration"; reg = <0xc9c0000 0x100000>; }; partition@cac0000 { label = "res"; reg = <0xcac0000 0x13540000>; }; _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev