-
Notifications
You must be signed in to change notification settings - Fork 104
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
Initial support for LS1028A. Booting into OCRAM app. #306
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.
Looks great! Just cleanups, but otherwise okay to merge.
@@ -13,6 +13,7 @@ This README describes configuration of supported targets. | |||
* [NXP P1021 PPC](#nxp-p1021-ppc) | |||
* [NXP T2080 PPC](#nxp-t2080-ppc) | |||
* [Qemu x86-64 UEFI](#qemu-x86-64-uefi) | |||
* [NXP LS1028A](#nxp-ls1028a) |
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.
Move up one line to sort with other NXP targets.
@@ -0,0 +1,1370 @@ | |||
/* ls1028a.c | |||
* | |||
* Copyright (C) 2021 wolfSSL Inc. |
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.
2023
#define XSPI_MCR_LEARNEN_MASK (0x1 << 15) /* XSPI Learn Mode Enable */ | ||
|
||
/* XSPI Init */ | ||
/*#define XSPI_MCR0_CFG 0xFFFF80C0*/ |
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.
Cleanup? Remove this or comment on why MCR0 has possible variation
|
||
void erratum_err050568() | ||
{ | ||
/* Use IP bus only if systembus PLL is 300MHz (Dont use 300MHz) */ |
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.
Do a replace of tab with 4 spaces please.
} | ||
|
||
/* Application on Serial NOR Flash device 18.6.3 */ | ||
void xspi_init() |
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.
void xspi_init(void)
} | ||
|
||
/* Called from boot_aarch64_start.S */ | ||
void hal_ddr_init() { |
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.
Function brace always on new line. Thanks
@@ -65,7 +65,8 @@ ifeq ($(SIGN),ECC256) | |||
STACK_USAGE=4096 | |||
else | |||
ifeq ($(WOLFTPM),1) | |||
STACK_USAGE=6680 | |||
## Was 6680. Increasing to handle SPMATH=0 | |||
STACK_USAGE=7600 |
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.
This is okay to increase or gate on the SPMATH the two options.
@@ -99,3 +107,255 @@ gicv2_init_secure: | |||
str w0, [x1, #4] /* GICC_PMR */ | |||
1: | |||
ret | |||
|
|||
|
|||
.global invalidate_ivac |
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.
This file is shared with a few other targets. Make sure any changes can be tolerated. zynqmp and raspi.
config/examples/nxp-ls1028a.config
Outdated
DUALBANK_SWAP?=0 | ||
PKA?=0 | ||
|
||
WOLFTPM?=0 |
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.
TPM and WOLFBOOT_TPM_KEYSTORE are disabled, why define the NV indicies if it's disabled?
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.
This was a config that I was using without TPM support. Note compilation fails if ONLY WOLFBOOT_TPM is enabled without MEASURED_BOOT nor TPM_KEYSTORE, which was a suprise
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.
IDE/Renesas/e2studio/RA6M4/app_RA/src/SEGGER_RTT/myprint.c empty file
include/wolfboot/wolfboot.h
Outdated
@@ -195,7 +195,11 @@ extern "C" { | |||
|
|||
/* KeyStore API */ | |||
int keystore_num_pubkeys(void); | |||
#if defined(WOLFBOOT_RENESAS_SCEPROTECT) |
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.
don't do this, just cast your buffer to uint32_t* in one place if you need it in that form
6e7186d
to
b64ee37
Compare
@billphipps @dgarske is this still going or should I close as stale? |
I'll close it as stale. I think David pushed better versions of the shared files already. |
I believe this is still the latest LS1028A work and it is still on my list to work on. In fact I will likely be working on the Xilinx UltraScale+ and plan to pull this work in for that. Closing is fine for now |
…This version was a refactor work in progress.
…rsion was a refactor work in progress.
Still getting through some problems. Here's what's working:
Here's some hacks that I wasn't sure about:
Here's the list of things that are broke
Overall, pretty darn close and likely suitable for the customer demo. Glide path seems clear on the technical issues.