In the K2E-EVM board I just found out that the NAND connected via AEMIF is only detected (/sys/devices/platform/soc/21000a00.aemif/30000000.nand) if I boot the board from it, i.e. boot-ubi in uboot. If I boot from NFS (boot=nfs) the NAND is not detected. (no device in /sys/devices/platform/soc/21000a00.aemif )
Is this because the Linux kernel autodetects the NAND only when it needs it to boot from it? Is there a way to force detection of NAND even when the NAND is not used for booting? Loading a module or adding something to the board .dts maybe?
If the NAND detection is always running, could this be due to the fact that when booting from NAND/ubi, uboot starts and mounts the NAND before loading the Linux kernel?
Any help appreciated,
Giannis