From: Denys Dmytriyenko <denis@denix.org>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: yocto@yoctoproject.org
Subject: Re: BBB doesn't boot
Date: Tue, 15 Apr 2014 13:16:01 -0400 [thread overview]
Message-ID: <20140415171601.GD11339@denix.org> (raw)
In-Reply-To: <16254891.OyPbf7clBT@peggleto-mobl5.ger.corp.intel.com>
On Tue, Apr 15, 2014 at 05:36:10PM +0100, Paul Eggleton wrote:
> On Tuesday 15 April 2014 12:26:39 Denys Dmytriyenko wrote:
> > On Tue, Apr 15, 2014 at 03:49:42PM +0100, Paul Eggleton wrote:
> > > On Tuesday 15 April 2014 11:52:49 Stanacar, StefanX wrote:
> > > > On Tue, 2014-04-15 at 09:03 +0000, Stanacar, StefanX wrote:
> > > > > On Tue, 2014-04-15 at 01:17 -0400, Denys Dmytriyenko wrote:
> > > > > > On Tue, Apr 15, 2014 at 01:07:28AM -0400, Denys Dmytriyenko wrote:
> > > > > > > On Tue, Apr 15, 2014 at 05:44:04AM +0100, Richard Purdie wrote:
> > > > > > > > On Mon, 2014-04-14 at 21:38 -0400, Denys Dmytriyenko wrote:
> > > > > > > > > On Tue, Apr 15, 2014 at 01:20:03AM +0100, Richard Purdie
> wrote:
> > > > > > > > > > On Mon, 2014-04-14 at 18:44 -0400, Denys Dmytriyenko wrote:
> > > > > > > > > > > On Mon, Apr 14, 2014 at 02:11:05PM -0600, Gary Thomas
> wrote:
> > > > > > > > > > > > Very interesting results! These are the results from
> > > > > > > > > > > > the
> > >
> > > build hosts I have:
> > > > > > > > > > > > Fedora 13 (i686) - fails
> > > > > > > > > > > > Fedora 17 (i686) - fails
> > > > > > > > > > > > Ubuntu 12.04 (x86_64) - boots
> > > > > > > > > > >
> > > > > > > > > > > Interesting indeed. I have no idea what's so special about
> > > > > > > > > > > Fedora host - this is the first time I hear about issues
> > > > > > > > > > > with
> > > > > > > > > > > it. I may try experimenting with different VMs once I have
> > > > > > > > > > > more time...
> > > > > > > > > >
> > > > > > > > > > I've been having a look at this. The biggest differences I
> > > > > > > > > > can
> > > > > > > > > > find
> > > > > > > > > > between working and non working builds is the path length to
> > > > > > > > > > the
> > > > > > > > > > build
> > > > > > > > > > directory for the kernel. This is from comparing vmlinux
> > > > > > > > > > files
> > > > > > > > > > from
> > > > > > > > > > working and non working builds.
> > > > > > > > > >
> > > > > > > > > > Works:
> > > > > > > > > > /home/paul/poky/build/tmp/work/beaglebone-poky-linux-gnueabi
> > > > > > > > > >
> > > > > > > > > > Doesn't Work:
> > > > > > > > > > /media/data1/build1/poky/build/tmp/work/beaglebone-poky-linu
> > > > > > > > > > x-gn
> > > > > > > > > > ueabi
> > > > > > > > > >
> > > > > > > > > > I also have been wondering if the version strings may be
> > > > > > > > > > making
> > > > > > > > > > a
> > > > > > > > > > difference.
> > > > > > > > > >
> > > > > > > > > > http://dan.rpsys.net/uImage-rp2 is a uImage from a broken
> > > > > > > > > > build
> > > > > > > > > > where I
> > > > > > > > > > truncated the path length to a "working" build path length
> > > > > > > > > > and
> > > > > > > > > > patched
> > > > > > > > > > in the same version strings:
> > > > > > > > > >
> > > > > > > > > > const char linux_banner[] =
> > > > > > > > > >
> > > > > > > > > > "Linux version 3.14.0-yocto-standard
> > > > > > > > > > (paul@ubuntu-build01) (gcc
> > > > > > > > > >
> > > > > > > > > > version 4.8.2 (GCC) ) #1 PREEMPT Mon Apr 14 16:00:52 BST
> > > > > > > > > > 2014\n";
> > > > > > > > > >
> > > > > > > > > > const char linux_proc_banner[] = "%s version %s
> > > > > > > > > > (paul@ubuntu-build01)
> > > > > > > > > > (gcc version 4.8.2 (GCC) ) %s\n";
> > > > > > > > > >
> > > > > > > > > > to init/version.c.
> > > > > > > > > >
> > > > > > > > > > I don't have hardware and would be interested to know if the
> > > > > > > > > > kernel
> > > > > > > > > > linked to above works or not. If it doesn't, it rules out
> > > > > > > > > > these
> > > > > > > > > > path and
> > > > > > > > > > string lengths, if it does work, it points to a problem
> > > > > > > > > > there.
> > > > > > > > >
> > > > > > > > > Richard,
> > > > > > > >
> > > > > > > > > Good catch! It boots:
> > > > > > > > Thanks Denys, this helps narrow down the issue. I've shared
> > > > > > > > http://dan.rpsys.net/uImage-rp3 which is the same as the last
> > > > > > > > one
> > > > > > > > but
> > > > > > > > with my changes to version.c reverted. The one should tell us if
> > > > > > > > its
> > > > > > > > the
> > > > > > > > paths or the strings.
> > > > > > >
> > > > > > > This one also boots for me:
> > > > > > >
> > > > > > > Linux version 3.14.0-yocto-standard (richard@ted) (gcc version
> > > > > > > 4.8.2
> > > > > > > (GCC) ) #2 PREEMPT Tue Apr 15 05:40:19 IST 2014> > >
> > > > > > >
> > > > > > > > I'm guessing the path problem is more likely but anything is
> > > > > > > > possible.
> > > > > > > > This is starting to look like some kind of compiler or linker
> > > > > > > > issue.
> > > > > > > > If
> > > > > > > > it is that, it would help to have more data points about what
> > > > > > > > works
> > > > > > > > and
> > > > > > > > what doesn't. With that in mind could people who have good or
> > > > > > > > bad
> > > > > > > > builds
> > > > > > > > please share the paths they built the kernels in so we can see
> > > > > > > > if we
> > > > > > > > can
> > > > > > > > spot some kind of pattern.
> > > > > >
> > > > > > BTW, my path is /OE/RAM/poky/tmp/work/beaglebone-poky-linux-gnueabi
> > > > > > and
> > > > > > it works.
> > > > >
> > > > > I can confirm:
> > > > > build dir in /home/stefans/b1 works,
> > > > >
> > > > > but /home/stefans/yocto/poky/build doesn't.
> > > >
> > > > But this works
> > > > [stefans@firebird bu]$ pwd
> > > > /home/stefans/yocto/poky/bu
> > > > [stefans@firebird bu]$ echo `pwd`| wc -c
> > > > 28
> > > >
> > > > But 29 doesn't.
> > > > So, what now?
> > >
> > > Some other things I tried with a "long" TMPDIR path (note that it's the
> > > TMPDIR path that makes the difference - in my tests I've been using
> > > /home/paul/poky/build2/much/longer/path/to/tmp). None of this helped:
> > >
> > > * kernel built with gcc 4.7.2 and binutils 2.23.2
> > > * u-boot built with gcc 4.7.2 and binutils 2.23.2
> > > * u-boot from http://downloads.angstrom-distribution.org/demo/beaglebone/
> > > * earlyprintk and CONFIG_DEBUG_LL - no additional output printed
> > >
> > > I think we're now at the point where we'd benefit from someone with better
> > > knowledge debugging the issue.
> >
> > Ok, should we expand the search area? Since this is supposed to be vanilla
> > 3.14 kernel, can we try other platforms and see if they are similarly
> > affected? I'll try pinging our kernel guys for any ideas...
>
> As far as I know it has only been observed with beaglebone (both white and
> black, if it makes a difference). FWIW, qemuarm images from the autobuilder
> boot just fine, and apparently the same is true of edgerouter (different
> architecture but also uses u-boot).
But do those other platforms use uImage or zImage?
Anyway, just for testing, I switched to zImage and it seems to boot fine for
me regarldless of the path length...
I just sent 2 patches to test this out - unfortunately booting zImage isntead
of uImage requires fiddling with U-boot variables a bit, when using 2013.07.
So I also provided a quick update patch to get U-boot 2014.01 that has zImage
enabled by default.
Those patches are not yet for merging and they are directly against Poky -
could anyone having issues with booting BBB try them? Place new u-boot.img
into first boot FAT partition and new zImage kernel image to /boot dir of the
rootfs partition. Please let me know if it works for your long paths. Thanks.
--
Denys
next prev parent reply other threads:[~2014-04-15 17:16 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-13 9:12 BBB doesn't boot Gary Thomas
2014-04-14 2:33 ` Denys Dmytriyenko
2014-04-14 10:25 ` Gary Thomas
2014-04-14 15:46 ` Denys Dmytriyenko
2014-04-14 15:51 ` Gary Thomas
2014-04-14 16:00 ` Denys Dmytriyenko
2014-04-14 16:04 ` Gary Thomas
2014-04-14 16:08 ` Denys Dmytriyenko
2014-04-14 20:11 ` Gary Thomas
2014-04-14 22:44 ` Denys Dmytriyenko
2014-04-15 0:20 ` Richard Purdie
2014-04-15 1:38 ` Denys Dmytriyenko
2014-04-15 4:44 ` Richard Purdie
2014-04-15 5:07 ` Denys Dmytriyenko
2014-04-15 5:17 ` Denys Dmytriyenko
2014-04-15 9:03 ` Stanacar, StefanX
2014-04-15 11:52 ` Stanacar, StefanX
2014-04-15 14:42 ` Gary Thomas
2014-04-15 14:49 ` Paul Eggleton
2014-04-15 15:15 ` Stoicescu, CorneliuX
2014-04-15 15:37 ` Gary Thomas
2014-04-15 16:26 ` Denys Dmytriyenko
2014-04-15 16:36 ` Paul Eggleton
2014-04-15 17:16 ` Denys Dmytriyenko [this message]
2014-04-15 17:41 ` Denys Dmytriyenko
2014-04-15 19:43 ` Denys Dmytriyenko
2014-04-15 23:07 ` Gary Thomas
2014-04-17 19:10 ` Denys Dmytriyenko
2014-04-17 21:31 ` William Mills
2014-04-17 23:25 ` Khem Raj
2014-04-18 0:13 ` Denys Dmytriyenko
2014-04-18 17:52 ` William Mills
2014-04-17 22:48 ` Gary Thomas
2014-04-17 23:17 ` Denys Dmytriyenko
2014-04-15 23:29 ` Bruce Ashfield
2014-04-15 23:36 ` Richard Purdie
2014-04-16 1:12 ` Denys Dmytriyenko
2014-04-16 1:20 ` Denys Dmytriyenko
2014-04-16 3:31 ` Khem Raj
2014-04-16 15:57 ` William Mills
2014-04-16 19:04 ` Stefan Stanacar
2014-04-16 19:30 ` William Mills
2014-04-16 10:20 ` Stanacar, StefanX
2014-04-15 17:25 ` Stanacar, StefanX
2014-04-15 14:41 ` Gary Thomas
2014-04-14 10:35 ` Stanacar, StefanX
2014-04-14 11:38 ` Stanacar, StefanX
2014-04-14 11:44 ` Gary Thomas
2014-04-14 11:51 ` Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140415171601.GD11339@denix.org \
--to=denis@denix.org \
--cc=paul.eggleton@linux.intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.