Hi Aarya,

in most scenarios you operate only on one region of the layout. Then 
overlapping regions doesn't matter.
Also overlapping regions can be useful when dealing with nested structures. 
E.g. an Intel IFD image and the BIOS region contains a coreboot fmap.
All in all the user of the layout function is responsible for taking the right 
actions.

-- Thomas

On 31 March 2022 21:51:40 WEST, Aarya Chaumal <aarya.chau...@gmail.com> wrote:
>Hi Thomas,
>
>Can overlapping regions in the layout file cause problems or lead to
>ambiguous results. If yes, then I think we should do the checks.
>
>Aarya.
>
>On Tue, Mar 29, 2022 at 2:48 PM Thomas Heijligen <s...@posteo.de> wrote:
>
>>
>>
>> On 26 March 2022 05:44:56 WET, Aarya Chaumal <aarya.chau...@gmail.com>
>> wrote:
>> Hi Aarya,
>>
>> >I performed (read, write, erase) on specific regions of the flash using
>> the
>> >layout file. Do the regions in the layout file have to be exclusive or
>> they
>> >can overlap?
>> A flashrom layout region is just a name with a start and end address.
>> There are no checks for overlapping regions. The parsing of a layout file
>> is done by layout_from_file() in layout.c
>>
>> -- Thomas
>>
_______________________________________________
flashrom mailing list -- flashrom@flashrom.org
To unsubscribe send an email to flashrom-le...@flashrom.org

Reply via email to