* state: eMMC boot0-partitions backend for Linux
@ 2019-11-03 15:45 Christoph Fritz
2019-11-11 15:54 ` Ahmad Fatoum
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Fritz @ 2019-11-03 15:45 UTC (permalink / raw)
To: barebox
Hi,
I would like to use emmc-hardware-partition boot1 as a state backend,
this has the charm of keeping the big hw-partition clean while using SLC
for e.g. serial numbers.
Within barebox using an emmc-hardware-partition boot1 as a state backend
just works!
But trying to hand over this backend to Linux fails right before
starting the kernel:
WARNING: Failed to fixup node in of_state_fixup+0x1/0x288: No such device
I guess dt-utils also has no support for using /dev/mmcblk1boot0 as a
backend (by default Linux doesn't allow to write to boot0/1) ?
What would be the best way to add this feature?
Any ideas?
-- Christoph
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: state: eMMC boot0-partitions backend for Linux
2019-11-03 15:45 state: eMMC boot0-partitions backend for Linux Christoph Fritz
@ 2019-11-11 15:54 ` Ahmad Fatoum
0 siblings, 0 replies; 2+ messages in thread
From: Ahmad Fatoum @ 2019-11-11 15:54 UTC (permalink / raw)
To: barebox
Hello Christoph,
On 11/3/19 4:45 PM, Christoph Fritz wrote:
> Hi,
>
> I would like to use emmc-hardware-partition boot1 as a state backend,
> this has the charm of keeping the big hw-partition clean while using SLC
> for e.g. serial numbers.
> Within barebox using an emmc-hardware-partition boot1 as a state backend
> just works!
>
> But trying to hand over this backend to Linux fails right before
> starting the kernel:
>
> WARNING: Failed to fixup node in of_state_fixup+0x1/0x288: No such device
I ran into this before, but with the barebox environment.
I 'solved' it by moving the environment out of the boot partition..
See d5285342d87 ("mci: skip of_partitions_register_fixup for boot partitions").
> I guess dt-utils also has no support for using /dev/mmcblk1boot0 as a
> backend (by default Linux doesn't allow to write to boot0/1) ?
Yes.
> What would be the best way to add this feature?
>
> Any ideas?
How about:
- formalize the eMMC boot partitions binding with
a compatible = "barebox,emmc-bootpart" and change barebox to fix it up
into the kernel's device tree.
- have barebox_state handle this properly. You can check out how RAUC
(LGPL-2.1) does it.
Cheers
Ahmad
>
> -- Christoph
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | https://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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-11 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-03 15:45 state: eMMC boot0-partitions backend for Linux Christoph Fritz
2019-11-11 15:54 ` Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox