mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Wes Chow <wes.chow@gmail.com>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: barebox state w/ qemu
Date: Fri, 12 Jul 2024 18:35:00 -0400	[thread overview]
Message-ID: <CAGWymk3srm=hZ85_jGGPt5Xzp117YDY7Y+v+a7mk+rU2MO-0Cw@mail.gmail.com> (raw)
In-Reply-To: <CAGWymk38NhebcvNAbDUeXJ+1BRU3V+npCTYjeykca4EoHkiyYQ@mail.gmail.com>

> In the target, I'm getting an error with barebox-state:
>
>  # barebox-state -d
>  state: state failed to parse path to backend: No such device
>  unable to initialize state: No such device
>
> Do I need to configure barebox-state somehow? Perhaps the Linux kernel
> can't see the flash?

I discovered the problem.. I'm using Buildroot with the
qemu_aarch64_defconfig and I needed to add these Linux kernel config
options:

CONFIG_MTD=y
CONFIG_MTD_CFI=y
CONFIG_MTD_OF_PARTS=y
CONFIG_MTD_CFI=y
CONFIG_MTD_CFI_INTELEXT=y
CONFIG_MTD_CFI_UTIL=y
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_OF=y

I can successfully run barebox-state on the target, dump, and set
state variables. I'll submit a patch to Buildroot.

Wes



      reply	other threads:[~2024-07-12 22:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-08  2:22 Wes Chow
2024-07-08  6:49 ` Ahmad Fatoum
2024-07-09  2:13   ` Wes Chow
2024-07-09  9:16     ` Ahmad Fatoum
2024-07-11 11:47       ` Wes Chow
2024-07-12 22:35         ` Wes Chow [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='CAGWymk3srm=hZ85_jGGPt5Xzp117YDY7Y+v+a7mk+rU2MO-0Cw@mail.gmail.com' \
    --to=wes.chow@gmail.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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