From: Xianwei Zeng Date: Mon, 16 Nov 2009 21:46:06 +0900 Subject: [U-Boot] u-boot: How to read file from FAT filesystem on NorFlash MTD partition In-Reply-To: <20091116064031.B117A3F6C2@gemini.denx.de> References: <52c6d4120911150656w2edcf528oad05796e52b134f6@mail.gmail.com> <20091115184801.2A2CCEC80FF@gemini.denx.de> <52c6d4120911151729s61a250e0j1b0ec02b43191036@mail.gmail.com> <20091116064031.B117A3F6C2@gemini.denx.de> Message-ID: <52c6d4120911160446r7748652cv127d2fc8ea0bf68c@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang Denk, Sorry for the simple question, but I can't find the document to guide me to read file from FAT file system in NOR FLASH. On Mon, Nov 16, 2009 at 3:40 PM, Wolfgang Denk wrote: > Dear Xianwei Zeng, > > In message <52c6d4120911151729s61a250e0j1b0ec02b43191036@mail.gmail.com> > you wrote: > > > > Yes. I didn't enable the mtdparts support. I will try it. > > > > Do I need to write extra driver, for example something I was doing, > > writing FAT + MTD support? > > No, you don't need any special drivers. > > After I enbale CONFIG_CMD_MTDPARTS, I can get MTD partition information. For example, I set env to: mtdids=nor0=smt300-nor mtdparts=mtdparts=smt300-nor:4608k at 0x00080000(sys)ro And then I can use mtdparts command to list the partition info: device nor0 , # parts = 1 #: name size offset mask_flags 0: sys 0x00480000 0x00080000 1 But I still don't know the way how to read file inside this FAT filesystem. * Which command can do this? (fatload seems can not because the interface is not known) * From which verion u-boot supports this feature? Our u-boot is based v2009.08. Do we need to update to latest one? (v2009.11-rc1) Any document you suggest me to read? u-boot/README is not enough. Thank you very much. -- Best Regards Xianwei ZENG ----Linux Fans