All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Rudolf Streif <rstreif@linuxfoundation.org>
Cc: meta-ti@yoctoproject.org
Subject: Re: Buidling for am335x_evm
Date: Sat, 5 Oct 2013 14:05:13 -0400	[thread overview]
Message-ID: <20131005180512.GA6227@edge> (raw)
In-Reply-To: <CA+gsK-o7xrHme-VAZvXooFEBid=hcc25dmwhc+2GcreJ0D=xVg@mail.gmail.com>

On Sat, Oct 05, 2013 at 09:46:29AM -0700, Rudolf Streif wrote:
> Hi Denys,
> 
> I guess I have to follow up on this. Everything builds now and with
> core-image-base the kernel image is installed into /boot. The fdt is not
> however.

If you are finally getting the kernel image into /boot directory, but not the 
device trees, then you probably are not using the latest enough snapshot of 
meta-ti...


> I used the Beaglebone in this case because it's a known board to
> me and I have been able to boot it successfully with my own Beaglebone BSP
> many time.
> 
> This is what I did on a preformatted SD card with partition 0 with FAT and
> partition 1 with ext4 with the images built using the meta-ti layer:
> 
>    1. sudo cp MLO-beaglebone /run/media/rudi/BEAGBOOT/MLO
>    2. sudo cp u-boot-beaglebone.img /run/media/rudi/BEAGBOOT/u-boot.img
>    3. sudo tar x -C /run/media/rudi/beagroot1/ -f
>    core-image-base-beaglebone.tar.gz
>    4. sudo tar x -C /run/media/rudi/beagroot1/ -f
>    modules--3.11+3.12-rc3-r19a+gitrAUTOINC+f7579525de9f1d6086c407a6980f4f1c1c574256-beaglebone-20131005020051.tgz
>    5. cp uImage-am335x-bone.dtb
>    /run/media/rudi/beagroot1/boot/am335x-bone.dtb
> 
> For step 5 one of course has to know that the u-boot environment expects an
> fdt with the name am335x-bone.dtb in /boot.
> 
> The u-boot bootcmd is set to
> 
> bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; run
> mmcboot;run nandboot;
> 
> findfdt finds and sets the fdtfile variable correctly to am335x-bone.dtb.
> 
> mmcboot eventually runs mmcloados which is set to:
> 
> mmcloados=run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try;
> then if run loadfdt; then bootm ${loadaddr} - ${fdtaddr}; else if test
> ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT; fi; fi;
> else bootm; fi;
> 
> That's the default. It loads the fdt correctly but it never loads the
> kernel image. There is no command that executes loaduimage which is set to:
> 
> loaduimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
> 
> 
> Now, I executed all these steps manually and loaded the fdt and the kernel
> image, etc and eventually ran bootm. u-boots loads and decompresses the
> kernel and then it stops at "Starting kernel..." Probably a device tree
> issue.
> 
> 
> There are two issues:
> 
>    1. u-boot environment does not load the kernel image. I can get around
>    that.
>    2. Device tree does not seem to match the kernel image but that's only a
>    guess at this point.
> 
> Thanks,
> Rudi


      reply	other threads:[~2013-10-05 18:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04  4:41 Buidling for am335x_evm Rudolf Streif
2013-10-04  5:33 ` Denys Dmytriyenko
2013-10-04  5:41   ` Denys Dmytriyenko
2013-10-04 17:29   ` Rudolf Streif
2013-10-04 18:23     ` Denys Dmytriyenko
2013-10-04 21:00       ` Rudolf Streif
2013-10-04 21:50         ` Denys Dmytriyenko
2013-10-05  0:32           ` Rudolf Streif
2013-10-05 16:46             ` Rudolf Streif
2013-10-05 18:05               ` Denys Dmytriyenko [this message]

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=20131005180512.GA6227@edge \
    --to=denys@ti.com \
    --cc=meta-ti@yoctoproject.org \
    --cc=rstreif@linuxfoundation.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.