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

tools: Make invocation of host compiler correct #13

Open
wants to merge 1 commit into
base: rcar_gen3
Choose a base branch
from

Conversation

atomass
Copy link

@atomass atomass commented Jun 11, 2019

HOSTCC should be used in any of the tools inside the tools/ directory
instead of CC. That way it is possible to override both values from the
command line when building the Trusted Firmware and the tools at the
same time. Also, use HOSTCCFLAGS instead of CFLAGS.

Also, instead of printing the strings CC and LD in the console during
the compilation of the tools, HOSTCC and HOSTLD have to be used for
clarity. This is how it is done in other projects like U-Boot or Linux.

Change-Id: Icd6f74c31eb74cdd1c353583399ab19e173e293e
Signed-off-by: Antonio Nino Diaz [email protected]

Signed-off-by: Andrea Tomassetti [email protected]

HOSTCC should be used in any of the tools inside the tools/ directory
instead of CC. That way it is possible to override both values from the
command line when building the Trusted Firmware and the tools at the
same time. Also, use HOSTCCFLAGS instead of CFLAGS.

Also, instead of printing the strings CC and LD in the console during
the compilation of the tools, HOSTCC and HOSTLD have to be used for
clarity. This is how it is done in other projects like U-Boot or Linux.

Change-Id: Icd6f74c31eb74cdd1c353583399ab19e173e293e
Signed-off-by: Antonio Nino Diaz <[email protected]>

Signed-off-by: Andrea Tomassetti <[email protected]>
@AlexeiFedorov
Copy link
Contributor

This patch should be submitted to
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a

Have you also seen:
ARM-software/tf-issues#656
?

@AlexeiFedorov
Copy link
Contributor

AlexeiFedorov commented Jun 11, 2019 via email

@atomass
Copy link
Author

atomass commented Jun 11, 2019

Hi @AlexeiFedorov I cherry-picked the commit from the official ARM-software repo. This commit should be applied to this Renesas fork as well in order to be able to correctly compile the cert_create tool.

Do you know if Renesas has enabled the secure boot and how to enable it? I found a RCAR_SECURE_BOOT define but no documentation.

@AlexeiFedorov
Copy link
Contributor

AlexeiFedorov commented Jun 11, 2019

I can see
Process RCAR_SECURE_BOOT flag
ifndef RCAR_SECURE_BOOT
RCAR_SECURE_BOOT := 1
endif
$(eval $(call add_define,RCAR_SECURE_BOOT))
in plat\renesas\rcar\platform.mk, but my code base is very old as I'm not working with Renesas platforms now.

@atomass
Copy link
Author

atomass commented Jun 11, 2019

The thing you posted is the exact thing I was talking about. Not very helpful.

marex pushed a commit to marex/arm-trusted-firmware that referenced this pull request Jun 13, 2019
…rcar#13

Do not power off the CPU1 since there is no way to wake it up
(wake-up is causing CPU0 reset as well duo to HW bug). Quote from errata
Ref renesas-rcar#13 [In power saving mode, both cores must be powered off]:
"When Core 0 is on and Core 1 is in power-off state, a Core 1
wake-up resets Core 0 as well and puts Core 0 back to ROM".

To overcome described HW bug instead of powering the CPU off, let it
reach WFI instruction, which is invoked by generic psci_do_cpu_off
function after platform handler finishes. This will put the core in low
power state and give a chance to wake it up.

Before this change, after running secondary kernel via kexec, only one
core was up, now both cores are up.

Change-Id: I87f144867550728055d9b8a2edb84a14539acab7
Signed-off-by: Grzegorz Jaszczyk <[email protected]>
Reviewed-by: Kostya Porotchkin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants