Bug 212 - [qemuarm] qemuarm image cannot boot up
Summary: [qemuarm] qemuarm image cannot boot up
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 arm
: High critical
Target Milestone: ---
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-08-16 19:58 UTC by Jiajun Xu
Modified: 2010-12-21 06:07 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments
qemuarm image not bootable (104.28 KB, image/jpeg)
2010-08-16 19:58 UTC, Jiajun Xu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiajun Xu 2010-08-16 19:58:33 UTC
Created attachment 32 [details]
qemuarm image not bootable

Testing Env:    
Hardware: qemuarm
Images from weekly build (20100812) on autobuilder,
http://autobuilder.pokylinux.org/nightly/20100812-1.
poky commit info: 69ac39b90eec55831a9b601913a089838307b200 from poky master
tree

With latest weekly build, qemuarm images can not boot up. See attachment snapshot.
Comment 1 Bruce Ashfield 2010-08-17 06:24:50 UTC
There have been precisely zero changes to the kernel in
2 weeks now. So this must have been triggered by something
else in master.
Comment 2 Kevin Tian 2010-08-17 22:23:38 UTC
one more information. Use a zImage back to Aug.11, there's no panic observed. So even when there's no recent change in kernel side, it's very likely to be related to other bits related to kernel...
Comment 3 Richard Purdie 2010-08-18 01:40:47 UTC
Whilst there have been no specific changes to the kernel itself, we have found bugs in the way the kernel configuration was being constructed and a recent upgrade to git-native could have changed the resulting kernel configuration as those bugs were fixed. One way or another we need to work out whats changed and address this.
Comment 4 Kevin Tian 2010-08-19 01:26:34 UTC
This is caused by GCC. Edwin took lots of time today to narrow down the problem. Finally we found that by changing GCC to 4.3.3 (from poky-default.inc), arm kernel then boots successfully. So this is very likely to be related with recent GCC upgrade.

Bruce, do you know whether WR arm kernel can be built well with gcc 4.5?
Comment 5 Edwin Zhai 2010-08-19 02:17:31 UTC
Seems gcc 4.5.0 has some issues with linux kernel. Pls. see 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44129
Comment 6 Bruce Ashfield 2010-08-19 06:23:52 UTC
For this question: Bruce, do you know whether WR arm kernel can be built well with gcc 4.5?

The answer is: we haven't tried. We are sticking with our 4.4 toolchain since it is known to be stable. We won't get to testing with 4.5 for a few months yet. Slightly behind the curve for stability/commercialization reasons.
Comment 7 Nitin Kamble 2010-08-19 14:47:41 UTC
Pushed a fix for gcc on arm in the master:
http://git.pokylinux.org/cgit.cgi/poky/commit/?id=41a364f59f70f3c643924eff67ca63ab667b63ae

Zedd reported he also could fix the issue by up-rev-ing kernel. So now there are 2 fixes for 1 issue :)
Comment 8 Edwin Zhai 2010-08-19 23:07:00 UTC
(In reply to comment #7)
> Pushed a fix for gcc on arm in the master:
> http://git.pokylinux.org/cgit.cgi/poky/commit/?id=41a364f59f70f3c643924eff67ca63ab667b63ae
> 

Nitin,
It doesn't help, kernel panic still there. I try building from scratch and pulling your commit on old tree, both remain same panic.
Comment 9 Bruce Ashfield 2010-08-20 06:43:47 UTC
2.6.34.4 should fix this, I built and booted the sato
image for qemuarm yesterday with that config.

Changes are out for review for this.
Comment 10 Nitin Kamble 2010-08-20 08:55:22 UTC
(In reply to comment #7)
Edwin,
   Thanks for the information. Then this issue is nothing to the gcc bugzilla you pointed in comment #5.
Regards,
Nitin
Comment 11 Edwin Zhai 2010-08-23 17:31:58 UTC
(In reply to comment #9)
> 2.6.34.4 should fix this, I built and booted the sato
> image for qemuarm yesterday with that config.
> 
> Changes are out for review for this.

Bruce,
Thanks,
Could you elaborate on the root cause and which commits fix it? And when the fix in poky?
Comment 12 Kevin Tian 2010-08-23 18:10:22 UTC
(In reply to comment #11)
> (In reply to comment #9)
> > 2.6.34.4 should fix this, I built and booted the sato
> > image for qemuarm yesterday with that config.
> > 
> > Changes are out for review for this.
> Bruce,
> Thanks,
> Could you elaborate on the root cause and which commits fix it? And when the
> fix in poky?

Though I don't know the reason, now the fix is in poky/master (a33579dc, Aug 19). :-)
Comment 13 Bruce Ashfield 2010-08-23 21:10:42 UTC
I never did bisect to the commit which fixes the problem. I intended to
debug using the latest 2.6.34 kernel and found it fixed. So due to time
and needing to get other issues fixed, I moved on. I have plans for a better
bisection in the future.
Comment 14 Jiajun Xu 2010-09-07 22:07:40 UTC
cc Xianchao, who is responsible for qemuarm testing.

Is the bug fixed in M3 or not?
Comment 15 Jiajun Xu 2010-09-10 09:36:25 UTC
Mark the bug as VERIFIED FIXED, since the kernel is latest one now, 2.6.34.6, and we are using another bug, bug 299, to track qemuarm not bootable issue now.