<?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>1892</bug_id>
          
          <creation_ts>2012-01-11 07:40:25 +0000</creation_ts>
          <short_desc>Beagleboard doesn&apos;t boot</short_desc>
          <delta_ts>2012-04-27 00:13:47 +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-configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(1.2)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jack Mitchell">jack</reporter>
          <assigned_to name="Yang Shi">yang.shi</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>gizero</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.bsp.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>18076</commentid>
    <comment_count>0</comment_count>
      <attachid>311</attachid>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-11 07:40:25 +0000</bug_when>
    <thetext>Created attachment 311
Config fragmet

I am trying to boot a Beagleboard-XM using a fairly standard yocto build. I have added a patch to enable SPI and that is all - see attached. The boot process gets as far as booting the kernel then halts, see output below:

Texas Instruments X-Loader 1.5.0 (Jan 11 2012 - 14:06:12)
Beagle xM
Reading boot sector
Loading u-boot.bin from mmc


U-Boot 2011.06 (Jan 11 2012 - 14:15:11)

OMAP3630/3730-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Beagle unknown 0x02
No EEPROM on expansion board
Die ID #0ed800229ff800000163810c15007017
Hit any key to stop autoboot:  0
SD/MMC found on device 0
reading uEnv.txt

** Unable to read &quot;uEnv.txt&quot; from mmc 0:1 **
reading uImage

3106580 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.12-yocto-standard+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3106516 Bytes = 3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18077</commentid>
    <comment_count>1</comment_count>
      <attachid>312</attachid>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-11 07:40:52 +0000</bug_when>
    <thetext>Created attachment 312
SPI patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18078</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-11 07:42:29 +0000</bug_when>
    <thetext>Liming: can you have a look at this ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18079</commentid>
    <comment_count>3</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-11 07:45:13 +0000</bug_when>
    <thetext>Extra info: using poky-git master as of 11th Jan 13:00 GMT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18104</commentid>
    <comment_count>4</comment_count>
    <who name="Liming Wang">liming.wang</who>
    <bug_when>2012-01-11 23:45:25 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created attachment 312 [details]
&gt; SPI patch
When did your booting failure happen? After applied the patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18105</commentid>
    <comment_count>5</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-12 04:10:08 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #1)
&gt; &gt; Created attachment 312 [details] [details]
&gt; &gt; SPI patch
&gt; When did your booting failure happen? After applied the patch?

Booting failed from the start. I have just built a completely fresh core-image-minimal and I receive exactly the same results. Will try wiping the sd card and starting from fresh on that too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18128</commentid>
    <comment_count>6</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-13 01:29:42 +0000</bug_when>
    <thetext>OK, I wiped the sd card, re-partioned the lot and tried booting a core-image-minimal image with exactly the same results. Is there a way I can turn off quiet boot to get some feedback on where it is falling over, or to confirm if it isn&apos;t getting any further.

Something to note, although I don&apos;t know if it matters is that kernel 3.0.14 is being built but the modules being built are 3.0.12?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18132</commentid>
    <comment_count>7</comment_count>
    <who name="Liming Wang">liming.wang</who>
    <bug_when>2012-01-13 01:43:19 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; OK, I wiped the sd card, re-partioned the lot and tried booting a
&gt; core-image-minimal image with exactly the same results. Is there a way I can
&gt; turn off quiet boot to get some feedback on where it is falling over, or to
&gt; confirm if it isn&apos;t getting any further.

Could you paste the result of &quot;printenv&quot; command in u-boot cmdline?

&gt; 
&gt; Something to note, although I don&apos;t know if it matters is that kernel 3.0.14 is
&gt; being built but the modules being built are 3.0.12?

In our beagleboard C4 board,  there is no such booting issue. We will get xM board later and have a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18134</commentid>
    <comment_count>8</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-13 01:54:53 +0000</bug_when>
    <thetext>OMAP3 beagleboard.org # printenv
baudrate=115200
bootcmd=if mmc rescan ${mmcdev}; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loaduimage; then run mmcboot;fi;fi;run nandboot;
bootdelay=10
buddy=none
console=ttyS2,115200n8
defaultdisplay=dvi
dieid#=0ed800229ff800000163810c15007017
dvimode=1024x768MR-16@60
importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
loadaddr=0x82000000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt
loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage
mmcargs=setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcdev=0
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mpurate=auto
nandargs=setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandrootfstype}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}
nandroot=/dev/mtdblock4 rw
nandrootfstype=jffs2
usbtty=cdc_acm
vram=12M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18135</commentid>
    <comment_count>9</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-13 01:56:56 +0000</bug_when>
    <thetext>Looking at this:

console=ttyS2,115200n8

should it not be:

console=ttySO2,115200n8

As mentioned here: http://www.yoctoproject.org/download/bsp/texas-instruments-arm-cortex-a8-development-board-beagleboard-0

NOTE:  As of the 2.6.37 linux-yocto kernel recipe, the Beagleboard uses the OMAP_SERIAL device (ttyO2).  If you are using an older kernel, such as the 2.6.34 linux-yocto-stable, be sure to replace ttyO2 with ttyS2 above. You should also override the machine SERIAL_CONSOLE in your local.conf in order to setup the getty on the serial line as follows:

         SERIAL_CONSOLE_beagleboard = &quot;115200 ttyS2&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18136</commentid>
    <comment_count>10</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-13 02:07:10 +0000</bug_when>
    <thetext>I take that back, the environment variables are read from uImage which I guess comes from the boot.scr that I created details of which are:

setenv bootcmd &apos;mmc init; fatload mmc 0:1 0x80300000 uImage; bootm 0x80300000&apos;
setenv setenv bootargs &apos;console=ttyO2,115200n8 root=/dev/mmcblk0p2
rootwait rootfstype=ext3 rw&apos;
boot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18137</commentid>
    <comment_count>11</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-01-13 04:59:24 +0000</bug_when>
    <thetext>With a git clone of the edison branch, my beagle boots no problem. It runs the 2.6 series kernel on this branch, therefore I would imagine that it is 3.0 series kernel related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19650</commentid>
    <comment_count>12</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-03-29 23:47:43 +0000</bug_when>
    <thetext>Exactly which Beagleboard xM revision are you working with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19696</commentid>
    <comment_count>13</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-03-30 10:28:16 +0000</bug_when>
    <thetext>Hi Darren,

I can confirm that my BeagleBoard still doesn&apos;t boot with the latest git master as of today with a clean build environment.

My board is identified as a BeagleBoard xM Revision C as far as I can tell.

I have attached my latest serial boot log. Again, it gets to uncompressing the kernel, done, booting kernel and then hangs.

Regards,
Jack.

Texas Instruments X-Loader 1.5.0 (Mar 30 2012 - 10:43:11)
Beagle xM
Reading boot sector
Loading u-boot.bin from mmc


U-Boot 2011.06 (Mar 30 2012 - 10:43:18)

OMAP3630/3730-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Beagle unknown 0x02
No EEPROM on expansion board
Die ID #3f4200029ff80000016071640c00e00c
Hit any key to stop autoboot:  0
SD/MMC found on device 0
reading uEnv.txt

** Unable to read &quot;uEnv.txt&quot; from mmc 0:1 **
reading uImage

3110216 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.23-yocto-standard
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3110152 Bytes = 3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19704</commentid>
    <comment_count>14</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-30 12:51:59 +0000</bug_when>
    <thetext>Yang: We&apos;ll have to work to get access to a beagleboard. The one that
I have isn&apos;t functional anymore. The test team @ Wind River has our boards,
so we are going to need to work with them for some sort of access.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19845</commentid>
    <comment_count>15</comment_count>
    <who name="Andrea Galbusera">gizero</who>
    <bug_when>2012-04-04 05:51:28 +0000</bug_when>
    <thetext>Won&apos;t have access to my beagleboard till tomorrow, but I believe it&apos;s worth commenting here, just after I noticed this bug report. 

While beta testing yocto 1.2, I wasn&apos;t able to boot a successfully built core-image-minimal with default configuration. First I had the same effect Jack reported, but correctly setting console variable through uEnv.txt I was able to get boot messages back.

The kernel was failed while trying to get the root filesystem out of the MMC card: I compared the log with an image built out of official edison (1.1), which was booting fine, and noticed that any detection of the MMC card was missing in the the log from 1.2 beta (sorry for lack of detailed error messages here, but I&apos;m commuting now and don&apos;t have acces to my full build logs).

One more thing: the kernel built by 1.2 beta was failing to correctly identify my beagleboard as xM: it was giving a &quot;type unknown 0x02&quot;. Looking at kernel source in yocto work directory, I noticed the relevant board-omap3beagle.c was somewhat outdated in the relevant bits. 

Also tried another kernel built from recent edison 1.1.1, and this also was failing with the same result. Looks like some something odd happened between 1.1 and 1.1.1.

I&apos;ll try to augment this report as soon as I get my logs back.

BTW, I see you are missing a beagleboard xM for tests. I have one and can do some testing as time allows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20222</commentid>
    <comment_count>16</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-04-12 07:40:22 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; I take that back, the environment variables are read from uImage which I guess
&gt; comes from the boot.scr that I created details of which are:
&gt; 
&gt; setenv bootcmd &apos;mmc init; fatload mmc 0:1 0x80300000 uImage; bootm 0x80300000&apos;
&gt; setenv setenv bootargs &apos;console=ttyO2,115200n8 root=/dev/mmcblk0p2
&gt; rootwait rootfstype=ext3 rw&apos;
&gt; boot

Hi Jack,
You can try to add &quot;mmc rescan 0&quot; command in u-boot. Like below:

setenv bootcmd &apos;fatload mmc 0:1 0x80300000 uImage; bootm 0x80300000&apos; 
setenv bootargs &apos;console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 ro&apos; 
mmc rescan 0
boot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20896</commentid>
    <comment_count>17</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-04-27 00:13:47 +0000</bug_when>
    <thetext>This is actually fixed. Looks like we forgot to update the status, Denys sent a config fix that allows boot to proceed. Changing the status now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>311</attachid>
            <date>2012-01-11 07:40:25 +0000</date>
            <delta_ts>2012-01-11 07:40:25 +0000</delta_ts>
            <desc>Config fragmet</desc>
            <filename>spi.cfg</filename>
            <type>application/octet-stream</type>
            <size>179</size>
            <attacher name="Jack Mitchell">jack</attacher>
            
              <data encoding="base64">Q09ORklHX1NQST15CkNPTkZJR19TUElfTUFTVEVSPXkKQ09ORklHX1NQSV9CSVRCQU5HPW0KQ09O
RklHX1NQSV9HUElPPW0KQ09ORklHX1NQSV9PTUFQMjRYWD15CkNPTkZJR19TUElfU1BJREVWPXkK
Q09ORklHX09NQVBfTVVYPXkKQ09ORklHX09NQVBfTVVYX1dBUk5JTkdTPXkKQ09ORklHX09NQVBf
TUNCU1A9eQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>312</attachid>
            <date>2012-01-11 07:40:52 +0000</date>
            <delta_ts>2012-01-11 07:40:52 +0000</delta_ts>
            <desc>SPI patch</desc>
            <filename>spi.patch</filename>
            <type>text/plain</type>
            <size>1541</size>
            <attacher name="Jack Mitchell">jack</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2FyY2gvYXJtL21hY2gtb21hcDIvYm9hcmQtb21hcDNiZWFnbGUuYyBiL2Fy
Y2gvYXJtL21hY2gtb21hcDIvYm9hcmQtb21hcDNiZWFnbGUuYwppbmRleCAzMmY1Zjg5Li40YmRi
ZGVkIDEwMDY0NAotLS0gYS9hcmNoL2FybS9tYWNoLW9tYXAyL2JvYXJkLW9tYXAzYmVhZ2xlLmMK
KysrIGIvYXJjaC9hcm0vbWFjaC1vbWFwMi9ib2FyZC1vbWFwM2JlYWdsZS5jCkBAIC0zMCw2ICsz
MCw3IEBACiAjaW5jbHVkZSA8bGludXgvbXRkL25hbmQuaD4KICN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