From: Wolfgang Denk Date: Sat, 01 Oct 2011 21:50:56 +0200 Subject: [U-Boot] [PATCH 1/2] fat: fix crash with big sector size In-Reply-To: <201108082338.33616.sshtylyov@ru.mvista.com> References: <201108082338.33616.sshtylyov@ru.mvista.com> Message-ID: <20111001195056.2325418DFFFE@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sergei Shtylyov, In message <201108082338.33616.sshtylyov@ru.mvista.com> you wrote: > Apple iPod nanos have sector sizes of 2 or 4 KiB, which crashes U-Boot when it > tries to read the boot sector into 512-byte buffer situated on stack. Make the > FAT code indifferent to the sector size. > > Signed-off-by: Sergei Shtylyov > > --- > fs/fat/fat.c | 97 +++++++++++++++++++++++++++++++++++----------------------- > include/fat.h | 20 ++++------- > 2 files changed, 67 insertions(+), 50 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "If a computer can't directly address all the RAM you can use, it's just a toy." - anonymous comp.sys.amiga posting, non-sequitir