Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] SOF: cAVS 1.5 needs reset-vector.S in the main image #31751

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Jan 28, 2021

APL ADSP doesn't boot with reset-vector.S in the bootloader, move it over to the main application binary.

In fact this is rather a guessed work-around than a proper solution. I haven't been able to figure out why this is required. Why on CNL the reset vector code can be either in the bootloader or in the main image, but on APL it only works when in the main image. But without this patch APL is broken. This might as well help with #31735 but it would certainly be great to understand the reason.

Another possibility could be to switch all Xtensa builds to unconditionally link reset-vector.S in the main image. This would however then differ from the way SOF is currently linked.

Copy link
Collaborator

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack, CAVS1.5 has different boot flows and ROM flow.

Copy link
Collaborator

@KangJianX KangJianX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nashif Can we add this configuration in intel_adsp_cavs15_defconfig? It can be used for samples and kernel testcases together.

@@ -6,3 +6,4 @@ CONFIG_LP_MEMORY_BANKS=2
CONFIG_HP_MEMORY_BANKS=8
CONFIG_PERFORMANCE_COUNTERS=y
CONFIG_COMP_SRC_SMALL=y
CONFIG_RESET_VECTOR_IN_BOOTLOADER=n
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think add this configuration to common config is better than samples(like boards/xtensa/intel_adsp_cavs15/intel_adsp_cavs15_defconfig)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KangJianX that doesn't work because then it's overwritten by samples/audio/sof/prj.conf. What we could do though is remove that setting from prj.conf and specify it in each boards/xtensa/intel_adsp_cavs*/intel_adsp_cavs*_defconfig individually where we need the non-default value. Would that be better?

APL ADSP doesn't boot with reset-vector.S in the bootloader,
move it over to the main application binary.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
@nashif nashif merged commit 3af94e7 into zephyrproject-rtos:master Feb 1, 2021
@lyakh lyakh deleted the apl-reset branch February 1, 2021 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants