From: Igor Luri Date: Wed, 12 Nov 2008 14:21:07 +0100 Subject: [U-Boot] [PATCH] FAT on non standard sector size devices In-Reply-To: <1226492854.5686.8.camel@txema-desktop> References: <1226492854.5686.8.camel@txema-desktop> Message-ID: <1226496067.6038.57.camel@ilurilinux> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Please only sent patches inline, see http://lwn.net/Articles/139918/ Sorry. > Why hardcode this size to 8192, cant it be malloced somehow? > Is there a check that detects if the size is getting bigger than 8192 > to prevent segfaults? > In read_bootsectandvi function already isn't known device sector size, so I define quite large sector size of 8 Kbyte. It can be malloced if I get the sector size of the device from block_dev_desc_t. I am going to double check it, and if it works, I'll send the definitive patch. > Some weird characters here... Is this change what you want? Sorry, I don't know how I have changed thouse caracters, I will correct this too. Thanks. -- Igor Luri R&D Software Department Fagor Aotek S. Coop. P. O. Box 144 E-20500 Mondrag?n-Arrasate Tel. ++34 943 71 92 00 ++34 943 71 92 01 (Ext. 44268) Fax. ++34 943 79 92 03 www.aotek.es