<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3986</bug_id>
          
          <creation_ts>2013-03-05 15:44:40 +0000</creation_ts>
          <short_desc>[Test Case 312] User could use yocto-kernel to set kernel config</short_desc>
          <delta_ts>2013-03-12 16:20:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>dvhart</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30454</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-05 15:44:40 +0000</bug_when>
    <thetext>STATUS: FAILED
BUILD: danny:98292d1ef1cb44cf96f0a28fbca6439eda55ce1b
ENVIRONMENT: user-preference (any supported environment)
STEPS TO REPRODUCE: 1. Follow the case &quot;yocto-kernel add patch&quot; apply a patch to your kernel
2. Follow the instruments in https://wiki.yoctoproject.org/wiki/Transcript:_Using_the_Yocto_BSP_tools_to_manage_kernel_patches_and_config_items, to enable some kernel options for your kernel.
3. For example, run &quot;yocto-kernel config add myqemuarm 
CONFIG_MISC_DEVICES=y&quot; and &quot;yocto-kernel config add myqemuarm 
CONFIG_YOCTO_TESTMOD=y&quot; will make CONFIG_MISC_DEVICES and 
CONFIG_YOCTO_TESTMOD set for kernel
4. Rebuild the kernel and boot from the kernel, check if there is a line with &apos;Kilroy was here! __m_(OuO)_m__&apos; in command dmesg

EXPECTED OUTCOME: User could use yocto-kernel to set kernel config .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30455</commentid>
    <comment_count>1</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-05 15:45:53 +0000</bug_when>
    <thetext>ACTUAL OUTCOME:&apos; dmesg | grep &quot;was here&quot; &apos; gives no output</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30492</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-03-07 14:17:50 +0000</bug_when>
    <thetext>Is this the same problem as seen here?:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=2589

and here?:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3524</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30494</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-03-07 15:39:03 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30500</commentid>
    <comment_count>4</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-07 15:52:18 +0000</bug_when>
    <thetext>There is no fail during the build.

When the image bots up, after issuing the command `dmesg | grep &quot;was here&quot;`, there is no output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30502</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-07 15:54:24 +0000</bug_when>
    <thetext>I used https://wiki.yoctoproject.org/wiki/images/c/c9/Yocto-testmod.patch to patch the kernel, not copy-paste from the wiki page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30547</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-03-07 21:11:12 +0000</bug_when>
    <thetext>I&apos;m not seeing any problem here.  Did you perhaps forget to apply the patch?  (I don&apos;t see that step in the STEPS to reproduce below).

I did the below using myqemuarm BSP and saw the module output in the dmesg.

[trz@empanada build]$ yocto-kernel patch add myqemuarm /home/trz/bsp-tools-tests/test/d\
anny/yocto-testmod.patch
Added patches:
      yocto-testmod.patch
[trz@empanada build]$ yocto-kernel config add myqemuarm CONFIG_MISC_DEVICES=y
Added items:
      CONFIG_MISC_DEVICES=y
[trz@empanada build]$ yocto-kernel config add myqemuarm CONFIG_YOCTO_TESTMOD=y
Added items:
      CONFIG_YOCTO_TESTMOD=y
[trz@empanada build]$ yocto-kernel config list myqemuarm
The current set of machine-specific kernel config items for myqemuarm is:
    1) CONFIG_MISC_DEVICES=y
    2) CONFIG_YOCTO_TESTMOD=y

[trz@empanada build]$ yocto-kernel patch list myqemuarm
The current set of machine-specific patches for myqemuarm is:
    1) yocto-testmod.patch
[trz@empanada build]$ bitbake core-image-sato</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30654</commentid>
    <comment_count>7</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-12 16:20:33 +0000</bug_when>
    <thetext>Even though the patch was applied before, it did not work.

I tried again with a newer danny commit and it works.

Verified on danny:955827af15f611189c66850fd077de344e1285c3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>