From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Can u-boot access Linux's mtd partition?
Date: Mon, 01 Mar 2010 20:52:48 +0100 [thread overview]
Message-ID: <20100301195248.5EEEFE1C7BF@gemini.denx.de> (raw)
In-Reply-To: <67a3f13e1003010713y432d5ee2y17a7962b15e89c9a@mail.gmail.com>
Dear Joe Culler,
In message <67a3f13e1003010713y432d5ee2y17a7962b15e89c9a@mail.gmail.com> you wrote:
>
> If I've already created some configuration files such as mac address
> in mtd2 partition.
> For example:
> 0x00000000-0x00040000 : "Bootloader"
> 0x00040000-0x02000000 : "User config"
>
> Does u-boot can access mtd2 partition and read the mac address from
> the configure file?
Yes, it can, but you're implementing this the wrong way round.
Normally the boot loader configured low level things like the MAC
address, and then passes this information on to Linux.
> If so, would anyone tell me how to do or what similar code can I refer
> to in u-boot? Thanks.
See for example the "mtdparts" command.
> If not, can u-boot read the mac address from the eeprom instead of set
> it manually?
You can implement anything- it's softwrae, and thus extremely
flexible. But don't expect to find any ready-to-use code for your own
proprietary data formats. You will have to adapt this yourself.
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
A father doesn't destroy his children.
-- Lt. Carolyn Palamas, "Who Mourns for Adonais?",
stardate 3468.1.
next prev parent reply other threads:[~2010-03-01 19:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-01 15:13 [U-Boot] Can u-boot access Linux's mtd partition? Joe Culler
2010-03-01 19:52 ` Wolfgang Denk [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-02 15:33 Joe Culler
2010-03-02 15:57 ` Ian Jeffray
2010-03-02 16:22 ` Wolfgang Denk
2010-03-02 17:24 ` Joe Culler
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=20100301195248.5EEEFE1C7BF@gemini.denx.de \
--to=wd@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.