Example using camera with XIP kernel 4.9

Hello,

Is there any example available of a working device-tree using a camera (any OVxxxx) for the 4.9 kernel in XIP with single QSPI ?

Best regards

  • In reply to Chris:

    Now you're talking about XIP option in upstream kernel, I remember I had to do some dirty hacks to be able to build my kernel as XIP.
  • In reply to dylan_mesotic:

    Yes, no matter how many times I've tried, and as many different patches I have submitted, the upstream ARM maintainer will not let me enable XIP for MMU enabled systems. (although he is OK with keeping the underlying code working).

    So, you always have to apply this simple patch to be able to enable XIP_KERNEL:

    diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
    index 7f61372a6462..d33e20ffcbe6 100644
    --- a/arch/arm/Kconfig
    +++ b/arch/arm/Kconfig
    @@ -331,7 +331,7 @@ config ARCH_MULTIPLATFORM
    bool "Allow multiple platforms to be selected"
    depends on MMU
    select ARM_HAS_SG_CHAIN
    - select ARM_PATCH_PHYS_VIRT
    + select ARM_PATCH_PHYS_VIRT if !XIP_KERNEL
    select AUTO_ZRELADDR
    select TIMER_OF
    select COMMON_CLK
    @@ -1966,7 +1966,7 @@ endchoice

    config XIP_KERNEL
    bool "Kernel Execute-In-Place from ROM"
    - depends on !ARM_LPAE && !ARCH_MULTIPLATFORM
    + depends on !ARM_LPAE
    help
    Execute-In-Place allows the kernel to run from non-volatile storage
    directly addressable by the CPU, such as NOR flash. This saves RAM


    Since 4.16.-rc1 was released yesterday, I'll have to confirm sometime this week that nothing broke for XIP_KERNEL.