<?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>1375</bug_id>
          
          <creation_ts>2011-08-17 06:23:05 +0000</creation_ts>
          <short_desc>Kernel 2.6.37 include/generated/utsrelease.h not sync with .config</short_desc>
          <delta_ts>2012-03-27 13:28:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-configuration</component>
          <version>unspecified</version>
          <rep_platform>JasperForest</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P3) Bruce to find an owner</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tomasz Gorol">gavian</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</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>15505</commentid>
    <comment_count>0</comment_count>
    <who name="Tomasz Gorol">gavian</who>
    <bug_when>2011-08-17 06:23:05 +0000</bug_when>
    <thetext>In the kernel 2.6.37 the .config file isn&apos;t synced with include/generated/utsrelease.h. It causes that modules compiled against this kernel will have kernel magic number mismatch.

content of the &apos;include/generated/utsrelease.h&apos; file:
UTS_RELEASE &quot;2.6.37.6-yocto-standard+&quot;

content of the &apos;.config&apos; file:
CONFIG_LOCALVERSION=&quot;-yocto-standard&quot;

Workaround:

After compilation run
&apos;make CC=${KERNEL_CC} LD=${KERNEL_LD} prepare&apos; in the tmp/sysrootfs/&lt;arch&gt;/kernel directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15508</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-08-17 06:56:04 +0000</bug_when>
    <thetext>.. and what&apos;s the new utsrelease.h file after you run this ?

&apos;make CC=${KERNEL_CC} LD=${KERNEL_LD} prepare&apos; in the
tmp/sysrootfs/&lt;arch&gt;/kernel directory

I&apos;m building and loading modules constantly, as are our QA tests without mismatch. What you list below, looks like the proper behaviour to me. So I must be missing something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15510</commentid>
    <comment_count>2</comment_count>
    <who name="Tomasz Gorol">gavian</who>
    <bug_when>2011-08-17 07:12:11 +0000</bug_when>
    <thetext>It corrects the utsrelease.h file.

The content of the utsrelease.h file after `make prepare` is:
#UTS_RELEASE &quot;2.6.37.6-yocto-standard&quot; (the plus sign is gone).


(In reply to comment #1)
&gt; .. and what&apos;s the new utsrelease.h file after you run this ?
&gt; 
&gt; &apos;make CC=${KERNEL_CC} LD=${KERNEL_LD} prepare&apos; in the
&gt; tmp/sysrootfs/&lt;arch&gt;/kernel directory
&gt; 
&gt; I&apos;m building and loading modules constantly, as are our QA tests without
&gt; mismatch. What you list below, looks like the proper behaviour to me. So I must
&gt; be missing something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15511</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-08-17 07:13:42 +0000</bug_when>
    <thetext>There&apos;s something else wrong then. Do you have local changes to your 
kernel source tree ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15755</commentid>
    <comment_count>4</comment_count>
    <who name="Tomasz Gorol">gavian</who>
    <bug_when>2011-08-25 03:52:21 +0000</bug_when>
    <thetext>I have made bitbake to create a krenel package from the beginning. Fetch, patch, etc. and still have the same file mismatch.

content of kernel-abiversion:
2.6.37.6-yocto-standard+

content of utsrelease.h 
#define UTS_RELEASE &quot;2.6.37.6-yocto-standard+&quot;

content of .config
CONFIG_LOCALVERSION=&quot;-yocto-standard&quot;

I don&apos;t know where is this plus sign coming from ??

(In reply to comment #3)
&gt; There&apos;s something else wrong then. Do you have local changes to your 
&gt; kernel source tree ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15757</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-08-25 08:11:41 +0000</bug_when>
    <thetext>The plus sign is added to a kernel built from git sources that have been modified if I recall correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15758</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-08-25 08:15:20 +0000</bug_when>
    <thetext>correct. it usually signifies a dirty tree, that&apos;s why I was asking about local changes.

Are there any patches applied by recipes in this case ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15763</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-08-25 11:22:45 +0000</bug_when>
    <thetext>I&apos;m seeing something different here, looking into what could be the delta.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16770</commentid>
    <comment_count>8</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-10-06 15:29:17 +0000</bug_when>
    <thetext>Bruce, can you elaborate on Comment 7? Are you seeing a problem here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16792</commentid>
    <comment_count>9</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-10-07 21:03:42 +0000</bug_when>
    <thetext>I saw a tweaked utsrelease file, meaning it didn&apos;t quite match recipe space. But I&apos;ve never seen any build or runtime issues. 

I&apos;m still working on this, but release items have taken priority for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18928</commentid>
    <comment_count>10</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-08 20:55:35 +0000</bug_when>
    <thetext>I&apos;ll look at this during M4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19481</commentid>
    <comment_count>11</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-26 20:31:55 +0000</bug_when>
    <thetext>FYI: this is nearly fixed in master. I&apos;ll close the bug when the final part of the
fix goes in.

  [OE-core] [PATCH] kernel.bbclass: touch .scmversion also in ${S}

Fixes this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19516</commentid>
    <comment_count>12</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-27 13:28:20 +0000</bug_when>
    <thetext>commit cafb94f571236603999b406dffef88306ed48cb3 in master solves this issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>