From: Xianwei Zeng <xianweizeng@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot: How to read file from FAT filesystem on NorFlash MTD partition
Date: Sun, 15 Nov 2009 23:56:11 +0900 [thread overview]
Message-ID: <52c6d4120911150656w2edcf528oad05796e52b134f6@mail.gmail.com> (raw)
Hello,
I hope I am not sending mail to the wrong mail list.
I am porting u-boot to our Xscale based board, with 32MB Nor Flash on
board. And in this board, it is required that, the u-boot should be able to
read some files from a FAT file system on one of the Nor Flash partitions.
The Nor Flash is managed as MTD device under Linux OS.
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?
I am creating a new command following fsload, using MTD devices in U-Boot,
and try to mount the FAT filesystem, but failed at reading the real file
data out,
although I can read the file name, the file size and the file start sector
number out.
--
Best Regards
Xianwei ZENG
----Linux Fans
next reply other threads:[~2009-11-15 14:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-15 14:56 Xianwei Zeng [this message]
2009-11-15 18:48 ` [U-Boot] u-boot: How to read file from FAT filesystem on NorFlash MTD partition Wolfgang Denk
2009-11-16 1:29 ` Xianwei Zeng
2009-11-16 6:40 ` Wolfgang Denk
2009-11-16 12:46 ` Xianwei Zeng
2009-11-24 3:09 ` Xianwei Zeng
-- strict thread matches above, loose matches on Subject: below --
2009-12-01 14:25 Stefan Roese
2009-12-02 2:55 ` Xianwei Zeng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52c6d4120911150656w2edcf528oad05796e52b134f6@mail.gmail.com \
--to=xianweizeng@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox