[PATCH] ARM64: juno: add NOR flash to device tree

Ryan Harkin ryan.harkin at linaro.org
Tue Oct 27 06:20:54 PDT 2015


On 27 October 2015 at 11:55, Linus Walleij <linus.walleij at linaro.org> wrote:
> On Wed, Oct 21, 2015 at 12:07 PM, Ryan Harkin <ryan.harkin at linaro.org> wrote:
>
>> FYI, in the latest Juno motherboard firmware [1], I have a file called
>> "blank.img" in the NOR flash at address 0x0BFC0000 that represents the UEFI
>> (and now u-boot) config area at the end of the NOR flash.
>>
>> I mostly put this there so that you can "touch blank.img" to erase the
>> config, but also to show that the region is reserved to anyone who might
>> think about putting something there.
>
> Then it is safe to enable NOR flash and AFS in the kernel.
> The AFS "partition" should probably have a better name than
> "blank.img" (if this is the name it gets in the flash), rather
> "BOOTENV" or something.
>
> I can augment the code in the recently cleaned-up AFS driver
> to make that partition read-only by setting the MTD_WRITABLE
> flag in the mask_flags field if we agree on some good name
> like that.

Agreed.  I'll rename the AFS partition to "BOOTENV" using the NORxNAME
entry in images.txt.  I'll rename the file to "bootenv.img".



More information about the linux-arm-kernel mailing list