You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
zhugengyu 8de71ec7ea Merge branch 'master' of https://gitee.com/phytium_embedded/phytium-standalone-sdk 3 years ago
.gitee Initial commit 3 years ago
.vscode init standalone sdk 3 years ago
baremetal/example init standalone sdk 3 years ago
bsp init standalone sdk 3 years ago
configs init standalone sdk 3 years ago
doc init standalone sdk 3 years ago
lib init standalone sdk 3 years ago
make init standalone sdk 3 years ago
scripts init standalone sdk 3 years ago
tools init standalone sdk 3 years ago
.gitignore init standalone sdk 3 years ago
Kconfig init standalone sdk 3 years ago
LICENSE Initial commit 3 years ago
README.en.md init standalone sdk 3 years ago
README.md init standalone sdk 3 years ago
export.sh init standalone sdk 3 years ago

README.md

Phytium-Standalone-SDK

介绍

本项目发布了Phytium系列CPU的BSP源码,Baremetal参考例程及其构建编译工具

Ubuntu 20.04 x86_64环境下使用Standalone SDK

1. 配置SDK

下载SDK源代码

  • 通过Gitee拉取源代码
$ git clone https://gitee.com/zhugengyu/phytium-mangosteen-sdk.git ./ft_sdk
$ cd ./ft_sdk

选择在线方式安装SDK

  • 选择在线方式安装Standalone SDK在~/ft_sdk
$ ./export.sh -online

download cc

选择离线方式安装SDK

  • 在ARM官网下载AARCH32AARCH64编译器
  • 将下载的编译器安装包放置在'~/ft_sdk/tools'路径下
  • 安装SDK开发环境,没有打印错误信息表示安装成功
$ ./export.sh
Please type in 'source ./export.sh'
Phytium Embedded SDK Setup Done!!
Install AARCH32 Compiler at  /home/ubuntu/ft_sdk/tools/gcc-arm-none-eabi-10-2020-q4-major
Install AARCH64 Compiler at  /home/ubuntu/ft_sdk/tools/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf
SDK Path is set as /home/ubuntu/ft_sdk/standalone-sdk-master
  • 通过离线/在线方式完成安装后,关闭当前窗口或者运行以下命令,立即生效SDK环境变量
$ source ~/.profile

2. 快速使用例程

使用FT2000-4开发板,快速体验SDK

ft_sdk/baremetal/example/aarch32/hello_world

  • 编译FT2000-4例程hello_world

compiling ft2004

  • 通过TFTP服务器下载到开发板上

load-bin

  • 跳转启动例程

boot os

没有开发板,可以通过模拟器体验一下SDK

ft_sdk/baremetal/example/aarch32/qemu_debug

  • 编译例程qemu_debug
$ make

make qemu example

  • 运行例程qemu_debug
$ make run

run qemu