[meta-swupdate-board] bitbake update-image failed

391 views
Skip to first unread message

Enissay

unread,
May 11, 2018, 9:37:54 AM5/11/18
to swupdate
Hi everyone,

im new in this forum and beginner in embedded linux. Im trying right now to test an update on my raspberrypi3 with Yocto using meta-swupdate and the meta-swupdate-boards layer.

i did the following steps :


$ mkdir swupdate-yocto && cd swupdate-yocto
swupdate
-yocto$ mkdir layers && cd layers
swupdate
-yocto/layers$ git clone git://git.yoctoproject.org/poky -b rocko
swupdate
-yocto/layers$ git clone git://github.com/openembedded/meta-openembedded.git -b rocko
swupdate
-yocto/layers$ git clone https://github.com/sbabic/meta-swupdate -b rocko
swupdate
-yocto/layers$ git clone https://github.com/sbabic/meta-swupdate-boards.git -b master
swupdate
-yocto/layers$ git clone https://github.com/sbabic/meta-raspberrypi -b rocko
swupdate
-yocto/layers$ cd ..
swupdate
-yocto$ . layers/poky/oe-init-build-env build
swupdate
-yocto/build$ bitbake-layers add-layer ../layers/meta-openembedded/meta-oe
swupdate
-yocto/build$ bitbake-layers add-layer ../layers/meta-swupdate
swupdate
-yocto/build$ bitbake-layers add-layer ../layers/meta-swupdate-boards
swupdate
-yocto/build$ bitbake-layers add-layer ../layers/meta-raspberrypi
 
swupdate
-yocto/build$ MACHINE=raspberrypi3 bitbake update-image


and then i become the following error :

Loading cache: 100% |###############################################################################| Time: 0:00:00
Loaded 2552 entries from dependency cache.
Parsing recipes: 100% |#############################################################################| Time: 0:00:01
Parsing of 1771 .bb files complete (1770 cached, 1 parsed). 2553 targets, 93 skipped, 0 masked, 0 errors.
NOTE
: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION          
= "1.36.0"
BUILD_SYS            
= "x86_64-linux"
NATIVELSBSTRING      
= "universal"
TARGET_SYS          
= "arm-poky-linux-gnueabi"
MACHINE              
= "raspberrypi3"
DISTRO              
= "poky"
DISTRO_VERSION      
= "2.4.2"
TUNE_FEATURES        
= "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU          
= "hard"
meta                
meta
-poky            
meta
-yocto-bsp       = "rocko:9915e071bcadd7c4d5363a067c529889851d37a5"
meta
-oe              = "rocko:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta
-swupdate        = "rocko:6e4eab4f475b0129d6510815a3bbc4748c97dbbe"
meta
-swupdate-boards = "master:d874b02d0f2e607b12d0a8bcf8557431c6fd44c3"
meta
-raspberrypi     = "rocko:acfb857227f1216cd64767952f0c25d633df10b8"
meta
-python          = "rocko:dacfa2b1920e285531bec55cd2f08743390aaf57"

Initialising tasks: 100% |##########################################################################| Time: 0:00:04
NOTE
: Executing SetScene Tasks
NOTE
: Executing RunQueue Tasks
ERROR
: update-image-1.0-r0 do_swuimage: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     
0001:
 
*** 0002:do_swuimage(d)
     
0003:
File: '/home/aettamri/swupdate-yocto/layers/meta-swupdate/classes/swupdate.bbclass', lineno: 136, function: do_swuimage
     
0132:
     
0133:            imagename = imagebase + fstype
     
0134:            src = os.path.join(deploydir, "%s" % imagename)
     
0135:            dst = os.path.join(s, "%s" % imagename)
 
*** 0136:            shutil.copyfile(src, dst)
     
0137:            list_for_cpio.append(imagename)
     
0138:
     
0139:    for file in list_for_cpio:
     
0140:        if file != 'sw-description' and swupdate_is_hash_needed(s, file):
File: '/usr/lib/python3.5/shutil.py', lineno: 114, function: copyfile
     
0110:
     
0111:    if not follow_symlinks and os.path.islink(src):
     
0112:        os.symlink(os.readlink(src), dst)
     
0113:    else:
 
*** 0114:        with open(src, 'rb') as fsrc:
     
0115:            with open(dst, 'wb') as fdst:
     
0116:                copyfileobj(fsrc, fdst)
     
0117:    return dst
     
0118:
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/aettamri/swupdate-yocto/build/tmp/deploy/images/raspberrypi3/core-image-full-cmdline-raspberrypi3.ext4.gz'

ERROR
: update-image-1.0-r0 do_swuimage: Function failed: do_swuimage
ERROR
: Logfile of failure stored in: /home/aettamri/swupdate-yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/update-image/1.0-r0/temp/log.do_swuimage.4385
ERROR
: Task (/home/aettamri/swupdate-yocto/layers/meta-swupdate-boards/recipes-extended/images/update-image.bb:do_swuimage) failed with exit code '1'
NOTE
: Tasks Summary: Attempted 3478 tasks of which 3474 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/aettamri/swupdate-yocto/layers/meta-swupdate-boards/recipes-extended/images/update-image.bb:do_swuimage
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.


Can someone help me please !

Best regards,
Enissay


Stefano Babic

unread,
May 11, 2018, 9:44:54 AM5/11/18
to Enissay, swupdate
On 11/05/2018 15:37, Enissay wrote:
> Hi everyone,
>
> im new in this forum and beginner in embedded linux. Im trying right now
> to test an update on my raspberrypi3 with Yocto using meta-swupdate and
> the meta-swupdate-boards layer.
> <https://github.com/sbabic/meta-swupdate-boards>
>
> i did the following steps :
>
>
> |
> $ mkdir swupdate-yocto &&cd swupdate-yocto
> swupdate-yocto$ mkdir layers &&cd layers
> swupdate-yocto/layers$ git clone git://git.yoctoproject.org/poky -b rocko
> swupdate-yocto/layers$ git clone
> git://github.com/openembedded/meta-openembedded.git -b rocko
> swupdate-yocto/layers$ git clone https://github.com/sbabic/meta-swupdate
> -b rocko
> swupdate-yocto/layers$ git clone
> https://github.com/sbabic/meta-swupdate-boards.git -b master
> swupdate-yocto/layers$ git clone
> https://github.com/sbabic/meta-raspberrypi -b rocko
> swupdate-yocto/layers$ cd ..
> swupdate-yocto$ .layers/poky/oe-init-build-env build
> swupdate-yocto/build$ bitbake-layers add-layer
> ../layers/meta-openembedded/meta-oe
> swupdate-yocto/build$ bitbake-layers add-layer ../layers/meta-swupdate
> swupdate-yocto/build$ bitbake-layers add-layer
> ../layers/meta-swupdate-boards
> swupdate-yocto/build$ bitbake-layers add-layer ../layers/meta-raspberrypi
>  
> swupdate-yocto/build$ MACHINE=raspberrypi3 bitbake update-image
> |
>
>
> and then i become the following error :
>
> |
> Loadingcache:100%|###############################################################################|
> Time: 0:00:00
> Loaded2552entries fromdependency cache.
> Parsingrecipes:100%|#############################################################################|
> Time: 0:00:01
> Parsingof 1771.bb files complete
> (1770cached,1parsed).2553targets,93skipped,0masked,0errors.
> NOTE:Resolvingany missing task queue dependencies
>
> BuildConfiguration:
> BB_VERSION           ="1.36.0"
> BUILD_SYS            ="x86_64-linux"
> NATIVELSBSTRING      ="universal"
> TARGET_SYS           ="arm-poky-linux-gnueabi"
> MACHINE              ="raspberrypi3"
> DISTRO               ="poky"
> DISTRO_VERSION       ="2.4.2"
> TUNE_FEATURES        ="arm armv7ve vfp thumb neon vfpv4
> callconvention-hard cortexa7"
> TARGET_FPU           ="hard"
> meta                
> meta-poky            
> meta-yocto-bsp       ="rocko:9915e071bcadd7c4d5363a067c529889851d37a5"
> meta-oe              ="rocko:dacfa2b1920e285531bec55cd2f08743390aaf57"
> meta-swupdate        ="rocko:6e4eab4f475b0129d6510815a3bbc4748c97dbbe"
> meta-swupdate-boards ="master:d874b02d0f2e607b12d0a8bcf8557431c6fd44c3"
> meta-raspberrypi     ="rocko:acfb857227f1216cd64767952f0c25d633df10b8"
> meta-python          ="rocko:dacfa2b1920e285531bec55cd2f08743390aaf57"
>
> Initialisingtasks:100%|##########################################################################|
> Time: 0:00:04
> NOTE:ExecutingSetSceneTasks
> NOTE:ExecutingRunQueueTasks
> ERROR:update-image-1.0-r0 do_swuimage:Errorexecuting a python
> functioninexec_python_func()autogenerated:
>
> Thestack trace of python calls that resulted inthisexception/failure was:
> ERROR:Logfileof failure stored
> in:/home/aettamri/swupdate-yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/update-image/1.0-r0/temp/log.do_swuimage.4385
> ERROR:Task(/home/aettamri/swupdate-yocto/layers/meta-swupdate-boards/recipes-extended/images/update-image.bb:do_swuimage)failed
> withexitcode '1'
> NOTE:TasksSummary:Attempted3478tasks of which 3474didn't need to be
> rerun and 1 failed.
>
> Summary: 1 task failed:
>  
> /home/aettamri/swupdate-yocto/layers/meta-swupdate-boards/recipes-extended/images/update-image.bb:do_swuimage
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>
> |
>
> Can someone help me please !
>

Try first
bitbake core-image-full-cmdline

and then:
bitbake update-image

Best regards,
Stefano Babic

> Best regards,
> Enissay
>
>
> <https://github.com/sbabic/meta-swupdate-boards>
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+u...@googlegroups.com
> <mailto:swupdate+u...@googlegroups.com>.
> To post to this group, send email to swup...@googlegroups.com
> <mailto:swup...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

Enissay

unread,
May 11, 2018, 9:51:32 AM5/11/18
to swupdate
ok Stefano thanks ! i will try it.

Enissay

unread,
May 11, 2018, 9:59:51 AM5/11/18
to swupdate
@Stefano, i try it and i still have the same error :

do_swuimage
ERROR
: Logfile of failure stored in: /home/aettamri/swupdate-yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/update-image/1.0-r0/temp/log.do_swuimage.5164
Reply all
Reply to author
Forward
0 new messages