Author: nbd Date: 2014-07-07 10:51:55 +0200 (Mon, 07 Jul 2014) New Revision: 41541
Added: trunk/target/linux/rb532/patches-3.10/004-rb532_partition_info-rename-rootfs-to-rootfs_onboard.patch Modified: trunk/target/linux/rb532/config-3.10 trunk/target/linux/rb532/image/Makefile Log: rb532: really fix squashfs images The previous attempt (r40717) to fix squashfx made the system bootable but overlayfs remained broken. This enables block2mtd again using the right partition number and naming and adds MTD_ROOTFS_SPLIT option. However onboard rootfs partition name had to be renamed to place overlay on CF instead of onboard NAND. Signed-off-by: Roman Yeryomin <[email protected]> Modified: trunk/target/linux/rb532/config-3.10 =================================================================== --- trunk/target/linux/rb532/config-3.10 2014-07-07 08:29:35 UTC (rev 41540) +++ trunk/target/linux/rb532/config-3.10 2014-07-07 08:51:55 UTC (rev 41541) @@ -103,7 +103,7 @@ CONFIG_MTD_NAND_PLATFORM=y CONFIG_MTD_PHYSMAP=y # CONFIG_MTD_ROOTFS_ROOT_DEV is not set -# CONFIG_MTD_ROOTFS_SPLIT is not set +CONFIG_MTD_ROOTFS_SPLIT=y # CONFIG_MTD_SM_COMMON is not set # CONFIG_MTD_SPLIT is not set CONFIG_NEED_DMA_MAP_STATE=y Modified: trunk/target/linux/rb532/image/Makefile =================================================================== --- trunk/target/linux/rb532/image/Makefile 2014-07-07 08:29:35 UTC (rev 41540) +++ trunk/target/linux/rb532/image/Makefile 2014-07-07 08:51:55 UTC (rev 41541) @@ -56,7 +56,7 @@ endef define Image/cmdline/squashfs -root=/dev/sda2 rootfstype=squashfs +block2mtd.block2mtd=/dev/sda2,65536,rootfs root=/dev/mtdblock2 rootfstype=squashfs endef define Image/cmdline/yaffs2 Added: trunk/target/linux/rb532/patches-3.10/004-rb532_partition_info-rename-rootfs-to-rootfs_onboard.patch =================================================================== --- trunk/target/linux/rb532/patches-3.10/004-rb532_partition_info-rename-rootfs-to-rootfs_onboard.patch (rev 0) +++ trunk/target/linux/rb532/patches-3.10/004-rb532_partition_info-rename-rootfs-to-rootfs_onboard.patch 2014-07-07 08:51:55 UTC (rev 41541) @@ -0,0 +1,11 @@ +--- a/arch/mips/rb532/devices.c 2014-07-07 01:05:10.000000000 +0300 ++++ b/arch/mips/rb532/devices.c 2014-07-07 01:05:27.268505016 +0300 +@@ -202,7 +202,7 @@ static struct mtd_partition rb532_partit + .offset = 0, + .size = 4 * 1024 * 1024, + }, { +- .name = "rootfs", ++ .name = "rootfs_onboard", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + } _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
