Beagle RC builds fails at u-boot/kernel boundary

Bug #803142 reported by Zach Pfeffer
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
High
John Stultz
Linaro Linux
Invalid
Undecided
Unassigned
Linaro U-Boot
Fix Released
Undecided
Unassigned

Bug Description

Android Generic Beagle
https://android-build.linaro.org/builds/~patrik-ryd/dev1106genericb/

fails to boot the kernel. It hangs here:

$cat minicom_beagle.txt

Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2011.06-rc3-00021-gb80e315 (Jun 28 2011 - 13:13:37)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Beagle Rev C4
timed out in wait_for_pin: I2C_STAT=0
I2C read: I/O error
Unrecognized expansion board: 0
Die ID #716400240000000004039f220201b020
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt

** Unable to read "uEnv.txt" from mmc 0:1 **
reading uImage

3494652 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name: Linux-2.6.38.7-g5b2e099
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3494588 Bytes = 3.3 MiB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

and

here

$cat minicom_beagle_xm.txt

Texas Instruments X-Loader 1.4.4ss (Mar 8 2011 - 08:51:11)
Beagle xM
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2011.06-rc3-00021-gb80e315 (Jun 28 2011 - 13:13:37)

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 #4bac00029ff800000160a7450701c00a
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt

** Unable to read "uEnv.txt" from mmc 0:1 **
reading uImage

3494652 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 82000000 ...
   Image Name: Linux-2.6.38.7-g5b2e099
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3494588 Bytes = 3.3 MiB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Note: this is probably in the kernel, but these boundary conditions are always tricky.

summary: - Beagle RC builds fail to get our of u-boot
+ Beagle RC builds fails at u-boot/kernel boundary
Revision history for this message
Loïc Minier (lool) wrote :

Not sure why this would be a linaro-image-tools issue; moving to linux-linaro

"Uncompressing Linux..." is already within the kernel (uncompressor); I guess next step is enabling earlyprintk in the config and on the kernel cmdline.

affects: linaro-image-tools → linux-linaro
Revision history for this message
John Stultz (jstultz) wrote :

Seems to be a uboot issue. When replacing the uboot.bin from a working image I have, I get:

Texas Instruments X-Loader 1.4.4ss (Mar 8 2011 - 08:51:11)
Beagle xM
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2010.06-rc1-00049-ga306f53 (Oct 23 2010 - 17:43:17)

OMAP34xx/35xx-GP ES1.0, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 256 MiB
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
Beagle xM Rev A
Die ID #1fd600001bf00000015739ea07031025
Hit any key to stop autoboot: 0
OMAP3 beagleboard.org # boot
mmc1 is available
reading boot.scr

389 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
reading uImage

3470616 bytes read
reading uInitrd

171235 bytes read
## Booting kernel from Legacy Image at 80000000 ...
   Image Name: Linux-2.6.38.7-00521-g5b2e099
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3470552 Bytes = 3.3 MiB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
   Image Name: Android Ramdisk Image
   Image Type: ARM Linux RAMDisk Image (gzip compressed)
   Data Size: 171171 Bytes = 167.2 KiB
   Load Address: 00000000
   Entry Point: 00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 2.6.38.7-00521-g5b2e099 (<email address hidden>
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000i ne: OMAP3 Beagle Board
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.0 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa6
[ 0.000000] Kernel command line: console=tty0 console=ttyO2,115200n8 rootwai2
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
... and on

Revision history for this message
Deepak Saxena (dsaxena-linaro) wrote :

Do you get anything with earlyprintk on the newer u-boot?

Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Cool, so we just have to build and ship:

U-Boot 2010.06-rc1-00049-ga306f53 (Oct 23 2010 - 17:43:17)

Revision history for this message
John Stultz (jstultz) wrote :

So starting fresh from the linaro android images for beagle:
https://android-build.linaro.org/builds/~patrik-ryd/dev1106genericb/

I replaced the kernel image with the same kernel sha1, but added EARLY_PRINTK to the config and built it.

This provided quite a bit more data about where things go wrong in the kernel. We got all the way to the omap_uart initialization and then I started to get garbage on the serial line. There was more output, but it wasn't readable. Also the screen connected via hdmi bliped out of suspend, so I suspect we got as far as the video initialization.

Revision history for this message
John Stultz (jstultz) wrote :

Further, I grabbed the hwpack_linaro-omap3_20110526-1_armel_supported.tar.gz tarball, then extracted the u-boot-linaro-omap3-beagle_2011.04.2-0ubuntu1_armel.deb file and copied over the u-boot.bin file onto my mmc card.

That also booted to a shell without issue:
The version there is:
U-Boot 2011.03 (Apr 20 2011 - 07:19:53)

Revision history for this message
Alexander Sack (asac) wrote :

a workaround u-boot is available here: http://people.linaro.org/~asac/android/11.06/beagle/u-boot.bin ... thats a clean 2011.03 u-boot upstream build with omap3_beagle_config

Revision history for this message
Alexander Sack (asac) wrote :

fixed in u-boot-linaro-stable 9736a9332fcfe5fef1361a6d91740e160ad04bd5

Changed in u-boot-linaro:
status: New → Fix Committed
Changed in linux-linaro:
status: New → Invalid
Revision history for this message
Alexander Sack (asac) wrote :

blocks beagle 11.06 release of linaro-android.

Changed in linaro-android:
importance: Undecided → High
milestone: none → 11.06
status: New → In Progress
Revision history for this message
Alexander Sack (asac) wrote :

committed to linaro-android-11.06-release.2 manifests branch.

commit de57ce41794df03af1a9167a8e79450cc2b9c4d2
Author: Alexander Sack <email address hidden>
Date: Wed Jun 29 02:10:41 2011 +0200

    pick up fix for 'Beagle RC builds fails at u-boot/kernel boundary' from u-boot-linaro-stable - lp:803142

Changed in linaro-android:
status: In Progress → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :
Changed in linaro-android:
status: Fix Committed → Fix Released
Zach Pfeffer (pfefferz)
Changed in linaro-android:
assignee: nobody → John Stultz (jstultz)
John Rigby (jcrigby)
Changed in u-boot-linaro:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.