All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
To: meta-ti@yoctoproject.org
Subject: Re: BeagleBone Black , u-boot, and zImage
Date: Thu, 14 Aug 2014 22:20:30 +0200	[thread overview]
Message-ID: <2948184.BeJYLBqp38@localhost.localdomain> (raw)
In-Reply-To: <53ED175D.2090502@pseudoterminal.org>

On Thursday 14 of August 2014 22:09:01 Carlos Rafael Giani wrote:
> On 08/14/2014 10:04 PM, Denys Dmytriyenko wrote:
> > On Thu, Aug 14, 2014 at 09:53:34PM +0200, Carlos Rafael Giani wrote:
> >> Hello,
> >> 
> >> after building a rootfs for the Beaglebone Black, I see the
> >> following files in the deploy folder for the machine:
> >> 
> >> MLO
> >> u-boot.img
> >> u-boot-spl.bin
> >> zImage
> >> 
> >> as well as other symlinks with "-beaglebone" attached to their filenames.
> >> 
> >> What should I copy, the SPL bin, or the .img u-boot binary?
> >> Also, u-boot tries to load a uImage, even though a zImage was built.
> >> There is also no uEnv.txt file.
> >> Do I have to write one to be able to let u-boot load the zImage, or
> >> should it work out-of-the-box?
> > 
> > Depends on the rootfs image you are building. Most images that are based
> > on
> > core-image-base will take care of deploying necessary pieces into the
> > rootfs. But core-image-minimal is special and very bare-bone, so extra
> > manual steps are required.
> > 
> > Regardless of the rootfs image, you'd need MLO and u-boot.img to be
> > located in the first FAT partition of your SD card or eMMC flash.
> > 
> > Then, if your rootfs does not already have zImage and the necessary DTB
> > files in the /boot directory, you have to place them there (i.e.
> > core-image-minimal) and you are ready to boot. All the defaults will work
> > for out-of-the-box in this case. No uEnv.txt is necessary, unless you
> > need to do something extra special...
> 
> Oh, I just built core-image-base .
> 
> So I should use the .img and not the SPL .bin? I was wondering if the
> SPL bin is a newer binary that will eventually replace the .img one.
> 
> But when I use the .img file, it turns out that it tries to load a
> uImage, even though a zImage was built. Simply setting the bootfile env
> var to "zImage" won't work, because the u-boot script will try to boot
> with the incorrect command.

Try setting bootfile=zImage in uEnv.txt in the first partition.

> 
> I am trying to rule out that something went wrong in my build, that
> something is wrong in my setup. If I build core-image-base , the
> resulting u-boot.img should automatically load a zImage, not a uImage,
> correct?

Can you post serial output from uboot?

Your default environment should look similar to what is here:
http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/am335x_evm.h;h=a48b386477167010c8e0d206423a3bdbe611cf83;hb=524123a70761110c5cf3ccc5f52f6d4da071b959#l78



-- 

Maciej Borzęcki 
Senior Software Engineer Open-RnD Sp. z o.o. 
www.open-rnd.pl, Facebook, Twitter 
mobile: +48 telefon, fax: +48 42 657 9079 

Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub 
poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do 
których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo 
zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku 
uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie 
nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy. 

This message, including any attachments hereto, may contain privileged or 
confidential information and is sent solely for the attention and use of the 
intended addressee(s). If you are not an intended addressee, you may neither 
use this message nor copy or deliver it to anyone. In such case, you should 
immediately destroy this message and kindly notify the sender by reply email. 
Thank you.


  reply	other threads:[~2014-08-14 20:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-14 19:53 BeagleBone Black , u-boot, and zImage Carlos Rafael Giani
2014-08-14 20:04 ` Denys Dmytriyenko
2014-08-14 20:09   ` Carlos Rafael Giani
2014-08-14 20:20     ` Maciej Borzecki [this message]
2014-08-18  9:10       ` Carlos Rafael Giani
2014-08-18 10:31         ` Diego Sueiro
2014-08-18 12:28         ` Maciej Borzecki
2014-08-18 12:34           ` Diego Sueiro
2014-08-18 14:16             ` Denys Dmytriyenko
2014-08-18 14:18               ` Carlos Rafael Giani
2014-08-18 14:45               ` Maciej Borzecki
2014-08-23  3:24                 ` Denys Dmytriyenko
2014-08-23  8:36                   ` Maciej Borzecki
2014-08-14 20:20     ` Denys Dmytriyenko
2014-08-15  9:47       ` Diego Sueiro
2014-08-15 14:10         ` Denys Dmytriyenko

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=2948184.BeJYLBqp38@localhost.localdomain \
    --to=maciej.borzecki@open-rnd.pl \
    --cc=meta-ti@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.