Bug 5077 - beagleboard can not boot up with 1.5_M4.rc2 image
Summary: beagleboard can not boot up with 1.5_M4.rc2 image
Status: VERIFIED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 1.5
Hardware: Beagleboard arm
: High major
Target Milestone: 1.5 M5
Assignee: Liming Wang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-08-30 05:27 UTC by Ning Zhang
Modified: 2013-10-31 16:14 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ning Zhang 2013-08-30 05:27:23 UTC
Poky: master: 5745e45b18e5099e94b4d5a73bc97dc6d4cdc91f

Steps:

1. download beagleboard core-image-sato-sdk image from http://autobuilder.yoctoproject.org/pub/releases/1.5_M4.rc2/machines/beagleboard/
2. use this image to boot up beagleboard xM, boot up failed.
It hangs at loading u-boot.bin:

Texas Instruments X-Loader 1.5.0 (Aug 28 2013 - 06:34:32)                                                              
Beagle xM
Reading boot sector
Loading u-boot.bin from mmc

This is a regression issue, 1.5M3_rc1 image worked well, its poky commit number is: 9de0ad47462c13ac4a2d73e12e92be6c1b4e0415
Comment 1 Liming Wang 2013-08-30 06:44:53 UTC
1.5_M4.rc2 upgraded u-boot version to 2013.07 (./meta/recipes-bsp/u-boot/u-boot_2013.07.bb). And this version of u-boot may be not compatible with x-loader.
It seems that u-boot 2013.7 has its own MLO file after building. Please use the MLO file in u-boot building directory to test on xM board.

Maybe we should give up x-loader from building images and replace it with MLO from u-boot.
Comment 2 Saul Wold 2013-08-30 22:04:26 UTC
I thought that we had marked 2013.07 as DEFAULT_PREFERENCE = "-1", apparently it not.

If liming suggestion does not work we have options below.

So we have 2 choices, either patch it with DEFAULT_PREFERENCE or add a PREFERRED_VERSION_u_boot ?= "v2011.06%" to the beagleboard.conf file, this is probably the preferred option.
Comment 3 Laszlo Papp 2013-08-30 22:14:25 UTC
OK
Comment 4 Otavio Salvador 2013-08-31 21:42:39 UTC
(In reply to comment #1)
> 1.5_M4.rc2 upgraded u-boot version to 2013.07
> (./meta/recipes-bsp/u-boot/u-boot_2013.07.bb). And this version of u-boot
> may be not compatible with x-loader.
> It seems that u-boot 2013.7 has its own MLO file after building. Please use
> the MLO file in u-boot building directory to test on xM board.
> 
> Maybe we should give up x-loader from building images and replace it with
> MLO from u-boot.

Does this work? If it does we could get rid of old versions.
Comment 5 Ning Zhang 2013-09-02 01:54:57 UTC
Hi all,
I tried liming's workaround. It works.
But it needs to replace 2 files. MLO and u-boot.bin

workaround step:
1. build u-boot: bitbake u-boot
2. copy tmp/work/beagleboard-poky-linux-gnueabi/u-boot/v2013.07+gitAUTOINC+62c175fbb8-r0/git/MLO to replace MLO file
3. copy tmp/work/beagleboard-poky-linux-gnueabi/u-boot/v2013.07+gitAUTOINC+62c175fbb8-r0/git/u-boot.img to replace u-boot.bin
4. Then the beagleboard could be boot up.

But since this workaround used u-boot.img replace u-boot.bin, i am not sure whether it is necessary to continue the beagleboard test with 1.5_M4.rc2 image.
Comment 6 Alexandru Georgescu 2013-09-03 09:25:54 UTC
Hey guys, 
can you update the target milestone? Currently it is set to 1.1.2.

Thanks!
Comment 7 Liming Wang 2013-09-10 06:27:45 UTC
poky commit id "3aa68fd9014a4745486a2e8ab03292b39ce11862" has resolved the issue.
We should use the MLO of latest u-boot, not x-load.
Comment 8 Stoicescu Cornel 2013-10-31 16:08:48 UTC
The final release candidate for 1.5: 1.5_M5.rc8 did manage to boot, even though it had some issues with X, network and USB. Regardless, this issue does not happen. Marking as VERIFIED.

The beagleboard status for 1.5: 1.5_M5.rc8 can be seen here: https://wiki.yoctoproject.org/wiki/WW41_-_2013-10-08_-_Full_Pass_Release_1.5_M5.rc8#Beagleboard:_core-image-sato-sdk
Comment 9 Laszlo Papp 2013-10-31 16:14:54 UTC
Thanks.