From: Steve Poulsen <spoulsen@css-design.us>
To: jiangqingdong@konka.com
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: is there any tool for burning omap730 image under linux?
Date: Wed, 25 Apr 2007 10:49:11 -0500 [thread overview]
Message-ID: <462F7877.3050305@css-design.us> (raw)
In-Reply-To: <OF9C83F916.25673C7B-ON482572C8.000EADD1-482572C8.000D3CF6@konka.com>
Since you ask how to burn under linux, I assume you already have a
flashed u-boot and are able to boot Linux.
Make sure you have MTD support in your kernel. If configured properly,
you should be able to simply copy a binary image to the proper device
file. One issue in doing this comes up if you flash supports protected
sectors. You will get errors about trying to write to protected flash.
I wrote a simple application using mtd ioctl's to unprotect, program,
then protect. Before you can even use such an application, you need to
get the /dev/mtd* files created and working. Check the /proc folder. I
recall there is a /proc/mtd (or something like that) if MTD is in your
kernel. It shows you how your flash is divided. NOTE, I may remember
it wrong and it is not /proc but actually a sysfs file. Another
solution may be to unprotect using u-boot, boot the kernel, then copy to
the proper /dev/mtd* file. I would avoid /dev/mtd0 and /dev/mtd1 until
you are confident in the procedure. These are typically u-boot and
u-boot config. /dev/mtd2 should be the kernel part of the flash and
/dev/mtd3 is the flashed file system. Another thing to consider is that
you could have MTD configured different than u-boot expects and
everything will still work....until you go to copy using /dev/mtd* that
is *watch out*.
If your question is more basic than this, I suggest the OSK newbie
guide. That will get your application programmed outside of Linux. To
program the first u-boot, I like to use the toolchain to make a u-boot
that can be loaded by the emulator through CCS.
Steve
jiangqingdong@konka.com wrote:
> is there any tool for burning omap730 image under linux?
>
> thanks
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
>
prev parent reply other threads:[~2007-04-25 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 2:41 is there any tool for burning omap730 image under linux? jiangqingdong
2007-04-25 8:18 ` Pharaoh .
2007-04-25 15:49 ` Steve Poulsen [this message]
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=462F7877.3050305@css-design.us \
--to=spoulsen@css-design.us \
--cc=jiangqingdong@konka.com \
--cc=linux-omap-open-source@linux.omap.com \
/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