barebox state w/ qemu
Wes Chow
wes.chow at gmail.com
Fri Jul 12 15:35:00 PDT 2024
> 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
More information about the barebox
mailing list