Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
alios-things
AliOS-Things
提交
74442a7d
A
AliOS-Things
项目概览
alios-things
/
AliOS-Things
11 个月 前同步成功
通知
62
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AliOS-Things
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
74442a7d
编写于
5月 20, 2022
作者:
G
guoliang.wgl
提交者:
skylarCai
5月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update for online upgrade
上级
2058d465
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
16 addition
and
14 deletion
+16
-14
components/py_engine/adapter/esp32/fs/boot.py
components/py_engine/adapter/esp32/fs/boot.py
+3
-3
components/py_engine/adapter/esp32/m5stackcore2/boot.py
components/py_engine/adapter/esp32/m5stackcore2/boot.py
+1
-3
components/py_engine/adapter/haas/fs/boot.py
components/py_engine/adapter/haas/fs/boot.py
+1
-3
components/py_engine/external/libs/espc3/libotaput.a
components/py_engine/external/libs/espc3/libotaput.a
+0
-0
components/py_engine/package.yaml
components/py_engine/package.yaml
+4
-1
hardware/board/esp_c3_32s_kit/package.yaml
hardware/board/esp_c3_32s_kit/package.yaml
+1
-0
hardware/board/esp_s3_12k_kit/package.yaml
hardware/board/esp_s3_12k_kit/package.yaml
+1
-0
hardware/board/m5stackcore2/package.yaml
hardware/board/m5stackcore2/package.yaml
+1
-0
hardware/board/nodemcu32s/package.yaml
hardware/board/nodemcu32s/package.yaml
+1
-0
solutions/py_engine_esp32_demo/package.yaml
solutions/py_engine_esp32_demo/package.yaml
+3
-4
未找到文件。
components/py_engine/adapter/esp32/fs/boot.py
浏览文件 @
74442a7d
...
...
@@ -20,7 +20,9 @@ def _connect_wifi():
channel
=
kv
.
get
(
'app_upgrade_channel'
)
if
channel
==
"disable"
:
pass
elif
channel
==
"mqtt"
:
elif
channel
==
"bt"
:
execfile
(
'/lib/oneMinuteOnCloud.py'
)
else
:
import
online_upgrade
online_upgrade
.
on
(
_on_get_url
)
try
:
...
...
@@ -28,8 +30,6 @@ elif channel == "mqtt":
#_thread.stack_size(10 * 1024)
except
Exception
as
e
:
print
(
e
)
else
:
execfile
(
'/lib/oneMinuteOnCloud.py'
)
...
...
components/py_engine/adapter/esp32/m5stackcore2/boot.py
浏览文件 @
74442a7d
...
...
@@ -25,9 +25,7 @@ def _connect_wifi(ssid, passwd):
channel
=
kv
.
get
(
'app_upgrade_channel'
)
if
channel
==
"disable"
:
pass
else
:
if
channel
!=
"disable"
:
ssid
=
kv
.
get
(
'_amp_wifi_ssid'
)
passwd
=
kv
.
get
(
'_amp_wifi_passwd'
)
if
isinstance
(
ssid
,
str
)
and
isinstance
(
passwd
,
str
):
...
...
components/py_engine/adapter/haas/fs/boot.py
浏览文件 @
74442a7d
...
...
@@ -21,9 +21,7 @@ def _on_get_url(url):
channel
=
kv
.
get
(
'app_upgrade_channel'
)
if
channel
==
"disable"
:
pass
else
:
if
channel
!=
"disable"
:
import
online_upgrade
online_upgrade
.
on
(
_on_get_url
)
try
:
...
...
components/py_engine/external/libs/espc3/libotaput.a
0 → 100644
浏览文件 @
74442a7d
文件已添加
components/py_engine/package.yaml
浏览文件 @
74442a7d
...
...
@@ -95,7 +95,10 @@ build_config:
-
external/libs/haas1000 ? <BOARD_HAAS100>
-
external/libs/haas1000 ? <BOARD_HAASEDUK1>
-
external/libs/rtl872xd ? <BOARD_HAAS200>
-
external/libs/esp32 ? <ESP_PLATFORM>
-
external/libs/esp32 ? <BOARD_NODEMCU32S>
-
external/libs/esp32 ? <BOARD_NODEMCU32S3>
-
external/libs/esp32 ? <BOARD_M5STACKCORE2>
-
external/libs/espc3 ? <BOARD_NODEMCU32C3>
source_file
:
# adapter
...
...
hardware/board/esp_c3_32s_kit/package.yaml
浏览文件 @
74442a7d
...
...
@@ -34,6 +34,7 @@ def_config:
CONFIG_LFS_PAGE_NUM_PER_BLOCK
:
16
LFS_CONFIG_DEBUG
:
0
LFS_CONFIG_TRACE
:
0
MICROPY_PY_CHANNEL_ENABLE
:
0
# CONFIG_LFS_PROG_SIZE: 1024 # the mininal programable size, usually page size for nand and any size for nor
# CONFIG_LFS_PAGE_NUM_PER_BLOCK: 4 # choose the right value for nand, and usually any value for nor
# CONFIG_LFS_BLOCK_NUMS: 1198 # the total block count for lfs parition
...
...
hardware/board/esp_s3_12k_kit/package.yaml
浏览文件 @
74442a7d
...
...
@@ -34,6 +34,7 @@ def_config:
CONFIG_LFS_PAGE_NUM_PER_BLOCK
:
16
LFS_CONFIG_DEBUG
:
0
LFS_CONFIG_TRACE
:
0
MICROPY_PY_CHANNEL_ENABLE
:
1
# CONFIG_LFS_PROG_SIZE: 1024 # the mininal programable size, usually page size for nand and any size for nor
# CONFIG_LFS_PAGE_NUM_PER_BLOCK: 4 # choose the right value for nand, and usually any value for nor
# CONFIG_LFS_BLOCK_NUMS: 1198 # the total block count for lfs parition
...
...
hardware/board/m5stackcore2/package.yaml
浏览文件 @
74442a7d
...
...
@@ -59,4 +59,5 @@ def_config:
# CONFIG_LFS_BLOCK_NUMS: 1198 # the total block count for lfs parition
MICROPY_PY_UCAMERA
:
1
CONFIG_UART_CAMERA_ENABLE
:
1
MICROPY_PY_CHANNEL_ENABLE
:
1
hardware/board/nodemcu32s/package.yaml
浏览文件 @
74442a7d
...
...
@@ -34,6 +34,7 @@ def_config:
CONFIG_LFS_PAGE_NUM_PER_BLOCK
:
16
LFS_CONFIG_DEBUG
:
0
LFS_CONFIG_TRACE
:
0
MICROPY_PY_CHANNEL_ENABLE
:
1
# CONFIG_LFS_PROG_SIZE: 1024 # the mininal programable size, usually page size for nand and any size for nor
# CONFIG_LFS_PAGE_NUM_PER_BLOCK: 4 # choose the right value for nand, and usually any value for nor
# CONFIG_LFS_BLOCK_NUMS: 1198 # the total block count for lfs parition
...
...
solutions/py_engine_esp32_demo/package.yaml
浏览文件 @
74442a7d
## 第一部分: 基础信息
name
:
py_engine_esp32_demo
# <必选项> 包名称 (符合C语言变量命名规则),长度少于等于64字节
version
:
master
# <必选项> 组件版本号
version
:
master
# <必选项> 组件版本号
description
:
start python engine esp32 demos
# <必选项> 建议至少20字以上
type
:
solution
# <必选项> 组件类型,为:solution, board, chip, arch, drv_core, drv_peripheral, drv_external_device, kernel, common, sdk, document
...
...
@@ -21,7 +21,7 @@ depends:
-
amp_adapter
:
master
-
kv
:
master
-
littlefs
:
master
-
esp_c3_32s_kit
:
master
-
m5stackcore2
:
master
supported_boards
:
-
nodemcu32s
:
master
-
m5stackcore2
:
master
...
...
@@ -87,7 +87,7 @@ supported_boards:
# toolchain_prefix: csky-abiv2-elf # <可选项> 编译器前缀
solution
:
cpu_id
:
cpu0
board_name
:
esp_c3_32s_kit
board_name
:
m5stackcore2
## 第四部分:编译连接信息
# build_config: # <可选项> 编译配置项
...
...
@@ -158,7 +158,6 @@ def_config:
SYSINFO_NETWORK
:
WIFI/BT
SYSINFO_DEVICE_TYPE
:
solo
SYSINFO_CLOUD_TYPE
:
aliyun
MICROPY_PY_CHANNEL_ENABLE
:
0
## 第六部分:安装信息
# install:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录