lkml.org 
[lkml]   [2022]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] dt-bindings: nvmem: u-boot, env: add Broadcom's variant binding
On Thu, Apr 07, 2022 at 04:55:14AM -0700, Joel Peshkin wrote:
> Hi Rafal,
>
> The first 32b value is a magic number (endian swapped mnemonic of "uEnv"
> short for "u-boot environment"). Finding that magic number of a 4K
> boundary followed by a length and then a u-boot environment with a valid
> CRC permits a scan of the flash partition to locate the environment without
> knowing a-priori where it is.

So it doesn't need to be described in DT? But how does one identify
whether to scan the flash or not. You wouldn't want to do that one every
platform. IOW, it's a sufficient discovery mechanism for a custom build,
but not generic OS.

Rob

\
 
 \ /
  Last update: 2022-04-07 21:26    [W:0.042 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site