From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] dd to generate image.
Date: Fri, 14 Mar 2008 16:24:47 +0100 [thread overview]
Message-ID: <20080314152447.23969247AF@gemini.denx.de> (raw)
In-Reply-To: Your message of "Fri, 14 Mar 2008 16:01:47 +0800." <9c1eb1b90803140101t79d577ddsa396573307b1ce21@mail.gmail.com>
In message <9c1eb1b90803140101t79d577ddsa396573307b1ce21@mail.gmail.com> you wrote:
>
> I'm using dd to generate the u-boot+kernel+rootfs image.
> I executed command like..
> dd if=rootfs.jffs2 of=kernel.img bs=1 seek=ROOTFS_OFFSET
> But dd is quite slow, generating a 64MB image spends about 5 minutes.
Hm... you must be on a very slow machine, then.
> I have changed bs=1 to bs=1024 or bigger, but the outputted image size
> is wrong, too big.
Perhaps you forgot that "seek" is counting in units of "bs"; i.e. if
you change from "bs=1" to "bs=1024" you also have to change from
"seek=ROOTFS_OFFSET" to "seek=$(expr ROOTFS_OFFSET / 1024)"
> dd manpage says that bs is the size of read/write one time.
> Doesn't it make dd faster?
Yes, it does.
> How do make dd faster?
See above.
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
Nothing ever becomes real till it is experienced -- even a proverb is
no proverb to you till your life has illustrated it. - John Keats
next prev parent reply other threads:[~2008-03-14 15:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-14 8:01 [U-Boot-Users] dd to generate image Tim Chen
2008-03-14 9:21 ` Richard Genoud
2008-03-14 15:24 ` Wolfgang Denk [this message]
2008-03-17 3:09 ` Tim Chen
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=20080314152447.23969247AF@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox