Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-raspberrypi_4.9.bb #44

Closed
mihaelaapetroaie opened this issue Jan 24, 2017 · 8 comments
Closed

linux-raspberrypi_4.9.bb #44

mihaelaapetroaie opened this issue Jan 24, 2017 · 8 comments

Comments

@mihaelaapetroaie
Copy link

mihaelaapetroaie commented Jan 24, 2017

logs:

ERROR: /media/mika/new/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 19, function: <module>
     0015:__anon_18__media_mika_new_poky_meta_recipes_kernel_linux_linux_yocto_inc(d)
     0016:__anon_364__media_mika_new_poky_meta_classes_kernel_yocto_bbclass(d)
     0017:__anon_6__media_mika_new_poky_meta_recipes_kernel_linux_linux_dtb_inc(d)
     0018:__anon_148__media_mika_new_poky_meta_raspberrypi_recipes_kernel_linux_linux_rpi_inc(d)
 *** 0019:__anon_38__media_mika_new_poky_meta_raspberrypi_recipes_kernel_linux_linux_raspberrypi_inc(d)
File: '/media/mika/new/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi.inc', lineno: 36, function: __anon_38__media_mika_new_po$
     0032:# Set programmatically some variables during recipe parsing
     0033:# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
     0034:python __anonymous () {
     0035:    kerneltype = d.getVar('KERNEL_IMAGETYPE')
 *** 0036:    kerneldt = get_dts(d, d.getVar('LINUX_VERSION'))
     0037:    d.setVar("KERNEL_DEVICETREE", kerneldt)
     0038:}
     0039:
     0040:do_kernel_configme_prepend() {
Exception: TypeError: getVar() missing 1 required positional argument: 'expand'

ERROR: /media/mika/new/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 19, function: <module>
     0015:__anon_18__media_mika_new_poky_meta_recipes_kernel_linux_linux_yocto_inc(d)
     0016:__anon_364__media_mika_new_poky_meta_classes_kernel_yocto_bbclass(d)
     0017:__anon_6__media_mika_new_poky_meta_recipes_kernel_linux_linux_dtb_inc(d)
     0018:__anon_148__media_mika_new_poky_meta_raspberrypi_recipes_kernel_linux_linux_rpi_inc(d)
 *** 0019:__anon_38__media_mika_new_poky_meta_raspberrypi_recipes_kernel_linux_linux_raspberrypi_inc(d)
File: '/media/mika/new/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi.inc', lineno: 36, function: __anon_38__media_mika_new_po$
     0032:# Set programmatically some variables during recipe parsing
     0033:# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
     0034:python __anonymous () {
     0035:    kerneltype = d.getVar('KERNEL_IMAGETYPE')
 *** 0036:    kerneldt = get_dts(d, d.getVar('LINUX_VERSION'))
     0037:    d.setVar("KERNEL_DEVICETREE", kerneldt)
     0038:}
     0039:
     0040:do_kernel_configme_prepend() {
Exception: TypeError: getVar() missing 1 required positional argument: 'expand'

ERROR: Failed to parse recipe: /media/mika/new/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb


host OS:
Debian 8 (Jessie)

meta-raspberrypi
commit ec28a0d (Update to 4.9.4)

poky
commit a3fa5ce87619e81d7acfa43340dd18d8f2b2d7dc (version 2.2.1)

Let me know if there is anything else you need.

Thanks,

@agherzan
Copy link
Owner

Could you please replace the screenshot with text information about:

  1. versions
  2. host OS
  3. full logs

Thank you,

@agherzan
Copy link
Owner

In the meanwhile I compiled 4.9.X on master just fine. Please come back with more details. In the meanwhile I will consider this not reproducible.

@mihaelaapetroaie
Copy link
Author

added the info you asked for. Please let me know if you need anything else

Thanks

@agherzan
Copy link
Owner

Can you use morty branches of poky and meta-raspberrypi? Those should be the stable branches to be used when not developing.

@mihaelaapetroaie
Copy link
Author

Thanks a lot for this. I used the meta-raspberrypi morty, but now I get a new error:

NOTE: Running task 720 of 2227 (/media/mika/new/poky/meta/recipes-bsp/u-boot/u-boot_2016.03.bb:do_fetch)
NOTE: recipe u-boot-v2016.03+gitAUTOINC+df61a74e68-r0: task do_fetch: Started
NOTE: recipe libgcc-6.2.0-r0: task do_install: Started
NOTE: recipe u-boot-v2016.03+gitAUTOINC+df61a74e68-r0: task do_fetch: Succeeded
NOTE: Running task 721 of 2227 (/media/mika/new/poky/meta/recipes-bsp/u-boot/u-boot_2016.03.bb:do_unpack)
NOTE: recipe u-boot-v2016.03+gitAUTOINC+df61a74e68-r0: task do_unpack: Started
NOTE: recipe u-boot-v2016.03+gitAUTOINC+df61a74e68-r0: task do_unpack: Succeeded
NOTE: Running task 722 of 2227 (/media/mika/new/poky/meta/recipes-bsp/u-boot/u-boot_2016.03.bb:do_patch)
NOTE: recipe u-boot-v2016.03+gitAUTOINC+df61a74e68-r0: task do_patch: Started
ERROR: u-boot-v2016.03+gitAUTOINC+df61a74e68-r0 do_patch: Command Error: 'quilt --quiltrc /media/mika/new/poky/build2/tmp/sysroots/x86_64-li$
Applying patch 0001-CONFIGS-rpi-enable-mender-requirements.patch
patching file include/configs/rpi.h
Hunk #1 FAILED at 118.
1 out of 1 hunk FAILED -- rejects in file include/configs/rpi.h
Patch 0001-CONFIGS-rpi-enable-mender-requirements.patch does not apply (enforce with -f)
ERROR: u-boot-v2016.03+gitAUTOINC+df61a74e68-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /media/mika/new/poky/build2/tmp/work/raspberrypi2-poky-linux-gnueabi/u-boot/v2016.03+gitAUTOINC+df61a74$
NOTE: recipe u-boot-v2016.03+gitAUTOINC+df61a74e68-r0: task do_patch: Failed
ERROR: Task (/media/mika/new/poky/meta/recipes-bsp/u-boot/u-boot_2016.03.bb:do_patch) failed with exit code '1'
NOTE: Running task 723 of 2227 (/media/mika/new/poky/meta/recipes-core/glibc/cross-localedef-native_2.24.bb:do_fetch)
NOTE: recipe make-4.2.1-r0: task do_fetch: Succeeded
NOTE: recipe cross-localedef-native-2.24-r0: task do_fetch: Started
NOTE: recipe cross-localedef-native-2.24-r0: task do_fetch: Succeeded
NOTE: recipe libgcc-6.2.0-r0: task do_install: Succeeded
NOTE: recipe linux-raspberrypi-1_4.4.43+gitAUTOINC+17ca1c9309-r0: task do_fetch: Succeeded
NOTE: Tasks Summary: Attempted 723 tasks of which 0 didn't need to be rerun and 1 failed.

@agherzan
Copy link
Owner

You are applying a patch that is not part if meta-raspberrypi:

ERROR: u-boot-v2016.03+gitAUTOINC+df61a74e68-r0 do_patch: Command Error: 'quilt --quiltrc /media/mika/new/poky/build2/tmp/sysroots/x86_64-li$
Applying patch 0001-CONFIGS-rpi-enable-mender-requirements.patch
patching file include/configs/rpi.h

@mirzak
Copy link
Contributor

mirzak commented Jan 25, 2017

I assume you are are using meta-mender(morty), that error you get @mihaelaapetroaie got fixed today, so just do a pull and it should be ok.

Sorry for hijacking this issue, but I am involved in meta-mender as well so might as well :)

@mihaelaapetroaie
Copy link
Author

@mirzak, thanks a lot! It worked!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants