Skip to main content
Ara.1
Associate III
July 21, 2020
Question

bitbake uboot error , pls help

  • July 21, 2020
  • 2 replies
  • 1222 views

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: u-boot-stm32mp-extlinux-2.0-r0 do_create_multiextlinux_config: 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:update_extlinuxconf_targets(d)

    0003:

File: '/home/horner/GIT_TEST/yocto/warrior_2.7.1/sources/meta-st-stm32mp/classes/extlinuxconf-stm32mp.bbclass', lineno: 122, function: update_extlinuxconf_targets

    0118:           continue

    0119:       for devicetree in devicetree_list.split():

    0120:           bb.note('*** Loop for devicetree: %s' % devicetree)

    0121:           target_prefix = re.match('^stm32(.*)$', devicetree)

 *** 0122:           new_target = target_prefix.group(1) + '_' + config_label

    0123:           bb.note('>>> New target label: %s' % new_target)

    0124:           if not new_target in default_targets.split():

    0125:               bb.note('Computed target: "%s" is not part of UBOOT_EXTLINUX_CONFIGURED_TARGETS: %s' % (new_target, default_targets))

    0126:               bb.note('Target not append to UBOOT_EXTLINUX_TARGETS')

Exception: AttributeError: 'NoneType' object has no attribute 'group'

ERROR: u-boot-stm32mp-extlinux-2.0-r0 do_create_multiextlinux_config: 'NoneType' object has no attribute 'group'

ERROR: u-boot-stm32mp-extlinux-2.0-r0 do_create_multiextlinux_config: Function failed: update_extlinuxconf_targets

ERROR: Logfile of failure stored in: /home/horner/GIT_TEST/yocto/warrior_2.7.1/build-mp1som/tmp-glibc/work/mp1som-openstlinux_weston-linux-gnueabi/u-boot-stm32mp-extlinux/2.0-r0/temp/log.do_create_multiextlinux_config.2908

ERROR: Task (/home/horner/GIT_TEST/yocto/warrior_2.7.1/sources/meta-st-stm32mp/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bb:do_create_multiextlinux_config) failed with exit code '1'

Waiting for 1 running tasks to finish:

This topic has been closed for replies.

2 replies

Olivier GALLIEN
Technical Moderator
July 21, 2020

Hi @Ara.1​ 

Please share version and configuration you are using ( machine, image .. )

Is it default distribution package or with files edited by yourself ?

Thx

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
OL'He.1
Associate II
July 24, 2020

Looking at the error message, it seems there is a device tree whose name does not begin with "stm32", and the "u-boot-stm32mp-extlinux-2.0-r0" does not support that case. I would check if all device tree names begins with "stm32".

Ara.1
Ara.1Author
Associate III
July 30, 2020

Yes my customized dts doesn't not begin with stm32