-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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]>
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.