8 Replies Latest reply on Jul 30, 2015 9:21 PM by atbrady

    An error while rebuilding kernel modules

    Edward.P

      Hi everyone,

       

      I got an error when I rebuilt kernel.

      I just try this command "bitbake linux-yocto-clanton -c menuconfig".

      But I got an error like following:

       

      ERROR: Function failed: do_kernel_configme (see /home/Edward/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux-uclibc/linux-yocto-clanton/3.8-r0/temp/log.do_kernel_configme.3034 for further information)

      ERROR: Logfile of failure stored in: /home/Edward/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux-uclibc/linux-yocto-clanton/3.8-r0/temp/log.do_kernel_configme.3034

      Log data follows:

      | DEBUG: Executing shell function do_kernel_configme

      | [INFO] doing kernel configme

      | [INFO] Configuring target/machine combo: "standard/clanton"

      | [INFO] collecting configs in ./meta/meta-series

      | mv: target '3.16.0' is not a directory

      | creation of pre-processed config data failed

      | config of "standard/clanton" failed

      | ERROR: Function failed: do_kernel_configme (see /home/Edward/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux-uclibc/linux-yocto-clanton/3.8-r0/temp/log.do_kernel_configme.3034 for further information)

      ERROR: Task 5 (/home/Edward/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb, do_kernel_configme) failed with exit code '1'

      NOTE: Tasks Summary: Attempted 217 tasks of which 216 didn't need to be rerun and 1 failed.

      No currently running tasks (217 of 219)

       

       

      Summary: 1 task failed:

        /home/Edward/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb, do_kernel_configme

      Summary: There was 1 WARNING message shown.

      Summary: There was 1 ERROR message shown, returning a non-zero exit code.

       

      If anyone can help me?

       

      Thanks

      Edward.P

        • 1. Re: An error while rebuilding kernel modules
          JPMontero_Intel

          Hi Edward.P

          Your question appear as assumed answered. Do you still need help with this issue? Or you do have your question answered?

          Regards,
          JPMontero_Intel

          • 2. Re: An error while rebuilding kernel modules
            Lauri.Pirttiaho

            Hi Edward,

             

            This appears to be caused by the "createme" (yocto_build/tmp/sysroots/x86_64-linux/usr/bin/createme)

            script being run twice and thence the kernel version file "kver" contains twice the version number which is used in the "configme" script.

             

            A workable solution to the problem is to fix in the createme script the metaize procedure as

             

            metaize()

            {

                    kbranch=$1

             

                    old_pwd=`pwd`

                    # repo is set during the decheckpoint phase

                    if [ "$repo" = "external" ]; then

                            mkdir -p $meta_dir/cfg/kernel-cache

             

                            version=`grep -E "^VERSION =" Makefile | cut -d\= -f2 | sed 's/ //g'`

                            patchlevel=`grep -E "^PATCHLEVEL =" Makefile | cut -d\= -f2 | sed 's/ //g'`

                            sublevel=`grep -E "^SUBLEVEL =" Makefile | cut -d\= -f2 | sed 's/ //g'`

                            echo -n "v" > $meta_dir/cfg/kernel-cache/kver

                            echo -n "$version" >> $meta_dir/cfg/kernel-cache/kver

                            echo -n "." >> $meta_dir/cfg/kernel-cache/kver

                            echo -n "$patchlevel" >> $meta_dir/cfg/kernel-cache/kver

                            echo -n "." >> $meta_dir/cfg/kernel-cache/kver

                            echo "$sublevel" >> $meta_dir/cfg/kernel-cache/kver

             

                            mkdir -p $meta_dir/cfg/scratch/obj

                            cd $meta_dir/cfg/scratch/obj

             

                            (cd $old_pwd; find -name 'Kconfig' | sed 's/^.\///' > $meta_dir/cfg/scratch/obj/hardware.kcf)

                    fi

            }

             

            That is, instead of beginning with append when writing the generated version number to "kver"

            begin with overwrite (echo -n "v" > $meta_dir/cfg/kernel-cache/kver) instead of (echo -n "v" >> $meta_dir/cfg/kernel-cache/kver).

             

            -- Lauri

            • 3. Re: An error while rebuilding kernel modules
              fohsie

              Hello Lauri.Pirttiaho

               

              I am getting a similar error. when i run bitbake image-spi-galileo

              I am running Debian 7.6 (Wheezy)

               

              DEBUG: Executing shell function do_kernel_configme

              [INFO] doing kernel configme

              [INFO] Configuring target/machine combo: "standard/clanton"

              [INFO] collecting configs in ./meta/meta-series

              mv: target `3.8.7' is not a directory

              creation of pre-processed config data failed

              config of "standard/clanton" failed

              ERROR: Function failed: do_kernel_configme (see /tmp/meta-clanton_v1.0.0/yocto_build/tmp/work/clanton-poky-linux-uclibc/linux-yocto-clanton/3.8-r0/temp/log.do_kernel_configme.9121 for further information)

               

               

              I made the change to metaize() as you suggested.. But I still get this error.. any suggestions?

              • 4. Re: An error while rebuilding kernel modules
                JPMontero_Intel

                Hi fohsie,

                 

                Were you able to build the spi image correctly? In case you didn't, could you provide the error log?

                 

                Regards,
                JPMontero_Intel

                • 5. Re: An error while rebuilding kernel modules
                  radiofrequency

                  I am getting the same error as the op.  this is the error log:

                   

                  DEBUG: Executing shell function do_kernel_configme

                  [INFO] doing kernel configme

                  [INFO] Configuring target/machine combo: "standard/clanton"

                  [INFO] collecting configs in ./meta/meta-series

                  mv: target `3.19.0' is not a directory

                  creation of pre-processed config data failed

                  config of "standard/clanton" failed

                  ERROR: Function failed: do_kernel_configme (see /Documents/meta-clanton_v1.0.0/yocto_build/tmp/work/clanton-poky-linux/linux-yocto-clanton/3.8-r0/temp/log.do_kernel_configme.820 for further information)

                  • 6. Re: An error while rebuilding kernel modules
                    JPMontero_Intel

                    Hi radiofrequency,

                     

                    Could you attach the file /Documents/meta-clanton_v1.0.0/yocto_build/tmp/work/clanton-poky-linux/linux-yocto-clanton/3.8-r0/temp/log.do_kernel_configme.820? Also, could you specify which OS are you using and the steps you followed to get into this error?

                     

                    Regards,

                    JPMontero_Intel

                    • 7. Re: An error while rebuilding kernel modules
                      radiofrequency

                      Hi JPMontero,

                       

                      I fixed this issue by downgrading to Ubuntu 12.10 from 14.04. Sorry don't have these logs anymore

                      1 of 1 people found this helpful
                      • 8. Re: An error while rebuilding kernel modules
                        atbrady

                        If anyone happens to stumble upon this, I was able to fix it by going into ./yocto_build/tmp/work/clanton-poky-linux/linux-yocto-clanton/3.8-r0/linux/meta/cfg/kernel-cache/ and when I opened up 'kver' it had two duplicate lines "3.8.7".  By deleting one of them I was able to get it to continue past the linux-yocto-clanton package.