U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jeffray <ijeffray@a2etech.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Can u-boot access Linux's mtd partition?
Date: Tue, 02 Mar 2010 15:57:52 +0000	[thread overview]
Message-ID: <4B8D3580.60606@a2etech.com> (raw)
In-Reply-To: <67a3f13e1003020733p5459c999r1f7346fd9cd8a92d@mail.gmail.com>

On 02/03/2010 15:33, Joe Culler wrote:

> 1. First, I set default CONFIG_ETHADDR(for example, 02:80:ad:20:31:e8)
>     in u-boot, then use flash writer to burn the flash on each board.
> 2. I have a program for burning mac address on Linux.
>     After booting linux kernel, my program can burn the mac address.
>     Reboot the system if burning the mac address successfully.
> 3. Since the mac address is already stored in mtd2, for example.
>     I want u-boot to detect the correct mac address I burned in mtd2
>     partition rather than the default setting 02:80:ad:20:31:e8.
>
> Is it the correct way I do or do you have any better idea? Thank you.

I just use U-Boot tools "fw_setenv" to update the U-Boot ETHADDR
variable from within Linux.   If you do this, it may be advisable
to move the environment out of the code sector in case of failure
during writeback.

http://www.denx.de/wiki/DULG/HowCanIAccessUBootEnvironmentVariablesInLinux

http://elinux.org/U-boot_environment_variables_in_linux

Ian.

  reply	other threads:[~2010-03-02 15:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-02 15:33 [U-Boot] Can u-boot access Linux's mtd partition? Joe Culler
2010-03-02 15:57 ` Ian Jeffray [this message]
2010-03-02 16:22 ` Wolfgang Denk
2010-03-02 17:24   ` Joe Culler
  -- strict thread matches above, loose matches on Subject: below --
2010-03-01 15:13 Joe Culler
2010-03-01 19:52 ` Wolfgang Denk

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=4B8D3580.60606@a2etech.com \
    --to=ijeffray@a2etech.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