3 Replies Latest reply on Dec 26, 2014 7:24 PM by linux-yocto-clanton

    tools for yocto kernel config on Galileo

    LeiZhou

      Hi,

       

      I followed the instruction of

      Intel Galileo - Building Linux Image - Malinov Family Web Presence

      to build the system.  In /meta-clanton_v0.7.5/yocto_build, when I tried to run:

      bitbake linux-yocto -c menuconfig

      The result is :

      ERROR: linux-yocto was skipped: incompatible with machine clanton (not in COMPATIBLE_MACHINE)

      This also happened when I tried to run:

      bitbake linux-yocto -c kernel_configcheck -f

      Does it mean that the these tools are not available now for Quark core?

      And when I choose toolchain & prebuild linux kernel, which ones should choose for Galileo? Should I choose: poky-eglibc-x86_64-core-image-sato-i586-toolchain-1.6.sh   and index of /releases/yocto/yocto-1.6/machines/qemu/qemux86?

       

      Thanks for Help

      Lei

        • 1. Re: tools for yocto kernel config on Galileo
          LarsR

          Try bitbake linux-yocto-clanton -c menuconfig instead. Works a lot better for me.

          • 2. Re: tools for yocto kernel config on Galileo
            LeiZhou

            Thanks. It works now.

            • 3. Re: tools for yocto kernel config on Galileo
              linux-yocto-clanton

              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:

               

              [cstor@cstor yocto_build]$ bitbake linux-yocto-clanton -c menuconfig
              Loading cache: 100% |#########################################################################################################################################################################################################################################| ETA:  00:00:00
              Loaded 1619 entries from dependency cache.

              Build Configuration:
              BB_VERSION        = "1.18.0"
              BUILD_SYS         = "x86_64-linux"
              NATIVELSBSTRING   = "CentOS-6.3"
              TARGET_SYS        = "i586-poky-linux-uclibc"
              MACHINE           = "clanton"
              DISTRO            = "clanton-tiny"
              DISTRO_VERSION    = "1.4.2"
              TUNE_FEATURES     = "m32 i586"
              TARGET_FPU        = ""
              meta             
              meta-yocto       
              meta-yocto-bsp    = "clanton:3b503a5edbc588e192bacfff7f14b027c67cac86"
              meta-intel        = "clanton:048def7bae8e3e1a11c91f5071f99bdcf8e6dd16"
              meta-oe           = "clanton:13ae5105ee30410136beeae66ec41ee4a8a2e2b0"
              meta-clanton-distro
              meta-clanton-bsp  = "<unknown>:<unknown>"

              NOTE: Resolving any missing task queue dependencies
              NOTE: Preparing runqueue
              NOTE: Executing SetScene Tasks
              NOTE: Executing RunQueue Tasks
              ERROR: Error executing a python function in /TanChonggang/quark/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb:
              OSError: [Errno 13] Permission denied

              ERROR: The stack trace of python calls that resulted in this exception/failure was:
              ERROR:   File "do_menuconfig", line 22, in <module>
              ERROR:
              ERROR:   File "do_menuconfig", line 8, in do_menuconfig
              ERROR:
              ERROR:   File "terminal.bbclass", line 55, in oe_terminal
              ERROR:
              ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 173, in spawn_preferred
              ERROR:     spawn(terminal.name, sh_cmd, title, env, d)
              ERROR:
              ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 188, in spawn
              ERROR:     pipe = terminal(sh_cmd, title, env, d)
              ERROR:
              ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 50, in __init__
              ERROR:     Terminal.__init__(self, sh_cmd, title, env, d)
              ERROR:
              ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/meta/lib/oe/terminal.py", line 33, in __init__
              ERROR:     Popen.__init__(self, fmt_sh_cmd, env=env)
              ERROR:
              ERROR:   File "/TanChonggang/quark/meta-clanton_v1.0.1/poky/bitbake/lib/bb/process.py", line 65, in __init__
              ERROR:     subprocess.Popen.__init__(self, *args, **options)
              ERROR:
              ERROR:   File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
              ERROR:     errread, errwrite)
              ERROR:
              ERROR:   File "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child
              ERROR:     raise child_exception
              ERROR:
              ERROR: The code that was being executed was:
              ERROR:      0018:            bb.note("Configuration changed, recompile will be forced")
              ERROR:      0019:            bb.build.write_taint('do_compile', d)
              ERROR:      0020:
              ERROR:      0021:
              ERROR:  *** 0022:do_menuconfig(d)
              ERROR:      0023:
              ERROR: [From file: 'do_menuconfig', lineno: 22, function: <module>]
              ERROR:      0004:        mtime = os.path.getmtime(".config")
              ERROR:      0005:    except OSError:
              ERROR:      0006:        mtime = 0
              ERROR:      0007:
              ERROR:  *** 0008:    oe_terminal("/bin/bash -c \"make menuconfig; if [ $? -ne 0 ]; then echo 'Command failed.'; printf 'Press any key to continue... '; read r; fi\"", 'linux-yocto-clanton Configuration', d)
              ERROR:      0009:
              ERROR:      0010:    # FIXME this check can be removed when the minimum bitbake version has been bumped
              ERROR:      0011:    if hasattr(bb.build, 'write_taint'):
              ERROR:      0012:        try:
              ERROR: [From file: 'do_menuconfig', lineno: 8, function: do_menuconfig]
              ERROR:      0051:        except oe.terminal.ExecutionError as exc:
              ERROR:      0052:            bb.fatal('Unable to spawn terminal %s: %s' % (terminal, exc))
              ERROR:      0053:
              ERROR:      0054:    try:
              ERROR:  *** 0055:        oe.terminal.spawn_preferred(command, title, None, d)
              ERROR:      0056:    except oe.terminal.NoSupportedTerminals:
              ERROR:      0057:        bb.fatal('No valid terminal found, unable to open devshell')
              ERROR:      0058:    except oe.terminal.ExecutionError as exc:
              ERROR:      0059:        bb.fatal('Unable to spawn terminal %s: %s' % (terminal, exc))
              ERROR: [From file: 'terminal.bbclass', lineno: 55, function: oe_terminal]
              ERROR: Function failed: do_menuconfig
              ERROR: Logfile of failure stored in: /TanChonggang/quark/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux-uclibc/linux-yocto-clanton/3.8-r0/temp/log.do_menuconfig.4939
              ERROR: Task 7 (/TanChonggang/quark/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb, do_menuconfig) failed with exit code '1'
              NOTE: Tasks Summary: Attempted 219 tasks of which 218 didn't need to be rerun and 1 failed.

              Summary: 1 task failed:
                /TanChonggang/quark/meta-clanton_v1.0.1/meta-clanton-bsp/recipes-kernel/linux/linux-yocto-clanton_3.8.bb, do_menuconfig
              Summary: There were 58 ERROR messages shown, returning a non-zero exit code.
              [cstor@cstor yocto_build]$

               

              If anyone can help me?

               

              Thanks