From: Wolfgang Denk Date: Sun, 15 Nov 2009 19:48:01 +0100 Subject: [U-Boot] u-boot: How to read file from FAT filesystem on NorFlash MTD partition In-Reply-To: <52c6d4120911150656w2edcf528oad05796e52b134f6@mail.gmail.com> References: <52c6d4120911150656w2edcf528oad05796e52b134f6@mail.gmail.com> Message-ID: <20091115184801.2A2CCEC80FF@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 Xianwei Zeng, In message <52c6d4120911150656w2edcf528oad05796e52b134f6@mail.gmail.com> you wrote: > > In current u-boot implementation, I can use fatload to read files from > mmc or USB storage device, which is also FAT filesystem. And I can > also use fsload command to read files from JFFS2 filesytem on NorFlash > or NandFlash. > > But I found I cann't uses these command to read files from a FAT filesystem > on NorFlash. I cann't format this partition to JFFS2 filesystem because it > is exported to Windows/Linux host via USB gadget after system boots up. > > Can someone tell me the best way to solve this problem, or give me some > hints of which part of code I need to change? It seems you did not enable mtdparts support in your configuration? 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 Systems programmers are the high priests of a low cult. -- R.S. Barton