-
Notifications
You must be signed in to change notification settings - Fork 0
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
Convert nrf51, nrf52820, nrf52832, nrf52840, nrf5340, nrf9160 boards #4
Convert nrf51, nrf52820, nrf52832, nrf52840, nrf5340, nrf9160 boards #4
Conversation
nordicjm
commented
Jan 2, 2024
•
edited
Loading
edited
- nrf51 (Only 1 board is still outstanding, 96b_carbon_nrf51, this is because it is a dual SoC board and requires STM32 SoC v2 support to convert)
- nrf52805
- nrf52810
- nrf52820
- nrf52832
- nrf52840
- nrf5340
- nrf9131
- nrf9151
- nrf9160
- nrf9161
b18c88d
to
2300fbd
Compare
dcef25d
to
49b1fc8
Compare
From compliance:
I think those Kconfigs would be nice to address before merging, to minimize number of commits / changes on each file during porting.
Can be ignored, let's make a MAINTAINERS update in the branch when porting has completed. |
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.
Generally good looking 👍 .
Noticed a couple of minors which seems to be a repeating pattern, so only mention them once.
Only major that seems to need fixing before merging would be missing handling of board revisions.
The minor can be addressed later (but also done immediately if you like)
name: ubx_bmd300eval | ||
vendor: U-blox | ||
socs: | ||
- name: nrf52832 |
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.
minor, but seems a newline is missing (editor setting ?)
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.
these were generated by the v1 -> v2 bash script :)
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.
(
editorscript setting ?)
Fixed 😆
config BOARD_UBX_BMD300EVAL | ||
bool | ||
default y | ||
select SOC_SERIES_NRF52X |
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.
with soc series no longer a choice we should actually have the soc selecting the series and avoid the need for this selection. (something not possible in old hwm as you cannot select a choice entry in Kconfig)
bool | ||
default y |
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.
not needed, this is done automatically with the benefit that if config BOARD_UBX_BMD300EVAL
is mispelled we'll get a Kconfig warning.
@@ -0,0 +1,8 @@ | |||
board: | |||
name: nrf9160dk | |||
vendor: Nordic Semiconductor |
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.
what happened to revisions ?
if(("${BOARD_IDENTIFIER}" STREQUAL "/nrf5340/cpuapp" OR "${BOARD_IDENTIFIER}" STREQUAL "/nrf5340/cpuapp/ns") | ||
AND CONFIG_BOARD_ENABLE_CPUNET) |
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 board specific CMakeLists.txt, and only sourced when this board is building, so we could reduce check to:
if(("${BOARD_IDENTIFIER}" STREQUAL "/nrf5340/cpuapp" OR "${BOARD_IDENTIFIER}" STREQUAL "/nrf5340/cpuapp/ns") | |
AND CONFIG_BOARD_ENABLE_CPUNET) | |
if(CONFIG_SOC_NRF5340_CPUAPP_QKAA AND CONFIG_BOARD_ENABLE_CPUNET) |
(not required for merging, but could be considered in case file has to be touched for other reasons)
Same comment goes for other cmake files in commit.
@@ -0,0 +1,5 @@ | |||
board: | |||
name: actinius_icarus | |||
vendor: Actinius |
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.
what about revisions ?
2b6fb63
to
ed31c97
Compare
f405e1e
to
2134889
Compare
ed31c97
to
8487e7f
Compare
2134889
to
4ef0f0b
Compare
8487e7f
to
8034bac
Compare
8034bac
to
e6ff528
Compare
165f824
to
7efbb6d
Compare
e6ff528
to
0b7ce66
Compare
4f39e87
to
483cffb
Compare
361a5c6
to
cb6a26c
Compare
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Moves this SoC over from v1 to v2 so it can be used in HWMv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
483cffb
to
fce1f83
Compare
hci_packet_complete(buf, buf_size) should check whether buf_size is enough. For instance, hci_packet_complete can receive buf with buf_size 1, leading to the buffer overflow in cmd->param_len, which is buf[3]. This can happen when rx_thread() receives two frames in 512 bytes and the first frame size is 511. Then, rx_thread() will call hci_packet_complete() with 1. ==5==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000ad81c2 at pc 0x0000005279b3 bp 0x7fffe74f5b70 sp 0x7fffe74f5b68 READ of size 2 at 0x000000ad81c2 thread T6 #0 0x5279b2 (/root/zephyr.exe+0x5279b2) #1 0x4d697d (/root/zephyr.exe+0x4d697d) #2 0x7ffff60e5daa (/lib/x86_64-linux-gnu/libc.so.6+0x89daa) (BuildId: 2e01923fea4ad9f7fa50fe24e0f3385a45a6cd1c) 0x000000ad81c2 is located 2 bytes to the right of global variable 'rx_thread.frame' defined in 'zephyr/drivers/bluetooth/hci/userchan.c' (0xad7fc0) of size 512 SUMMARY: AddressSanitizer: global-buffer-overflow (/root/zephyr.exe+0x5279b2) Thread T6 created by T2 here: #0 0x48c17c (/root/zephyr.exe+0x48c17c) #1 0x530192 (/root/zephyr.exe+0x530192) #2 0x4dcc22 (/root/zephyr.exe+0x4dcc22) Thread T2 created by T1 here: #0 0x48c17c (/root/zephyr.exe+0x48c17c) #1 0x530192 (/root/zephyr.exe+0x530192) #2 0x4dcc22 (/root/zephyr.exe+0x4dcc22) Thread T1 created by T0 here: #0 0x48c17c (/root/zephyr.exe+0x48c17c) #1 0x52f36c (/root/zephyr.exe+0x52f36c) #2 0x5371dc (/root/zephyr.exe+0x5371dc) #3 0x5312a6 (/root/zephyr.exe+0x5312a6) #4 0x52ed7b (/root/zephyr.exe+0x52ed7b) #5 0x52eddd (/root/zephyr.exe+0x52eddd) #6 0x7ffff6083c89 (/lib/x86_64-linux-gnu/libc.so.6+0x27c89) (BuildId: 2e01923fea4ad9f7fa50fe24e0f3385a45a6cd1c) ==5==ABORTING Signed-off-by: Sungwoo Kim <[email protected]>