All of lore.kernel.org
 help / color / mirror / Atom feed
* WIC error when using rawcopy
@ 2016-06-24 14:07 Fabio Berton
  2016-06-27  8:26 ` Ed Bartosh
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Berton @ 2016-06-24 14:07 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]

Hi all!

I'm getting one error when trying to make an image using wic.
My wks file is:


part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk
mmcblk --no-table --align 1
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat
--label boot --align 8192 --size 25M --extra-space 0
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label system --size
512M --align 8192 --extra-space 0
part / --size 512M --ondisk mmcblk0 --align 8192 --extra-space 0

bootloader --ptable msdos


and when building an image I get error:

Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| Error: exec_cmd: dd
if=/home/user/src/prj/build/tmp/deploy/images/nitrogen6x/core-image-minimal-nitrogen6x-20160624134453/build/u-boot.imx
of=/home/user/src/prj/build/tmp/deploy/images/nitrogen6x/core-image-minimal-nitrogen6x-20160624134453/build/core-image-201606241045-mmcblk.direct
bs=512 seek=2 count=942 conv=notrunc returned '1' instead of 0
| Checking basic build environment...
| Done.
|
| Creating image(s)...
|
| WARNING:
/home/user/src/prj/build/tmp/work/nitrogen6x-prj-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_wic.31619:1
exit 1 from 'BUILDDIR="/home/user/src/prj/build" wic create "$wks" --vars
"/home/user/src/prj/build/tmp/sysroots/nitrogen6x/imgdata/" -e
"core-image-minimal" -o "$out/"'


If I remove line:
part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk
mmcblk --no-table --align 1

image builds fine, so I think the problem it's on rawcopy.

After I run bitbake and execution fail, I cd to wic build directory
deploy/images/nitrogen6x/core-image-minimal-nitrogen6x-20160624135131/build
and u-boot.imx is not in this dir.

Can you help me on this? I'm using krogoth branch.

Regards,

Fabio

[-- Attachment #2: Type: text/html, Size: 2916 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: WIC error when using rawcopy
  2016-06-24 14:07 WIC error when using rawcopy Fabio Berton
@ 2016-06-27  8:26 ` Ed Bartosh
  0 siblings, 0 replies; 2+ messages in thread
From: Ed Bartosh @ 2016-06-27  8:26 UTC (permalink / raw)
  To: Fabio Berton; +Cc: openembedded-core

Hi Fabio,

I'll try to reproduce and fix it. Can you create bug in yocto bugzilla
to better track this?

Regards,
Ed

On Fri, Jun 24, 2016 at 11:07:16AM -0300, Fabio Berton wrote:
> Hi all!
> 
> I'm getting one error when trying to make an image using wic.
> My wks file is:
> 
> 
> part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk
> mmcblk --no-table --align 1
> part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat
> --label boot --align 8192 --size 25M --extra-space 0
> part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label system --size
> 512M --align 8192 --extra-space 0
> part / --size 512M --ondisk mmcblk0 --align 8192 --extra-space 0
> 
> bootloader --ptable msdos
> 
> 
> and when building an image I get error:
> 
> Log data follows:
> | DEBUG: Executing python function set_image_size
> | DEBUG: Python function set_image_size finished
> | DEBUG: Executing shell function do_image_wic
> | Error: exec_cmd: dd
> if=/home/user/src/prj/build/tmp/deploy/images/nitrogen6x/core-image-minimal-nitrogen6x-20160624134453/build/u-boot.imx
> of=/home/user/src/prj/build/tmp/deploy/images/nitrogen6x/core-image-minimal-nitrogen6x-20160624134453/build/core-image-201606241045-mmcblk.direct
> bs=512 seek=2 count=942 conv=notrunc returned '1' instead of 0
> | Checking basic build environment...
> | Done.
> |
> | Creating image(s)...
> |
> | WARNING:
> /home/user/src/prj/build/tmp/work/nitrogen6x-prj-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_wic.31619:1
> exit 1 from 'BUILDDIR="/home/user/src/prj/build" wic create "$wks" --vars
> "/home/user/src/prj/build/tmp/sysroots/nitrogen6x/imgdata/" -e
> "core-image-minimal" -o "$out/"'
> 
> 
> If I remove line:
> part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk
> mmcblk --no-table --align 1
> 
> image builds fine, so I think the problem it's on rawcopy.
> 
> After I run bitbake and execution fail, I cd to wic build directory
> deploy/images/nitrogen6x/core-image-minimal-nitrogen6x-20160624135131/build
> and u-boot.imx is not in this dir.
> 
> Can you help me on this? I'm using krogoth branch.
> 
> Regards,
> 
> Fabio

> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


-- 
--
Regards,
Ed


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-27  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24 14:07 WIC error when using rawcopy Fabio Berton
2016-06-27  8:26 ` Ed Bartosh

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.