会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
秦舒云
博客园
首页
新随笔
订阅
管理
2024年10月14日
OpenHarmony的init程序、init配置与启动项配置
摘要: 1. init程序编译完后部署在 /bin/init 2. init程序的启动配置文件为 /system/etc/init.cfg 看一下内容与格式:直达 https://gitee.com/openharmony/startup_init/blob/OpenHarmony-v4.1.1-Relea
阅读全文
posted @ 2024-10-14 16:06 秦舒云
阅读(587)
评论(0)
推荐(0)
2024年9月24日
OpenHarmony 的启动子系统startup与init组件
摘要: 1. rk3568的startup配置 配上init component以后,系统就会编译集成这个组件。 vendor/hihope/rk3568/config.json { "subsystem": "startup", "components": [ { "component": "init",
阅读全文
posted @ 2024-09-24 17:33 秦舒云
阅读(233)
评论(0)
推荐(0)
OpenHarmony 是如何通过--product-name编译选项找到编译明细的
摘要: 0. 编译命令 我们知道鸿蒙系统的编译命令如下 ./build.sh --product-name rk3568 1. 通过 product-name 找到编译明细目录 vendor/hihope/rk3568 编译系统默认vendor目录是这样组织的 vendor/厂商名称/产品名称,那么通过编译
阅读全文
posted @ 2024-09-24 16:41 秦舒云
阅读(557)
评论(0)
推荐(0)
OpenHarmony Linux内核的config配置
摘要: 鸿蒙系统对Linux内核的使用方式对于传统的Linux内核和驱动开发者来说已经发生了很大的变化,首先就是内核config选项的配置方式。 传统上,我们直接进入到linux内核目录进行 make menuconfig就可以了,最终会生成1个.config文件,但是鸿蒙不是这样子的。 为了解决传统的一平
阅读全文
posted @ 2024-09-24 11:30 秦舒云
阅读(674)
评论(0)
推荐(0)
2024年9月18日
OpenHarmony4.1 标准版编译指南
摘要: 1. 源码下载 官方源码下载指南 我们采用下载源码包的方式得到源码 https://gitee.com/link?target=https%3A%2F%2Frepo.huaweicloud.com%2Fopenharmony%2Fos%2F4.1-Release%2Fcode-v4.1-Releas
阅读全文
posted @ 2024-09-18 23:03 秦舒云
阅读(1047)
评论(0)
推荐(0)
2024年6月17日
从Linux内核设计者的角度看 - 设备驱动的架构设计
摘要: Linux中的设备驱动概念中的设备和驱动指的是啥? 直接说设备驱动其实是比较抽象的,举个例子就特别明了了,比如我们要控制1个led的亮灭,那么led就是设备,控制led运行的软件就是该设备的驱动。也就是说,这里的设备就是现实中的一个电子设备,设备驱动就是控制这个电子设备运行的软件程序。 在现实生活中
阅读全文
posted @ 2024-06-17 17:15 秦舒云
阅读(42)
评论(0)
推荐(0)
2024年4月15日
compat_ioctl - Linux 64位内核(arm64)驱动兼容32位应用程序(armhf)的ioctl接口
摘要: 最近,公司来了一次硬件升级,开发平台从全志T3(armhf)升级到全志T527(arm64),平台迁移后,想直接使用原来动态库和应用程序从而减少开发量,用户态大部分接口都运行正常,唯独ioctl接口无法调用成功。 如果要成功移植要做到以下几点: 1. 驱动要同时实现 unlocked_ioctl 和
阅读全文
posted @ 2024-04-15 15:20 秦舒云
阅读(1350)
评论(0)
推荐(0)
2024年1月16日
Linux内核API-字符串操作
摘要: Linux的字符串操作API 代码路径: 头文件: https://github.com/torvalds/linux/blob/master/include/linux/string.h 实现: https://github.com/torvalds/linux/blob/master/lib/s
阅读全文
posted @ 2024-01-16 11:23 秦舒云
阅读(128)
评论(0)
推荐(0)
2023年11月28日
Linux中断下半部处理机制-tasklet
摘要: 转载原文:https://www.cnblogs.com/Wangzx000/p/17488378.html 核心函数 linux\include\linux\interrupt.h static inline void tasklet_schedule(struct tasklet_struct
阅读全文
posted @ 2023-11-28 09:25 秦舒云
阅读(124)
评论(0)
推荐(0)
2023年11月20日
Linux设备树device-tree完全解析
摘要: 1. Linux中说的设备树是什么? 对于搞Linux驱动开发和BSP的工程师来说,总是不可避免的接触到设备树,那么设备树指的是什么呢?其实通常所说的设备树是指Linux内核里面的设备树文件,以.dts结尾,也叫做设备树源文件,这个文件可以通过一个叫dtc的程序把他编译成.dtb文件,编译后的文件就
阅读全文
posted @ 2023-11-20 19:59 秦舒云
阅读(840)
评论(0)
推荐(0)
2023年10月28日
使用Rust语言进行ioctl
摘要: 首先需要引入nix库 官方crate地址为: https://crates.io/crates/nix 在里面可以查看文档和版本信息。 nix里面有个 nix::sys::ioctl 模块,类似于C标准库的 ioctl.h,用来进行ioctl操作。 使用方法: 修改 Cargo.toml [depe
阅读全文
posted @ 2023-10-28 17:28 秦舒云
阅读(293)
评论(0)
推荐(0)
2023年10月18日
T3-lichee编译环境设置
摘要: sudo apt install make gcc bc u-boot-tools bzip2 fakeroot gawk mkbootimg busybox android-sdk-build-tools android-sdk-platform-tools 问题1: usr/bin/ld: sc
阅读全文
posted @ 2023-10-18 17:17 秦舒云
阅读(46)
评论(0)
推荐(0)
2023年10月10日
tinyalsa的使用
摘要: 查看各个可操作项的情况 tinymix contents 设置某个操作项 tinymix set 10 127 播放wav声音 tinyplay didi.wav
阅读全文
posted @ 2023-10-10 17:25 秦舒云
阅读(75)
评论(0)
推荐(0)
tinyalsa的交叉编译
摘要: 国内的git源 https://gitee.com/mirrors_tinyalsa/tinyalsa 编译: 修改Makefile export PREFIX ?= /usr/local/tinyalsa/ export CROSS_COMPILE := arm-linux-gnueabihf-
阅读全文
posted @ 2023-10-10 13:43 秦舒云
阅读(414)
评论(0)
推荐(0)
2023年10月8日
WSL docker环境中运行StableDiffusion
摘要: 教程来源 Running Stable Diffusion WebUI Using Docker | Sygil WebUI (sygil-dev.github.io) 1. 安装运行的依赖环境 1.1 安装docker (https://docs.docker.com/engine/install
阅读全文
posted @ 2023-10-08 08:56 秦舒云
阅读(338)
评论(0)
推荐(0)
2023年10月7日
ALSA 用户态软件(alsa-lib与alsa-utils)交叉编译
摘要: alsa-lib-1.2.10 配置与编译 下载地址 https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.10.tar.bz2 export PATH=$PATH:/opt/ext-toolchain/bin/ export CC=arm-
阅读全文
posted @ 2023-10-07 09:25 秦舒云
阅读(720)
评论(0)
推荐(0)
2023年9月25日
通过IOCTL 进行内核态与用户态交互
摘要: #include <linux/init.h> #include <linux/printk.h> #include <linux/module.h> #include <linux/miscdevice.h> #include <linux/fs.h> #include <asm/uaccess.
阅读全文
posted @ 2023-09-25 11:46 秦舒云
阅读(191)
评论(0)
推荐(0)
2023年9月22日
MISC设备使用代码框架
摘要: #include <linux/init.h> #include <linux/printk.h> #include <linux/module.h> #include <linux/miscdevice.h> #include <linux/fs.h> /* 模块信息 */ #define HI_
阅读全文
posted @ 2023-09-22 17:11 秦舒云
阅读(89)
评论(0)
推荐(0)
T3-调整boot-resource分区大小
摘要: tools/pack/chips/sun8iw11p1/boot-resource/boot-resource.ini tools/pack/chips/sun8iw11p1/configs/default/sys_partition_linux.fex
阅读全文
posted @ 2023-09-22 13:37 秦舒云
阅读(94)
评论(0)
推荐(0)
2023年9月20日
全志T3(armhf) - QT5(qt5.15.10)编译与使用
摘要: 1. 导入交叉编译器路径加入PATH export PATH=$PATH:/opt/ext-toolchain/bin/ 我的交叉编译工具链放在 /opt/ext-toolchain下 ls /opt/ext-toolchain arm-linux-gnueabihf bin gcc-linaro-
阅读全文
posted @ 2023-09-20 10:11 秦舒云
阅读(806)
评论(0)
推荐(0)
下一页
公告