Author: jogo Date: 2015-11-04 12:33:22 +0100 (Wed, 04 Nov 2015) New Revision: 47380
Modified: trunk/tools/firmware-utils/src/imagetag.c Log: brcm63xx: work around boot failures with squashfs on BCM6368 Due to the LWL/LWR SMP issue on BCM6368, booting with squash might fail if the rootfs is not word aligned. As a quick fix, work around it by ensuring this condition is always true. Reported-by: ?\195?\129lvaro Fern?\195?\161ndez Rojas <[email protected]> Signed-off-by: Jonas Gorski <[email protected]> Modified: trunk/tools/firmware-utils/src/imagetag.c =================================================================== --- trunk/tools/firmware-utils/src/imagetag.c 2015-11-04 11:33:16 UTC (rev 47379) +++ trunk/tools/firmware-utils/src/imagetag.c 2015-11-04 11:33:22 UTC (rev 47380) @@ -164,6 +164,8 @@ /* align the start if requested */ if (args->align_rootfs_flag) rootfsoff = (rootfsoff % block_size) > 0 ? (((rootfsoff / block_size) + 1) * block_size) : rootfsoff; + else + rootfsoff = (rootfsoff % 4) > 0 ? (((rootfsoff / 4) + 1) * 4) : rootfsoff; /* align the end */ rootfsend = rootfsoff + getlen(rootfsfile); _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
