[OpenWrt-Devel] [PATCH v3 1/2] ramips: fix RBM33G partitioning

Rafał Miłecki zajec5 at gmail.com
Fri Aug 24 05:40:26 EDT 2018


On Fri, 17 Aug 2018 at 21:56, Rafał Miłecki <rafal at milecki.pl> wrote:
> 3) Using "fixed-partitions" for subpartitions
> Sounds good since these subpartitions (bootloaders, bios, config) are
> likely to be always located as the same regions.
> If we ever get a dynamic parser developed and for some reason it will be
> more reliable than hardocded offsets & sizes, we can always switch DTS
> to specify that parser supported format.

I found some comment pointing ar71xx and its routerboot.c and
mach-rbspi.c as a reference for dynamic partition parsing.

It has following advantages:
1) It dynamically finds beginning of hard coding partition
2) It dynamically finds beginning of soft coding partition
and not much more.

It assumes:
1) that bootloader starts at 0x0
2) there is nothing between bootloader & hard config
3) size of hard config partition
4) there is bios right after hard config partition
5) size of bios partition
6) (...)
[I got tired by listing that]

After all it seems routerboot.c + mach-rbspi.c also assume pretty
fixed flash layout and I don't see it much much better over
"fixed-partitions".

Again, if we ever find "fixed-partitions" inaccurate it's something
that can be changed.

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list