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

Linus Walleij linus.walleij at linaro.org
Tue Oct 27 04:55:11 PDT 2015


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.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list