All of lore.kernel.org
 help / color / mirror / Atom feed
From: yoc.dev@whitetree.xyz
To: meta-ti@lists.yoctoproject.org
Subject: Re: meta-ti setup suggestions for beaglebone (SoC AM335x)
Date: Thu, 07 May 2020 02:50:01 -0700	[thread overview]
Message-ID: <3193.1588845001912519601@lists.yoctoproject.org> (raw)
In-Reply-To: <BfLY.1588763283272971866.HOsc@lists.yoctoproject.org>

[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]

Hi Luca,

In the meta-ti repository this commit 7646efc16a2b0aeafb6790a7d18b8fa2ca4547ad added a wks script which by default creates an SD card image with 3 partitions.

In the TI uboot code you will see that when booting from the MMC uboot expects there to be two partitions not three, hence your error.

include/configs/am335x_evm.h

lines 53 - 57

#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
"bootcmd_" #devtypel #instance "=" \
"setenv mmcdev " #instance"; "\
"setenv bootpart " #instance":2 ; "\
"run mmcboot\0"

To fix this you will want to include the following line in your local.conf (or custom bsp layer):

WKS_FILE ?= "sdimage-bootpart.wks"

This will create a wic image which only has two partitions and you will be able to boot from the MMC successfully. For reference the sdimage-bootpart.wks is part of poky.

To be clear I had this working using the meta-ti layer - with the change above and by setting the MACHINE variable to beaglebone.

Hope this helps!

Charlie

[-- Attachment #2: Type: text/html, Size: 1208 bytes --]

  reply	other threads:[~2020-05-07  9:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06 11:08 meta-ti setup suggestions for beaglebone (SoC AM335x) Luca
2020-05-07  9:50 ` yoc.dev [this message]
2020-05-07 10:17   ` yoc.dev
2020-05-07 18:59     ` Luca
2020-05-09  2:32       ` [meta-ti] " Denys Dmytriyenko
2020-05-11 14:48         ` Luca

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=3193.1588845001912519601@lists.yoctoproject.org \
    --to=yoc.dev@whitetree.xyz \
    --cc=meta-ti@lists.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.