All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stanacar, StefanX" <stefanx.stanacar@intel.com>
To: "denis@denix.org" <denis@denix.org>
Cc: "paul.eggleton@linux.intel.com" <paul.eggleton@linux.intel.com>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: BBB doesn't boot
Date: Wed, 16 Apr 2014 10:20:36 +0000	[thread overview]
Message-ID: <1397643667.23327.5.camel@firebird.rb.intel.com> (raw)
In-Reply-To: <20140416012043.GI11339@denix.org>




On Tue, 2014-04-15 at 21:20 -0400, Denys Dmytriyenko wrote:
> On Tue, Apr 15, 2014 at 09:12:30PM -0400, Denys Dmytriyenko wrote:
> > On Wed, Apr 16, 2014 at 12:36:58AM +0100, Richard Purdie wrote:
> > > On Tue, 2014-04-15 at 15:43 -0400, Denys Dmytriyenko wrote:
> > > > I don't yet know what is going on, but building in the same directory with 
> > > > sources (B = S) makes it work regarless of the path length:
> > > > 
> > > > /OE/RAM/poky-111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111/22222222222222222222222222222222222222222222222222222222222222222222/3333333333333333333333333333333333333333333333333333/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14+gitAUTOINC+928d7b2dda_0143c6ebb4-r0/linux
> > > > 
> > > > So, I just commented out setting kernel-specific B in linux-yocto.inc and any 
> > > > kernel now boots with long path:
> > > > 
> > > > #B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build"
> > > > 
> > > > I'm copying Richard and Bruce directly to see if they may have a quick insight 
> > > > and/or accept it as a workaround for the release. I'll keep digging further, 
> > > > but if anyone cares to verify the above workaround works for them, I would 
> > > > appreciate. Thanks!
> > > 
> > > I'm travelling and don't have hardware so I'm limited in what I can look
> > > at right now. I suspect this workaround "works" because it makes the
> > > "beaglebone-standard-build" extra characters on the path. I have a
> > > feeling your -1111111 test above may have reused sstate or something
> > > like that and given misleading results. I'd be interested in the vmlinux
> > > file from the build above to see if the poky-111111 pathnames are in
> > > there (they get stripped out when you create the zImage).
> > 
> > Nope, I was fooled by sstate once, so this time I tested with cleansstate and 
> > compared timestamps of the kernel when it boots - it is definitely the new 
> > one. And to make sure 'beaglebone-standard-build' extra suffix doesn't affect 
> > it, I increased the path length even further - that extra level with 333 is 
> > there to over-compensate, as it was failing before even with just 111 and 222 
> > levels only... Looks like Gary was also able to verify it.
> > 
> > But, you are right about vmlinux - it doesn't have those paths in there any 
> > more! I've seen them there when building with B != S, but they are gone when 
> > building with B = S. Wondering why. You can check it for yourself:
> > 
> > http://arago-project.org/files/short-term/misc/vmlinux-3.14.0-yocto-standard
> 
> And, as a follow up, all those long paths in vmlinux when built with B != S 
> point to sources. Here are few examples:
> 
> B != S strings:
> 
> /OE/RAM/poky/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14+gitAUTOINC+928d7b2dda_0143c6ebb4-r0/linux/init/main.c
> earlycon
> 4Malformed early option '%s'
> 3Starting init: %s exists but couldn't execute it (error %d)
> ...
> 6Trying to unpack rootfs image as initramfs...
> /OE/RAM/poky/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14+gitAUTOINC+928d7b2dda_0143c6ebb4-r0/linux/init/initramfs.c
> 6rootfs image is not initramfs (%s); looks like an initrd
> TRAILER!!!
> ...
> %lu.%02lu BogoMIPS (lpj=%lu)
> /OE/RAM/poky/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14+gitAUTOINC+928d7b2dda_0143c6ebb4-r0/linux/arch/arm/vfp/vfpmodule.c
> 6VFP support v0.3: 
> 
> 
> B = S same strings:
> 
> init/main.c
> earlycon
> 4Malformed early option '%s'
> 3Starting init: %s exists but couldn't execute it (error %d)
> ...
> 6Trying to unpack rootfs image as initramfs...
> init/initramfs.c
> 6rootfs image is not initramfs (%s); looks like an initrd
> TRAILER!!!
> ...
> %lu.%02lu BogoMIPS (lpj=%lu)
> arch/arm/vfp/vfpmodule.c
> 6VFP support v0.3: 
> 
> 
> So, that explains why B = S works regardless of the location, as it doesn't 
> embed full path to source files...
> 


But qemux86-64 or genericx86-64 or qemuarm kernel has the same strings,
and it boots just fine:

$ strings
yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/work/qemux86_64-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux-qemux86_64-standard-build/vmlinux | grep -A 2 -B 2 -E "init/main.c"
4Malformed early option '%s'
3Starting init: %s exists but couldn't execute it (error %d)
/home/stefans/yocto-autobuilder/yocto-slave/nightly-x86-64/build/build/tmp/work/qemux86_64-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/init/main.c
4Parameter %s is obsolete, ignored
Interrupts were enabled *very* early, fixing it

qemuarm:
$ strings
yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/3.14+gitAUTOINC+928d7b2dda_c966987f88-r0/linux-qemuarm-standard-build/vmlinux | grep -A 2 -B 2 -E "init/main.c"
tab_
__ks
/home/stefans/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/3.14+gitAUTOINC+928d7b2dda_c966987f88-r0/linux/init/main.c
earlycon
4Malformed early option '%s'


Cheers,
Stefan


> -- 
> Denys


  parent reply	other threads:[~2014-04-16 10:20 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
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 [this message]
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=1397643667.23327.5.camel@firebird.rb.intel.com \
    --to=stefanx.stanacar@intel.com \
    --cc=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.