摘要: 根据 https://doc.embedfire.com/linux/imx6/driver/zh/latest/linux_driver/pwm_sub_system.html 使用rock5b开发板 ,radxa官方os ,Macmini 选择pin: 现在pin5 pwm14-M1 cd /u 阅读全文
posted @ 2023-11-28 20:42 杨大茄子 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 我的rock5b安装的其radxa官方OS,里面有一个rsetup程序的overlay功能可以管理设备树, 我想根据 https://github.com/LitchiCheng/mpu6050-linux 来尝试连接一个6050; 先 rsetup 里面的overlay管理 开启 i2c8-m4 阅读全文
posted @ 2023-11-22 21:42 杨大茄子 阅读(106) 评论(0) 推荐(0) 编辑
摘要: systemctl status default.target cd /lib/systemd/system rm default.target 原来的默认目标链接在图形桌面,删去 ln -s multi-user.target default.target 重建链接到多用户命令行的 default 阅读全文
posted @ 2023-11-21 17:26 杨大茄子 阅读(137) 评论(0) 推荐(0) 编辑
摘要: https://docs.radxa.com/rock5/official-images?model=ROCK+5B 下载rock5b 官方操作系统 文件是一个 .img.xz 文件 打开一个mac终端, ls /dev 关注/dev/disk相关的,插入SD卡读卡器到macmini,再次 ls / 阅读全文
posted @ 2023-11-20 18:33 杨大茄子 阅读(464) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> extern char **environ; int main(){ int i=0; while(1){ if(*(environ+i)==NULL) break; printf(":%s\n",*(environ+i)); i++ ; } return 0; 阅读全文
posted @ 2023-09-14 14:43 杨大茄子 阅读(30) 评论(0) 推荐(0) 编辑
摘要: https://github.com/rlepigre/bare-metal-aarch64/tree/master/step-04 void kernel_entry(){ // Go in an infinite loop of "wfe" instructions. while(1){ asm 阅读全文
posted @ 2023-09-01 01:41 杨大茄子 阅读(13) 评论(0) 推荐(0) 编辑
摘要: iptables简介 netfilter/iptables(简称为iptables)组成Linux平台下的包过滤防火墙,与大多数的Linux软件一样,这个包过滤防火墙是免费的,它可以代替昂贵的商业防火墙解决方案,完成封包过滤、封包重定向和网络地址转换(NAT)等功能。 iptables基础 规则(r 阅读全文
posted @ 2023-08-28 20:31 杨大茄子 阅读(188) 评论(0) 推荐(0) 编辑
摘要: https://www.blizzard.com/zh-tw/download?platform=macos 下载战网安装包 安装,却卡进度条在 45% 强制退出 sudo rm -rf /Users/Shared/Battle.net rm -rf ~/Library/Preferences/co 阅读全文
posted @ 2023-08-27 14:31 杨大茄子 阅读(5312) 评论(1) 推荐(0) 编辑
摘要: armV8-A 架构文档的 C5.2.1 在EL0不可用,EL1时。。。。。,返回值前60bits 和后2bits都为0 修改一下boot.S // The entry point is in its own section ".text.boot". .section ".text.boot" / 阅读全文
posted @ 2023-08-26 16:39 杨大茄子 阅读(68) 评论(0) 推荐(0) 编辑
摘要: macOS: brew install qemu qemu-system-aarch64 --version 去 https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads 下载交叉编译工具链 PREFIX=/Applicati 阅读全文
posted @ 2023-08-26 15:43 杨大茄子 阅读(14) 评论(0) 推荐(0) 编辑