From: Jonathan Gray Date: Mon, 9 Oct 2017 01:04:47 +1100 Subject: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case In-Reply-To: References: <1507134597-6831-1-git-send-email-fabio.estevam@nxp.com> <20171005043646.GB8685@largo.jsg.id.au> <20171008010634.GA93561@largo.jsg.id.au> Message-ID: <20171008140447.GA43745@largo.jsg.id.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Oct 08, 2017 at 09:56:15AM -0300, Fabio Estevam wrote: > On Sat, Oct 7, 2017 at 10:06 PM, Jonathan Gray wrote: > > > I wonder if you have the same kind of fat filesystem. > > No, I have only used ext4 file system. > > > Can you try writing > > https://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/miniroot-cubox-62.fs > > to an sd card then write a new SPL/U-Boot at the standard raw offsets? > > Maybe it will be easier if you try a 'git bisect' to find out where > the regression is coming from. It turns out to be commit 2460098cffacd18729262e3ed36656e6943783ed Author: Tom Rini Date: Fri Sep 22 07:37:43 2017 -0400 fs/fat: Reduce stack usage We have limited stack in SPL builds. Drop itrblock and move to malloc/free of itr to move this off of the stack. As part of this fix a double-free issue in fat_size(). Signed-off-by: Tom Rini --- Rework to use malloc/free as moving this to a global overflows some SH targets. fs/fat/fat.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) With that reverted I just get the efi loader problem, no alignment errors.