From 9181076c1df9acc2a173808d6f3f3b113bb784aa Mon Sep 17 00:00:00 2001 From: jogo Date: Wed, 4 Nov 2015 11:33:22 +0000 Subject: [PATCH] brcm63xx: work around boot failures with squashfs on BCM6368 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47380 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/firmware-utils/src/imagetag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c index 6a46a7ebd9..90fb7a4c73 100644 --- a/tools/firmware-utils/src/imagetag.c +++ b/tools/firmware-utils/src/imagetag.c @@ -164,6 +164,8 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \ /* 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); -- 2.11.0