* [U-Boot-Users] dd to generate image.
@ 2008-03-14 8:01 Tim Chen
2008-03-14 9:21 ` Richard Genoud
2008-03-14 15:24 ` Wolfgang Denk
0 siblings, 2 replies; 4+ messages in thread
From: Tim Chen @ 2008-03-14 8:01 UTC (permalink / raw)
To: u-boot
Hi,
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.
I have changed bs=1 to bs=1024 or bigger, but the outputted image size
is wrong, too big.
dd manpage says that bs is the size of read/write one time.
Doesn't it make dd faster?
How do make dd faster?
--
--
Regards,
Tim.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] dd to generate image.
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
1 sibling, 0 replies; 4+ messages in thread
From: Richard Genoud @ 2008-03-14 9:21 UTC (permalink / raw)
To: u-boot
2008/3/14, Tim Chen <tim.chen.86@gmail.com>:
> Hi,
> 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.
> I have changed bs=1 to bs=1024 or bigger, but the outputted image size
> is wrong, too big.
try dd if=rootfs.jffs2 of=kernel.img bs=ROOTFS_OFFSET seek=1
(bs is the block size and seek is counted in block size)
--
Richard Genoud - Adeneo
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] dd to generate image.
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
2008-03-17 3:09 ` Tim Chen
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2008-03-14 15:24 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] dd to generate image.
2008-03-14 15:24 ` Wolfgang Denk
@ 2008-03-17 3:09 ` Tim Chen
0 siblings, 0 replies; 4+ messages in thread
From: Tim Chen @ 2008-03-17 3:09 UTC (permalink / raw)
To: u-boot
Thanks, my problem fixed.
On Fri, Mar 14, 2008 at 11:24 PM, Wolfgang Denk <wd@denx.de> wrote:
> In message <9c1eb1b90803140101t79d577ddsa396573307b1ce21@mail.gmail.com> you wrote:
> >
> > I'm using dd to generate the u-boot+kernel+rootfs image.
--
--
Regards,
Tim.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-17 3:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-03-17 3:09 ` Tim Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox