All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Dimitrov <picmaster@mail.bg>
To: Gary Thomas <gary@mlbassoc.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: [meta-fsl-arm-extra] Booting RIoTboard
Date: Thu, 23 Apr 2015 03:18:33 +0300	[thread overview]
Message-ID: <55383A59.805@mail.bg> (raw)
In-Reply-To: <553814A4.5070000@mlbassoc.com>

Hi Gary,

On 04/23/2015 12:37 AM, Gary Thomas wrote:
> I've just built an image for the i.MX6DL/RIoTboard using the latest
> master (fido).  I had to add this line to local.conf:
> MACHINE_EXTRA_RRECOMMENDS_remove_imx6dl-riotboard =
> "fsl-alsa-plugins" as the fsl-alsa-plugins won't currently build with
> Linux-4.0
>
> Now I'm trying to boot the image.  I've copied it to my SD card and
> set the switches appropriately (I found two web pages about this and
> they have conflicting information!  The answer seems to be
> SW1-SW8=On/Off/On/Off/Off/On/Off/On)

I have 2 riotboards both booting from sdcards, here are their
configurations:
- slot J6 (USDHC2), SW1-8 = On/Off/On/Off/Off/On/On/Off
- slot J7 (USDHC3), SW1-8 = On/Off/On/Off/Off/On/Off/On

> I get the U-Boot prompt from the image I built (it has today's date),
> but the SD card doesn't boot from there.  The default boot commands
> seem to be looking for boot scripts, etc, but there are none on the
> SD card, only a zImage and DTB file.
>
> Is there some documentation, perhaps in meta-fsl-arm-extra, that
> helps (and I've missed)??
>
> Any help on how to boot this board would be appreciated.

Fido uses U-Boot v2015.04. Assuming that you haven't modifed the
upstream version, v2015.04 uses extlinux boot mechanism, which requires
the following files to be available on your boot partition:

/boot/extlinux/extlinux.conf
/boot/imx6dl-riotboard.dtb
/boot/uImage

Extlinux.conf should have the following content:

default yocto
label yocto
kernel /boot/uImage
devicetree /boot/imx6dl-riotboard.dtb
append console=ttymxc1,115200 root=/dev/mmcblk0p1 rw

Technically speaking, recent versions of U-Boot for riotboard are quite
plug-and-play - as long as you have properly placed your extlinux
files, the bootloader will automatically find them on any attached
storage and boot as piece of cake (works also with rootfs on usb-disk).

If you have partitioned the sdcard with a modern version of fdisk, the
1st partition will be properly located at 1MiB offset, thus leaving
more than enough space for U-Boot.

Hope this helps. Regards,
Nikolay


  reply	other threads:[~2015-04-23  0:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-22 21:37 [meta-fsl-arm-extra] Booting RIoTboard Gary Thomas
2015-04-23  0:18 ` Nikolay Dimitrov [this message]
2015-04-23  0:22   ` Nikolay Dimitrov
2015-04-23  1:28     ` Otavio Salvador
2015-04-23 12:19       ` Daiane Angolini
2015-04-23 12:21         ` Otavio Salvador
2015-04-23 12:32           ` Nikolay Dimitrov
2015-04-23 12:44             ` Daiane Angolini
2015-04-23 12:50               ` Otavio Salvador
2015-04-23 14:43                 ` Nikolay Dimitrov
2015-04-23 14:58                   ` Otavio Salvador
2015-05-01 12:06   ` Nikolay Dimitrov
2015-05-01 12:31     ` Gary Thomas
2015-05-01 12:39       ` Nikolay Dimitrov
2015-05-01 13:04         ` Nikolay Dimitrov

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=55383A59.805@mail.bg \
    --to=picmaster@mail.bg \
    --cc=gary@mlbassoc.com \
    --cc=meta-freescale@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.