[U-Boot] u-boot: How to read file from FAT filesystem on NorFlash MTD partition
Xianwei Zeng
xianweizeng at gmail.com
Mon Nov 16 13:46:06 CET 2009
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 <wd at denx.de> wrote:
> Dear Xianwei Zeng,
>
> In message <52c6d4120911151729s61a250e0j1b0ec02b43191036 at 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 <smt300-nor>, # 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
More information about the U-Boot
mailing list