mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Hans-Ulrich Schlieben <hu.schlieben@codewrights.de>,
	Enrico Joerns <ejo@pengutronix.de>
Cc: "yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>,
	"barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: [yocto] #yocto bootchooser: Cannot get state 'state'
Date: Mon, 20 Jan 2020 16:31:39 +0100	[thread overview]
Message-ID: <1c275d4d-cf23-caf5-072e-2517080950c1@pengutronix.de> (raw)
In-Reply-To: <AM6PR03MB54939235100D4D6E455AF4C1FE360@AM6PR03MB5493.eurprd03.prod.outlook.com>

Hello,

On 1/16/20 4:13 PM, Hans-Ulrich Schlieben wrote:
> Hi Enrico,
> 
> thank you for your help and for telling me about fdtdump. Works great.
> I could not find any references to state in the device tree.
> There where no references to state and bootchooser in the devicetree. 
> The only references to barebox are two addresses inside the nand:
>         gpmi-nand@00112000 {
> ...
>             partition@0 {
>                 label = "barebox";
>                 reg = <0x00000000 0x00400000>;
>             };
>             partition@1 {
>                 label = "barebox-environment";
>                 reg = <0x00400000 0x00100000>;
>             };
> ...
> And there is a eeprom entry:
>             i2c@021a8000 {
> ...
>                 eeprom@50 {
>                     compatible = "atmel,24c32";
>                     reg = <0x00000050>;
>                 };
> Where to look for state in the devicetree?

As mentioned in the other mail, it's in the barebox device tree
and on Linux boot fixed up into the Linux device tree.

> Anyhow I compiled a zeus image using the old barebox version 2017.12.0 and bootchooser works again with zeus.
> Interesting is that ubi fails too like in thud. So it seems as long as ubi fails state could be used or the other way around.

I don't think they are related.

It would be best if you can try to reproduce this issue with upstream barebox.
To do so without yocto:

  git clone https://git.pengutronix.de/git/barebox
  cd barebox
  cp $your_barebox_config_in_yocto .config
  make -j$(nproc) CROSS_COMPILE=/path/to/your/yocto/toolchain/bin/arm-$your_vendor-linux-gnueabihf- ARCH=arm

under images/ you will have the barebox images. You can get that onto your
device using a SD-Card, imx-usb-loader, tftp ... etc.

If you want to do it in Yocto, there are meta-ptx and meta-barebox that have
more recent barebox versions.

Cheers
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-01-20 15:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <r276.1579090214262888471.6UJY@lists.yoctoproject.org>
2020-01-15 13:02 ` Enrico Joerns
2020-01-15 13:26   ` Hans-Ulrich Schlieben
2020-01-15 13:38     ` Ahmad Fatoum
2020-01-15 13:39     ` Ahmad Fatoum
2020-01-15 14:25       ` Hans-Ulrich Schlieben
2020-01-15 14:36         ` Ahmad Fatoum
2020-01-15 14:47           ` Enrico Joerns
2020-01-16 15:13             ` Hans-Ulrich Schlieben
2020-01-20 15:31               ` Ahmad Fatoum [this message]
2020-01-21 18:28                 ` Hans-Ulrich Schlieben
2020-01-21 20:18                   ` Ahmad Fatoum
2020-01-22 17:59                   ` Robert Berger@yocto.user
2020-01-23 15:30                     ` Hans-Ulrich Schlieben
2020-01-23 15:36                       ` Ahmad Fatoum
2020-01-23 16:11                         ` Hans-Ulrich Schlieben
2020-01-23 16:17                           ` Ahmad Fatoum
2020-01-23 16:31                             ` Hans-Ulrich Schlieben
2020-01-16 15:09           ` Hans-Ulrich Schlieben
2020-01-20 15:23             ` Ahmad Fatoum
2020-01-21 17:51               ` Hans-Ulrich Schlieben
2020-01-21 20:21                 ` Ahmad Fatoum
2020-01-23 15:37                   ` Hans-Ulrich Schlieben

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=1c275d4d-cf23-caf5-072e-2517080950c1@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=ejo@pengutronix.de \
    --cc=hu.schlieben@codewrights.de \
    --cc=yocto@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox