zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.59k stars 6.48k forks source link

MCUboot example does not build on INFINEON PSoC6 WiFi-BT Pioneer Kit board #71736

Closed hcd-bdltd closed 2 months ago

hcd-bdltd commented 5 months ago

Describe the bug

Currently, the MCUboot example is not building when using the INFINEON PSoC6 WiFi-BT Pioneer Kit board.

The error is related with missing boot_partition

devicetree error: /chosen: undefined node label `boot_partition`

I have added the boot_partition by adding the following in cypress/cy8ckit_062_wifi_bt/cy8ckit_062_wifi_bt_cy8c6247_m0.dts, just to get it to build it.

&flash0 {

    partitions {
        compatible = "fixed-partitions";
        #address-cells = <1>;
        #size-cells = <1>;

        boot_partition: partition@0 {
            label = "mcuboot";
            reg = <0x00000000 0xc000>;
        };
        slot0_partition: partition@c000 {
            label = "image-0";
            reg = <0x0000C000 0x37000>;
        };
        slot1_partition: partition@43000 {
            label = "image-1";
            reg = <0x00043000 0x37000>;
        };
        storage_partition: partition@7a000 {
            label = "storage";
            reg = <0x0007a000 0x00006000>;
        };
    };
};

But then I have the following error

warning: FLASH_MAP (defined at subsys/storage/flash_map/Kconfig:10) has direct dependencies FLASH_HAS_DRIVER_ENABLED with value n, but is currently being y-selected by the following symbols:
 - MCUBOOT_DEVICE_SETTINGS (defined at /home/hudson/zephyrproject/bootloader/mcuboot/boot/zephyr/Kconfig:705), with value y, direct dependencies y (value: y)

Which I am not sure how to solve it. I would be happy to help with it, just need guidance about what to do.

To Reproduce Steps to reproduce the behavior:

west build -p always -b cy8ckit_062_wifi_bt/cy8c6247/m0 --sysbuild zephyr/samples/application_development/sysbuild/with_mcuboot

Impact At the moment is blocking me to progress further.

Environment (please complete the following information):

ifyall commented 5 months ago

@hcd-bdltd, I have added an internal ticket for us to track this. Do you have an Infineon sales or support contact? If you want such a contact, you can go to https://www.infineon.com/cms/en/about-infineon/company/contacts/support/.

github-actions[bot] commented 3 months ago

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.