Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PHPmihuan
rt-thread
提交
f4c71fc5
R
rt-thread
项目概览
PHPmihuan
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4c71fc5
编写于
5月 25, 2020
作者:
B
bigmagic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename raspi4 to raspi4-64
上级
38f400d5
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
68 addition
and
41 deletion
+68
-41
bsp/raspberry-pi/raspi4-64/.config
bsp/raspberry-pi/raspi4-64/.config
+29
-30
bsp/raspberry-pi/raspi4-64/Kconfig
bsp/raspberry-pi/raspi4-64/Kconfig
+1
-1
bsp/raspberry-pi/raspi4-64/README.md
bsp/raspberry-pi/raspi4-64/README.md
+33
-1
bsp/raspberry-pi/raspi4-64/SConscript
bsp/raspberry-pi/raspi4-64/SConscript
+0
-0
bsp/raspberry-pi/raspi4-64/SConstruct
bsp/raspberry-pi/raspi4-64/SConstruct
+0
-0
bsp/raspberry-pi/raspi4-64/applications/SConscript
bsp/raspberry-pi/raspi4-64/applications/SConscript
+0
-0
bsp/raspberry-pi/raspi4-64/applications/main.c
bsp/raspberry-pi/raspi4-64/applications/main.c
+0
-0
bsp/raspberry-pi/raspi4-64/driver/Kconfig
bsp/raspberry-pi/raspi4-64/driver/Kconfig
+0
-0
bsp/raspberry-pi/raspi4-64/driver/SConscript
bsp/raspberry-pi/raspi4-64/driver/SConscript
+0
-0
bsp/raspberry-pi/raspi4-64/driver/board.c
bsp/raspberry-pi/raspi4-64/driver/board.c
+0
-0
bsp/raspberry-pi/raspi4-64/driver/board.h
bsp/raspberry-pi/raspi4-64/driver/board.h
+1
-1
bsp/raspberry-pi/raspi4-64/driver/drv_gpio.c
bsp/raspberry-pi/raspi4-64/driver/drv_gpio.c
+0
-0
bsp/raspberry-pi/raspi4-64/driver/drv_gpio.h
bsp/raspberry-pi/raspi4-64/driver/drv_gpio.h
+0
-0
bsp/raspberry-pi/raspi4-64/driver/drv_uart.c
bsp/raspberry-pi/raspi4-64/driver/drv_uart.c
+0
-0
bsp/raspberry-pi/raspi4-64/driver/drv_uart.h
bsp/raspberry-pi/raspi4-64/driver/drv_uart.h
+0
-0
bsp/raspberry-pi/raspi4-64/driver/raspi4.h
bsp/raspberry-pi/raspi4-64/driver/raspi4.h
+0
-0
bsp/raspberry-pi/raspi4-64/link.lds
bsp/raspberry-pi/raspi4-64/link.lds
+0
-0
bsp/raspberry-pi/raspi4-64/rtconfig.h
bsp/raspberry-pi/raspi4-64/rtconfig.h
+1
-6
bsp/raspberry-pi/raspi4-64/rtconfig.py
bsp/raspberry-pi/raspi4-64/rtconfig.py
+0
-0
libcpu/Kconfig
libcpu/Kconfig
+3
-0
libcpu/aarch64/common/gic/gic_pl400.c
libcpu/aarch64/common/gic/gic_pl400.c
+0
-1
libcpu/aarch64/cortex-a72/interrupt.c
libcpu/aarch64/cortex-a72/interrupt.c
+0
-1
未找到文件。
bsp/raspberry-pi/raspi4/.config
→
bsp/raspberry-pi/raspi4
-64
/.config
浏览文件 @
f4c71fc5
...
...
@@ -69,6 +69,7 @@ CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
CONFIG_RT_VER_NUM
=
0
x40003
CONFIG_ARCH_CPU_64BIT
=
y
# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_ARMV8
=
y
# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
...
...
@@ -215,6 +216,8 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_WEBNET is not set
# CONFIG_PKG_USING_MONGOOSE is not set
# CONFIG_PKG_USING_MYMQTT is not set
# CONFIG_PKG_USING_KAWAII_MQTT is not set
# CONFIG_PKG_USING_BC28_MQTT is not set
# CONFIG_PKG_USING_WEBTERMINAL is not set
# CONFIG_PKG_USING_CJSON is not set
# CONFIG_PKG_USING_JSMN is not set
...
...
@@ -241,6 +244,7 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_COAP is not set
# CONFIG_PKG_USING_NOPOLL is not set
# CONFIG_PKG_USING_NETUTILS is not set
# CONFIG_PKG_USING_CMUX is not set
# CONFIG_PKG_USING_PPP_DEVICE is not set
# CONFIG_PKG_USING_AT_DEVICE is not set
# CONFIG_PKG_USING_ATSRV_SOCKET is not set
...
...
@@ -255,6 +259,8 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_AZURE is not set
# CONFIG_PKG_USING_TENCENT_IOTHUB is not set
# CONFIG_PKG_USING_JIOT-C-SDK is not set
# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set
# CONFIG_PKG_USING_JOYLINK is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
...
...
@@ -269,6 +275,10 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_QXWZ is not set
# CONFIG_PKG_USING_SMTP_CLIENT is not set
# CONFIG_PKG_USING_ABUP_FOTA is not set
# CONFIG_PKG_USING_LIBCURL2RTT is not set
# CONFIG_PKG_USING_CAPNP is not set
# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set
# CONFIG_PKG_USING_AGILE_TELNET is not set
#
# security packages
...
...
@@ -276,6 +286,7 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_MBEDTLS is not set
# CONFIG_PKG_USING_libsodium is not set
# CONFIG_PKG_USING_TINYCRYPT is not set
# CONFIG_PKG_USING_TFM is not set
#
# language packages
...
...
@@ -310,6 +321,7 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set
# CONFIG_PKG_USING_LUNAR_CALENDAR is not set
# CONFIG_PKG_USING_BS8116A is not set
# CONFIG_PKG_USING_URLENCODE is not set
#
# system packages
...
...
@@ -320,6 +332,7 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_LWEXT4 is not set
# CONFIG_PKG_USING_PARTITION is not set
# CONFIG_PKG_USING_FAL is not set
# CONFIG_PKG_USING_FLASHDB is not set
# CONFIG_PKG_USING_SQLITE is not set
# CONFIG_PKG_USING_RTI is not set
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
...
...
@@ -329,6 +342,9 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_THREAD_POOL is not set
# CONFIG_PKG_USING_ROBOTS is not set
# CONFIG_PKG_USING_EV is not set
# CONFIG_PKG_USING_SYSWATCH is not set
# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set
# CONFIG_PKG_USING_PLCCORE is not set
#
# peripheral libraries and drivers
...
...
@@ -345,6 +361,10 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_SX12XX is not set
# CONFIG_PKG_USING_SIGNAL_LED is not set
# CONFIG_PKG_USING_LEDBLINK is not set
# CONFIG_PKG_USING_LITTLED is not set
# CONFIG_PKG_USING_LKDGUI is not set
# CONFIG_PKG_USING_NRF5X_SDK is not set
# CONFIG_PKG_USING_NRFX is not set
# CONFIG_PKG_USING_WM_LIBRARIES is not set
# CONFIG_PKG_USING_KENDRYTE_SDK is not set
# CONFIG_PKG_USING_INFRARED is not set
...
...
@@ -361,6 +381,15 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_MAX17048 is not set
# CONFIG_PKG_USING_RPLIDAR is not set
# CONFIG_PKG_USING_AS608 is not set
# CONFIG_PKG_USING_RC522 is not set
# CONFIG_PKG_USING_EMBARC_BSP is not set
# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set
# CONFIG_PKG_USING_MULTI_RTIMER is not set
# CONFIG_PKG_USING_MAX7219 is not set
# CONFIG_PKG_USING_BEEP is not set
# CONFIG_PKG_USING_EASYBLINK is not set
# CONFIG_PKG_USING_PMS_SERIES is not set
# CONFIG_PKG_USING_CAN_YMODEM is not set
#
# miscellaneous packages
...
...
@@ -397,36 +426,6 @@ CONFIG_RT_USING_POSIX=y
# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_ULAPACK is not set
# CONFIG_PKG_USING_UKAL is not set
#
# Privated Packages of RealThread
#
# CONFIG_PKG_USING_CODEC is not set
# CONFIG_PKG_USING_PLAYER is not set
# CONFIG_PKG_USING_MPLAYER is not set
# CONFIG_PKG_USING_PERSIMMON_SRC is not set
# CONFIG_PKG_USING_JS_PERSIMMON is not set
# CONFIG_PKG_USING_JERRYSCRIPT_WIN32 is not set
#
# Network Utilities
#
# CONFIG_PKG_USING_WICED is not set
# CONFIG_PKG_USING_CLOUDSDK is not set
# CONFIG_PKG_USING_POWER_MANAGER is not set
# CONFIG_PKG_USING_RT_OTA is not set
# CONFIG_PKG_USING_RDBD_SRC is not set
# CONFIG_PKG_USING_RTINSIGHT is not set
# CONFIG_PKG_USING_SMARTCONFIG is not set
# CONFIG_PKG_USING_RTX is not set
# CONFIG_RT_USING_TESTCASE is not set
# CONFIG_PKG_USING_NGHTTP2 is not set
# CONFIG_PKG_USING_AVS is not set
# CONFIG_PKG_USING_JOYLINK is not set
# CONFIG_PKG_USING_STS is not set
# CONFIG_PKG_USING_DLMS is not set
# CONFIG_PKG_USING_AUDIO_FRAMEWORK is not set
# CONFIG_PKG_USING_ZBAR is not set
CONFIG_BCM2711_SOC
=
y
# CONFIG_BSP_SUPPORT_FPU is not set
...
...
bsp/raspberry-pi/raspi4/Kconfig
→
bsp/raspberry-pi/raspi4
-64
/Kconfig
浏览文件 @
f4c71fc5
...
...
@@ -20,7 +20,7 @@ source "$PKGS_DIR/Kconfig"
config BCM2711_SOC
bool
select ARCH_ARM
_CORTEX_A72
select ARCH_ARM
V8
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
select ARCH_CPU_64BIT
...
...
bsp/raspberry-pi/raspi4/README.md
→
bsp/raspberry-pi/raspi4
-64
/README.md
浏览文件 @
f4c71fc5
...
...
@@ -11,6 +11,38 @@
## 2. 编译说明
### 2.1 Window上的环境搭建
Windows环境下推荐使用
[
env工具
](
https://www.rt-thread.org/page/download.html
)
进行编译。
首先下载windows上的aarch64的gcc交叉编译工具,版本为gcc-arm-8.3选择aarch64-elf就可以。
将推荐将gcc解压到
`\env\tools\gnu_gcc\arm_gcc`
目录下。
接着修改
`bsp\raspberry-pi\raspi4-64\rtconfig.py`
修改路径:
```
EXEC_PATH = r'E:/env_released_1.1.2/env/tools/gnu_gcc/arm_gcc/gcc-arm-8.3-2019.03-i686-mingw32-aarch64-elf/bin'
```
然后在
`bsp\raspberry-pi\raspi4-64\`下输入scons编译即可。
**window环境搭建注意**
下载完成`
gcc-arm-8.3-2019.03-i686-mingw32-aarch64-elf.tar.xz
`交叉编译工具链后,最好采用7-zip解压工具进行两次解压。
确保解压目录下的`
/bin/aarch64-elf-ld.exe
`文件的size不为0。
否则编译会出现如下错误:
```
collect2.exe:fatal error:CreateProcess:No such file or directory
```
### 2.2 Linux上的环境搭建
Linux下推荐使用[gcc工具][2]。Linux版本下gcc版本可采用`
gcc-arm-8.3-2019.03-x86_64-aarch64-elf
`。
将工具链解压到指定目录,并修改当前bsp下的`
EXEC_PATH
`为自定义gcc目录。
...
...
@@ -20,7 +52,7 @@ PLATFORM = 'gcc'
EXEC_PATH = r'/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-elf/bin/'
```
直接进入
`bsp\raspberry-pi\raspi4`
,输入scons编译即可。
直接进入`
bsp
\r
aspberry-pi
\r
aspi4
-64
`,输入scons编译即可。
## 3. 执行
...
...
bsp/raspberry-pi/raspi4/SConscript
→
bsp/raspberry-pi/raspi4
-64
/SConscript
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/SConstruct
→
bsp/raspberry-pi/raspi4
-64
/SConstruct
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/applications/SConscript
→
bsp/raspberry-pi/raspi4
-64
/applications/SConscript
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/applications/main.c
→
bsp/raspberry-pi/raspi4
-64
/applications/main.c
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/driver/Kconfig
→
bsp/raspberry-pi/raspi4
-64
/driver/Kconfig
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/driver/SConscript
→
bsp/raspberry-pi/raspi4
-64
/driver/SConscript
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/driver/board.c
→
bsp/raspberry-pi/raspi4
-64
/driver/board.c
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/driver/board.h
→
bsp/raspberry-pi/raspi4
-64
/driver/board.h
浏览文件 @
f4c71fc5
...
...
@@ -12,7 +12,7 @@
#define BOARD_H__
#include <stdint.h>
#include "
iomap
.h"
#include "
raspi4
.h"
extern
unsigned
char
__bss_start
;
extern
unsigned
char
__bss_end
;
...
...
bsp/raspberry-pi/raspi4/driver/drv_gpio.c
→
bsp/raspberry-pi/raspi4
-64
/driver/drv_gpio.c
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/driver/drv_gpio.h
→
bsp/raspberry-pi/raspi4
-64
/driver/drv_gpio.h
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/driver/drv_uart.c
→
bsp/raspberry-pi/raspi4
-64
/driver/drv_uart.c
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/driver/drv_uart.h
→
bsp/raspberry-pi/raspi4
-64
/driver/drv_uart.h
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4
/driver/iomap
.h
→
bsp/raspberry-pi/raspi4
-64/driver/raspi4
.h
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/link.lds
→
bsp/raspberry-pi/raspi4
-64
/link.lds
浏览文件 @
f4c71fc5
文件已移动
bsp/raspberry-pi/raspi4/rtconfig.h
→
bsp/raspberry-pi/raspi4
-64
/rtconfig.h
浏览文件 @
f4c71fc5
...
...
@@ -43,6 +43,7 @@
#define RT_CONSOLE_DEVICE_NAME "uart"
#define RT_VER_NUM 0x40003
#define ARCH_CPU_64BIT
#define ARCH_ARMV8
/* RT-Thread Components */
...
...
@@ -154,12 +155,6 @@
/* samples: kernel and components samples */
/* Privated Packages of RealThread */
/* Network Utilities */
#define BCM2711_SOC
/* Hardware Drivers Config */
...
...
bsp/raspberry-pi/raspi4/rtconfig.py
→
bsp/raspberry-pi/raspi4
-64
/rtconfig.py
浏览文件 @
f4c71fc5
文件已移动
libcpu/Kconfig
浏览文件 @
f4c71fc5
...
...
@@ -74,6 +74,9 @@ config ARCH_ARM_CORTEX_A9
bool
select ARCH_ARM_CORTEX_A
config ARCH_ARMV8
bool
config ARCH_MIPS
bool
...
...
libcpu/aarch64/common/gic/gic_pl400.c
浏览文件 @
f4c71fc5
...
...
@@ -14,7 +14,6 @@
#include "gic_pl400.h"
#include "cp15.h"
#include "iomap.h"
#define ARM_GIC_MAX_NR 1
struct
arm_gic
...
...
libcpu/aarch64/cortex-a72/interrupt.c
浏览文件 @
f4c71fc5
...
...
@@ -13,7 +13,6 @@
#include <gic_pl400.h>
#include <board.h>
#include <armv8.h>
#include "iomap.h"
#define MAX_HANDLERS 256
#define GIC_ACK_INTID_MASK 0x000003ff
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录