<?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>5150</bug_id>
          
          <creation_ts>2013-09-09 21:15:55 +0000</creation_ts>
          <short_desc>In 3.10.x linux kernel, uImage can&apos;t be compiled by default.</short_desc>
          <delta_ts>2014-09-24 10:40: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>BSPs</product>
          <component>bsps-meta-yocto</component>
          <version>1.5</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>sjolley.yp.pm</cc>
          
          <qa_contact name="Lucian Musat">georgex.l.musat</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36441</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2013-09-09 21:15:55 +0000</bug_when>
    <thetext>In this commit [1] the following is mentioned:

In 3.10.x linux kernel, uImage can&apos;t be compiled by default. But zImage has been supported by the latest u-boot, so use zImage as the default kernel image file. In u-boot command, use &quot;bootz&quot;, instead of &quot;bootm&quot;, to boot the kernel.

Why?

I built a uImage for 3.10.6.[2] 

What exactly is the problem?

Note I don&apos;t say that it will work without patches, but it should build.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6727d1d3807fcf713cbe8bb696e0c27a56166a78

[2] http://osdir.com/ml/beagleboard/2013-09/msg00101.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36443</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2013-09-09 21:45:56 +0000</bug_when>
    <thetext>I just tried to build a mainline 3.10.11 uImage:

 Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  GZIP    arch/arm/boot/compressed/piggy.gzip
  CC      arch/arm/boot/compressed/misc.o
  CC      arch/arm/boot/compressed/decompress.o
  CC      arch/arm/boot/compressed/string.o
  SHIPPED arch/arm/boot/compressed/hyp-stub.S
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  SHIPPED arch/arm/boot/compressed/ashldi3.S
  AS      arch/arm/boot/compressed/hyp-stub.o
  AS      arch/arm/boot/compressed/lib1funcs.o
  AS      arch/arm/boot/compressed/ashldi3.o
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-3.10.11-stable-student
Created:      Mon Sep  9 21:44:34 2013
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4009904 Bytes = 3915.92 kB = 3.82 MB
Load Address: 80008000
Entry Point:  80008000</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36444</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2013-09-09 22:00:24 +0000</bug_when>
    <thetext>with some minor configurations it also runs:

root@generic-armv7a:~# uname -a
Linux generic-armv7a 3.10.11-stable-student #2 SMP Tue Sep 10 00:56:38 EEST 2013 armv7l GNU/Linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36458</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-09-10 07:47:13 +0000</bug_when>
    <thetext>uImage requires a LOADDADDR to be set in the most recent kernels, something
which is not currently set in machine configs and passed to the yocto
kernel build by default.

Note: we didn&apos;t say there&apos;s a problem with the uImage, but given that
zImage works fine, doesn&apos;t require us to encode the load address into
the machine configuration .. there&apos;s not reason to force ourselves to
use it.

Other BSP layers are obviously still free to build uImage, we just decided
to go with zImage for this reference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36463</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2013-09-10 08:40:18 +0000</bug_when>
    <thetext>Yes something like:

UBOOT_ENTRYPOINT = &quot;0x80008000&quot;
UBOOT_LOADADDRESS = &quot;0x80008000&quot;

KERNEL_EXTRA_ARGS += &quot;LOADADDR=${UBOOT_ENTRYPOINT}&quot;

I believe the whole reason behind uImage is just that it seems more robust against download errors compared to zImage due to chechsums and stuff in the u-boot header.

But I understood you decided to use zImage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36491</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-09-10 14:47:31 +0000</bug_when>
    <thetext>On second thought, I&apos;ll re-open this bugzilla as a documentation item. Since we should make sure that the load and entry point details are captured.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44662</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-07-24 14:59:14 +0000</bug_when>
    <thetext>So we no longer support the beagleboard in meta-yocto-bsp; I&apos;ve checked the beaglebone configuration and these values are set there already. Thus I&apos;m marking this as obsolete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45791</commentid>
    <comment_count>7</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-09-24 10:40:33 +0000</bug_when>
    <thetext>Verified on 7d80f8e9468253496a7097685aac8f468940a9c5. Beaglebone configuration present.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>