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: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 47380
This commit is contained in:
parent
1e43316cb9
commit
008aec391a
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,8 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \
|
||||||
/* align the start if requested */
|
/* align the start if requested */
|
||||||
if (args->align_rootfs_flag)
|
if (args->align_rootfs_flag)
|
||||||
rootfsoff = (rootfsoff % block_size) > 0 ? (((rootfsoff / block_size) + 1) * block_size) : rootfsoff;
|
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 */
|
/* align the end */
|
||||||
rootfsend = rootfsoff + getlen(rootfsfile);
|
rootfsend = rootfsoff + getlen(rootfsfile);
|
||||||
|
|
Loading…
Reference in a new issue