我的账户
长春信息港

自媒体资讯干货

亲爱的游客,欢迎!

已有账号,请

立即登录

如尚未注册?

加入我们
  • 客服电话
    点击联系客服

    在线时间:8:00-16:00

    客服电话

    400-000-0000

    电子邮件

    xjubao@163.com
  • APP下载

    长春信息港APP

    随时随地掌握行业动态

  • 官方微信

    扫描二维码

    关注长春信息港公众号

长春信息港 网站首页 资讯列表 资讯内容

AliOS Things源码下载及使用

2023-02-27 发布于 长春信息港

git介绍及使用

Pro Git(中文版)

通过git下载Alios Things最新源码

参考阿里云获取源码

获取源码

下载源码

lzd@ubuntu:~$ cd ~

lzd@ubuntu:~$ git clone https://gitee.com/alios-things/AliOS-Things.git

lzd@ubuntu:~$ ls

AliOS-Things Desktop Documents Downloads examples.desktop Music Pictures Public Templates Videos

编译Alios Things 配置编译

zd@ubuntu:~/AliOS-Things/out/helloworld_demo@linuxhost/binary$ aos make distclean

aos-cube version: 0.5.11

Cleaning...

Done

lzd@ubuntu:~$ cd AliOS-Things/

lzd@ubuntu:~/AliOS-Things$ ls

application build components core include LICENSE NOTICE platform projects README.md README-zh.md test

lzd@ubuntu:~/AliOS-Things$ aos make menuconfig

aos-cube version: 0.5.11

kconfig tools missing, start download ...

https://gitee.com/alios-things/kconfig-frontends-linux.git -> .//build/kconfig/Linux64/

Cloning into './/build/kconfig/Linux64'...

remote: Enumerating objects: 7, done.

remote: Counting objects: 100% (7/7), done.

remote: Compressing objects: 100% (7/7), done.

remote: Total 7 (delta 1), reused 0 (delta 0), pack-reused 0

Unpacking objects: 100% (7/7), done.

Checking connectivity... done.

platform/board/stm32f103rb-nucleo/Config.in:3:warning: defaults for choice values not supported

platform/board/esp8266/Config.in:3:warning: defaults for choice values not supported

platform/board/mk3072/Config.in:3:warning: defaults for choice values not supported

application/example/example_legacy/uai_demo/uai_kws_demo/Config.in:15:warning: defaults for choice values not supported

application/example/example_legacy/uai_demo/uai_cifar10_demo/Config.in:15:warning: defaults for choice values not supported

configuration written to .config

  • 配置例程为helloworld_demo

  • 配置目标板为Linuxhost
  • aos make

lzd@ubuntu:~/AliOS-Things$ sudo apt-get install g++-multilib

lzd@ubuntu:~/AliOS-Things$ cd out/

lzd@ubuntu:~/AliOS-Things/out$ ls

config helloworld_demo@linuxhost

lzd@ubuntu:~/AliOS-Things/out$ cd helloworld_demo@linuxhost/

lzd@ubuntu:~/AliOS-Things/out/helloworld_demo@linuxhost$ cd binary/

lzd@ubuntu:~/AliOS-Things/out/helloworld_demo@linuxhost/binary$ ls

helloworld_demo@linuxhost.bin helloworld_demo@linuxhost.map helloworld_demo@linuxhost_ota.bin.xz readme.txt

helloworld_demo@linuxhost.elf helloworld_demo@linuxhost_map.csv helloworld_demo@linuxhost.stripped.elf

helloworld_demo@linuxhost.hex helloworld_demo@linuxhost_ota.bin link.opts

lzd@ubuntu:~/AliOS-Things/out/helloworld_demo@linuxhost/binary$ ./helloworld_demo@linuxhost.elf

配置环境变量

$ cd ~

$ vi .bashrc

# 文件末尾添加环境变量,指向AliOS Things源码目录,并保存退出

export AOS_SDK_PATH=/home/user/AliOS-Things # user 是我们自己ubuntu的用户名称

# 使配置立即生效

$ source .bashrc

$ echo $AOS_SDK_PATH

# 打印如下内容,证明环境变量配置成功

百万 源码 资源

/home/lzd/AliOS-Things


1

鲜花
1

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

相关阅读

  • 长春信息港
    1970-01-01
  • 长春信息港
    1970-01-01
  • 长春信息港
    1970-01-01
  • 长春信息港
    1970-01-01
  • 长春信息港
    1970-01-01
  • 长春信息港
    1970-01-01
长春信息港

扫一扫二维码关注我们Get最新资讯

相关分类
热点推荐
关注我们
长春信息港与您同行

客服电话:400-000-0000

客服邮箱:xjubao@163.com

周一至周五 9:00-18:00

长春信息港 版权所有

Powered by 长春信息港 X1.0@ 2015-2020