会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
💮🗻🌺🎋⛩🌸🎏🍱🎐🏯
🐹 是 大 佬 鼠 鼠 喔!🐭
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
15
下一页
2021年1月9日
Sipeed MaixPy3 CPython 开发文档
摘要: 使用面向模块接口开发,链接跨平台的 Python 或 C 包,统一加载到 Python3 环境当中。 目前支持的 Python3 环境,该模块包描述了如何构建、链接、测试、发布的方法。 PC x86_64 的 Pyhon3 环境 Sipeed v831 的 Python3 交叉编译环境 Python
阅读全文
posted @ 2021-01-09 18:25 Juwan
阅读(1081)
评论(0)
推荐(0)
2021年1月8日
2021 年 当安装 wheel 出现 whl is not a supported wheel on this platform. 的时候
摘要: 伴随着的问题还有 no attribute 'pep425tags' 找不到这个接口。 2021 年了,这些接口在代码里都改得面目全非了,看 Python-3.8.5/install-pip/usr/lib/python3.8/site-packages/pip/_internal/models/t
阅读全文
posted @ 2021-01-08 10:03 Juwan
阅读(446)
评论(0)
推荐(0)
2021年1月4日
CPython 内存标记用法
摘要: 如果不注意使用就会内存泄露,不会被 GC 回收。 Py_INCREF(first); // 标记 first 指针 Py_XDECREF(first); // 移除 first 指针 自行注意吧。 推荐看这篇:使用 C 写 Python 模块时内存回收管理,Py_INCREF() 和 Py_DECR
阅读全文
posted @ 2021-01-04 11:42 Juwan
阅读(125)
评论(0)
推荐(0)
2020年12月23日
在 64M 以下使用 jupyter notebook 编写 Python3 代码(用 rpyc 取代 ipykernel)
摘要: 让低端芯片也可以 Remote Python Call ,看仓库 https://github.com/junhuanchen/rpyc_ikernel 的说明。 注意 IPython 的内存占用比想象的更多,光是启动就需要 38M 了,所以才需要 rpyc 的内核,只需要 11M 即可启动。 给【
阅读全文
posted @ 2020-12-23 13:49 Juwan
阅读(398)
评论(0)
推荐(0)
给 V831 启用 swap 功能。
摘要: 启用 swap 功能 在 make menuconfig 里面选中 swap 相关的命令。 │ Symbol: BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD [=y] │ │ Type : boolean │ │ Prompt: Support discard opti
阅读全文
posted @ 2020-12-23 13:34 Juwan
阅读(326)
评论(0)
推荐(0)
linux 在 docker 编译 arm 应用
摘要: 在 docker 编译 arm 应用 正常情况下 docker 是不能启动与宿主机不同架构的服务,此时要启动 arm 架构的环境,就需要提供 qemu 虚拟机的服务支持。 关于这个 qemu 能否使用可以自行查阅。 这将极大的方便我们在 x86 机器直接进行编译和测试 arm 的程序,测试完成后再将
阅读全文
posted @ 2020-12-23 11:24 Juwan
阅读(2307)
评论(0)
推荐(0)
2020年12月1日
在 docker 上使用 qemu-static 进行 armv7 & arm64 虚拟机软件开发一条龙服务。
摘要: 初期启动硬件资源,主要有如下内容。 https://github.com/rycus86/docker-arm64v8-debian-qemu https://stackoverflow.com/questions/58298774/standard-init-linux-go211-exec-us
阅读全文
posted @ 2020-12-01 10:23 Juwan
阅读(3719)
评论(0)
推荐(0)
2020年11月19日
[小技巧] micropython 如何执行 *.mpy 文件
摘要: 如果想保护 py 代码,可以将代码编译成字节码运行。 目前标准 micropyhton 只能通过 import 执行。 获取 *.mpy 的手段有编译生成,或上层 compile 导出。 测试看这里:https://github.com/micropython/micropython/blob/ma
阅读全文
posted @ 2020-11-19 18:24 Juwan
阅读(1393)
评论(4)
推荐(0)
从零开始深入 Linux 底层(软件工程)
摘要: 大 佬 鼠 开始进入 linux 开发拉! Linux Kernel C语言编程范式 https://www.cnblogs.com/wahaha02/p/10147639.html U-boot引导内核流程分析 https://blog.csdn.net/qq_28992301/article/d
阅读全文
posted @ 2020-11-19 13:18 Juwan
阅读(919)
评论(0)
推荐(1)
2020年10月12日
重构 maixpy 的 board_info + config.json 从而自适应硬件版型。
摘要: 主要是备份代码。 class board_info: def set(key, value=None): return setattr(__class__, key, value) def all(): return dir(__class__) def get(): return getattr(
阅读全文
posted @ 2020-10-12 14:59 Juwan
阅读(552)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
15
下一页
公告