您尚未登录。

#1 Re: 全志 SOC » Linux版的小智AI聊天机器人,它来了 » 2025-06-01 09:06:22

由于没找到合适的板子,测试不了效果。
把之前的代码上传上来,附件是补齐了平台缺少的代码,修改工具链为你自己的就可以编译了。
xiaozhi-linux.tar.xz

#2 Re: 全志 SOC » Linux版的小智AI聊天机器人,它来了 » 2025-05-17 08:11:05

@空耳
直接去掉就行 不需要编译 ,只需要最lvgl基本的功能。

#3 Re: 全志 SOC » Linux版的小智AI聊天机器人,它来了 » 2025-04-07 09:30:40

准备弄到f1c或者v3s上跑一跑看看啥效果

#4 全志 SOC » Linux版的小智AI聊天机器人,它来了 » 2025-04-06 22:36:02

xfdr0805
回复: 8

最近开源的ESP32小智AI挻火,想体验一下,但手里没有那个数字麦克风,一直也没有买。

今天在B站看到韦东山团队震撼发布的Linux AI小智终极方案。只要4天,就把ESP32的源码解析清楚,完全移植到Linux,并且代码全开源
github地址如下 :https://github.com/100askTeam/xiaozhi-linux
bilibili地址如下:32小时极限开发!韦东山团队震撼发布Linux AI小智终极方案 | 深度整合语音交互+DeepSeek大模型全链路解析

马上下载下来编译一下,先在电脑上体验一下再说。我用的是ubuntu24.04,注意仓库里只有源码,与平台相关的东西都没有,需要自己处理,否则编译不过去
效果还不错,反应挻快的。默认语音是台妹,可以修改为另外几种,大模型默认是Qwen,可以选doubao,deepseek等。
不过好像不能语音唤醒或者打断,也没有本地唤醒词。如果能加上这部分,那就太棒了。感谢韦东山团队移植及分享。

_2025-04-06_21-31-24.png
_2025-04-06_21-30-50.png
_2025-04-06_21-30-26.png


如果不想编译,只想体验一把,下载附件运行即可体验
xiaozhi_ai_ubuntu24.04_x64.tar.xz

#5 Re: Anyui » anyUI 一款居于LVGL 的HMI 免费面代码 UI开发工具,让UI开发节省99%工作量 » 2025-03-20 14:52:21

cris8259 说:

为什么要做这个工具,初衷是什么,特点优势是什么

同问?
lvgl官方也有了
免费有NXP有GUI Guider。匠心创 AI Builder
收费有Squareline studio
开源有EEZ-studio ……

#6 Re: 全志 SOC » 分享在V3S RTL8723DS 上调试蓝牙音频的一点经验 » 2025-03-14 10:05:14

@Ashuai
你是咋编译的 ?
我记得是把驱动放在内核驱动目录编译是没有问题的
单独编译是编译不过去的

#7 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2025-03-05 08:50:29

有个跟sd2828类似的芯片 LT8918   有人有寄存器手册吗?

#8 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2025-02-10 20:44:02

li6848 说:

屏幕闪屏,忽明忽暗的,有大佬瞅瞅吗。是我机子问题吗。

补个图
_20240926084749.jpg

#9 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2025-01-13 12:19:37

@li6848
有很多种方法,我使用mongoose 用c或者c++都可以 前后端一起搞定

#10 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2025-01-09 21:19:01

@li6848
外部传感器是通过MODBUS TCP传输的 页面里填上IP,端口号,寄存器地址 主机会主动连接上。

#11 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2025-01-09 21:13:18

@ubuntu
可以改成多语言的,数字不好加大了,那样看着不太协调了。

#13 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2025-01-08 10:02:02

li6848 说:
ubuntu 说:
li6848 说:

屏幕闪屏,忽明忽暗的,有大佬瞅瞅吗。是我机子问题吗。

应该是货架上面淘汰下来的问题价签,所以下单前问清楚。

吐血……谢谢大佬。只能拿来纯玩了……

你用的几V供电? 如果是12V 那确实有问题 如果是5V的话 那就是供电不足
要用5V的话 拆开绕过降压电压电路就没那么闪了。

#14 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2025-01-02 10:04:42

@li6848
感谢,另外在系统里没发现i2c设备 想焊个传感器。估计是设备终树里没启用,大佬知道如何处理吗

#15 Re: 全志 SOC » 45块买到的10.1寸保资LCD价签F1C200S (二) » 2025-01-02 09:38:51

jordonwu 说:

这个有人成功自己编译固件点屏了吗?

没用过全志tina Linux, 不过主线编译应该没问题,坛里资料挻全了。
还是想上rtt 不过问题是sdio wifi xr819不好驱

#16 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-12-31 19:56:25

@资本家大善人
esp做个简单的webserver或者tcpserver 然后client去获取不是更方便吗。
多路当然也问题
mqtt也可以,你发布,我订阅,这不就有了吗?^_^

#17 Re: 全志 SOC » 45块买到的10.1寸保资LCD价签F1C200S (二) » 2024-12-31 18:05:49

yishuizi 说:
memory 说:

请问如何用命令行调整背光亮度?
https://bbs.aw-ol.com/topic/906/share/2

用这个测试调节背光,并没有卵用。

我也使用了大神的dws,效果不错,就是亮度目前不能调。晚上太亮了

这个晚上确实太亮了,跟个灯泡一样。
这个外壳卡的真是结实,当时没拆开,就没继续拆了
准备再拆一下,要是拆开的话,我抽空把自动调整亮度的加上,顺便焊个温湿度传感器上去,手里正好有几个AHT20,SHT30

#18 Re: 全志 SOC » 45块买到的10.1寸保资LCD价签F1C200S (二) » 2024-12-31 17:53:42

@memory
我说当时怎么测试亮度始终没变化,原来是电阻没焊,直接最高亮度了,看来必须得拆了

#19 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-12-05 11:06:34

@yishuizi
因为源码有一部分是产品中的代码 所以还不能发出来。 那个温湿试确实是固定的 因为本来打算打开接上aht20的 奈何拆不开盖子 就没再弄了。 另外一个办法是通过网络获取外部传感器数据 比如弄个esp8266 通过mqtt或者tcp,udp传给屏幕。

#22 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » AWTK 开源智能串口屏方案发布 » 2024-11-10 21:26:00

@lixianjing
我说的是AWSTUDIO社区版本,不是AWTK,怎么还要LIC呢,我的早就过期了,还要定期续期,  如果过期了就无法使用。
我用社区版本,就是用来学习的,用的顺手了,到时项目上可能就会选择AWTK了,商业上用那公司就买LIC。

我用过WPF,MVVM用起来很方便,所以就想再试试,结果LIC过期,我填的信息不全,也就没再续期了

#24 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-10-24 20:52:01

@18578292200
webserver是使用的mongoose来实现的,非常方便,没用使用像lighttpd或者tinyhttp这样的server

#25 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-10-24 20:43:49

@DDER
网页是编译到程序里了,数据是通过POST方式传输的,跟LVGL没有关系的

#27 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-10-23 22:17:44

JiangLin 说:
18578292200 说:
liangrushui 说:

@18578292200
请问这个应用时自带的还是你编写然后下载进去的?

是自己写的,我放了下载链接

能看一下我的问题吗?连接wifi的问题,在楼上。

你这个是因为开机也启动一个wpa进程,把它kill掉再手动连接就行了

#28 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-10-23 22:08:52

nikoladi 说:
xfdr0805 说:

整了个时钟 有白色 黑色 彩色 三种模式 还有6种动画特效
https://whycan.com/files/members/4881/IMG_4025.mp4

这个动画怎么实现的?lvgl 的动画吗?

就是lvgl动画

#29 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-10-21 19:59:55

整了个时钟 有白色 黑色 彩色 三种模式 还有6种动画特效

#30 Re: 全志 SOC » 45块顺丰包邮买到的10.1寸保资LCD价签F1C200S 值不值 » 2024-10-20 20:11:16

看到你们玩的这么嗨,手痒搞了一台。
这个能修改成横屏吗?如果不行 就得lvgl处理了

#31 Re: 全志 SOC » 各位大佬们,想请教一下关于EA3036这颗芯片的相关问题。 » 2024-10-17 13:57:59

这玩意儿比较小 一般焊接没问题 电压基本就是正常的

#32 Re: 工业芯 匠芯创 » luban-lite的lwip组件编译失败 » 2024-10-17 13:55:49

网络部分为什么官方不对接到rtt网络框架中呢 还要third-part当中单独弄一个lwip出来?

#33 Re: 工业芯 匠芯创 » 请问Linux下D213ECV跑LVGL帧率这么低正常吗? » 2024-07-30 11:14:20

我之前用d12x测试过lvgl8.3 rgb888 1024x600 平均帧率45 也是中间有几步4-5帧,ppt效果
DA2376B1-4ED4-4AC3-A172-6C24514B2409.jpeg

#34 Re: 工业芯 匠芯创 » ubuntu下终端scons编译时,没有错误高亮显示,如何解决呢? » 2024-07-04 08:07:06

@温柔的猪 之前回复过你,还没搞定吗。在rtconfig.py 里添加 -fdiagnostics-color=always 就会有颜色提示了

#35 Re: ESP32/ESP8266 » 计划做一款基于ESP32 S3的调试工具,具备工业485、CAN调试功能 » 2024-06-13 09:19:58

@Gentlepig
感觉AIC D13x 挂个wifi模块 非常的合适 。需要的全部都有了

#36 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 原生微信Linux版发布,体验不错 » 2024-06-11 18:01:50

有新版本了:
这个版本 最小化后 可以正常显示出来了,再也不用killall 了 。
测试各个功能都正常,已满足日常使用了
https://software.openkylin.top/openkylin/yangtze/pool/all/wechat-beta_1.0.0.238_amd64.deb

#37 Re: 工业芯 匠芯创 » D133 Eclipse工程在Linux系统下编译的解决办法 » 2024-06-09 14:38:33

海石生风 说:

因为upgcmd模式下的USB不是tty这种标准设备,而是自定义的USB设备。

upgcmd会根据VID和PID自动查找USB设备而无需-d选项,只有在接入了多个同类设备时才需要使用-d选项来区分。

谢谢!明白了。

#38 Re: 工业芯 匠芯创 » D133 Eclipse工程在Linux系统下编译的解决办法 » 2024-06-09 08:22:55

ArtInChip 说:

还是推荐VScode好用

我用的芯片是D12x,updcmd可以烧录吗?还是说这个是用于带USB芯片的烧录?
AIBURN我看是QT写的,能否编译个Linux下的烧录软件,要是能终端烧录就更好了。
ksnip_20240609-081744.png

#39 Re: Cortex M0/M3/M4/M7 » 又一个只有demo视频不卖芯片的蓝牙片子,BLE GR5526 » 2024-04-25 08:08:10

搭车问下,有人知道bp1048蓝牙芯片是如何烧录的吗?芯片手册有了、sdk有了、  尼玛没烧录器,总有一个环节是你搞不到的。:(

#40 Re: 工业芯 匠芯创 » D12x QFN68 官方开发板参考设计资料 » 2024-03-27 11:10:41

Gentlepig 说:

好东西,感谢分享。
---------------------------
D122BBV-REF-V1-0 参考设计.zip
这个是不是上传错了?我打开allegro格式的和pads格式的,都是个只刚开始布局的图,没有走线。

我打不开 但是没有传错,可能官方资料就是这样 big_smile

#42 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 原生微信Linux版发布,体验不错 » 2024-03-20 20:08:40

xfdr0805
回复: 5

等了好久,终于发布了 。
之前试过wine不太好用,不稳定,问题比较多。
后来就是用Virtualbox 安装了精简Windows10,显然也不是好办法,但是挻稳定,就是麻烦了点,占用资源多。
现在原生的出来了,安装后与Windows版相差无几,体验不错,几乎完美。
测试系统:
下载地址:

https://github.com/lovechoudoufu/wechat_for_linux


ksnip_20240320-200645.png

#43 Re: 工业芯 匠芯创 » D133EBS烧录失败问题 » 2024-01-08 10:30:34

ArtInChip 说:
xfdr0805 说:

请问有有没Linux下像孙熙那样的命令行烧录工具?

有的啊,你看了SDK了吗?2.6. 烧录镜像

我又看了一下 仍然没有找到。不是在doc下的文档吗?我按照文档在ubuntu22编译成功了

#44 Re: 工业芯 匠芯创 » D133EBS烧录失败问题 » 2024-01-06 13:43:29

请问有有没Linux下像孙熙那样的命令行烧录工具?

#49 Re: 工业芯 匠芯创 » 评估板和样片购买方式说明,匠芯创ArtInChip » 2023-11-14 18:53:47

能不能搞个像之前晕哥那样<论坛开源PCB可以免费申请3片样片>那样的活动?^_^

#51 Re: 工业芯 匠芯创 » 萌新来啦,匠芯创正式入驻WhyCan,第一波小福利正在准备中。。。。 » 2023-11-13 11:32:00

简单看了一下 官方代码直接支持rtthread 简直无缝替换现在用的f1c+rtt 就看性价比如何了

#52 Re: 全志 SOC » 有无国产TFT LCD偏置电源芯片? » 2023-11-10 10:28:01

67D5CD45-6BF3-4717-AF0D-F506874048B2.jpeg
看了下 这个应该可以 就是价格稍贵 不知道批量如何

#53 Re: 全志 SOC » 全志F1c200s开机时间问题 » 2023-09-05 22:16:02

资本家大善人 说:
xfdr0805 说:

看了一下日志 audio lcd sdio这些都裁了  就剩i2c gpio usb gaget这些了  好奇 这是做的啥应用?

留下的usb做虚拟串口终端
然后用Linux自带的iic-tools spi-tools 当debug工具

主要是好玩+练手
后面再加个屏幕玩玩

原来如此,优化的已经非常不错了,不过为啥不用RTT呢,这些工具也有,重点是秒启动  smile

#54 Re: 全志 SOC » 全志F1c200s开机时间问题 » 2023-09-05 11:44:05

看了一下日志 audio lcd sdio这些都裁了  就剩i2c gpio usb gaget这些了  好奇 这是做的啥应用?

#55 Re: 全志 SOC » 终于搞定f1c100s的i2s输出 » 2023-08-22 11:24:36

Water_bros 说:
哇酷小二 说:
Water_bros 说:

大佬,这个i2s的mclk可以不给吗?我外挂的dac通过晶振自己给,用的是es9018k2m,想试试能不能通过dop硬解dsd(

可以不用给mclk

那f1c200s的i2s最高支持多少位多少采样率的输出?


在128fs下最高支持192k 32bit采样率
这个pll来的mclk有点偏差 我算来算去最接近也只能24.571和22.571 响是没问题的 hifi是不用想了:)
手册写的是24.576和22.528
标准频率应该是24.576和22.5792

#57 全志 SOC » 求一个AXP259手册,发现这个芯片非常适合做便携音箱,奈何找不到手册 » 2023-08-15 21:27:34

xfdr0805
回复: 0

现在用的是CS5090+CS5038 组合,2S锂电池,升压到12V给tas5805供电。主控用的F1C
用到的电压 :1.2V 2.5V 3.3V 5V 12V

2023-08-15_21-20-02.png

20180704111324642.jpg

#59 DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 拆了一个随身WIFI 用的MTK方案 CPU是MT6735V 不知道能不能刷固件? » 2023-08-03 22:49:04

xfdr0805
回复: 3

前段时间买了一个随身wifi,用了一个月,9.9一个月120G  还是挻划算的。但是用的过程中发现这个东西WAN口倒是能获取到ipv6的地址,但是LAN却不支持ipv6,分配给客户端的地址都是ipv4的,系统提供的界面找不到跟ipv6相关的东西,问了客服也说不支持ipv6。这就造成无法访问家里的NAS ,因为NAS是用的ipv6  。因此拆机看看是不是能刷机什么的,如果不能刷机解决,那就得买个高通410方案的刷openwrt或者其它支持ipv6的固件了

IMG_1239_20230803-2245.jpg

IMG_1240.jpg

IMG_1246.jpg

wan已经获取到ipv6 地址
IMG_1225_20230803-2245.png

#61 Re: Php/Nodejs/Web/HTML5/Javascript/微信开发/Python » Gmeek 超轻量级个人博客框架 开源 » 2023-08-02 14:50:23

gitee搭建的静态博客 一更新就要审核 还必须手动发布 而且还特别容易有敏感词而过不了 现在不知道什么情况 因为早都不用了

#62 Re: 全志 SOC » 利用xfel及mkz工具实现一机一镜像量产方案 » 2023-07-19 20:12:14

同问,这个mkz工具在哪里获取呢?准备试一试这个方案

#64 Re: 全志 SOC » CoreMark Benchmark » 2023-06-15 16:04:21

超频跑一跑 不知能提高多少?

#66 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2023-05-19 09:28:17

vigour1000 说:

USB ID去掉了,没有反应   couldn't find an available UDC - added

出现这个 是你usb相关选项有没有勾选上的

#67 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 如何将计算出的系数转换为tas5805对应DSP数据? » 2023-05-18 22:46:18

还有TI的这个DSP   TLV320AIC3xxx  这个文档写白非常清楚,但不适用于tas5805.


一般 AIC31 系列为 16 位系数,而 AIC32 系列为 24 位系数,具体可以查看对应的数据手册。在
Resolution 位置设定对应的系数位数并回车,下面的窗口就显示出对应的滤波器情况,传输函数和对
应的参数的数值。这些数值即可用于写入 CODEC 内部对应的系数寄存器。数值的排列和窗口上面所
列的传输函数是对应的,比如对于两阶滤波器,有 N0, N1, N2 和 D1, D2 分别对应列出的 5 组数值。
而对于一阶的滤波器,N2 和 D2 为 0,所以只有三个系数,对应 N0, N1 和 D1。这些数值的定义和
CODEC 的数据手册中的定义是相对应的。

文档最后还给出了用程序计算 EQ 的参数的代码
最后举例说明在程序中怎样实时计算 EQ 的参数。通常 EQ 需要根据给定的频率带宽和增益来实时调整
的,其他类型的滤波器一般没有这种需求。在文档 SLAA447 中,作者给出了公式的推导方法和
Matlab 的工具生成的参数的转换方法,没有介绍怎样用代码将这些东西实现并联系起来,这里不在重
复 SLAA447 中讲的变换过程,直接给出经过测试验证正确的代码和简单注释供参考,从代码和注释来
看,转换的过程更加清晰和直观。

#include <stdio.h>
#include <math.h>
int main(int argc, char **argv){
double res = 8388607; /* 这是一个常量: (2^(B-1)–1); 24位系数: 8388607, 16位: 32767 */
double dBVal = 3; /* 增益 */
double SRVal = 48000; /* 采样率 */
double F0Val = 300; /* 频点 */
double BWVal = 100; /* 带宽 */
double A, omega, sn, cs, alpha; /* 中间量,S域到Z域双线性变换使用 */
double a0, a1, a2, b0, b1, b2; /* 系数,计算用中间量 */
double absMax = 0; /* 将b0, b1, b2转为小数时使用 */
int N0, N1, N2, D1, D2; /* 保存计算的系数结果 */
A = pow(10, (dBVal)/40);
omega = 2 * M_PI * (F0Val)/(SRVal);
sn = sin(omega);
cs = cos(omega);
alpha = A*sn/(2*F0Val/BWVal); /* 对于Peak EQ, Q = Q/A */
b0 = 1 + (alpha*A); /* 这里开始根据S域到Z域的映射计算Z域的系数 */
b1 = -1 * cs; /* 这里在转换的时候本应当乘以-2, 但是CODEC内部已经乘以2,所以这里只能乘以1 */
b2 = 1 - (alpha*A);
a0 = 1 + (alpha/A);
a1 = -1 * cs; /* 同上,这里本应乘以-2 */
a2 = 1 - (alpha/A);
b0 /= a0; /* 这里开始将a0变换为1 */
if(fabs(b0) > absMax) absMax = fabs(b0); /* 获取b0, b1, b2的最大绝对值 */
b1 /= a0;
if(fabs(b1) > absMax) absMax = fabs(b1);
b2 /= a0;
if(fabs(b2) > absMax) absMax = fabs(b2);
a1 /= (-1*a0); /* a1, a2乘以-1是因为CODEC滤波器的设计,参见第一章的逻辑方框图 */
a2 /= (-1*a0);
6
TLV320AIC3xxx 滤波器的设置与实时调节ZHCA721
if(absMax > 1.0) { /* 确保b0, b1, b2为纯小数 */
b0 /= absMax;
b1 /= absMax;
b2 /= absMax;
}
/* 转换为整数并打印结果。在显示的时候,因为最高位是符号位,所以如果超出位宽24/16位则需要去掉纯符号位,比如FF81AA09实际数
值取0x81AA09就是用于写到CODEC的系数数值 */
N0 = floor(b0*res);
N1 = floor(b1*res);
N2 = floor(b2*res);
D1 = floor(a1*res);
D2 = floor(a2*res);
printf("N0: %04X, N1: %04X, N2:%04X\r\nD1: %04X, D2: %04X\r\n", N0, N1, N2, D1, D2);
return 0;
}



TLV320AIC3xxx滤波器的设置与实时调节
TLV320AIC3xxx滤波器的设置与实时调节.pdf

对应的软件:
TIBQ.exe

#68 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 如何将计算出的系数转换为tas5805对应DSP数据? » 2023-05-18 22:38:46

STA311B的我知道,手册上有写  sta311b 有8个通道,每通道有10段EQ。tas5805 2个声道,每声道有15段EQ
2023-02-21_090847.png
2023-02-03_161351.png

#69 DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 如何将计算出的系数转换为tas5805对应DSP数据? » 2023-05-18 19:43:50

xfdr0805
回复: 5

现在我可以根据一些数据来计算出系数,计算出的系数与PPC3的一样,但是不知道计算出的浮点数据是如何转换tas5805可以使用的数据的?

2023-05-18_185216.png

这是我写的程序,仅仅测试用,如果有人需要我可以传上来
2023-05-18_185116.png

#71 Re: 全志 SOC » 全志H6开发板-从零入门ARM高速电路设计 » 2023-04-28 20:25:11

看了楼主的教程,我竟然有对BGA下手的念头了。逃.gif

#72 Re: 全志 SOC » 分享一个自己做的T113-S3裸机IAR工程,有bootloader和led闪烁demo » 2023-04-07 15:48:35

感谢分享 目前裸机对我来说最大的痛点就是那些个sdio的wifi模块没法子用起来了 只得上重量级选手Linux了

#74 Re: 全志 SOC » 哪位兄弟用过f133移植rtthread 能否提供一下, » 2023-04-03 13:07:45

jasonhu 说:

RT-Smart有对D1/F133做支持,那个芒果MQ F133就可以跑这个系统。参与过这个bsp开发的。

现在rt- smart 对d1外设驱动支持的怎么样了 ?常用外设驱动都支持了吗

#76 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 嵌入式linux如何设置开机自动配置网络? » 2023-03-21 11:23:55

可以在你app里判断网络是否连接 连接了之后 才是获取ip

#77 Re: ESP32/ESP8266 » 嵌入式外包:串口WiFi转发设备,蓝牙配网 » 2023-02-22 12:16:29

纯粹好奇,能透漏下这种案子一般报价多少吗?

#78 全志 SOC » Linux5.4 F1C100上测试USB Gadget Audio碰到的问题? » 2023-02-19 23:20:28

xfdr0805
回复: 0

1.第一种是USB Gadget Audio Class 1.0 Legacy
这种方式需要有实体的声卡,就是加载驱动时指定那个放音设备/dev/snd/pcmC1D0p,不指定的话,放音设备是/dev/snd/pcmC0D0p 录音设备是/dev/snd/pcmC0D0c,驱动加载完,不需要其它操作,就可以直接使用了。

但是问题来了,但是这种方式会独占那个声卡,其它程序是无法再访问那个设备了,我需要程序和USB混音,修改asound.conf也没用

2.第一种是USB Gadget Audio Class 1.0
这种方式在驱动加载后,系统会多出一张声卡,包含一个放音,一个录音设备,前边那种是不会出现任何设备的

modprobe g_audio.ko c_srate=48000 c_ssize=2 c_chmask=3 #48k 16bit 2ch

[   71.822514] g_audio gadget: Hardware params: access 3, format 2, channels 2, rate 48000
[   71.830844] g_audio gadget: Linux USB Audio Gadget, version: Feb 2, 2012
[   71.837646] g_audio gadget: g_audio ready
[   72.123305] g_audio gadget: high-speed config #1: Linux USB Audio Gadget
名字也叫 AC INTERFACE ,如果需要改名字,是在uac1.c里边修改,电脑播放音乐

执行 arecord -D hw:2,0 -f dat -vv | aplay -D hw:1,0 -f dat 可以听到电脑播放的音乐,这种方式好像挻符合要求的

但是问题又来了,这种方式需要电脑或者手机一直播放着音乐才行,否则过一会I/O错误,录音进程直接退出,电脑端正常播放不受影响,但是板子肯定没音了,录音进程已经退出了,重新执行命令才可以。问题是我怎么知道用户什么播放呢?录音进程录不到东西就直接能出了,不能一直在后台运行
2023-02-17_145650.png

3.USB Gadget Audio Class 2.0
既然上边那种方式也不行,那再试试2.0,驱动加载完成后,同样会多出2个声卡,设备管理器里会出现一个叫 Source/Sink的设备,尴尬的是设备启动不了,但是在Linux或者手机上是正常的,系统是win10 build1909 已经自动2.0驱动了,其它操作跟上边是一样的,也是需要一直录音才能使用,不放音时 录音进程直接IO错误面退出
2023-02-18_112640.png

最后,请大神支点招,如何解决电脑在没播放音乐时,录音进程退出问题?不放音乐时 一直传输0不就行了吗,这样录音也可以一直进行下去了

#79 Re: 全志 SOC » 测试测试 g_serial / g_ether USB Gadget (RNDIS) » 2023-02-18 13:24:36

另外 楼主知道测试过uac2.0没?在win10 1909。系统有2.0驱动但是设备无法启动。在Linux及Android下测试正常

#80 Re: 全志 SOC » 测试测试 g_serial / g_ether USB Gadget (RNDIS) » 2023-02-18 13:22:26

确实 我的在win10 1909下也是识别成串口 用楼主驱动就行了。感谢楼主

#81 Re: 全志 SOC » 开一个坑,copy稚辉君的普朗克F1c100s(元器件换成0805方便焊接) » 2023-02-13 16:18:07

这个是干什么的? 个人感觉0603比0805方便些 我是优先选择0603

#82 Re: 硬件设计 KiCAD/Protel/DXP/PADS/ORCAD/EAGLE » KiCad v7.0 已发布 https://www.kicad.org/download/ » 2023-02-13 16:05:09

不知道批量修改属性功能增强没有?现在用的6 批量修改不顺手。其它的用着挻舒服的

#83 Re: 全志 SOC » v3s移植好tslib和qt4.8.7 在控制台启动qt程序是正常的 设置为开机自启动后触摸屏就不起作用了 在控制台再次打开程序就正常了 » 2022-11-08 07:43:45

环境变量问题 自动启动前 你设置的环境变量还没生效,你登录了才生效,你可以把配置放到/etc/init.d/rCS文件里试试

#84 Re: 全志 SOC » 终于搞定f1c100s的i2s输出 » 2022-11-03 11:32:33

今天试了一下,I2S  OK,我用的pe组,楼上没反应的 需要在内核把pcm5102驱动勾上...

#88 Re: RISC-V » 博流智能将要推出杀手级芯片bl808(可以跑linux) » 2022-10-27 20:30:28

这板子哪里能买到?

[Update: We have received information about pricing and availability:

The model with 16Mbit flash and no microSD socket will sell for $6, and the model with 128Mbit flash and microSD socket will go for $8. Mass production is scheduled for mid-November]

_10.png

#90 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » da vinci 1.0a 3D打印机捡漏记录 » 2022-10-26 12:29:45

这打印机至少10几年了,我们公司有一台,在仓库里角落里被我发现了,直接换了一个主板,按机器参数配置一下Marlin固件 编译下载进去就行了,不过这打印机本身精度就不高,打印出来不精细,后来又丢角落吃灰去了

#91 Re: 司徒开源 » 开源精神值得敬佩,但是你司徒公开po 解FC3000的加密芯片就是可耻,做技术要有底线 » 2022-10-26 11:53:32

其实可以跟司徒大佬请教一下现有方案有哪些不足,比如加密方案存在哪些问题,请司徒大佬给些建议,然后下一版更新完善一下,这样才是良性循环。上来就骂解决不了任何问题,不思进取,总会被破解

#93 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 【众人拾柴】DIY项目列表 » 2022-07-26 11:32:50

想用f1c200s做个流媒体音箱 dlna airplay bt wifi i2s dsp 都测试ok了   就是没动力去做:)

#94 Re: 全志 SOC » V3s这么强显示能力, 不搞个示波器可惜了,接什么ADC好呢? » 2022-07-10 11:49:35

可以参考下边示波器,主控用的F1C100S ADC是AD9288.pdf

https://github.com/pecostm32/FNIRSI-1013D-1014D-Hack
Schematic_Scope 1014D_2022-05-10.pdf

原子DS100使用的控是国产兆易GD32F450VET6  ADC芯片北是京时代民芯科技有限公司 MXT2088双八位100M ADC,兼容AD9288.
http://www.mxtronics.com/n107/n124/n181/n184/c692/attr/2630.pdf

#95 Re: 全志 SOC » F1C100s跑rtt+lvgl显示gif图片效果卡顿求助 » 2022-07-08 14:32:53

播放动画可以试试开源动画库lottie lvgl就支持  这是失量的 体积小 效果棒

#96 Re: 全志 SOC » f1c100s+rtt+lvgl8.0出现了诡异的问题 » 2022-07-08 14:22:11

这问题我也遇到了,我把lvgl的线程修改优先级为比main低就正常了,main优先级默认是10  我测试用的8.3 dev,你改大试试看看

#97 Re: 全志 SOC » 有需要audio技术支持的吗? » 2022-07-04 15:13:52

akinggw 说:

有没有f1c100s的音频裸机驱动啊?淘宝有个卖的,有点贵呀

bolopi 有裸机音频驱动 不过我还没试

#99 Re: 全志 SOC » 基于 rt-thread os 运行 cherryusb 协议栈在 f1c00s 上 » 2022-07-02 15:40:30

感谢指点,添加了就OK了,大佬开发的cherryusb框架真棒,使用起来超级方便,已经star

#101 Re: 全志 SOC » 基于 rt-thread os 运行 cherryusb 协议栈在 f1c00s 上 » 2022-07-01 23:04:16

LINK rtthread.elf
build\packages\CherryUSB-latest\core\usbh_core.o: In function `usbh_initialize':
usbh_core.c:(.text.usbh_initialize+0x8c): undefined reference to `_usbh_class_info_end'
usbh_core.c:(.text.usbh_initialize+0x90): undefined reference to `_usbh_class_info_start'
collect2.exe: error: ld returned 1 exit status
scons: *** [rtthread.elf] Error 1
scons: building terminated because of errors.

大佬,usbd_cdc 我测试没问题,但是usbh编译不过去,是什么原因呢?

#103 全志 SOC » f1c100s USB HOST 处于b_idle 状态是什么原因? » 2022-06-11 11:02:54

xfdr0805
回复: 2

插上U盘或者鼠标 没有任何反应,是内核哪里没配置好吗?

# lsusb 只有这个
Bus 001 Device 001: ID 1d6b:0002

下边是启动记录,看起来驱动加载也正常

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.180 (xfdr@Latitude-E6530) (gcc version 10.3.0 (Buildroot -gef012cf7)) #2 Fri Jun 10 23:00:09 CST 2022
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: weather station
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3 net.ifnames=0 vt.global_cursor_default=0
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 37548K/65536K available (7168K kernel code, 385K rwdata, 1708K rodata, 1024K init, 246K bss, 11604K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x454 with crng_init=0
[    0.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000138] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000881] Console: colour dummy device 80x30
[    0.000987] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070257] pid_max: default: 32768 minimum: 301
[    0.070723] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070772] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072672] CPU: Testing write buffer coherency: ok
[    0.074685] Setting up static identity map for 0x80100000 - 0x80100058
[    0.075983] devtmpfs: initialized
[    0.087516] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.087579] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.091596] pinctrl core: initialized pinctrl subsystem
[    0.094209] NET: Registered protocol family 16
[    0.097801] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.099973] cpuidle: using governor menu
[    0.164830] SCSI subsystem initialized
[    0.165238] usbcore: registered new interface driver usbfs
[    0.165404] usbcore: registered new interface driver hub
[    0.165557] usbcore: registered new device driver usb
[    0.166130] pps_core: LinuxPPS API ver. 1 registered
[    0.166154] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.166225] PTP clock support registered
[    0.166719] Advanced Linux Sound Architecture Driver Initialized.
[    0.168966] clocksource: Switched to clocksource timer
[    0.198714] thermal_sys: Registered thermal governor 'step_wise'
[    0.199541] NET: Registered protocol family 2
[    0.199893] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.201183] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.201262] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.201320] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.201373] TCP: Hash tables configured (established 1024 bind 1024)
[    0.201676] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.201743] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.202213] NET: Registered protocol family 1
[    0.204657] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.206496] Initialise system trusted keyrings
[    0.207073] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.228753] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.229516] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.335459] Key type asymmetric registered
[    0.335496] Asymmetric key parser 'x509' registered
[    0.335671] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.335700] io scheduler mq-deadline registered
[    0.335718] io scheduler kyber registered
[    0.351049] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.351966] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.353839] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.451633] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.458418] printk: console [ttyS0] disabled
[    0.478737] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 29, base_baud = 6250000) is a 16550A
[    0.912782] printk: console [ttyS0] enabled
[    0.918124] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.950162] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 30, base_baud = 6250000) is a 16550A
[    0.964408] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.987080] SCSI Media Changer driver v0.25 
[    0.992931] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    1.005737] spi-nor spi0.0: found w25q256, expected w25q128
[    1.012093] spi-nor spi0.0: w25q256 (32768 Kbytes)
[    1.017868] 4 fixed-partitions partitions found on MTD device spi0.0
[    1.024333] Creating 4 MTD partitions on "spi0.0":
[    1.029234] 0x000000000000-0x000000070000 : "u-boot"
[    1.037594] 0x000000070000-0x000000600000 : "kernel"
[    1.045983] 0x000000600000-0x000000d00000 : "rom"
[    1.054134] 0x000000d00000-0x000001000000 : "overlay"
[    1.063145] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.069789] ehci-platform: EHCI generic platform driver
[    1.075428] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.081733] ohci-platform: OHCI generic platform driver
[    1.087490] usbcore: registered new interface driver usb-storage
[    1.094544] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.106468] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.112431] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.122403] hub 1-0:1.0: USB hub found
[    1.126292] hub 1-0:1.0: 1 port detected
[    1.134216] input: 1c23400.lradc as /devices/platform/soc/1c23400.lradc/input/input0
[    1.143184] i2c /dev entries driver
[    1.147353] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.160609] IR NEC protocol handler initialized
[    1.166067] Registered IR keymap rc-nec-remote
[    1.170955] rc rc0: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0
[    1.178039] input: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0/input1
[    1.186293] sunxi-ir 1c22c00.cir: initialized sunXi IR driver
[    1.193769] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.203761] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.241804] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.251213] usbcore: registered new interface driver usbhid
[    1.256786] usbhid: USB HID core driver
[    1.264970] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.278832] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.294623] NET: Registered protocol family 17
[    1.299302] Key type dns_resolver registered
[    1.304526] Loading compiled-in X.509 certificates
[    1.322620] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc083b420)
[    1.331735] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc083ac60)
[    1.341316] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0839800)
[    1.349435] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.356037] [drm] No driver support for vblank timestamp query.
[    1.363370] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.393236] mmc0: new high speed SDIO card at address 0001
[    1.395148] random: fast init done
[    1.401132] bFWReady == _FALSE call reset 8051...
[    1.437695] Console: switching to colour frame buffer device 100x30
[    1.498409] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.506927] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.524030] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.530885] ALSA device list:
[    1.533876]   #0: F1C100s Audio Codec
[    1.538079] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.546826] cfg80211: failed to load regulatory.db
[    1.557291] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.571020] devtmpfs: mounted
[    1.580116] Freeing unused kernel memory: 1024K
[    1.584782] Run /preinit as init process
[    1.792382] crng init done
[    2.302922] overlayfs: upper fs does not support tmpfile.
[    2.308349] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: 
[    3.069623] udevd[95]: starting version 3.2.11
[    3.327012] udevd[96]: starting eudev-3.2.11
done
Initializing random number generator: OK
Saving random seed: OK
Starting haveged: haveged: command socket is listening at fd 3
OK
Starting network: OK

Welcome to sipeed Lichee Nano
lichee-nano login: root
# lsusb
Bus 001 Device 001: ID 1d6b:0002
#
# echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
# cat /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
b_idle
# echo host > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
# cat /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
b_idle

#104 Re: NB-IoT/2G模块/4G模块/GPRS模块/GPS/北斗 » 这个更像是展锐8910DM原厂SDK? » 2022-06-07 11:29:58

LemonX 说:

有一些GPIO不能驱动是什么问题,比如GPIO1 GPIO4打开电源域也还是不能翻转用的是Air724模组

你用另外一个SDK试试
gitee上有 你搜索一下 我测试了是可以的

#105 Re: 全志 SOC » V3s linux5.2 U盘自动挂载配置 » 2022-06-03 18:04:48

# echo host > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
# cat /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
b_idle
# lsusb
Bus 001 Device 001: ID 1d6b:0002
我的USB 怎么是idle状态呢?

#106 Re: 全志 SOC » F1c100s RGB565的时候frame buffer是不是还要4个字节每个像素? » 2022-05-29 20:59:24

david 说:

这个问题解决了 要在tcon和debe里配合设置。

楼主,能分享一下 uboot fb  如何修改为16位吗

#107 Re: 全志 SOC » F1c100s RGB565的时候frame buffer是不是还要4个字节每个像素? » 2022-05-27 16:22:14

也碰到了这个问题 不过我用的uboot 改为RGB565 屏幕就显示一半 而且这一半又分了左右2个

#109 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » LVGL的DRM驱动好像有问题啊 » 2022-05-23 21:38:08

屏幕休眠了
echo 0 > /sys/class/graphics/fb0/blank 是禁止休眠
echo 1 > /sys/class/graphics/fb0/blank 是使能休眠

如果想屏幕永不休眠,在UBOOT启动参数bootargs中增加  consoleblank=0

#110 Re: 全志 SOC » 刚测了T113-S3,晚上再测一下v3s的极限频率,先占个坑… » 2022-05-20 08:27:04

据说f1c100s都能到2G 是不是很夸张  这个更古老吧:D

#111 Re: RISC-V » 性能最强的 RISC-V 内核单片机:HPM6750 » 2022-05-13 14:25:29

建议厂家来论坛开个版块 把资料放上来 弄个开发板出来 说不定会火🔥哦:)

#112 Re: RK3288/RK3399/RK1108 » 瑞芯微RV1109-RV1126芯片功能参数对比 » 2022-05-13 14:19:18

RV1106 RV1103的就是内置DDDR的、QFN封装---开发板马上出来了
这片子看着不错  啥价位 性价比高不?

#113 Re: 全志 SOC » 全志V3X集成Rtl8723bs » 2022-05-10 16:22:24

我猜这小盒子自动生成的 yikes

#116 Re: 全志 SOC » F1C100S SPI-NOR 启动 修改SPI 默认的1MHZ 频率不生效? » 2022-05-08 22:58:32

@shaoxi2010
1.大佬,能指点下设备要怎么改吗,直接改了源码也不行
2.spi是单线,感觉还是SPI速度太慢,不知道内核启动后SPI速度怎么查看
3.启动后我查看熵池在3000左右,好像也不低,然后添加了havged ,时间基本没变,另外2个办法还不知道怎么弄

#117 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2022-05-08 22:51:09

vvi 说:

下载LVGL.Simulator.rar,360提示有风险。

放心下,不会有病毒的,那是因为只要是它不认识的程序一律提示有风

#118 Re: 全志 SOC » F1C200 linux LVGL双缓冲支持 » 2022-05-08 22:47:39

我在f1c200s上也试了,感觉比起framebuffer 帧率没有提高多少,在f1c100s上由于内存不够,第一次是可以执行的,再执行就申请不到内存了无法正常显示了

#119 Re: 全志 SOC » 让tiny200默认支持RNDIS和NFS » 2022-05-08 22:43:52

有空试试这种方式 ,之前一直是连接WIFI后,再挂载NFS目录的调试程序的

#121 Re: 全志 SOC » F1C100S SPI-NOR 启动 修改SPI 默认的1MHZ 频率不生效? » 2022-05-06 22:40:52

这是启动记录 ,发现有三个地方时间比较长
1.加载内核 5M用了6.4S
    [2.210483 0.007721] device 0 offset 0x100000, size 0x500000
    [8.621888 6.411405] SF: 5242880 bytes @ 0x100000 Read: OK
2.挂载20M jffs2 rootfs  4.6S
   [2.598025 0.274050] [    1.621659] random: crng init done
    [5.579701 2.981676] [    4.603341] VFS: Mounted root (jffs2 filesystem) on device 31:2.
3.初始化随机数种子  10S
   [15.749774 10.148108] Initializing random number generator: OK

[0.000001 0.000001] 
[0.312321 0.312320] U-Boot SPL 2020.07 (May 04 2022 - 22:11:07 +0800)
[0.317020 0.004699] DRAM: 64 MiB
[0.327749 0.010729] Trying to boot from sunxi SPI
[0.886271 0.558523] 
[0.886478 0.000207] 
[0.886560 0.000082] U-Boot 2020.07 (May 04 2022 - 22:11:07 +0800) Allwinner Technology
[0.892310 0.005750] 
[0.892433 0.000123] CPU:   Allwinner F Series (SUNIV)
[0.895404 0.002971] Model: Allwinner F1C100s Generic Device
[0.898828 0.003425] DRAM:  64 MiB
[1.428792 0.529963] Setting up a 800x480 lcd console (overscan 0x0)
[1.523858 0.095066] In:    serial
[1.524756 0.000899] Out:   serial
[1.525471 0.000715] Err:   serial
[1.530406 0.004935] Hit any key to stop autoboot:  0 
[1.539890 0.009483] SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
[1.545825 0.005936] device 0 offset 0x80000, size 0x80000
[2.188511 0.642685] SF: 524288 bytes @ 0x80000 Read: OK
[2.198806 0.010295] gpio: pin 134 (gpio 134) value is 1
[2.201701 0.002896] Booting from SPI-NOR...
[2.202761 0.001060] SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
[2.210483 0.007721] device 0 offset 0x100000, size 0x500000
[8.621888 6.411405] SF: 5242880 bytes @ 0x100000 Read: OK
[8.624978 0.003090] ## Loading kernel from FIT Image at 81000000 ...
[8.628689 0.003711]    Using 'conf@0' configuration
[8.631557 0.002868]    Trying 'kernel@0' kernel subimage
[8.635610 0.004053]      Description:  Linux kernel
[8.638474 0.002863]      Type:         Kernel Image
[8.641198 0.002725]      Compression:  uncompressed
[8.644037 0.002839]      Data Start:   0x810000cc
[8.646755 0.002717]      Data Size:    4924432 Bytes = 4.7 MiB
[8.649986 0.003231]      Architecture: ARM
[8.652351 0.002365]      OS:           Linux
[8.654952 0.002601]      Load Address: 0x80000000
[8.656097 0.001145]      Entry Point:  0x80000000
[8.658899 0.002802]      Hash algo:    crc32
[8.661201 0.002303]      Hash value:   0a339eef
[8.663858 0.002657]    Verifying Hash Integrity ... crc32+ OK
[8.805165 0.141307] ## Loading fdt from FIT Image at 81000000 ...
[8.808371 0.003206]    Using 'conf@0' configuration
[8.811141 0.002771]    Trying 'fdt@0' fdt subimage
[8.813929 0.002787]      Description:  Flattened Device Tree blob
[8.818855 0.004926]      Type:         Flat Device Tree
[8.821654 0.002799]      Compression:  uncompressed
[8.824597 0.002943]      Data Start:   0x814b25c0
[8.827349 0.002753]      Data Size:    17251 Bytes = 16.8 KiB
[8.830249 0.002899]      Architecture: ARM
[8.832778 0.002529]      Hash algo:    crc32
[8.835350 0.002572]      Hash value:   b145fd30
[8.838138 0.002789]    Verifying Hash Integrity ... crc32+ OK
[8.841718 0.003580]    Booting using the fdt blob at 0x814b25c0
[8.844907 0.003189]    Loading Kernel Image
[8.893860 0.048953]    Loading Device Tree to 817f8000, end 817ff362 ... OK
[8.915193 0.021333] 
[8.915327 0.000134] Starting kernel ...
[0.000514 0.000514] 
[1.388993 1.388479] [    0.000000] Booting Linux on physical CPU 0x0
[1.392876 0.003884] [    0.000000] Linux version 5.4.99 (xfdr@Latitude-E6530) (gcc version 8.4.0 (Buildroot -g21de572-dirty)) #30 Tue May 3 21:22:16 CST 2022
[1.403568 0.010692] [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[1.411366 0.007798] [    0.000000] CPU: VIVT data cache, VIVT instruction cache
[1.416928 0.005562] [    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[1.422384 0.005456] [    0.000000] Memory policy: Data cache writeback
[1.425818 0.003434] [    0.000000] cma: Reserved 16 MiB at 0x82c00000
[1.431070 0.005252] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15883
[1.436641 0.005570] [    0.000000] Kernel command line: console=ttyS0,115200 fbcon=map:1 rootwait init=/linuxrc root=/dev/mtdblock2 rootfstype=jffs2 rw net.ifnames=0 vt.global_cursor_default=0
[1.453128 0.016488] [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[1.458900 0.005771] [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[1.467318 0.008418] [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[1.472735 0.005417] [    0.000000] Memory: 35004K/64036K available (7168K kernel code, 372K rwdata, 1936K rodata, 1024K init, 277K bss, 12648K reserved, 16384K cma-reserved)
[1.486672 0.013937] [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[1.492238 0.005567] [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[1.497997 0.005759] [    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[1.506332 0.008335] [    0.000038] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[1.514480 0.008147] [    0.000118] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[1.522801 0.008321] [    0.000793] Console: colour dummy device 80x30
[1.528352 0.005551] [    0.000874] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[1.534091 0.005739] [    0.070222] pid_max: default: 32768 minimum: 301
[1.539133 0.005042] [    0.070683] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[1.547285 0.008152] [    0.070719] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[1.553689 0.006403] [    0.072289] CPU: Testing write buffer coherency: ok
[1.559007 0.005319] [    0.073878] Setting up static identity map for 0x80100000 - 0x80100058
[1.564719 0.005712] [    0.074876] devtmpfs: initialized
[1.569613 0.004894] [    0.086352] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[1.578178 0.008565] [    0.086408] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[1.586387 0.008210] [    0.089798] pinctrl core: initialized pinctrl subsystem
[1.591658 0.005270] [    0.092059] NET: Registered protocol family 16
[1.594707 0.003049] [    0.095466] DMA: preallocated 256 KiB pool for atomic coherent allocations
[1.602808 0.008101] [    0.097348] cpuidle: using governor menu
[1.605809 0.003001] [    0.176504] SCSI subsystem initialized
[1.608827 0.003018] [    0.176816] usbcore: registered new interface driver usbfs
[1.614522 0.005695] [    0.176949] usbcore: registered new interface driver hub
[1.620079 0.005557] [    0.177078] usbcore: registered new device driver usb
[1.625526 0.005447] [    0.177619] pps_core: LinuxPPS API ver. 1 registered
[1.630836 0.005309] [    0.177641] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[1.639228 0.008393] [    0.177698] PTP clock support registered
[1.642351 0.003123] [    0.178192] Advanced Linux Sound Architecture Driver Initialized.
[1.650277 0.007926] [    0.180998] clocksource: Switched to clocksource timer
[1.655509 0.005232] [    0.182436] simple-framebuffer 83e89000.framebuffer: framebuffer at 0x83e89000, 0x177000 bytes, mapped to 0x(ptrval)
[1.664707 0.009198] [    0.182487] simple-framebuffer 83e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[1.675123 0.010416] [    0.183110] simple-framebuffer 83e89000.framebuffer: fb0: simplefb registered!
[1.681002 0.005879] [    0.207677] thermal_sys: Registered thermal governor 'step_wise'
[1.686728 0.005726] [    0.208325] NET: Registered protocol family 2
[1.691934 0.005205] [    0.209616] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[1.700221 0.008287] [    0.209685] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[1.708488 0.008268] [    0.209740] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[1.714292 0.005804] [    0.209787] TCP: Hash tables configured (established 1024 bind 1024)
[1.722168 0.007876] [    0.210022] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[1.727987 0.005819] [    0.210078] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[1.733802 0.005815] [    0.210527] NET: Registered protocol family 1
[1.739192 0.005390] [    0.211892] RPC: Registered named UNIX socket transport module.
[1.744727 0.005536] [    0.211924] RPC: Registered udp transport module.
[1.750152 0.005424] [    0.211938] RPC: Registered tcp transport module.
[1.753302 0.003150] [    0.211952] RPC: Registered tcp NFSv4.1 backchannel transport module.
[1.761297 0.007995] [    0.214392] NetWinder Floating Point Emulator V0.97 (double precision)
[1.767172 0.005874] [    0.215886] Initialise system trusted keyrings
[1.772370 0.005199] [    0.216359] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[1.778056 0.005685] [    0.238946] NFS: Registering the id_resolver key type
[1.783466 0.005410] [    0.239084] Key type id_resolver registered
[1.786531 0.003065] [    0.239103] Key type id_legacy registered
[1.791923 0.005392] [    0.239149] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[1.797665 0.005742] [    0.239240] jffs2: version 2.2. (NAND)  2001-2006 Red Hat, Inc.
[1.803279 0.005614] [    0.350977] Key type asymmetric registered
[1.808545 0.005265] [    0.351080] Asymmetric key parser 'x509' registered
[1.813941 0.005396] [    0.351234] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[1.820036 0.006096] [    0.351257] io scheduler mq-deadline registered
[1.825336 0.005300] [    0.351273] io scheduler kyber registered
[1.828267 0.002931] [    0.364293] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[1.836361 0.008094] [    0.365059] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[1.847266 0.010905] [    0.386287] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[1.853152 0.005886] [    0.392268] printk: console [ttyS0] disabled
[1.856466 0.003314] [    0.412533] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 29, base_baud = 6250000) is a 16550A
[1.866625 0.010159] [    0.890454] printk: console [ttyS0] enabled
[1.870977 0.004352] [    0.895596] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[1.903398 0.032421] [    0.927149] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 30, base_baud = 6250000) is a 16550A
[1.916019 0.012621] [    0.939727] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[1.936824 0.020806] [    0.960579] SCSI Media Changer driver v0.25 
[1.941579 0.004755] [    0.966315] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[1.955532 0.013953] [    0.979236] spi-nor spi0.0: w25q256 (32768 Kbytes)
[1.959153 0.003621] [    0.984167] 3 fixed-partitions partitions found on MTD device spi0.0
[1.966709 0.007557] [    0.990511] Creating 3 MTD partitions on "spi0.0":
[1.970320 0.003610] [    0.995369] 0x000000000000-0x000000080000 : "u-boot"
[1.980064 0.009745] [    1.003853] 0x000000100000-0x000000600000 : "kernel"
[1.988481 0.008416] [    1.012251] 0x000000600000-0x000002000000 : "rom"
[1.997382 0.008902] [    1.021143] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[2.003111 0.005729] [    1.027669] ehci-platform: EHCI generic platform driver
[2.009201 0.006090] [    1.033274] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[2.014997 0.005795] [    1.039486] ohci-platform: OHCI generic platform driver
[2.020879 0.005883] [    1.045228] usbcore: registered new interface driver usb-storage
[2.027705 0.006825] [    1.052501] input: 1c23400.lradc as /devices/platform/soc/1c23400.lradc/input/input0
[2.036876 0.009172] [    1.061221] i2c /dev entries driver
[2.040595 0.003719] [    1.065334] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[2.056044 0.015449] [    1.079827] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[2.062724 0.006680] [    1.087822] rtc-pcf8563 0-0051: registered as rtc0
[2.069653 0.006929] [    1.094060] IR NEC protocol handler initialized
[2.074758 0.005105] [    1.098595] IR RC5(x/sz) protocol handler initialized
[2.079069 0.004312] [    1.104497] Registered IR keymap rc-empty
[2.084461 0.005392] [    1.108774] rc rc0: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0
[2.090987 0.006526] [    1.116026] input: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0/input1
[2.099995 0.009008] [    1.124121] sunxi-ir 1c22c00.cir: initialized sunXi IR driver
[2.107070 0.007075] [    1.131467] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[2.117511 0.010441] [    1.141261] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[2.155205 0.037694] [    1.178889] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[2.162188 0.006983] [    1.186879] ledtrig-cpu: registered to indicate activity on CPUs
[2.173243 0.011056] [    1.197024] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[2.187350 0.014106] [    1.211127] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[2.202675 0.015326] [    1.226418] NET: Registered protocol family 17
[2.206585 0.003910] [    1.231413] Key type dns_resolver registered
[2.213016 0.006430] [    1.237012] Loading compiled-in X.509 certificates
[2.229556 0.016540] [    1.253233] sunxi-mmc 1c0f000.mmc: card claims to support voltages below defined range
[2.243477 0.013921] [    1.267216] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[2.249735 0.006258] [    1.274728] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[2.258493 0.008758] [    1.282299] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[2.275926 0.017433] [    1.299647] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[2.282217 0.006290] [    1.306735] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[2.290985 0.008769] [    1.315464] cfg80211: failed to load regulatory.db
[2.296542 0.005557] [    1.320628] ALSA device list:
[2.299548 0.003005] [    1.323720]   #0: F1C100s Audio Codec
[2.304204 0.004657] [    1.329091] random: fast init done
[2.323975 0.019771] [    1.347659] mmc0: new high speed SDIO card at address 0001
[2.598025 0.274050] [    1.621659] random: crng init done
[5.579701 2.981676] [    4.603341] VFS: Mounted root (jffs2 filesystem) on device 31:2.
[5.588810 0.009109] [    4.612540] devtmpfs: mounted
[5.597997 0.009187] [    4.621797] Freeing unused kernel memory: 1024K
[5.601666 0.003669] [    4.626412] Run /linuxrc as init process
[15.749774 10.148108] Initializing random number generator: OK
[15.773156 0.023382] Saving random seed: OK
[15.864465 0.091309] Starting network: OK
[16.226601 0.362136] 
[16.226745 0.000144] Welcome to WS
[16.229263 0.002518] mes login: 

#122 全志 SOC » F1C100S SPI-NOR 启动 修改SPI 默认的1MHZ 频率不生效? » 2022-05-06 22:28:44

xfdr0805
回复: 3

发现在uboot在从spi-nor启动时是用1MHZ加载数据的,读取5M kernel 要5秒多 速度太慢了
使用sf probe 0 50000000 不生效,速度没变化

然后看了下代码,将
#define SPI_DEFAULT_SPEED_HZ 50000000 
#define CONFIG_SF_DEFAULT_SPEED 50000000
这2个宏都修改了,打印出来速度是设置成50MHZ了,貌似没生效,依然是1MHZ速度加载

uboot新的DM_MODEL太复杂还看不懂,然后不使用DM_DRIVER,又出现
Invalid chip select 0:0 (err=-19)
Failed to initialize SPI flash at 0:0

参考了这一篇文章
https://blog.csdn.net/zhaoxinfan/article/details/79417696

_1.png

#123 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2022-05-06 21:50:43

olili 说:

看起来不错额,就是不知道GUI Guider支持8不,一直用这个来画7的界面。

https://whycan.com/files/members/4762/20220506165412.png

新版本支持V8 也支持V7,也可以试试另外官方的https://squareline.io/

#124 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl从模拟器移植到F1C100S上,卡到怀疑人生? » 2022-05-02 13:15:08

编译InfoNes 跑了一下  https://github.com/nejidev/arm-NES-linux  声音听着难受
颜色问题 一开始以为是RGB5565 转换后还是颜色不对, 原来InfoNes默认输出的是RGB555 格式的

static DWORD rgb555_2_argb888(WORD color)
{
    DWORD c;
    unsigned char red;
    unsigned char green;
    unsigned char blue;

    red = ((unsigned char)(color >> 10)) << 3;
    green = ((unsigned char)(color >> 5)) << 3;
    blue = ((unsigned char)color) << 3;

    c = (red | c) << 16 | (green | c) << 8 | (blue | c);

    return c;
}

#125 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl从模拟器移植到F1C100S上,卡到怀疑人生? » 2022-05-02 12:18:14

bigbat 说:

你的好在颜色是正常的,我的颜色都不正常

是不是位深没设置对?

#126 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl从模拟器移植到F1C100S上,卡到怀疑人生? » 2022-05-01 22:12:27

novice 说:

建议你检查消息循环,空闲回调那些地方。这个卡顿跟性能没关系,我用蜗牛唐的192MHZ arm9带7寸屏幕都跑得比你这快,更别说你这U的主频那么高了。

我使用的是800×480 32bit全屏缓冲区,有绘制背景图片,总感觉lvgl绘图速度上不去,LVGL要绘制完才更新,
主线程就是这样,你说的消息循环,空闲回调,这些是LVGL自动处理的吧
while (1)
    {
        signal(SIGINT, sighandle); //设置信号处理函数
        usleep(lv_task_handler() * 1000);
    }

#127 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl从模拟器移植到F1C100S上,卡到怀疑人生? » 2022-05-01 15:34:00

发现软件做再多优化都没有把DRAM_CLOCK频率提高来的明显,CPU用默认频率,DRAM设置480MHZ 帧率提高3倍左右,已经很流畅了,用的全尺寸单缓冲区
软件上把freetype,去掉直接取模,一些图标也是取模,界面切换逻辑修改为先清空再重新绘制,之前是把界面全部绘制出来隐藏起来,切换时再显示出指定的界面,对性能低的MCU不合适,内存占用也大,最后就是加上多线程。接下来就是优化启动时间,缩小镜像体积了

#128 Re: 全志 SOC » 全志f1c100s使用红外接收功能 » 2022-05-01 15:16:39

今天测试了一下,我用的5.4内核,不过匹配的是compatible = "allwinner,sun6i-a31-ir";

[    1.156710] IR NEC protocol handler initialized
[    1.161258] IR RC5(x/sz) protocol handler initialized
[    1.167467] Registered IR keymap rc-empty
[    1.172009] rc rc0: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0
[    1.179245] input: sunxi-ir as /devices/platform/soc/1c22c00.cir/rc/rc0/input1
[    1.187776] sunxi-ir 1c22c00.cir: initialized sunXi IR driver
# ./evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      1c23400.lradc
/dev/input/event1:      sunxi-ir
Select the device event number [0-1]: 1
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "sunxi-ir"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 152 (KEY_SCREENLOCK)
  Event type 2 (EV_REL)
    Event code 0 (REL_X)
    Event code 1 (REL_Y)
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Key repeat handling:
  Repeat type 20 (EV_REP)
    Repeat code 0 (REP_DELAY)
      Value    500
    Repeat code 1 (REP_PERIOD)
      Value    125
Properties:
  Property type 5 (INPUT_PROP_POINTING_STICK)
Testing ... (interrupt to exit)
Event: time 113.474487, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9f43
Event: time 113.474487, -------------- SYN_REPORT ------------
Event: time 113.528867, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9f43
Event: time 113.528867, -------------- SYN_REPORT ------------
Event: time 123.140115, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9f0a
Event: time 123.140115, -------------- SYN_REPORT ------------
Event: time 123.194514, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9f0a
Event: time 123.194514, -------------- SYN_REPORT ------------
Event: time 125.754998, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9f06
Event: time 125.754998, -------------- SYN_REPORT ------------
Event: time 145.473697, type 4 (EV_MSC), code 4 (MSC_SCAN), value bf0d
Event: time 145.473697, -------------- SYN_REPORT ------------
Event: time 145.527068, type 4 (EV_MSC), code 4 (MSC_SCAN), value bf0d
Event: time 145.527068, -------------- SYN_REPORT ------------
Event: time 134.284454, type 4 (EV_MSC), code 4 (MSC_SCAN), value bf43
Event: time 134.284454, -------------- SYN_REPORT ------------

#129 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl从模拟器移植到F1C100S上,卡到怀疑人生? » 2022-04-30 19:20:03

rf 说:

你这估计是刷图方式有问题,开启了整屏刷图的模式,要选择局部刷。注意下刷新周期

是开启了整屏刷图,不过跟这个关系好像不大 ,目前发现DRAM_CLOCK 频率对刷图影响非常大,默认是312MHZ  我改到400MHZ 帧率提升非常明显,再高就不稳定了,CPU 720MHZ 对帧率影响不大,只是CPU使用下降了

FrameBuffer 还是使用32位的,为的是让LOGO持续到APP启动 
DRM可以改为16bpp还不知道如何让logo持续  drm从fb继承时好像会重新初始化

使用16bpp 内存小一半,传输数据也少一半,刷新速度应该更快吧

#130 Re: 全志 SOC » 发现一个有意思的东西,4.3寸触摸屏,用的F1C200S » 2022-04-27 11:16:46

mengxp 说:

哈哈哈重度对齐强迫症layout

哈哈layout对齐强迫症

#131 Re: 全志 SOC » Tiny_200 R3 uboot显示LOGO出现 Error: compression type 3 not supported » 2022-04-24 17:58:29

这个问题是图片格式问题,修改为RGB888就行了,原来的是ARGB888,RGB565格式也会提示Error: compression type 3 not supported

=> bmp info 0x80000000
Image size    : 251 x 94
Bits per pixel: 32
Compression   : 3
=> bmp display 0x80000000
Error: compression type 3 not supported

=> bmp info 0x80000000   
Image size    : 251 x 94
Bits per pixel: 16
Compression   : 3
=> bmp display 0x80000000
Error: compression type 3 not supported

=> bmp info 0x80000000
Image size    : 251 x 94
Bits per pixel: 24
Compression   : 0
=> bmp display 0x80000000  350 200

#132 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 分享一个好用的 littlevgl / lvgl 字体生成工具. 作者 @阿里 » 2022-04-21 12:37:57

跟阿里兄请教了下 原来是lv_config里的一个宏没开启导致 之前还真没注意过  开启后正常显示  至于不一样大 是因为freetype是16像素  取模工具是16号 单位不一样
解决方案参考连接
http://dz.lfly.xyz/forum.php?mod=viewthread&tid=34&extra=page%3D1

#134 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 分享一个好用的 littlevgl / lvgl 字体生成工具. 作者 @阿里 » 2022-04-20 11:48:15

今天试了一下V0.5 有些字不能正常显示 字号一样 显示不一样大?

freetype渲染 16号
94A34496-7D9A-45F6-9760-69679D5F5681.png

取模工具 16号
56AEAA26-DB5B-4FE1-A56D-0D4B68775809.png

#135 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl从模拟器移植到F1C100S上,卡到怀疑人生? » 2022-04-18 22:48:51

xfdr0805
回复: 10

在电脑上使用vs2019,移植到F1C100S上后,画面相当卡,惨不忍睹啊。

硬件:F1C100S + 25q256 + LCD  800X480 RGB565
软件:Linux 5.4  framebuffer 32bpp + LVGL8 + freetype

目前LVGL 位深是32  硬件连线是RGB565  暂时当成RGB888来用, 修改了设备树,format=r5g6b5,还是一样,不知道如何将framebuffer 修改为16bpp?单缓冲,双缓冲,全屏缓冲都试过了,目前感觉是LVGL绘图跟不上,图片,字体资源都放在外边,因为用fb-test-rect或者编译widgets_demo 帧率还可以。

请教坛里的大佬们,如何将framebuffer 修改为16bpp或者提高刷屏速度?

#136 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 分享个26键的lvgl-8拼音输入法 » 2022-04-18 21:47:49

tango_zhu 说:

能共享个lvgl的工程吗

完整工程太大了,你直接clone,把附件直接解压替换就可以了,基本不用改什么

#138 Re: 硬件设计 KiCAD/Protel/DXP/PADS/ORCAD/EAGLE » 小公司EDA设计工具 » 2022-04-17 22:29:29

cube 说:
xfdr0805 说:

Kicad +1   运行流畅  插件丰富 免费开源 无版权风险

请教kicad哪个版本好用,我曾经用了一下,一天奔溃几次,然后就放弃治疗了。

目前在用kicad6 稳定版    如果在win10经常卡住 可能是跟输入法有关,将输入法修改为兼容模式 就不会卡死了

#139 Re: 硬件设计 KiCAD/Protel/DXP/PADS/ORCAD/EAGLE » 小公司EDA设计工具 » 2022-04-17 21:41:48

Kicad +1   运行流畅  插件丰富 免费开源 无版权风险

#140 Re: 全志 SOC » 全志f1c100s使用红外接收功能 » 2022-04-17 19:04:48

感谢楼主分享,只前试过GPIO来解码,发射红外信号 ,改天试试硬件方式

#141 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 分享个26键的lvgl-8拼音输入法 » 2022-04-14 19:07:38

xfdr0805
回复: 11

直接拿原版键盘开刀,在26键基础上修改最省事,只需要简单修改一下布局就可以了,使用时可直接替换原来的keyboard即可,效果如下图

过程参考了一个输入法,忘记哪找的了,把原版也一并放上
在原版基础上做了一点修改,统计了一下,有7451个汉字可以输入
修复必须全拼才能打出字的问题,现在只需要输一个字母即可出现候选字
将原来的候选按钮分离出来,方便设置候选词字库,键盘符号不受影响
原版如果设置其它字库,键盘一些符号会不显示,需要将字库与fontawesome合并才能显示符号

程序肯定有不足的地方,最后附上代码,大家一起改进
lv_pinyin-原版.zip
keyboard_20220414-1904.7z
keyboard.7z
模拟器x64.7z


lv_keyboard_pinyin.gif

#142 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2022-04-11 18:17:19

jinlong631 说:

楼主您好 这个是用keil来开发吗?

不是keil 跟keil没关系  一个make搞定

#144 Re: 全志 SOC » 分享在V3S RTL8723DS 上调试蓝牙音频的一点经验 » 2022-04-11 18:10:48

小杨 说:

楼主,您好,您可以分享一下您的RTL8723DS这个天线的原理图和PCB布局吗?借鉴一下您的天线布局布线,麻烦楼主了,谢谢。
PS:QQ(2985438804)

这个是Kicad里系统自带的天线 分左和右2种

#145 Re: 华芯微特 » 爱她,就给她一个惊喜 » 2022-03-30 16:07:36

中间弄个16x16的矩阵  百家姓都塞的下😄

#146 Re: Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » 分享一个-手工贴片助手-C#开发 » 2022-03-28 15:43:05

john78 说:

曾经也想做个,分析完 99se到处坐标,后来。。。直接买了个国产贴片机

哈哈 曾经想买个贴片机  后来 ... 领导不同意 于是分析了gerber文件及坐标 写了这个小工具

#147 Re: Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » 分享一个-手工贴片助手-C#开发 » 2022-03-28 15:33:59

海石生风 说:

不用纠结AD了,画大板用Kicad、画小板用LCEDA

确实 我现在全部kicad画 用起来很顺手  lceda早已不用了

#148 全志 SOC » Tiny_200 R3 uboot显示LOGO出现 Error: compression type 3 not supported » 2022-03-14 21:38:41

xfdr0805
回复: 2

使用的mangPi R3 SDK 编译的,不能正常显示splash.bmp 
提示
Reading 524288 byte(s) (256 page(s)) at offset 0x00080000
Error: compression type 3 not supported

-Boot 2020.07 (Mar 13 2022 - 21:11:31 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 800x480 lcd console (overscan 0x0)
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, 51
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 128 bytes
  - OOB available: 4 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================

Reading 524288 byte(s) (256 page(s)) at offset 0x00080000
Error: compression type 3 not supported
gpio: pin 134 (gpio 134) value is 1
DFU waiting on SPI-NAND...
musb-hdrc: peripheral reset irq lost!
Booting from SPI-NAND...
Reading 5242880 byte(s) (2560 page(s)) at offset 0x00100000
## Loading kernel from FIT Image at 81000000 ...
   Using 'conf@0' configuration
   Trying 'kernel@0' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x810000cc
     Data Size:    4309816 Bytes = 4.1 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80000000
     Entry Point:  0x80000000
     Hash algo:    crc32
     Hash value:   9f754ba3
   Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81000000 ...
   Using 'conf@0' configuration
   Trying 'fdt@0' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x8141c4e8
     Data Size:    15757 Bytes = 15.4 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   6c9c69a9
   Verifying Hash Integrity ... crc32+ OK
   Booting using the fdt blob at 0x8141c4e8
   Loading Kernel Image
   Loading Device Tree to 817f9000, end 817ffd8c ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0

Usage:
bmp info <imageAddr>          - display image info
bmp display <imageAddr> [x y] - display image at x,y
=> bmp info 0x80000
There is no valid bmp file at the given address
=>

如何确认nand.img分区里是否有splash.bmp  ?挂载后啥也看不到,不像SD卡镜像都能查看各个分区内容

genimage-nand.cfg文件:

flash nand-128M {
    pebsize = 128K
    numpebs = 1024
    minimum-io-unit-size = 2048
}

image sysimage-nand.img {
    flash {}
    flashtype = "nand-128M"

    partition u-boot {
        image = "u-boot-sunxi-with-nand-spl.bin"
        size = 512K
    }

    partition splash {
        offset = 0x80000
        image = "splash.bmp"
        size = 512K
    }

    partition kernel {
        offset = 0x100000
        image = "kernel.itb"
        size = 5M
    }

    partition rom {
        offset = 0x600000
        image = "rootfs.squashfs"
    }
}

#150 Re: ESP32/ESP8266 » LVGL(也可以直接裸跑)实现的数字变换动画 » 2022-03-12 22:57:41

效果挺酷,楼主能讲解下实现原理吗?能否再实现个翻页钟效果或数字上下滑动的效果?

#151 Re: 全志 SOC » 使用[Aodzip]的buildroot资源为tiny-200s-r3构建linux运行环境 » 2022-03-12 10:12:57

mango 说:

sd卡镜像的需修改R3 dts里边的cmdline: console=ttyS0,115200 earlyprintk rootwait consoleblank=0  root=/dev/mmcblk0p3

大佬,我用把NAND镜像烧录到板子上后 uboot有打印启动记录,但内核没有任何信息,屏幕也没有显示,但可以肯定内核已经启动了,因为电脑上出现了Mangopi R3  rootfs目录已经通过USB挂载上了,我摘取的就是最新的buildroot  一键MAKE,没修改 也是这样,尝试各种修改 都没能搞定 不清楚需要修改哪里?
2022-03-12_09-39.png

#152 Re: 全志 SOC » 开源一个F1C200S的实用向板,极限压榨这片子的功能 » 2022-03-07 22:36:24

@f_Endman
请问楼主,这个CPU ARM926 你是使用的哪个工具链?

#153 Re: 全志 SOC » 关于buildroot » 2022-03-06 20:48:43

chengqy 说:

圈子好小,搜了一圈,又搜到坑网了,这个错误真是坑

是的 遇到同样的问题,最后还得来坑网填坑.

#154 Re: Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » 分享一个-手工贴片助手-C#开发 » 2021-12-15 10:01:06

海石生风 说:

能做成目前这样,看得出已经花了不少精力了。但我认为更快的实现方式可以是借用InteractiveHtmlBom,修改它的文件解析这一步骤其它少做修改可能会少点工作量。
现在前端有WASM,要比以前只有javascript的时代灵活不少。

其实没花多少精力 一上午就完成了 因为有大神已经完成了gerber解析并渲染了 我只是读取座位号及数量然后从坐标文件里获得每个元件的坐标并生成gerber绘图语句就完了 只有这么一丢丢的工作量  比起gerber解析渲染 可以忽略
关于那个插件 我觉得插件是读取的源文件的方式生成的 因为无需导出gerber bom 坐标文件就可以生成  并且lceda也可以用这个插件生成  那个也是源文件  在没pcb源文件的情况下用不了  这是个人猜测 没深究 所以就用C#写了一个  如果有kicad或者lceda源文件 用那个插件更好

#155 Qt/MSVC/MINGW/C++/MFC/GTK+/Delphi/BCB » 分享一个-手工贴片助手-C#开发 » 2021-12-10 20:46:44

xfdr0805
回复: 22
开发背景

一直一来,在开发完新样品做样机的时候,手工贴片非常痛苦,板子简单还好,如果板子复杂且样机数量又多(一般10台以内),那真是贴的眼疼胳膊酸啊,在贴片过程中最耗费时间的就是在密密麻麻的丝印图上找元件座位号了,所以如果有什么工具能一下子找到并能图形化标注出来位置,那将大大加快贴片的速度,也不用闻那么长时间的锡膏散发出来的有毒气体了。

灵感来源

之前在用Kicad设计板子的时候,有一款插件不得不提一下,就是InteractiveHtmlBom,这款插件可以生成一个交互式BOM的文件,可以在浏览器里打开,图形化展示出来各个元件位置,手工贴片非常方便
image1.png
这正是我想要的效果,但是这个插件只适合用在Kicad或者LCEDA里,其它软件使用不了,而且还得是源代码才能生成交互式BOM,只能自己开发了,于是就有了这个软件

实现原理

由于没有源文件,要实现这种效果,需要有BOM表,Gerber,及坐标文件,这些是工厂批量生产的最基本的东西,都会提供的。
原理:根据BOM表获取同一种元件的座位号,再从坐标里件里获取每一个元件的坐标,然后生成每一个元件的gerber绘图语句,最后就是渲染gerber丝印图并在上边标识出来

Gerber文件解析

Gerber文件要是自己写,还是比较复杂的,网上已有很多开源的Gerber文件解析的库,就不重复造轮子了,这里使用了miltonneal54大神开源的GerberVS库,我测试了一下,已经相当完善了,测试了一些产品的gerber 基本没问题。
Gerber解析库
https://github.com/miltonneal54/GerberVS
Gerber规范
gerber_rs274xrevd_e.pdf

BOM表解析

BOM是excel格式的,这里使用开源的NPOI进行BOM表的读取,还是比较简单的

workBook = new XSSFWorkbook(tbx_bom.Text);
ISheet sheet = workBook.GetSheetAt(0);//"PCB 部分"
//计算总行数
int lastNum = sheet.LastRowNum;
Console.WriteLine("总行数:" + lastNum);
//从第1行开始
//Console.WriteLine(sheet.GetRow(3).GetCell(1).StringCellValue);
dataGridView1.Rows.Clear();
for (int i = 2; i < lastNum; i++)
{
    if (sheet.GetRow(i) != null)
    {
        //Console.WriteLine(i + " ---> " + sheet.GetRow(i).Count());
        dataGridView1.Rows.Add();
        for (int j = 0; j < 10; j++)
        {
            if (sheet.GetRow(i).GetCell(j) != null)
            {
                if (sheet.GetRow(i).Cells.Count > 10)
                {
                    //dataGridView1.Rows[i].Cells[j].Value = sheet.GetRow(i).GetCell(j).StringCellValue;
                    switch (sheet.GetRow(i).GetCell(j).CellType)
                    {
                        case CellType.Numeric:
                            //Console.WriteLine(j + " ---> " + sheet.GetRow(i).GetCell(j).NumericCellValue);
                            dataGridView1.Rows[i - 2].Cells[j].Value = sheet.GetRow(i).GetCell(j).NumericCellValue;
                            break;
                        case CellType.String:
                            //Console.WriteLine(j + " ---> " + sheet.GetRow(i).GetCell(j).StringCellValue);
                            dataGridView1.Rows[i - 2].Cells[j].Value = sheet.GetRow(i).GetCell(j).StringCellValue;

                            break;

                    }

                }
                else
                {
                    Console.WriteLine(i + " ---> cells < 10");
                }

            }

        }
    }


}
//dataGridView1.AutoResizeColumns();
dataGridView1.AutoResizeRows();
坐标文件解析

坐标文件就是普通的文本文件,按照坐标格式进行读取就可以了

StreamReader sr = File.OpenText(tbx_rep.Text);
pst = new List<Placement>();
while ((temp = sr.ReadLine()) != null)
{

    if (temp.Contains("Total Number of SMD Components on Top"))
    {
        string s = temp.Remove(0, temp.IndexOf(':') + 1);
        line = int.Parse(s);
        sr.ReadLine();//空一行
        sr.ReadLine();//空一行
        for (int i = 0; i < line; i++)
        {

            temp = sr.ReadLine();
            //坐标文件格式 座位号 X Y 长度都为10 角度为7

            string str = temp.Substring(0, 10).Trim();
            string x = temp.Substring(10, 10).Trim();
            string y = temp.Substring(20, 10).Trim();
            string r = temp.Substring(30, 7).Trim();
            if (i == 0)
            {
                label_first_smd.Text = string.Format("{0}--->X:{1} Y:{2}", str, x, y);
            }
            Placement p = new Placement();
            p.Symbol = str;
            p.X_pos = x;
            p.Y_pos = y;
            p.Rotation = r;
            pst.Add(p);
        }
    }
}
在图形中渲染位置

根据坐标生成对应的gerber绘图语句,比如画一个圆点,能标识出即可

//获取座位号
Console.WriteLine(dataGridView1.Rows[e.RowIndex].Cells[7].Value);
string location = (string)dataGridView1.Rows[e.RowIndex].Cells[7].Value;
string[] loc;
StringBuilder sb = new StringBuilder();
sb.Append("G04 Sonavox auto mark smd commpent helper *\r\n");
sb.Append("G04 Draw by:101367 *\n");
sb.Append("%MOIN*%\n");//单位选择
sb.Append("%FSLAX55Y55*%\n");//坐标系选择
//sb.Append("%ADD12R,0.050X0.050X*%\n");//画圆点
sb.Append(string.Format("%ADD11C,{0}*%\n", numericUpDown_size.Value.ToString()));//画圆点
sb.Append("\nG54D11*\n");//选择自定义光圈
if (location != "")
{
    loc = location.Split(',');
    bool find = false;
    foreach (string s in loc)
    {
        find = false;
        foreach (Placement p in pst)
        {

            if (s == p.Symbol)
            {
                find = true;
                Int32 xpos = Int32.Parse(p.X_pos) + (Int32)numericUpDown_x.Value;
                Int32 ypos = Int32.Parse(p.Y_pos) + (Int32)numericUpDown_y.Value;
                xpos = xpos * 100;
                ypos = ypos * 100;
                sb.Append(string.Format("X{0}Y{1}D03*\n", xpos, ypos));//标识位置
                Console.WriteLine(string.Format("Top SMD:{0}--->X:{1} Y:{2} R:{3}", s, p.X_pos, p.Y_pos, p.Rotation));
                //break;
                continue;//跳过剩下的代码,继续执行循环
            }

        }
        if (find == false)
        {
            foreach (Placement p in psb)
            {
                if (s == p.Symbol)
                {
                    find = true;
                    Int32 xpos = Int32.Parse(p.X_pos) + (Int32)numericUpDown_x.Value;
                    Int32 ypos = Int32.Parse(p.Y_pos) + (Int32)numericUpDown_y.Value;
                    xpos = xpos * 100;
                    ypos = ypos * 100;
                    sb.Append(string.Format("X{0,0.00}Y{1,0.00}D03*\n", xpos, ypos));//标识位置
                    
                    Console.WriteLine(string.Format("Bottom SMD:{0}--->X:{1} Y:{2} R:{3}", s, p.X_pos, p.Y_pos, p.Rotation));
                    continue;//跳过剩下的代码,继续执行循环
                }

            }
        }

        if (find == false)
        {
            MessageBox.Show(s + "的坐标未找到,请确认!!!\r\n可能是座位号不正确或者在MI部分");
            return;
        }
    }
    sb.Append("M02*\n");
    richTextBox1.Text = sb.ToString();
    //保存到文件,通知gerberV加载,reload即可刷新视图
    StreamWriter sw = new StreamWriter(@"Auto-Generate-Gerber.gbx");
    sw.Write(sb.ToString());
    sw.Flush();
    sw.Close();
    reload_event(0);
}
软件界面

图形标记目前只支持加点,可以很容易添加方框,箭头等符号
image4.png
软件以坐标文件中第一个位置为参照来计算偏移量的,需要填入实际坐标才可以计算出偏移量,如果坐标没有偏移,则无需计算,贴完的可以标记为绿色背景,取消即为默认背景
image2.png

源码如下

目前代码只适合解析我们cadstar导出的文件,这个EDA国内用的不多,这里给出源码,简单修改下就可以解析其它格式的BOM及坐标文件了,有需要的朋友可以参考
点击下载源码
GerberVS.7z

视频演示

#158 Re: NB-IoT/2G模块/4G模块/GPRS模块/GPS/北斗 » (转载CSDN博客) RDA8910 CSDK二次开发入门教程 » 2021-11-09 21:25:54

奔跑的蜗牛-加油 说:

貌似安信可的 A9G 的 CSDK 里面也是用了 RDA8910的芯片,不知道能不能使用上面的教程。

安信可的 A9G 模块使用的是RDA8955  只支持2G网络的

#159 全志 SOC » 在全志V3s上使用红外接收头 » 2021-08-29 18:56:25

xfdr0805
回复: 0

确定要使用的GPIO,这里需要使用带外部中断的引脚,否则驱动注册失败 request:-22

这是我的设备树配置

 ir_gpio {
 compatible  = "gpio-ir-receiver";
 gpios = <&pio 1 5 GPIO_ACTIVE_LOW>; /* PB5 */
 /*active_low = <1>;*/
 linux,rc-map-name = "rc-tevii-nec";
 status = "okay";
};

内核里修改

Device Drivers > Remote Controller support >

 [*]   LIRC user interface                                             
 [*]   Remote controller decoders  --->                                
 [*]   Remote Controller devices  --->                                 
       <*>   GPIO IR remote control 

驱动成功加载会有如下输出

[ 1.223257] IR NEC protocol handler initialized
[ 1.227806] IR RC5(x/sz) protocol handler initialized
[ 1.232985] IR RC6 protocol handler initialized
[ 1.237517] IR JVC protocol handler initialized
[ 1.242080] IR Sony protocol handler initialized
[ 1.246693] IR SANYO protocol handler initialized
[ 1.251406] IR Sharp protocol handler initialized
[ 1.256104] IR RCMM protocol handler initialized
[ 1.261050] Registered IR keymap rc-tevii-nec
[ 1.265477] rc rc0: gpio_ir_recv as /devices/platform/ir_gpio/rc/rc0
[ 1.272194] rc rc0: lirc_dev: driver gpio_ir_recv registered at minor = 0, raw IR receiver, no transmitter
[ 1.282144] input: gpio_ir_recv as /devices/platform/ir_gpio/rc/rc0/input3

此时查看/dev/input目录下,会有如下显示:

 # evtest 
 No device specified, trying to scan all of /dev/input/event*
 Available devices:
 /dev/input/event0:      1c22800.lradc
 /dev/input/event1:      rotary@0
 /dev/input/event2:      ns2009_ts
 /dev/input/event3:      gpio_ir_recv

此时如果用evtest测试按键是没有任何反应的,需要修改对应的驱动,此问题先留在这里
不影响后续操作

后来查资料,发现可以用lirc里的工具去测试硬件是否OK,测试之前要先修改默认配置文件,不修改的话,同样没反应

 # vi /etc/lirc/lirc_options.conf 
 driver          = default
 device          = /dev/lric0
 修改这2行就可以,里边driver默认是uinput,device默认是auto
 再次测试就有反应了
 # mode2 -m -d /dev/lirc0
 Using driver default on device /dev/lirc0
 Trying device: /dev/lirc0
 Using device: /dev/lirc0
 Warning: Running as root.
    9043     4402      626      497      656      499
     624      499      656      499      624      499
     656      499      624      499      624      531
     624     1630      619     1624      655     1624
     624     1624      624     1634      646     1624
     624     1624      655     1624      593     1656
     624      501      654     1624      593      534
     652     1624      624      499      625     1624
     656      504      619      499      655     1625
     624      499      656     1625      593      531
     624     1633      648      498      624     1624
     624    40035  
    9060     2184      624   143451-pulse   483450-space
从这结果上可以明显的看出这些数值代表脉冲宽度,单位是us

使用irrecod -f -d /dev/lirc0 –disable-namespace来录制配置文件
录制完成后放到 /etc/lric/liricd.conf.d/下边
!注意,这里录制的结果不准确,需要借助上边的命令来获取每一个按键的值,这里只是借用一下配置文件的格式,里边的数字是右对齐
示例:

 # Please take the time to finish this file as described in
 # https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
 # and make it available to others by sending it to
 # <lirc@bartelmus.de>
 #
 # This config file was automatically generated
 # using lirc-0.10.1(default) on Thu Jan  1 01:37:06 1970
 # Command line used: -f -d /dev/lirc0 --disable-namespace
 # Kernel version (uname -r): 5.10.19
 #
 # Remote name (as of config file): elac
 # Brand of remote device, the thing you hold in your hand:
 # Remote device model nr:
 # Remote device info url:
 # Does remote device has a bundled capture device e. g., a
 #     usb dongle? :
 # For bundled USB devices: usb vendor id, product id
 #     and device string (use dmesg or lsusb):
 # Type of device controlled
 #     (TV, VCR, Audio, DVD, Satellite, Cable, HTPC, ...) :
 # Device(s) controlled by this remote:

 begin remote

 name  elac
 flags RAW_CODES|CONST_LENGTH
 eps            30
 aeps          100

 gap          108533

     begin raw_codes

         name Power
        9043     4403      623      531      593      531
         624      531      593      531      624      531
         593      531      624      531      593      536
         594     1680      592     1656      593     1656
         625     1655      593     1666      582     1656
         624     1656      593     1655      625      530
         593      534      621      530      593     1656
         624     1624      624      531      593      530
         624      531      595     1655      623     1655
         593     1656      593      530      624      531
         593     1664      616     1656      593     1656
         593

         name BT
        9041     4407      622      531      593      531
         593      562      593      531      593      531
         625      533      596      525      624      530
         593     1656      624     1656      593     1655
         593     1664      616     1655      593     1656
         593     1656      624     1658      591      530
         624     1656      593      531      624      531
         593      531      593      531      624     1661
         587      530      624     1656      593      531
         593     1687      593     1656      601     1648
         624     1656      593      531      593     1656
         624

     name Vol+
        9013     4437      592      530      593      562
         593      531      624      531      593      531
         594      565      589      530      593      531
         624     1656      593     1656      624     1665
         590     1651      591     1656      624     1655
         593     1656      593     1667      613      531
         593     1656      624     1656      593      531
         593      562      595      528      593     1656
         624      531      593     1656      624      531
         593      530      593     1659      621     1655
         593     1656      593      562      593     1656
         593

     name Vol-
        9044     4436      592      531      624      531
         593      533      622      530      593      531
         593      531      624      531      593      530
         624     1656      593     1661      595     1679
         593     1655      593     1656      624     1656
         593     1667      582     1659      620      530
         593     1656      624     1656      600      524
         624     1656      593      531      593      531
         624      531      593     1656      624      531
         598      530      620     1654      593      531
         624     1625      624     1656      593     1666
         614

     name Pre
        9048     4403      592      562      593      530
         593      562      593      530      593      531
         624      531      593      531      624      531
         593     1661      593     1680      592     1656
         593     1656      624     1656      603     1650
         588     1656      623     1656      593     1656
         624     1662      587     1655      593      531
         624      531      593      531      624     1656
         593      531      631      524      593      530
         593      562      593     1656      593     1656
         624     1663      586      530      624     1624
         624

     name Next
        9022     4425      593      530      624      531
         593      531      624      531      597      527
         623      531      593      531      593      562
         593     1656      593     1656      624     1663
         585     1655      624     1656      593     1656
         593     1656      633     1646      593     1656
         593      562      593     1656      593      530
         624     1658      591      531      593      562
         593      531      624      531      593     1656
         624      499      624     1659      591      530
         624     1656      593     1656      593     1687
         601

     name Play
        9027     4431      592      531      624      531
         593      531      624      531      593      531
         593      562      593      531      624      531
         598     1652      592     1655      624     1656
         593     1656      624     1633      616     1656
         593     1656      624     1624      624     1656
         595      529      624     1656      593      531
         593     1687      593      531      593     1665
         620      526      592      530      624     1656
         593      531      594     1655      624      531
         593     1665      615      531      593     1656
         624

     name Ana1
        9044     4408      621      530      593      530
         624      531      593      531      593      562
         593      531      593      562      593      531
         593     1655      624     1656      593     1655
         597     1654      621     1655      593     1655
         624     1624      624     1665      584      530
         625      530      593     1656      593      562
         593      531      624      499      624      531
         599      525      624     1655      593     1656
         593      562      593     1656      593     1659
         621     1655      593     1656      593     1656
         624

     name Ana2
        9040     4402      656      500      624      499
         656      499      624      499      624      531
         624      499      624      531      624      499
         624     1632      655     1628      589     1650
         593     1655      624     1655      593     1670
         610     1656      593     1656      593      531
         624     1656      596     1655      590      562
         593      531      624      500      624      531
         593      531      624     1656      599      529
         620      530      593     1656      624     1625
         624     1656      593     1662      619     1656
         593

     name Opt1
        9016     4435      624      530      593      531
         624      533      591      531      624      531
         593      531      593      562      593      531
         593     1656      624     1685      564     1655
         624     1624      624     1656      593     1656
         637     1643      593     1656      593      531
         624      531      593     1656      624      531
         596     1653      624      531      593      531
         593      562      593     1656      593     1656
         630      526      591     1656      624      531
         593     1656      593     1656      624     1664
         585

     name Opt2
        9043     4403      655      499      624      499
         656      499      627      497      656      499
         624      499      625      530      624      502
         628     1618      655     1654      601     1619
         623     1624      656     1624      624     1624
         656     1636      613     1625      624      499
         656      499      624      499      656      499
         624     1626      622      531      624      499
         624      531      624     1624      624     1624
         624     1662      618     1624      624      499
         656     1624      624     1624      624     1665
         615

     name Coax
        9015     4439      591      531      624      531
         593      530      624      531      593      531
         593      562      593      531      593      531
         624     1656      593     1656      624     1656
         611     1642      589     1655      624     1656
         593     1656      593     1668      613     1655
         593     1656      593     1656      624      531
         593     1658      622      531      593      530
         593      562      593      531      624      531
         656      468      593     1656      630      525
         592     1655      593     1687      593     1656
         593
     name USB
        9050     4433      593      531      594      561
         593      531      593      531      624      531
         593      531      624      530      593      531
         624     1656      603     1645      593     1656
         624     1656      593     1655      624     1659
         590     1655      593     1656      624      531
         593      531      624      531      593      537
         618      530      593      531      624     1656
         593      531      624     1624      624     1662
         587     1655      624     1655      593     1656
         593     1656      632      523      593     1656
         624

     end raw_codes

 end remote

接下来使用irw来验证刚才录制的是否正确

 # irw
 lircd-0.10.1[432]: Notice: accepted new client on /var/run/lirc/lircd
 lircd-0.10.1[432]: Info: [lirc] protocol is enabled
 0000000000000001 00 Power elac
 0000000000000002 00 BT elac
 0000000000000003 00 Vol+ elac
 0000000000000004 00 Vol- elac
 0000000000000008 00 Ana1 elac
 000000000000000a 00 Opt1 elac
 000000000000000b 00 Opt2 elac
然后在/etc/lirc/目录下创建lircrc配置文件或~/.lircrc
格式如下

 begin
         prog = irexec
         button = Power
         repeat = 0
         config = echo "power"
 end
 begin
         prog = irexec
         button = Vol+
         repeat = 1
         config = amixer -M -c 0 sset 'Headphone',0 1%+ > /dev/null
 end
 begin
         prog = irexec
         button = Vol-
         repeat = 1
         config = amixer -M -c 0 sset 'Headphone',0 1%- > /dev/null
 end
保存

最后就是使用irexec来进行各种操作了,无需编程,到这里可以自由发挥了,想要集成到代码里也很简单,看下图

 # irexec 
 lircd-0.10.1[448]: Notice: accepted new client on /var/run/lirc/lircd
 lircd-0.10.1[448]: Info: [lirc] protocol is enabled
 power
 Simple mixer control 'Headphone',0
 Capabilities: pvolume pvolume-joined pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 63
 Mono:
 Front Left: Playback 47 [54%] [-16.00dB] [on]
 Front Right: Playback 47 [54%] [-16.00dB] [on]
 Simple mixer control 'Headphone',0
 Capabilities: pvolume pvolume-joined pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 63
 Mono:
 Front Left: Playback 45 [50%] [-18.00dB] [on]
 Front Right: Playback 45 [50%] [-18.00dB] [on]
 power

LIRC处理流程

        +--------+         +-------------+                     +--------+
        |        |         | Linux input |                     | Appli- |
 --->---| kernel |---->----| layer       |---------->----------| cation |
        |        |         |             |  /dev/input/eventX  |        |
        +--------+         +-------------+                     +--------+

        +--------+         +-------------+
        |        |         | Linux input |
 --->---| kernel |---->----| layer       |
        |        |         |             |
        +--------+         +-------------+
                                    |
                                    v
                                    |
                                    |                           +--------+
                            +-------------+                     | Appli- |
                            |    lirc     |---------->----------| cation |-+
                            |             |     lirc socket     |        | |
                            +-------------+                     +--------+ |-+
                                                                    |        | |
                                                                    +--------+ |
                                                                    |        |
                                                                    +--------+

        +--------+         +-------------+                     +--------+
        |        |         |             |                     | Appli- |
 --->---| kernel |---->----|    lirc     |---------->----------| cation |-+
        |        |         |             |     lirc socket     |        | |
        +--------+         +-------------+                     +--------+ |-+
                                                                    |        | |
                                                                    +--------+ |
                                                                    |        |
                                                                    +--------+

通过socket使用lirc,不需要引入任何文件,可以方便的集成到代码里,就是上述第三种方式

struct sigaction act;
char buf[128];
struct sockaddr_un addr;
typedef struct
{
    char addr[32];
    char code[8];
    char type[16];
    char name[16];
} IRW_DATA;
IRW_DATA irw_data;
act.sa_handler = sigusr1;
sigfillset(&act.sa_mask);
act.sa_flags = SA_RESTART; /* don't fiddle with EINTR */
sigaction(SIGUSR1, &act, NULL);
addr.sun_family = AF_UNIX;
strcpy(addr.sun_path, "/var/run/lirc/lircd");
fd_lircd = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0);
if (fd_lircd == -1)
{
    printf("Create socket failed\n");
}
if (connect(fd_lircd, (struct sockaddr *)&addr, sizeof(addr)) == -1)
{
    printf("Cannot connect to socket %s\n", addr.sun_path);
}
while (1)
{
    // lircd
    if (read(fd_lircd, buf, 128) > 0)
    {
        LOG_D("%s\n", buf);
        char *p = strtok(buf, " ");
        int i = 0;
        while (p)
        {
            // LOG_D("%s\n", p);
            if (i == 0)
                strcpy(irw_data.addr, p);
            else if (i == 1)
                strcpy(irw_data.code, p);
            else if (i == 2)
                strcpy(irw_data.type, p);
            else if (i == 3)
                strcpy(irw_data.name, p);
            p = strtok(NULL, " ");
            i++;
        }
        LOG_D("%s\n", irw_data.type);
        switch ((uint8_t)strtol(irw_data.addr, NULL, 10))
        {
        case Vol_up:
            rotary_encoder_handler(&u8g2, -1);
            break;
        case Vol_down:
            rotary_encoder_handler(&u8g2, 1);
            break;
        case Play:
            rotary_encoder_button_handler(&u8g2);
            break;
        case Bt:
            printf("BT button\n");
            break;
        }
    }
}

测试的硬件
20210829184703.jpg

20210829185143.png

#161 全志 SOC » 交叉编译音频界的瑞士军刀SOX可以播放音乐(mp3,flac,wav...)并产生各种测试音频信号 » 2021-08-20 20:33:40

xfdr0805
回复: 5

1.从此处下载sox官网http://sox.sourceforge.net 解压后新建一个autoconfig.sh脚本
这里使用了绝对路径,使用相对路径在最后链接时找不到文件,所以直接使用了绝对路径,里边的一些插件如果不需要可以去掉,我也一起打包传上来,另外这手动编译依赖可真烦那,只能缺哪个下载哪个再编译哪个最后才能给链接出来,跟buildroot里3S钟把sox勾选上完事编译完事相比,手动编译估计得3小时 ^*_*^,简直弱爆了,附件在最后,是修改好的源文件,稍做修改即可编译。

#!/bin/sh
./configure
CC=”arm-linux-gnueabihf-gcc”
LDFLAGS=”-L/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/alsa/ -L/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/flac-1.3.3/src/libFLAC/.libs -L/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/lame-3.100/libmp3lame/.libs/ -L/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/twolame-0.4.0/libtwolame/.libs/ -L/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/libmad-0.15.1b/.libs/ -L/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/libid3tag-0.15.1b/.libs/ -L/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/zlib-1.2.11”
CFLAGS=”-I/home/xfdr/v3s_licheepi_zero/buildroot-2021.02/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/ -I/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/lame-3.100/include/ -I/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/flac-1.3.3/src/libFLAC/ -I/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/twolame-0.4.0/libtwolame/ -I/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/libmad-0.15.1b/ -I/home/xfdr/v3s_licheepi_zero/sox-14.4.2-sonavox/libid3tag-0.15.1b/“
–prefix /opt/sox.14.4.2
–host=arm-linux-gnueabihf
–target=arm-linux
–with-alsa
–with-flac
–with-mp3
–with-id3tag
–with-lame
–with-wavpack
#–with-twolame \

2.编译完成后执行make install 即可,安装目录就是上边指定的,拷贝到开发板或者NFS目录下

3.先来播放音乐试一下

# ./sox.14.4.2/bin/play -t mp3 ./群星-雨花石.mp3
./sox.14.4.2/bin/play WARN alsa: can’t encode 0-bit Unknown or not applicable

./群星-雨花石.mp3:

File Size: 13.7M Bit Rate: 321k
Encoding: MPEG audio Info: 163 key(Don’t modify):cEgtqHxwpdRKcBCRPBlPkg2DgcBlNoDaE7DLI/2UHqynoBve87Svw+quIkOr72Ov7q2menCG1hUs953Iws8wjHxQUjhQGB3sa2Sa9AVOc0ek4+GcHOxN9VcDh3GNItlfDRG7Pi/y+oz0U3xrKMvDiHZErPJlv6SHCl/k5qddt6BXsgTw3fn/9fNu/LLy/lawUWghlFz+aUkza7omDosFsjHYbZYrBjDqcCegSdhUOA43QD89da8FaXkqPqcMQVYqEBm7uirR2NrhGOOGt29H8sgWqCZ1icsjX7XcnX0035IQQ5Fj3dVW49U4iJMDLJtbM9DDheK/KwCziC1y9ISodum8kf9PC7+b+JLNr/mhg5DifEjdqngnEHAzqRUNufhtjc530m+aglaPBRphTfryHMYPKTWq311dQFnn9Ru1rnrpjBwyc9avaOrd10VsncqCPRHdRET/f7ygAMyztzSPzQ==
Channels: 2 @ 16-bit Track: 4
Samplerate: 44100Hz Album: 女人如歌 柔情魅声
Replaygain: off Artist: 群星
Duration: 00:05:40.79 Title: 雨花石

In:1.23% 00:00:04.18 [00:05:36.61] Out:184k [ =|== ] Clip:0
Aborted.
# ./sox.14.4.2/bin/play -t flac ./wodeloulan.flac
./sox.14.4.2/bin/play WARN alsa: can’t encode 0-bit Unknown or not applicable

./wodeloulan.flac:

File Size: 39.0M Bit Rate: 952k
Encoding: FLAC
Channels: 2 @ 16-bit
Samplerate: 44100Hz Album: 倔强
Replaygain: off Artist: 云朵
Duration: 00:05:27.59 Title: 我的楼兰

In:0.48% 00:00:01.58 [00:05:26.01] Out:69.6k [ ===|==- ] Clip:0
Aborted.

4.本地音乐播放没问题,也可以播放网络音频,实际就是通过wget获取的

# ./play -t flac http://192.168.6.123:8080/wodeloulan.flac
./play WARN alsa: can’t encode 0-bit Unknown or not applicable

http://192.168.6.123:8080/wodeloulan.flac:

File Size: 0 Bit Rate: 0
Encoding: FLAC
Channels: 2 @ 16-bit
Samplerate: 44100Hz Album: 倔强
Replaygain: off Artist: 云朵
Duration: 00:05:27.59 Title: 我的楼兰

In:0.57% 00:00:01.86 [00:05:25.73] Out:81.9k [ ==|==- ] Clip:0
Aborted.

5.下边开始使用sox产生一些测试信号试试,产生1Khz 44.1KHz 0dB 的sin pink white

play -V -r 48000 -b 16 -c 2 -n synth sin 1000 vol 0db  #产生正弦波
play -V -r 48000 -b 16 -c 2 -n synth pink 1000 vol 0db #产生粉红噪音
play -V -r 48000 -b 16 -c 2 -n synth white 1000 vol 0db #产生白噪音
# ./play -V -r 48000 -b 16 -c 2 -n synth pink 1000 vol 0db
./play WARN alsa: can’t encode 0-bit Unknown or not applicable
./play: SoX v14.4.2

Input File : ‘’ (null)
Channels : 2
Sample Rate : 48000
Precision : 16-bit
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no

./play INFO formats: can't set sample rate 48000; using 44100

Output File : ‘default’ (alsa)
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no

./play INFO vol: has no effect in this configuration
./play INFO sox: effects chain: input 48000Hz 2 channels
./play INFO sox: effects chain: synth 48000Hz 2 channels
./play INFO sox: effects chain: rate 44100Hz 2 channels
./play INFO sox: effects chain: dither 44100Hz 2 channels
./play INFO sox: effects chain: output 44100Hz 2 channels
In:0.00% 00:00:04.78 [00:00:00.00] Out:203k [ | ] Hd:3.4 Clip:0
Aborted.

6.从 20Hz 到 20kHz 的频率扫描,持续时间为 30 秒 音量0 重复10次

play -V -r 44100 -b -c 2 -n synth 30 sin 20+20000 vol 0db repeat 10

7.20-10kHz 和 1kHz-20kHz 双频扫描

play -V -r 44100 -n synth 30 sin 20+10000 sin 1000+20000 remix 1,2 channels 2

8.sox功能还有很多,不过这几个功能目前已经满足我的需要了,其它高级玩法就留给大家了

sox-14.4.2-sonavox.7z

#162 Re: 全志 SOC » [V3X][Mystery]项目开发进度汇报 » 2021-08-18 19:43:32

这颗芯片有I2S接口吗?楼主能上传一份手册吗?

#167 Re: 全志 SOC » 分享在V3S RTL8723DS 上调试蓝牙音频的一点经验 » 2021-08-02 11:41:00

TeveT 说:

无法用dbus 发送事件去上下曲 ,应当是bluealsa 的插件没打开

可以使用dbus发送事件,只是不太清楚,在蓝牙连接后自动生成的那个event是干什么的,看起来像个键盘

#168 Re: 全志 SOC » 分享在V3S RTL8723DS 上调试蓝牙音频的一点经验 » 2021-07-30 09:50:37

蓝牙连接成功后,自动生成了一个event3  通过这个为什么不能控制手机呢?还是说我的手机变成了一个输入设备,按手机音量加减 也没事件输出啊?

# evtest /dev/input/event3
Input driver version is 1.0.1
Input device ID: bus 0x5 vendor 0x4c product 0x710c version 0xe70
Input device name: "iPhone (AVRCP)"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 2 (KEY_1)
    Event code 3 (KEY_2)
    Event code 4 (KEY_3)
    Event code 5 (KEY_4)
    Event code 6 (KEY_5)
    Event code 7 (KEY_6)
    Event code 8 (KEY_7)
    Event code 9 (KEY_8)
    Event code 10 (KEY_9)
    Event code 11 (KEY_0)
    Event code 28 (KEY_ENTER)
    Event code 52 (KEY_DOT)
    Event code 59 (KEY_F1)
    Event code 60 (KEY_F2)
    Event code 61 (KEY_F3)
    Event code 62 (KEY_F4)
    Event code 63 (KEY_F5)
    Event code 64 (KEY_F6)
    Event code 65 (KEY_F7)
    Event code 66 (KEY_F8)
    Event code 67 (KEY_F9)
    Event code 103 (KEY_UP)
    Event code 105 (KEY_LEFT)
    Event code 106 (KEY_RIGHT)
    Event code 108 (KEY_DOWN)
    Event code 113 (KEY_MUTE)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 138 (KEY_HELP)
    Event code 139 (KEY_MENU)
    Event code 163 (KEY_NEXTSONG)
    Event code 165 (KEY_PREVIOUSSONG)
    Event code 166 (KEY_STOPCD)
    Event code 167 (KEY_RECORD)
    Event code 168 (KEY_REWIND)
    Event code 171 (KEY_CONFIG)
    Event code 174 (KEY_EXIT)
    Event code 200 (KEY_PLAYCD)
    Event code 201 (KEY_PAUSECD)
    Event code 208 (KEY_FASTFORWARD)
    Event code 353 (KEY_SELECT)
    Event code 356 (KEY_POWER2)
    Event code 358 (KEY_INFO)
    Event code 362 (KEY_PROGRAM)
    Event code 364 (KEY_FAVORITES)
    Event code 395 (KEY_LIST)
    Event code 398 (KEY_RED)
    Event code 399 (KEY_GREEN)
    Event code 400 (KEY_YELLOW)
    Event code 401 (KEY_BLUE)
    Event code 402 (KEY_CHANNELUP)
    Event code 403 (KEY_CHANNELDOWN)
    Event code 405 (KEY_LAST)
  Event type 2 (EV_REL)
Key repeat handling:
  Repeat type 20 (EV_REP)
    Repeat code 0 (REP_DELAY)
      Value    300
    Repeat code 1 (REP_PERIOD)
      Value     33
Properties:
Testing ... (interrupt to exit)

#169 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-07-28 15:00:14

使用liggpiod吧,配置一下设备树即可 或者使用led子系统

#170 全志 SOC » 分享在V3S RTL8723DS 上调试蓝牙音频的一点经验 » 2021-07-28 13:02:47

xfdr0805
回复: 14

## 全志V3S上通过蓝牙播放音乐

`我使用的是RTL8723DS模块,引脚与BS是兼容的,内核使用的是5.10, Bluez使用的是5.55 终端是UART0,蓝牙串口使用的是UART2,板子是参照licheepi 自己画的`

[参考链接](https://gitee.com/yocop/drv_bt_rtl8723ds)
[BT参考链接](https://github.com/Poco-Ye/rtl8723DS-BT-uart-driver)
[WIFI参考链接](https://github.com/lwfinger/rtl8723ds)
2021-07-28_T.png
2021-07-28_B.png
1. 首先在buildroot里勾选上bluez5-utils,bluez-tools及blue-alsa
2. 在内核里勾选
        [*]UART(H4) protocol support
        [/*]Realtek Three-wireUART(H5) protocol support
    系统启动时会显示如下信息:
       

        Starting kernel ...

        [    0.000000] Booting Linux on physical CPU 0x0
        [    0.000000] Linux version 5.10.19 (xfdr@virtualbox) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #13 SMP Fri Jul 23 12:00:59 CST 2021
        [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
        [    0.000000] CPU: div instructions available: patching division code
        [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
        [    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
        [    0.000000] Memory policy: Data cache writealloc
        [    0.000000] cma: Reserved 16 MiB at 0x41c00000
        [    0.000000] Zone ranges:
        [    0.000000]   Normal   [mem 0x0000000040000000-0x0000000043ffffff]
        [    0.000000]   HighMem  empty
        [    0.000000] Movable zone start for each node
        [    0.000000] Early memory node ranges
        [    0.000000]   node   0: [mem 0x0000000040000000-0x0000000043ffffff]
        [    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
        [    0.000000] psci: probing for conduit method from DT.
        [    0.000000] psci: Using PSCI v0.1 Function IDs from DT
        [    0.000000] percpu: Embedded 15 pages/cpu s31052 r8192 d22196 u61440
        [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
        [    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=ttyS0 rootwait vt.global_cursor_default=0 root=/dev/mmcblk0p2 earlyprintk rw
        [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
        [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
        [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
        [    0.000000] Memory: 34900K/65536K available (8192K kernel code, 918K rwdata, 2244K rodata, 1024K init, 284K bss, 14252K reserved, 16384K cma-reserved, 0K highmem)
        [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
        [    0.000000] rcu: Hierarchical RCU implementation.
        [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
        [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
        [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
        [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
        [    0.000000] GIC: Using split EOI/Deactivate mode
        [    0.000000] random: get_random_bytes called from start_kernel+0x328/0x4c0 with crng_init=0
        [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
        [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
        [    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
        [    0.000022] Switching to timer-based delay loop, resolution 41ns
        [    0.000278] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
        [    0.000593] Console: colour dummy device 80x30
        [    0.000661] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
        [    0.000684] pid_max: default: 32768 minimum: 301
        [    0.000852] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
        [    0.000873] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
        [    0.001748] CPU: Testing write buffer coherency: ok
        [    0.002186] /cpus/cpu@0 missing clock-frequency property
        [    0.002218] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
        [    0.002989] Setting up static identity map for 0x40100000 - 0x40100060
        [    0.003218] rcu: Hierarchical SRCU implementation.
        [    0.003764] smp: Bringing up secondary CPUs ...
        [    0.003792] smp: Brought up 1 node, 1 CPU
        [    0.003802] SMP: Total of 1 processors activated (48.00 BogoMIPS).
        [    0.003811] CPU: All CPU(s) started in HYP mode.
        [    0.003818] CPU: Virtualization extensions available.
        [    0.004452] devtmpfs: initialized
        [    0.008373] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
        [    0.008733] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
        [    0.008771] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
        [    0.009561] pinctrl core: initialized pinctrl subsystem
        [    0.011091] NET: Registered protocol family 16
        [    0.012326] DMA: preallocated 256 KiB pool for atomic coherent allocations
        [    0.013612] thermal_sys: Registered thermal governor 'step_wise'
        [    0.014006] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
        [    0.014032] hw-breakpoint: maximum watchpoint size is 8 bytes.
        [    0.036802] SCSI subsystem initialized
        [    0.037553] usbcore: registered new interface driver usbfs
        [    0.037622] usbcore: registered new interface driver hub
        [    0.037689] usbcore: registered new device driver usb
        [    0.037967] mc: Linux media interface: v0.10
        [    0.038015] videodev: Linux video capture interface: v2.00
        [    0.038161] pps_core: LinuxPPS API ver. 1 registered
        [    0.038174] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
        [    0.038198] PTP clock support registered
        [    0.038880] Advanced Linux Sound Architecture Driver Initialized.
        [    0.039575] Bluetooth: Core ver 2.22
        [    0.039667] NET: Registered protocol family 31
        [    0.039679] Bluetooth: HCI device and connection manager initialized
        [    0.039703] Bluetooth: HCI socket layer initialized
        [    0.039717] Bluetooth: L2CAP socket layer initialized
        [    0.039750] Bluetooth: SCO socket layer initialized
        [    0.040956] clocksource: Switched to clocksource arch_sys_counter
        [    0.052288] NET: Registered protocol family 2
        [    0.053034] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
        [    0.053084] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
        [    0.053112] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
        [    0.053136] TCP: Hash tables configured (established 1024 bind 1024)
        [    0.053298] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
        [    0.053357] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
        [    0.053602] NET: Registered protocol family 1
        [    0.054648] RPC: Registered named UNIX socket transport module.
        [    0.054681] RPC: Registered udp transport module.
        [    0.054690] RPC: Registered tcp transport module.
        [    0.054698] RPC: Registered tcp NFSv4.1 backchannel transport module.
        [    0.056301] Initialise system trusted keyrings
        [    0.056732] workingset: timestamp_bits=30 max_order=14 bucket_order=0
        [    0.063874] NFS: Registering the id_resolver key type
        [    0.063951] Key type id_resolver registered
        [    0.063960] Key type id_legacy registered
        [    0.064015] ntfs: driver 2.1.32 [Flags: R/W].
        [    0.163771] Key type asymmetric registered
        [    0.163804] Asymmetric key parser 'x509' registered
        [    0.163906] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
        [    0.163922] io scheduler mq-deadline registered
        [    0.163931] io scheduler kyber registered
        [    0.168836] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
        [    0.169687] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
        [    0.170628] pwm-backlight backlight: supply power not found, using dummy regulator
        [    0.171287] pwm-backlight backlight: invalid default brightness level: 100, using 6
        [    0.239906] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
        [    0.244637] printk: console [ttyS0] disabled
        [    0.264964] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, base_baud = 1500000) is a U6_16550A
        [    0.932953] printk: console [ttyS0] enabled
        [    0.938208] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
        [    0.968606] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 46, base_baud = 1500000) is a U6_16550A
        [    0.999932] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 47, base_baud = 1500000) is a U6_16550A
        [    1.014962] panel-simple panel: supply power not found, using dummy regulator
        [    1.022545] panel-simple panel: Specify missing connector_type
        [    1.030391] libphy: Fixed MDIO Bus: probed
        [    1.035212] CAN device driver interface
        [    1.039657] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
        [    1.046143] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
        [    1.052210] dwmac-sun8i 1c30000.ethernet: No regulator found
        [    1.057984] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
        [    1.064221] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
        [    1.071527] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
        [    1.078747] dwmac-sun8i 1c30000.ethernet: COE Type 2
        [    1.083730] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
        [    1.090514] dwmac-sun8i 1c30000.ethernet: Normal descriptors
        [    1.096184] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
        [    1.101867] dwmac-sun8i 1c30000.ethernet: device MAC address d6:56:90:e0:09:09
        [    1.109732] libphy: stmmac: probed
        [    1.114430] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
        [    1.121248] libphy: mdio_mux: probed
        [    1.124869] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
        [    1.131286] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
        [    1.139085] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
        [    1.145759] ehci-platform: EHCI generic platform driver
        [    1.151239] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
        [    1.157465] ohci-platform: OHCI generic platform driver
        [    1.164161] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
        [    1.173440] rotary-encoder rotary@0: gray
        [    1.178460] input: rotary@0 as /devices/platform/rotary@0/input/input1
        [    1.187134] sun6i-rtc 1c20400.rtc: registered as rtc0
        [    1.192416] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T01:26:51 UTC (5211)
        [    1.200591] sun6i-rtc 1c20400.rtc: RTC enabled
        [    1.205482] i2c /dev entries driver
        [    1.210476] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input2
        [    1.220426] Driver for 1-wire Dallas network protocol.
        [    1.227208] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
        [    1.235342] Bluetooth: HCI UART driver ver 2.3
        [    1.239793] Bluetooth: HCI UART protocol H4 registered
        [    1.245041] Bluetooth: HCI UART protocol Three-wire (H5) registered
        [    1.252426] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
        [    1.263407] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
        [    1.274623] ledtrig-cpu: registered to indicate activity on CPUs
        [    1.281222] sun4i-ss 1c15000.crypto: Die ID 7
        [    1.288761] usbcore: registered new interface driver usbhid
        [    1.294484] usbhid: USB HID core driver
        [    1.299370] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
        [    1.306740] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
        [    1.316119] sun4i-codec 1c22c00.codec: Failed to register our card
        [    1.324501] NET: Registered protocol family 17
        [    1.328998] can: controller area network core
        [    1.333627] NET: Registered protocol family 29
        [    1.338086] can: raw protocol
        [    1.341133] can: broadcast manager protocol
        [    1.345329] can: netlink gateway - max_hops=1
        [    1.350297] Bluetooth: RFCOMM TTY layer initialized
        [    1.355353] Bluetooth: RFCOMM socket layer initialized
        [    1.360538] Bluetooth: RFCOMM ver 1.11
        [    1.364363] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
        [    1.369672] Bluetooth: BNEP filters: protocol multicast
        [    1.374928] Bluetooth: BNEP socket layer initialized
        [    1.379890] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
        [    1.385825] Bluetooth: HIDP socket layer initialized
        [    1.391148] Key type dns_resolver registered
        [    1.395595] Registering SWP/SWPB emulation handler
        [    1.400448] Loading compiled-in X.509 certificates
        [    1.437437] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc097c610)
        [    1.445077] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc097891c)
        [    1.453961] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
        [    1.465480] sunxi-mmc 1c10000.mmc: card claims to support voltages below defined range
        [    1.475874] mmc1: new high speed SDIO card at address 0001
        [    1.493616] mmc0: host does not support reading read-only switch, assuming write-enable
        [    1.495706] mmc0: new high speed SDHC card at address 0002
        [    1.496918] mmcblk0: mmc0:0002 MSD20 3.73 GiB 
        [    1.499651]  mmcblk0: p1 p2 p3
        [    1.507412] Console: switching to colour frame buffer device 100x30
        [    1.566756] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device
        [    1.576864] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
        [    1.591054] ALSA device list:
        [    1.594055]   #0: V3s Audio Codec
        [    1.612781] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
        [    1.621158] VFS: Mounted root (ext4 filesystem) on device 179:2.
        [    1.629553] devtmpfs: mounted
        [    1.633946] Freeing unused kernel memory: 1024K
        [    1.638711] Run /sbin/init as init process
        [    1.690069] random: fast init done
        [    1.792914] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
        Starting syslogd: OK
        Starting klogd: OK
        Running sysctl: OK
        Starting mdev... OK
        [    3.206544] cfg80211: Loading compiled-in X.509 certificates for regulatory database
        [    3.248879] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
        [    3.258062] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
        [    3.266896] cfg80211: failed to load regulatory.db
        [    3.359658] 8723ds: module is from the staging directory, the quality is unknown, you have been warned.
        Initializing random number generator: OK
        Saving random seed: [    3.742299] random: dd: uninitialized urandom read (512 bytes read)
        OK
        Starting system message bus: [    3.812938] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
        [    3.820155] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
        done
        Starting bluetoothd: OK
        Starting network: OK
        [    6.200965] random: crng init done
        [    6.204396] random: 3 urandom warning(s) missed due to ratelimiting
        Starting sshd: OK
        Welcome to Buildroot for the LicheePi Zero
        licheepi-zero login: 

3. UART2默认速率是9600可以使用cat /dev/ttyS2来测试串口是否正常
4. 使用rtk_hciattach绑定uart端口
        rtk_hciattach -n -s 115200 /dev/ttyS2 rtk_h5 &
`注意这个过程需要加载固件才行,如果固件不存在、不匹配或者错误就会失败。需要把固件放到提示的位置`
5. 固件及配置文件加载完后
        Realtek Bluetooth :Init Process finished
        Realtek Bluetooth post process
        Device setup complete
`出现这个说明蓝牙模块初始化完成 此时hci0蓝牙端口已经生成,使用hciconfig工具可以查看端口及状态`
6. hciconfig -a

        hci0:   Type: Primary  Bus: UART 
            BD Address: 34:20:03:AA:A3:7E  ACL MTU: 1021:8  SCO MTU: 255:12 
            UP RUNNING PSCAN ISCAN 
            RX bytes:165747 acl:159 sco:0 events:1160 errors:0 
            TX bytes:16622 acl:158 sco:0 commands:225 errors:0 
            Features: 0xff 0xff 0xff 0xfe 0xdb 0xfd 0x7b 0x87 
            Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
            Link policy: RSWITCH HOLD SNIFF PARK 
            Link mode: SLAVE ACCEPT 
            Name: 'Sonavox-BT' 
            Class: 0x040428 
            Service Classes: Rendering 
            Device Class: Audio/Video, HiFi Audio Device 
            HCI Version: 4.1 (0x7)  Revision: 0xaa7a 
            LMP Version: 4.1 (0x7)  Subversion: 0x8cb2 
            Manufacturer: Realtek Semiconductor Corporation (93) 

7. bluealsa -p a2dp-sink &
    `建立bluez与alsa之前的桥梁,否则无法播放音频,只能连接上`
8. bluetoothd启动需要加载一些配置文件在/etc/bluetooth/main.conf 不加载也可以

        
        #Default adaper name
        #Defaults to 'BlueZ X.YZ'
        Name = Sonavox-BT

        #Default device class. Only the major and minor device class bits are
        #considered. Defaults to '0x000000'.
        Class = 0x000428

        #How long to stay in discoverable mode before going back to non-discoverable
        #The value is in seconds. Default is 180, i.e. 3 minutes.
        #0 = disable timer, i.e. stay discoverable forever
        DiscoverableTimeout = 0

        #How long to stay in pairable mode before going back to non-discoverable
        #The value is in seconds. Default is 0.
        #0 = disable timer, i.e. stay pairable forever
        PairableTimeout = 0

        #Automatic connection for bonded devices driven by platform/user events.
        #If a platform plugin uses this mechanism, automatic connections will be
        #enabled during the interval defined below. Initially, this feature
        #intends to be used to establish connections to ATT channels. Default is 60.
        AutoConnectTimeout = 60

9. 使用蓝牙界的瑞士军刀bluetoothctl来调试蓝牙
10. 下面是可用的命令
     

  Available commands:
        -------------------
        advertise                                         Advertise Options Submenu
        scan                                              Scan Options Submenu
        gatt                                              Generic Attribute Submenu
        list                                              List available controllers
        show [ctrl]                                       Controller information
        select <ctrl>                                     Select default controller
        devices                                           List available devices
        paired-devices                                    List paired devices
        system-alias <name>                               Set controller alias
        reset-alias                                       Reset controller alias
        power <on/off>                                    Set controller power
        pairable <on/off>                                 Set controller pairable mode
        discoverable <on/off>                             Set controller discoverable mode
        discoverable-timeout [value]                      Set discoverable timeout
        agent <on/off/capability>                         Enable/disable agent with given capability
        default-agent                                     Set agent as the default one
        advertise <on/off/type>                           Enable/disable advertising with given type
        set-alias <alias>                                 Set device alias
        scan <on/off>                                     Scan for devices
        info [dev]                                        Device information
        pair [dev]                                        Pair with device
        cancel-pairing [dev]                              Cancel pairing with device
        trust [dev]                                       Trust device
        untrust [dev]                                     Untrust device
        block [dev]                                       Block device
        unblock [dev]                                     Unblock device
        remove <dev>                                      Remove device
        connect <dev>                                     Connect device
        disconnect [dev]                                  Disconnect device
        menu <name>                                       Select submenu
        version                                           Display version
        quit                                              Quit program
        exit                                              Quit program
        help                                              Display help about this program
        export                                            Print environment variables

11. 操作记录如下: trust dev 之后,再连接就不再提示密码了,直接连接上

        [bluetooth]# discoverable on
        Changing discoverable on succeeded
        [bluetooth]# pairable on
        Changing pairable on succeeded
        [CHG] Device D8:8F:76:51:A7:87 Connected: yes
        Request confirmation
        [agent] Confirm passkey 151930 (yes/no): yes
        Authorize service
        [agent] Authorize service 0000110d-0000-1000-8000-00805f9b34fb (yes/no):
        [CHG] Device D8:8F:76:51:A7:87 ServicesResolved: yes
        [agent] Authorize service 0000110d-0000-1000-8000-00805f9b34fb (yes/no): yes
        Authorize service
        [agent] Authorize service 0000110e-0000-1000-8000-00805f9b34fb (yes/no): yes
        [ 2681.328397] input: iPhone (AVRCP) as /devices/virtual/input/#input5
        [iPhone]# list
        Controller 34:20:03:AA:A3:7E Sonavox-BT [default]
        [iPhone]# devices
        Device D8:8F:76:51:A7:87 iPhone
        [iPhone]# info
        Device D8:8F:76:51:A7:87 (public)
                Name: iPhone
                Alias: iPhone
                Class: 0x007a020c
                Icon: phone
                Paired: yes
                Trusted: no
                Blocked: no
                Connected: yes
                LegacyPairing: no
                UUID: Vendor specific           (00000000-deca-fade-deca-deafdecacafe)
                UUID: Service Discovery Serve.. (00001000-0000-1000-8000-00805f9b34fb)
                UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
                UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
                UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
                UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
                UUID: NAP                       (00001116-0000-1000-8000-00805f9b34fb)
                UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
                UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
                UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
                UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
                UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
                UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
                UUID: Current Time Service      (00001805-0000-1000-8000-00805f9b34fb)
                UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
                UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
                UUID: Vendor specific           (02030302-1d19-415f-86f2-22a2106a0a77)
                UUID: Vendor specific           (7905f431-b5ce-4e99-a40f-4b1e122d00d0)
                UUID: Vendor specific           (89d3502b-0f36-433a-8ef4-c502ad55f8dc)
                UUID: Vendor specific           (9fa480e0-4967-4542-9390-d343dc5d04ae)
                UUID: Vendor specific           (d0611e78-bbb4-4591-a5f8-487910ae4366)
                Modalias: bluetooth:v004Cp710Cd0E70
                Battery Percentage: 0x55 (85)
        [iPhone]# quit
        
        # cat /proc/bus/input/devices
        I: Bus=0019 Vendor=0001 Product=0001 Version=0100
        N: Name="1c22800.lradc"
        P: Phys=sun4i_lradc/input0
        S: Sysfs=/devices/platform/soc/1c22800.lradc/input/input0
        U: Uniq=
        H: Handlers=kbd event0 
        B: PROP=0
        B: EV=3
        B: KEY=3 0 0 0 0 0 0 0 c0000 0 0 0

        I: Bus=0019 Vendor=0000 Product=0000 Version=0000
        N: Name="rotary@0"
        P: Phys=
        S: Sysfs=/devices/platform/rotary@0/input/input1
        U: Uniq=
        H: Handlers=event1 
        B: PROP=0
        B: EV=5
        B: REL=1

        I: Bus=0018 Vendor=0000 Product=0000 Version=0000
        N: Name="ns2009_ts"
        P: Phys=input/ts
        S: Sysfs=/devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input2
        U: Uniq=
        H: Handlers=event2 
        B: PROP=0
        B: EV=b
        B: KEY=400 0 0 0 0 0 0 0 0 0 0
        B: ABS=3

        I: Bus=0005 Vendor=004c Product=710c Version=0e70
        N: Name="iPhone (AVRCP)"
        P: Phys=34:20:03:aa:a3:7e
        S: Sysfs=/devices/virtual/input/input5
        U: Uniq=
        H: Handlers=kbd event3 
        B: PROP=0
        B: EV=100007
        B: KEY=2fc800 1452 0 0 0 0 10300 49e8 c00 e1680 f f8100000 10000ffc
        B: REL=0
        

12. 通过AVRCP来控制手机上一曲,下一曲等 https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/media-api.txt
    `注意这里的蓝牙地址是你手机的,不是蓝牙模块的,因为要控制的是你的手机进行一一曲,下一曲的,地址不对会提示错误,就是这个原因,另外我测试除了不能调节音量外,其它的都能控制,不知道为什么?`
        Error org.freedesktop.DBus.Error.UnknownObject: Method "Previous" with signature "" on interface "org.bluez.MediaControl1" doesn't exist

        # dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0/dev_D8_8F_76_51_A7_87 org.bluez.MediaControl1.Pause
        # dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0/dev_D8_8F_76_51_A7_87 org.bluez.MediaControl1.Play
        # dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0/dev_D8_8F_76_51_A7_87 org.bluez.MediaControl1.Previous
        # dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0/dev_D8_8F_76_51_A7_87 org.bluez.MediaControl1.Next
        # dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0/dev_D8_8F_76_51_A7_87 org.bluez.MediaControl1.VolumeUp
        # dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0/dev_D8_8F_76_51_A7_87 org.bluez.MediaControl1.VolumeDown
        以下返回结果,可以看到"org.bluez.MediaControl1"已经注册了,但是提示已废弃,新的方法是"org.bluez.MediaPlay1",但是我这里用不了

        <node>
            <interface name="org.freedesktop.DBus.Introspectable">
                <method name="Introspect">
                    <arg name="xml" type="s" direction="out"/>
                </method>
            </interface>
            <interface name="org.bluez.Device1">
                <method name="Disconnect"></method>
                <method name="Connect"></method>
                <method name="ConnectProfile">
                    <arg name="UUID" type="s" direction="in"/>
                </method>
                <method name="DisconnectProfile">
                    <arg name="UUID" type="s" direction="in"/>
                </method>
                <method name="Pair"></method>
                <method name="CancelPairing"></method>
                <property name="Address" type="s" access="read"></property>
                <property name="AddressType" type="s" access="read"></property>
                <property name="Name" type="s" access="read"></property>
                <property name="Alias" type="s" access="readwrite"></property>
                <property name="Class" type="u" access="read"></property>
                <property name="Appearance" type="q" access="read"></property>
                <property name="Icon" type="s" access="read"></property>
                <property name="Paired" type="b" access="read"></property>
                <property name="Trusted" type="b" access="readwrite"></property>
                <property name="Blocked" type="b" access="readwrite"></property>
                <property name="LegacyPairing" type="b" access="read"></property>
                <property name="RSSI" type="n" access="read"></property>
                <property name="Connected" type="b" access="read"></property>
                <property name="UUIDs" type="as" access="read"></property>
                <property name="Modalias" type="s" access="read"></property>
                <property name="Adapter" type="o" access="read"></property>
                <property name="ManufacturerData" type="a{qv}" access="read"></property>
                <property name="ServiceData" type="a{sv}" access="read"></property>
                <property name="TxPower" type="n" access="read"></property>
                <property name="ServicesResolved" type="b" access="read"></property>
                <property name="WakeAllowed" type="b" access="readwrite"></property>
            </interface>
            <interface name="org.freedesktop.DBus.Properties">
                <method name="Get">
                    <arg name="interface" type="s" direction="in"/>
                    <arg name="name" type="s" direction="in"/>
                    <arg name="value" type="v" direction="out"/>
                </method>
                <method name="Set">
                    <arg name="interface" type="s" direction="in"/>
                    <arg name="name" type="s" direction="in"/>
                    <arg name="value" type="v" direction="in"/>
                </method>
                <method name="GetAll">
                    <arg name="interface" type="s" direction="in"/>
                    <arg name="properties" type="a{sv}" direction="out"/>
                </method>
                <signal name="PropertiesChanged">
                    <arg name="interface" type="s"/>
                    <arg name="changed_properties" type="a{sv}"/>
                    <arg name="invalidated_properties" type="as"/>
                </signal>
            </interface>
            <interface name="org.bluez.Network1">
                <method name="Connect">
                    <arg name="uuid" type="s" direction="in"/>
                    <arg name="interface" type="s" direction="out"/>
                </method>
                <method name="Disconnect"></method>
                <property name="Connected" type="b" access="read"></property>
                <property name="Interface" type="s" access="read"></property>
                <property name="UUID" type="s" access="read"></property>
            </interface>
            <interface name="org.bluez.MediaControl1">
                <method name="Play">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="Pause">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="Stop">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="Next">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="Previous">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="VolumeUp">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="VolumeDown">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="FastForward">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <method name="Rewind">
                    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
                </method>
                <property name="Connected" type="b" access="read"></property>
                <property name="Player" type="o" access="read"></property>
            </interface>
            <interface name="org.bluez.Battery1">
                <property name="Percentage" type="y" access="read"></property>
            </interface>
            <node name="fd1"/>
            <node name="player2"/>
            <node name="sep1"/>
            <node name="sep2"/>
            <node name="sep3"/>
            <node name="sep4"/>
            <node name="sep5"/>
            <node name="sep6"/>
            <node name="service0006"/>
            <node name="service000a"/>
            <node name="service000f"/>
            <node name="service0014"/>
            <node name="service0018"/>
            <node name="service001e"/>
            <node name="service0023"/>
            <node name="service002d"/>
        </node>"

13. 另外在蓝牙连接成功时会在/dev/input/目录下注册一个event3

        I: Bus=0005 Vendor=004c Product=710c Version=0e70
        N: Name="iPhone (AVRCP)"
        P: Phys=34:20:03:aa:a3:7e
        S: Sysfs=/devices/virtual/input/input5
        U: Uniq=
        H: Handlers=kbd event3 
        B: PROP=0
        B: EV=100007
        B: KEY=2fc800 1452 0 0 0 0 10300 49e8 c00 e1680 f f8100000 10000ffc
        B: REL=0

        我偿试过使用sendevent 去操作/dev/input/event3 但是没有任何反应,不知道能不能这样操作?
        # ./sendevent /dev/input/event3 1 116 1
        # ./sendevent /dev/input/event3 0 0 0
        # ./sendevent /dev/input/event3 1 114 1

14. 至此,BLUETOOTH,DLNA,AIRPLAYER都可以通过Alsa声卡一起同时播放了

#171 Re: 全志 SOC » 贡献个V3S的原理图,顺便问下RGB数据线高低位的问题 » 2021-07-21 09:32:37

# devmem 0x01c0c040
0x800001E0
#devmem 0x01c0c040 32 0x808001e0
不明白,请看10楼

#172 Re: 硬件设计 KiCAD/Protel/DXP/PADS/ORCAD/EAGLE » KiCad 与其他 EDA 转换 » 2021-07-20 12:48:02

经过我测试 在kicad5.99下 可以直接转换原理图和PCB ,基本完美

#173 Re: 硬件设计 KiCAD/Protel/DXP/PADS/ORCAD/EAGLE » 开源 EDA KiCad 常用插件整理 » 2021-07-20 12:46:09

14    teardrops    泪滴   这个工具在kicad5.99下不管用

#175 Re: 全志 SOC » 探讨一下全志音频分频相关问题 » 2021-07-20 12:42:21

我们的一款产品使用的imx6ul  外接的22.576和22.5792晶振

#176 Re: 全志 SOC » 大佬们救救我,自己画的荔枝派还是不行(*==*) » 2021-07-19 12:43:27

LZ 先确保原理图没问题,然后再检查焊接问题

#177 Re: 全志 SOC » 大佬们救救我,自己画的荔枝派还是不行(*==*) » 2021-07-14 17:56:57

rex 说:
xfdr0805 说:

通过USB能发现芯片吗?能否从USB启动?

也不行(´。・v・。`)

应该是0.9V吧

#178 Re: 全志 SOC » 大佬们救救我,自己画的荔枝派还是不行(*==*) » 2021-07-14 15:28:13

我也碰到了UART0无输出问题,我的板子可以 sunxi-fel 烧录,然后就没有然后了

xfdr@virtualbox:~/桌面/v3s_s3_fel_autorun_linux$ sudo sunxi-fel -p  uboot u-boot-sunxi-with-spl.bin write 0x41000000 zImage write 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb write 0x41900000 boot_fel_initrd.scr write 0x41A00000 rootfs.cpio.gz.uImage
[sudo] xfdr 的密码:
100% [================================================]  4195 kB,  446.0 kB/s
100% [================================================]    11 kB,  230.5 kB/s
100% [================================================]     0 kB,    8.5 kB/s
100% [================================================]  5185 kB,  447.8 kB/s

#180 Re: ESP32/ESP8266 » ESP32做的点整时钟,可以正确显示时间,怎么做出数字上下滚动的效果呢? » 2021-07-12 12:24:05

你需要一个缓冲区   用定时器修改缓冲区内容  可以125ms向上或下移动最后那个点阵的每一行来实现翻页

#186 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 一种通过debugfs获取sys_config(FEX)内容的方法 » 2021-06-26 22:26:08

Yogo 说:

我手上有十几块全志A20的板子 ZK-A201AD200全志A20.pdf
可以提供给你两块 把折腾的过程记录下来就可以了 冒昧了

楼主,有链接吗? 买一块来研究学习一下

#189 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2021-06-23 12:48:41

哇酷小二 说:
xfdr0805 说:
luott 说:

亲爱的楼主分享下v3s的lvgl8工程可以吗

可以,不过我上传总是提示不允许的类型,不知道怎么回事,
我也是根据本坛 https://whycan.com/t_2303.html 来进行修改的

请问是什么后缀名文件呢?

tar或tar.xz

#190 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2021-06-23 11:42:59

原来是我压缩格式错了,压缩成7z 后体积小了10倍,这是完整工程,把CC路径修改成你的,直接make就OK
这个是编译好的demo 可以在板子上运行  需要tslib
demo.7z
lvgl-7.7z
lvgl-8.1.7z

PS:谁能把.O的输出文件给整到一个output文件夹里去,对makefile 不熟。

#191 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2021-06-23 11:34:49

642242855 说:

移植8.0到 STM32H750会进入HardFault_Handler, 在lv_refr.c的138行出问题,具体原因没找到

https://whycan.com/files/members/2275/微信截图_20210622112255.png

有没有哪位大佬比较熟悉,看是啥原因,

不懂,帮不上你

#192 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2021-06-23 11:30:53

luott 说:

亲爱的楼主分享下v3s的lvgl8工程可以吗

可以,不过我上传总是提示不允许的类型,不知道怎么回事,
我也是根据本坛 https://whycan.com/t_2303.html 来进行修改的

#193 ST/STM8/STM8S/STM8L » 分享一个RS485_RTU与MODBUS-TCP同时工作的项目 » 2021-06-22 22:51:48

xfdr0805
回复: 6

此项目包含完整代码及原理图,使用W5500通过SPI连接,里边有MODBUS 主站,从站,webserver tcpserver,can
这个配置界面就一个比较简单,webpage采用了gzip压缩,参数都是POST 采用Ajax传递,参数解析本来是用cJSON的,后来取消了,自己定义数据来解析的,MCU内存只有20KB,太小了
(PS:开始玩Licheepi有几个月了,现在感觉V3S 64M内存好大,都不知道咋用了)
项目里RS485可以与MODBUS TCP 做为从机一起同时使用,演示见下图:

SCH.pdf

STM32F072_RS485_MODUBS_TCP_WEBSERVER_CAN1.rar
test.gif
2021-06-22_223745.png

#194 Re: 硬件设计 KiCAD/Protel/DXP/PADS/ORCAD/EAGLE » 开源 EDA KiCad v6.0 文档手册 -- 预览版 » 2021-06-22 08:48:13

楼主 KiCad v6.0什么时候发布,这个软件现在用的越来越顺手了

#195 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2021-06-18 22:10:32

xfdr0805
回复: 53

v8.0 带来了许多新功能,如简化和更强大的滚动,新的布局灵感来自CSS Flexbox和网格,简化和改进的小部件,更强大的事件,可上钩的绘图,等等。
v8是一个重大的变化,因此它不是向后兼容v7。

详情:  https://blog.lvgl.io/2021-06-01/release_v8.0.0






LVGL-7:





LVGL-8:







LVGL8模拟器: win10 x64 编译
LVGL.Simulator.rar

#200 Re: 全志 SOC » thttpd搭建的http服务器如何获取POST的JSON数据? » 2021-06-02 15:16:56

xfdr0805 说:
哇酷小二 说:

fgets(poststr, len + 1, stdin);

这个没有获取到数据吗?

取不到,真的是非常奇怪

搞定了,使用read就可以获取到POST来的数据

#201 Re: 全志 SOC » thttpd搭建的http服务器如何获取POST的JSON数据? » 2021-06-01 22:15:32

哇酷小二 说:

fgets(poststr, len + 1, stdin);

这个没有获取到数据吗?

取不到,真的是非常奇怪

#202 Re: 全志 SOC » thttpd搭建的http服务器如何获取POST的JSON数据? » 2021-06-01 15:48:22

前端与服务器之间通过JSON交换数据,CGI只处理JSON数据,所以前端数据都是AJAX提交的,不是表单形式POST过来的数据,现是就是获取不到数据?第一次在LINUX编写程序,请大佬指点一下,谢谢!

#203 全志 SOC » thttpd搭建的http服务器如何获取POST的JSON数据? » 2021-06-01 15:37:24

xfdr0805
回复: 4

之前MCU我知道是从TCP获取到数据后,获取到ContentLength后,直接从\r\n\r\n处获取数据就可以了,现在在linux中是通过stdin获取的,能获取到长度,但是内容却获取不知道,不知道是什么原因

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    long len;
    char *lenstr, poststr[256];
    lenstr = getenv("CONTENT_LENGTH");
    // if(lenstr == NULL || len > MAXLEN)
    if (lenstr == NULL)
        printf("<P>表单提交错误.");
    else
    {
        len = atoi(lenstr);
        printf("data len:--->%d", len);
        fgets(poststr, len + 1, stdin);
        printf("post data:--->%s", poststr);
    }
    return 0;
}

2021-06-01_153107.png
2021-06-01_153406.png

#205 Re: 全志 SOC » 终于搞定f1c100s的i2s输出 » 2021-05-23 21:39:18

赞,可以做高品质的音乐播放器了

#206 Re: 全志 SOC » V3S 成功运行dotnet core 5.0 » 2021-05-18 20:15:07

Meekdai 说:

之后会尝试一下能不能跑带UI的代码。

要是能跑UI就方便多了,就不用再学习QT

#207 Re: 全志 SOC » [开源项目-记录贴]扔掉你手中的开发板,跟我来自制基于F1C100s/F1C200s的M5Pi吧! » 2021-05-14 15:43:02

IAMLIUBO 说:

2021-05-13更新
打的PCB回来了,不过料还没配齐,准备周末焊接一下。
https://makingfun.oss-cn-qingdao.aliyuncs.com/linux/F1C100S/PCB-FRONT-NO-CASE.jpg
https://makingfun.oss-cn-qingdao.aliyuncs.com/linux/F1C100S/PCB-FRONT-WITH-CASE.jpg

(还没开始焊接就已经发现一些问题了,还是太菜了  big_smile

看起来不是挻好的嘛?

#210 Re: 全志 SOC » 请教WIFI模块的原理图 » 2021-04-14 15:13:38

晕哥 说:

BT_WAKE
BT_HOST_WAKE
BT_DIS

不考虑省电的情况下, 都可以悬空, 但是建议在 PCB 上面还是留出 两个上下/下拉电阻的位置,方便后期调试。

RTL8723BS 蓝牙和WIFI可以同时工作, 蓝牙是 UART 连接,不用可以不接。


蓝牙音频是通过串口传输,电话是通过PCM接口传输吗?我的理解正确吗

#211 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 请问嵌入式设备的网卡mac地址可以随意设置吗? » 2021-04-08 13:13:33

确实是这个,记错了,顺道向大神学习一下

aozima 说:

用 00:11:22:33:44:55 吧,

或这样

    /* OUI 00-80-E1 STMICROELECTRONICS. */
    stm32_eth_device.dev_addr[0] = 0x00;
    stm32_eth_device.dev_addr[1] = 0x80;
    stm32_eth_device.dev_addr[2] = 0xE1;
    /* generate MAC addr from 96bit unique ID (only for test). */
    stm32_eth_device.dev_addr[3] = *(rt_uint8_t *)(UID_BASE + 4);
    stm32_eth_device.dev_addr[4] = *(rt_uint8_t *)(UID_BASE + 2);
    stm32_eth_device.dev_addr[5] = *(rt_uint8_t *)(UID_BASE + 0);

#215 Re: 全志 SOC » V3S 如何 LCD 背光调整? » 2021-04-01 16:32:47

raspberryman 说:

建议直接用 devmem 读写寄存器测试,看是不是驱动程序有bug?

仔细看了下输出内容,有下边2话
[    0.070763] pwm-backlight backlight: supply power not found, using dummy regulator
[    0.071204] pwm-backlight backlight: invalid default brightness level: 80, using 10

设备树直接改成这样

backlight: backlight {
        compatible = "pwm-backlight";
        pwms = <&pwm 0 1000000 0>;
        brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
        default-brightness-level = <80>;
        power-supply = <&reg_vcc3v3>;
        enable-gpios = <&pio 1 4 0>;
        post-pwm-on-delay-ms = <10>;
        pwm-off-delay-ms = <10>;
    };

#216 Re: 全志 SOC » V3S 如何 LCD 背光调整? » 2021-04-01 15:21:01

# ls /sys/class/backlight/backlight/
actual_brightness  device             scale              uevent
bl_power           max_brightness     subsystem
brightness         power              type


# echo 1 > /sys/class/backlight/backlight/bl_power  可以关闭背光
# echo 0 > /sys/class/backlight/backlight/bl_power  可以打开背光
# echo 6 > /sys/class/backlight/backlight/brightness  最大为6,设备树定义的没生效?

# echo 7 > /sys/class/backlight/backlight/brightness
sh: write error: Invalid argument


# cat /sys/class/backlight/backlight/max_brightness
6


设备树:
backlight: backlight {
        compatible = "pwm-backlight";
        pwms = <&pwm 0 1000000 0>;
        brightness-levels = <0 30 40 50 60 70 100>;
        default-brightness-level = <100>;
    };

#219 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-31 15:20:33

试过,也不行,难道我这是个例,这种问题好像其它人基本没遇到啊

阿黄 说:

是不是卡的后段区间中有错误? 先把卡全部格式化呢

#220 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-31 15:19:30

我的编译出来也的,rootfs.tar  还有rootfs.ext2  rootfs.ext4  跟你配置有关

mysteryli 说:

为什么我buildroot编译出来的是rootfs.rar

xfdr0805 说:

我把rootfs.ext4 挂载到/mnt下 看了一下,没问题啊,怎么写入到SD卡就出错呢
谁能指点一下呢?

xfdr0805 说:

默认是60M  我修改成了256M  生成的rootfs.ext4是变大了,但是实际上文件系统内容是损坏的,改回原大小就没问题,不知道什么原因?现在编译好的qt5没办法复制到板子上去

https://whycan.com/files/members/4881/2021-03-31_120021.png

#221 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-31 11:55:38

我把rootfs.ext4 挂载到/mnt下 看了一下,没问题啊,怎么写入到SD卡就出错呢
谁能指点一下呢?

xfdr0805 说:
JasonWoo 说:

注意rootfs分区大小。

默认是60M  我修改成了256M  生成的rootfs.ext4是变大了,但是实际上文件系统内容是损坏的,改回原大小就没问题,不知道什么原因?现在编译好的qt5没办法复制到板子上去

2021-03-31_120021.png

#223 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-31 09:55:17

JasonWoo 说:

注意rootfs分区大小。

默认是60M  我修改成了256M  生成的rootfs.ext4是变大了,但是实际上文件系统内容是损坏的,改回原大小就没问题,不知道什么原因?现在编译好的qt5没办法复制到板子上去

#224 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-31 08:16:24

我用的是1G的卡,如果我不修改rootfs镜像大小,生成的sdimage默认是60M ,写入到SD卡上后,第二个分区也就60M左右,这显示不够啊  于是我手动调整分区到256 然后将rootfs.ext4恢复过去  再将/opt/qt-5.15.2-arm复制过去,插上卡启动是没问题,就是复制过的的qt运行环境却无法访问?很奇怪

mysteryli 说:
xfdr0805 说:

你编译的qt5 有多大?我就把地图除去了,全部编译完成  我看下有165M  是不是超级大?

mysteryli 说:

没改过镜像大小..

我的好像300多M吧  没注意 我用的SD卡 空间足够用

#225 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-30 20:02:50

你编译的qt5 有多大?我就把地图除去了,全部编译完成  我看下有165M  是不是超级大?

mysteryli 说:
xfdr0805 说:
mysteryli 说:

buildroot的问题吧
解压出错了?SD卡接触不好?

在使用buildroot 修改根文件系统镜像大小后再编译,也会有类似的错误,,比如从60M 修改为256M  再重新make
输出的镜像会变大,但是DD 到SD卡会  会提示分区损坏,无法挂载,重新make clean也不行,修改为原尺寸就没问题

没改过镜像大小..

#226 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-30 16:14:23

我换过卡  也是一样,说明buildroot生成的sdcard.img镜像就有问题

我现需要把PC机上交叉编译好的qt5 复制到板子上,

这样拷贝的:
sudo cp -r /opt/qt-5.15.2-arm /media/xfdr/rootfs/opt


mysteryli 说:

buildroot的问题吧
解压出错了?SD卡接触不好?

#227 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-30 16:08:06

mysteryli 说:

buildroot的问题吧
解压出错了?SD卡接触不好?

在使用buildroot 修改根文件系统镜像大小后再编译,也会有类似的错误,,比如从60M 修改为256M  再重新make
输出的镜像会变大,但是DD 到SD卡会  会提示分区损坏,无法挂载,重新make clean也不行,修改为原尺寸就没问题

#228 Re: 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-30 16:04:56

raspberryman 说:

ext4都提示你根文件系统出错了

是的,问题是出错的原因是什么呢?

#229 全志 SOC » 将PC机上交叉编译好的qt5环境复制到板子上时运行出错 EXT4-fs error (device mmcblk0p2) » 2021-03-30 15:31:34

xfdr0805
回复: 17

ls命令都无法列出,经常碰到 EXT4-fs error (device mmcblk0p2)  这错误,只要我把文件复制到烧录好的SD  rootfs分区  读取文件就会有这种错误

# tftp -g -r test 192.168.6.123 test
# vi /etc/profile
# source /etc/profile
# ls
test
# chmod +x test
# ./test
[  133.780334] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.797330] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.815013] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.832520] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.850577] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.868614] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.887334] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.905933] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.925140] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
[  133.944538] EXT4-fs error (device mmcblk0p2): ext4_lookup:1706: inode #32769: comm test: iget: checksum invalid
./test: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory

#230 Re: 全志 SOC » 大家好 V3S编译出来的qt引用运行不了,麻烦大家帮忙看下 » 2021-03-29 21:26:02

楼主,触摸是用的哪颗芯片?我的NS2009   没有出现对应的event  用TSC2007的驱动 中断引脚不知道怎么配置

#231 Re: 全志 SOC » 终于把V3s三个串口全部榨干, 控制台只能用 ssh 了, 泪崩 (dropbear大法好,还能秘钥登录) » 2021-03-29 11:47:34

我只把密码改了就可以正常登录了

我思故我在 说:
我思故我在 说:

确实新建一个用户就能秘钥登录,但是 root 用户却不行, 正在查找原因。

参考这篇博文:
https://blog.csdn.net/huyuan7494/article/details/81627108

root 用户也搞定了,    公钥保存到这个目录就可以了: /root/.ssh/authorized_keys

刚刚一直不成功的原因是 /root 目录的拥有者是 sshd 用户,

改成 root 用户就可以了:  chown -R root:root /root/


太感谢 @ifree64 大神了。

#232 Re: 全志 SOC » Lichee Pi Zero 开发板uboot 增加以太网使用tftp 崩溃问题求解。 » 2021-03-25 15:43:55

crolin 说:

这个问题是因为工具链的问题,换用低版本工具链编译就没问题了,坑了好久,

这么坑,我也碰到这个问题了,哪个版本的工具链是正常的?

#233 Re: 全志 SOC » V3s/S3 Linux 测试 轮询/中断 GPIO 按钮驱动程序 / 旋转编码器 等 » 2021-03-25 13:52:35

我也想知道为什么会这样?

逸俊晨晖 说:

我在用f1c100s的测按键轮询 在对应的设备树文件添加内容
我查了设备树 发现根本没占用 换了几个IO都是这样
然后我把这句屏蔽掉了 pinctrl-0 = <&key_pins>;
发现就可以了 有相应的/dev/evenX 测试也有效 只是没有pinctrl-0 = <&key_pins>;里的上拉作用
不知道为什么会这样

#235 Re: 全志 SOC » 荔枝派zero配置DLNA客户端进行B站投屏和网易云推送音乐 » 2021-03-22 11:52:31

感谢大佬,搞定DLNA了,AIRPLAY怎么弄? 我只需要音频

#237 Re: 全志 SOC » 怎么使用PCF8563作为RTC时钟? » 2021-03-19 20:40:40

用i2cdetect试试能不能扫描到芯片

#239 Re: 全志 SOC » [荔枝派zero萌新向]r8723WIFI的正确打开方式!超级详细ing » 2021-03-11 18:53:31

raspberryman 说:

加一个 -B 参数

加-B 直接退出
wlan0: CTRL-EVENT-TERMINATING

#240 Re: 全志 SOC » [荔枝派zero萌新向]r8723WIFI的正确打开方式!超级详细ing » 2021-03-11 15:51:44

不放后台 看起来可以连接上,但是程序好像退不出,一按ctrl + C  就不行了 
这样没法获取IP啊

# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf                           
Successfully initialized wpa_supplicant                                         
wlan0: Trying to associate with a4:13:4e:42:0c:71 (SSID='Luxul17[ 3882.005097] 8
50_2.4G' freq=2437 MHz)                                                         
[ 3882.338925] RTL8723BS: start auth                                            
[ 3882.345736] RTL8723BS: auth success, start assoc                             
[ 3882.356145] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !! 
[ 3882.363293] RTL8723BS: assoc success                                         
wlan0: Associated with a4:13:4e:42:0c:71                                        
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0                                 
[ 3882.372172] RTL8723BS: send eapol packet                                     
[ 3882.388799] RTL8723BS: send eapol packet                                     
[ 3882.393400] RTL8723BS: set pairwise key camid:4, addr:a4:13:4e:42:0c:71, kidS
[ 3882.404705] RTL8723BS: send eapol packet                                     
[ 3882.409502] RTL8723BS: set group key camid:5, addr:a4:13:4e:42:0c:71, kid:1,S
wlan0: WPA: Key negotiation completed with a4:13:4e:42:0c:71 [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to a4:13:4e:42:0c:71 completed [id=0 i]
udhcpc -i wlan0

^Cwlan0: CTRL-EVENT-DISCONNECTED bssid=a4:13:4e:42:0c:71 reason=3 locally_gener1
nl80211: deinit ifname=wlan0 disabled_11b_rates=0                               
wlan0: CTRL-EVENT-TERMINATING 

#241 Re: 全志 SOC » [荔枝派zero萌新向]r8723WIFI的正确打开方式!超级详细ing » 2021-03-11 15:28:56

这里的错误是怎么回事?

netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# daemon: No such device
wlan0: Removing interface wlan0

#242 Re: 全志 SOC » [荔枝派zero萌新向]r8723WIFI的正确打开方式!超级详细ing » 2021-03-11 15:28:00

RFKILL 的错误已经没有了,但是还是不行

linstar 说:
xfdr0805 说:

LZ,这是怎么回事呢?

# wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant v2.9
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=1
Priority group 5
   id=0 ssid='Luxul1750_2.4G'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0xe12c8
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0500
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED]
wlan0: Own MAC address: 3c:33:00:5a:84:02
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: 56cc0996-a7ea-531b-8788-a5de502565ac
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# daemon: No such device
wlan0: Removing interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING) state=DISCONNECTED
nl80211: Data frame filter flags=0x0
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unsolicited_na: No such file or directory
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlan0: WPA: Clear old PMK and PTK
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
nl80211: Data frame filter flags=0x0
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unsolicited_na: No such file or directory
HS20: Delete all stored icons
Remove interface wlan0 from radio phy0
Remove radio phy0
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Unsubscribe mgmt frames handle 0x88869a41 (mode change)
wlan0: CTRL-EVENT-TERMINATING 
ifconfig -a
eth0      Link encap:Ethernet  HWaddr 26:D9:88:20:63:74  
          inet addr:192.168.6.100  Bcast:192.168.6.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1104 (1.0 KiB)  TX bytes:726 (726.0 B)
          Interrupt:38 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 3C:33:00:5A:84:02  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# 

应该也是RFKILL的锅,把内核选项里CONFIG_RFKILL的还有子项都打开试一试

#244 Re: 全志 SOC » [荔枝派zero萌新向]r8723WIFI的正确打开方式!超级详细ing » 2021-03-09 15:26:17

我的可以搜索到WiFi 但是连接不上去,会出现

# wpa_supplicant -D wext -c  /etc/wpa_supplicant.conf -i wlan0 -B
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
# daemon: No such device
wlan0: CTRL-EVENT-TERMINATING

#245 Re: 全志 SOC » [荔枝派zero萌新向]r8723WIFI的正确打开方式!超级详细ing » 2021-03-09 14:26:41

LZ,这是怎么回事呢?

# wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant v2.9
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=1
Priority group 5
   id=0 ssid='Luxul1750_2.4G'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0xe12c8
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xe12c8 match=0500
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED]
wlan0: Own MAC address: 3c:33:00:5a:84:02
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: 56cc0996-a7ea-531b-8788-a5de502565ac
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# daemon: No such device
wlan0: Removing interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING) state=DISCONNECTED
nl80211: Data frame filter flags=0x0
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unsolicited_na: No such file or directory
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlan0: WPA: Clear old PMK and PTK
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
nl80211: Data frame filter flags=0x0
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unsolicited_na: No such file or directory
HS20: Delete all stored icons
Remove interface wlan0 from radio phy0
Remove radio phy0
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Unsubscribe mgmt frames handle 0x88869a41 (mode change)
wlan0: CTRL-EVENT-TERMINATING 
ifconfig -a
eth0      Link encap:Ethernet  HWaddr 26:D9:88:20:63:74  
          inet addr:192.168.6.100  Bcast:192.168.6.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1104 (1.0 KiB)  TX bytes:726 (726.0 B)
          Interrupt:38 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 3C:33:00:5A:84:02  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# 

#246 Re: 全志 SOC » [慢更]小白探索如何使用V3s播放音乐  » 2021-03-08 21:14:25

楼主,如何播放flac  ape这些无损歌曲呢?

#247 Re: 全志 SOC » 为了精华特意制作F1c200s-MP4播放器,支持硬件H264(开源板子和原理给个精华) » 2021-03-08 16:32:21

webb_2002 说:
xfdr0805 说:

请教LZ一个问题,如何播放flac或APE的音频文件,谢谢!

我是用mplayer播放

这个在buildroot 2020.11已经找不到了

#252 Re: 全志 SOC » 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡 » 2021-03-04 11:54:28

奔跑的孩子 说:

文件系统不完整吧,貌似有些设备文件没有找到?

重新编译了一下,现在可以正常进入终端 了
还有这一个问题
can't open /dev/null: No such file or directory

[    1.476175] ALSA device list:
[    1.479151]   No soundcards found.
[    1.484756] Freeing unused kernel memory: 1024K
[    1.490489] Run /linuxrc as init process
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting mdev... OK
Saving random seed: [    2.668309] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK

Welcome to Buildroot for the LicheePi Zero
licheepi-zero login: [    7.075283] random: fast init done

Welcome to Buildroot for the LicheePi Zero
licheepi-zero login: root

#253 Re: 全志 SOC » 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡 » 2021-03-04 11:43:03

U-Boot SPL 2020.10 (Mar 04 2021 - 10:42:55 +0800)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2020.10 (Mar 04 2021 - 10:42:55 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
(FEL boot)
## Executing script at 41900000
## Loading init Ramdisk from Legacy Image at 41a00000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    4769746 Bytes = 4.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Ramdisk to 42973000, end 42dff7d2 ... OK
   Loading Device Tree to 4296d000, end 42972350 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.3.5 (xfdr@virtualbox) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #1 SMP Wed Mar 3 13:21:29 CST 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x41800000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s30412 r8192 d22836 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/ram0 rdinit=/linuxrc earlyprintk rw
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 33852K/65536K available (6144K kernel code, 431K rwdata, 1648K rodata, 1024K init, 243K bss, 15300K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x488 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000215] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000452] Console: colour dummy device 80x30
[    0.000510] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000526] pid_max: default: 32768 minimum: 301
[    0.000688] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000707] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001564] CPU: Testing write buffer coherency: ok
[    0.002092] /cpus/cpu@0 missing clock-frequency property
[    0.002117] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002923] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003145] rcu: Hierarchical SRCU implementation.
[    0.003631] smp: Bringing up secondary CPUs ...
[    0.003652] smp: Brought up 1 node, 1 CPU
[    0.003661] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003668] CPU: All CPU(s) started in HYP mode.
[    0.003672] CPU: Virtualization extensions available.
[    0.004507] devtmpfs: initialized
[    0.007495] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007801] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007832] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008647] pinctrl core: initialized pinctrl subsystem
[    0.009863] NET: Registered protocol family 16
[    0.011168] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012430] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012448] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027629] SCSI subsystem initialized
[    0.028336] usbcore: registered new interface driver usbfs
[    0.028392] usbcore: registered new interface driver hub
[    0.028486] usbcore: registered new device driver usb
[    0.028721] pps_core: LinuxPPS API ver. 1 registered
[    0.028730] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.028753] PTP clock support registered
[    0.029028] Advanced Linux Sound Architecture Driver Initialized.
[    0.030386] clocksource: Switched to clocksource arch_sys_counter
[    0.040112] thermal_sys: Registered thermal governor 'step_wise'
[    0.040655] NET: Registered protocol family 2
[    0.041291] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.041325] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.041354] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.041377] TCP: Hash tables configured (established 1024 bind 1024)
[    0.041532] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.041583] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.041830] NET: Registered protocol family 1
[    0.042991] RPC: Registered named UNIX socket transport module.
[    0.043014] RPC: Registered udp transport module.
[    0.043020] RPC: Registered tcp transport module.
[    0.043025] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.043298] Unpacking initramfs...
[    0.367021] Freeing initrd memory: 4660K
[    0.368776] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.377037] NFS: Registering the id_resolver key type
[    0.377098] Key type id_resolver registered
[    0.377106] Key type id_legacy registered
[    0.377221] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.377233] io scheduler mq-deadline registered
[    0.377240] io scheduler kyber registered
[    0.378140] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.382177] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.445723] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.448012] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.449094] printk: console [ttyS0] disabled
[    0.469399] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 32, base_baud = 1500000) is a U6_16550A
[    1.049555] printk: console [ttyS0] enabled
[    1.078421] libphy: Fixed MDIO Bus: probed
[    1.082620] CAN device driver interface
[    1.086948] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.093532] ehci-platform: EHCI generic platform driver
[    1.098853] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.105083] ohci-platform: OHCI generic platform driver
[    1.111402] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.120673] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.125735] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.130521] i2c /dev entries driver
[    1.135192] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.143836] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.180537] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.187804] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.224508] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.232535] usbcore: registered new interface driver usbhid
[    1.238107] usbhid: USB HID core driver
[    1.243725] NET: Registered protocol family 17
[    1.248203] can: controller area network core (rev 20170425 abi 9)
[    1.254605] NET: Registered protocol family 29
[    1.259054] can: raw protocol (rev 20170425)
[    1.263358] can: broadcast manager protocol (rev 20170425 t)
[    1.269019] can: netlink gateway (rev 20170425) max_hops=1
[    1.274884] Key type dns_resolver registered
[    1.279296] Registering SWP/SWPB emulation handler
[    1.292580] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.304121] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.309888] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.319365] hub 1-0:1.0: USB hub found
[    1.323433] hub 1-0:1.0: 1 port detected
[    1.328842] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:24:24 UTC (1464)
[    1.337404] ALSA device list:
[    1.340445]   No soundcards found.
[    1.346022] Freeing unused kernel memory: 1024K
[    1.350852] Run /linuxrc as init process
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting network: OK
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
[    5.787124] random: fast init done
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory


Connection closed.

启动成功后 这些错误是什么原因?

#254 Re: 全志 SOC » [慢更]小白探索如何使用V3s播放音乐  » 2021-03-03 15:04:21

重新测试了几下,发现这种情况下才能成功连接:
(1)拔掉电源
(2)按住Dw键
(3)插入usb
(4)上电。
        如果我上电后再插usb,只能识别驱动,这个烧写软件并不能成功识别

<b>我驱动装完了,板子是licheepi_zero ,烧录软件无法识别,你板子上的DW键是哪个引脚?</b>

#259 Re: 全志 SOC » V3S,安装sunxi-fel烧录工具,提示找不到libusb.h,咋办? » 2021-02-02 18:04:11

afon 说:

记录一下,Ubuntu 18.04 ,装这个可以 sudo apt-get install libusb-1.0-0-dev。

感谢 装sudo apt-get install libusb-dev是不行的,ubuntu21.01编译OK,只是有警告而已

#260 Re: 全志 SOC » Allwinner S3 uboot 2020.01 (开机Logo + LCD + 以太网 + SDC 2) » 2021-02-01 23:22:00

不错,顺带打了个patch.
原始uboot-v2020.01下载地址:https://gitlab.denx.de/u-boot/u-boot/-/archive/v2020.01/u-boot-v2020.01.tar.gz
patch文件:s3-uboot-v2020_01_patch_tar.gz
使用patch:解压tar.gz的patch文件至uboot源码目录,执行:patch -p1 < s3-uboot-v2020.01.patch

o为啥我编译完也打了补丁,但是找不到网卡呢?
FluxBB bbcode 测试

#261 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2021-02-01 13:14:19

yuleniwo 说:

折腾了两天终于搞定荔枝派zero uboot 2021.01版本的以太网口

我也是这么修改的,能识别到但不能用?求大佬指点

#262 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-31 23:40:18

zhang235hai 说:

uboot已经能识别以太网

U-Boot SPL 2019.10 (Jan 30 2021 - 10:31:43 +0800)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2019.10 (Jan 30 2021 - 10:31:43 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   failed to get TX clock
eth-1: ethernet@1c30000
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 

需要将以下四个文件全部修改完成
执行打开Device Drivers -> Network device support -> Allwinner Sun8i Ethernet MAC support
再次编译得到可用文件u-boot-sunxi-with-spl.rar

/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s-licheepi-zero.dts
/home/zhang/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s-licheepi-zero.dts

/home/zhang/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s.dtsi
/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s.dtsi

能识别以太网,实际是不能用的,U-boot还不能驱动以太网

net:   failed to get TX clock  这里有错误,楼主解决了吗?

#263 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-30 17:46:05

>>> linux-firmware 20200122 Downloading

我卡这里半天了也没下载回来,速度不到10KB/s

#265 Re: 全志 SOC » 跟贴从零构建f1c200s硬件开发板 » 2021-01-12 20:28:28

fastspeet 说:

1、从零开始构建,并不是不能继承别人优秀的部分,而是自己动手入门学习,如果所有的都是拿别人现成,那么我们提高的在哪里?我希望在这个过程中能够,彻底理解和使用这个片子;
2、我想用的东西和不用的东西可能跟别人的不一样,所以才希望自己可以搞出来;
3、大神不是一天变成的,小白起步,重在行动。

对对,我想跟着楼主学习

#267 Re: ESP32/ESP8266 » TG7100C 也来了 » 2020-12-16 16:05:37

关键的开发环境如何?

#269 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请教音频采样率不是标准的48Khz MCLK是12MHZ 不是常见的12.288 能否通过采样率转换芯片如CS8422 输出成48KHZ » 2020-11-30 12:49:28

EE 说:
xfdr0805 说:
EE 说:

楼主用模块输出的信号(LRCK=46.8K,BCK=3MHZ,MCLK=12MHZ)喂给DAC(CLASS-D?)不响吗?感觉应该响才对

标准的48K会响,这个只有沙沙的声音

如果是 STA3xx 系列的片子,喂这个信号如果是沙沙,建议先查一下信号。会不会这个模块出来的信号有什么问题。如果是 STA3xx,看一下 0x2d 寄存器。

update: 打开 STA311B DS 比对了寄存器,跟我用那块不同。311B 建议看 0x76 的 status,再看看 0x71-0x75 哪些配置有没有问题

这是STA311B PLL没有配置正确吗?不太清楚啥原理,模块出来的信号是没问题的,手里有一块板子,使用的是AK7735 DSP  可以正常使用,但是我不明白为什么那个就可以正常工作

0x76 寄存器是正常的 Ready状态   内容是0x02

#270 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请教音频采样率不是标准的48Khz MCLK是12MHZ 不是常见的12.288 能否通过采样率转换芯片如CS8422 输出成48KHZ » 2020-11-30 11:13:28

EE 说:

楼主用模块输出的信号(LRCK=46.8K,BCK=3MHZ,MCLK=12MHZ)喂给DAC(CLASS-D?)不响吗?感觉应该响才对

标准的48K会响,这个只有沙沙的声音

#271 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请教音频采样率不是标准的48Khz MCLK是12MHZ 不是常见的12.288 能否通过采样率转换芯片如CS8422 输出成48KHZ » 2020-11-30 11:03:41

Blueskull 说:
xfdr0805 说:

感谢解答,我测试  用标准48K的I2S信号  CS8422 可以LOCK  有输出  ,但是用这个模块的信号就没输出  信号选择的是经过内部SRC的

那就是CS8422里面有lock检测,那就不好办了。实在不行拿个带双I2S的高频单片机或者拿个小封装的FPGA自己写一个吧。
反正8422也不便宜。估计用个4K LE,带DSP的FPGA能搞定,国产也就是20几块钱。高云的GW1N-LV4系列。
PS,这是个大坑,估计如果你大学没学好,你得重学一边信号与系统和DSP。

我找到了一份应用笔记 该器件还可以以任意整数过采样率工作在传统的同步DAC模式
https://www.maximintegrated.com/cn/design/technical-documents/app-notes/3/3735.html

#272 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » Ada - All Digital Amplifier » 2020-11-30 10:22:44

EE 说:
david 说:

体积确实小 电源用一般适配器吗

是的,普通DC电源,12V到24V都可以响。如果要出足功率要18V/24V 2A或3A。笔记本电源就可以(但是笔记本DC头多种多样,计划放一个 5.5/2.5的DC座子)。

楼主,我现在做的这种组合
PIC24Fj256 CS8422 STA311B  STA510F WRX2016 BM64  只剩下无线模块输出非标准采样率问题了

#273 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请教音频采样率不是标准的48Khz MCLK是12MHZ 不是常见的12.288 能否通过采样率转换芯片如CS8422 输出成48KHZ » 2020-11-30 10:06:44

Blueskull 说:

应该可以,CS8422是ASRC,可以接受非整数倍采样率输入。不能百分百确定,但我觉得如果芯片里面没有故意挖坑(比如检测标准采样率附近,超出范围不工作等等),应该是没问题的。

感谢解答,我测试  用标准48K的I2S信号  CS8422 可以LOCK  有输出  ,但是用这个模块的信号就没输出  信号选择的是经过内部SRC的

#274 DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请教音频采样率不是标准的48Khz MCLK是12MHZ 不是常见的12.288 能否通过采样率转换芯片如CS8422 输出成48KHZ » 2020-11-30 09:47:52

xfdr0805
回复: 9

现在有一个无线接收的模块,输出的采样率用示波器测量是LRCK=46.8K,BCK=3MHZ,MCLK=12MHZ  不是常见的12.288MHZ  256Fs   不明白为什么不用整数倍的频率,现在的疑问是使用采样率转换芯片,可以把这样非标准的采样率转换成标准的采样率吗?请大佬指点,谢谢!

#277 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 打算用 STM32 做一个 USBDAC » 2020-11-24 09:18:37

EE 说:

牺牲了TAS5731x2+F401x1,从焊盘的颜色可以看出翻车的节奏

后来调响了,带一对小的全频喇叭听了两小时,还是挺满意的。。

电路图如下附件。少了两根线,已经在第一页标注


https://whycan.com/files/members/5259/F4-ADA-REV1.jpg


电路图(有bug,第一页已经备注)
F401-UAC.pdf

固件
f401-ada-rev1.7z

功放驱动:
通过I2C(地址 0x34)写三个寄存器
0x1b 寄存器写 0x00
0x05 寄存器写 0x00
0x07 寄存器写 0x50 (音量,0x30大声,0xff mute)
就O啦,有空再整一个编码器调音量


FAQ:
Q:为什么用 TAS5731
A:功率级的 Rds-on 低,放在小盒子里面不烫

赞一下,支持LZ

#280 Re: ESP32/ESP8266 » 移植LittlevGL到ESP32 » 2020-10-19 18:43:37

楼主,跑一下lv_demo_benchmark 看看FPS有多少

#281 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-15 11:55:53

这是LWIP  路由器里能看到获取IP,但ping不通
[main.c@0088]:Build DateTime:Sep 15 2020 11:43:50
[main.c@0089]:Project Name:PIC24FJ512GB606
[main.c@0094]:RN4870 Init:Success
[main.c@0100]:Set BLE Name:Success
netif: netmask of interface    set to 255.255.255.0
netif: GW address of interface    set to 192.168.6.1
netif_set_ipaddr: netif address being changed
netif: added interface en IP addr 192.168.6.123 netmask 255.255.255.0 gw 192.168.6.1
netif: setting default interface en
etharp_request: sending ARP request.
etharp_raw: sending raw ARP packet.
ethernet_output: sending packet 528e
dhcp_start(netif=60a2) en0
dhcp_start(): mallocing new DHCP client
dhcp_start(): allocated dhcpdhcp_start(): starting DHCP configuration
dhcp_discover()
transaction id xid(0)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
ip4_output_if: en0
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        0      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9d     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
ethernet_output: sending packet 52c6
dhcp_discover: deleting()ing
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 2000 msecs
[main.c@0122]:netif_is_link_up.
etharp_timer
etharp_timer
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
transaction id xid(0)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
ip4_output_if: en0
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        1      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9c     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
ethernet_output: sending packet 52c6
dhcp_discover: deleting()ing
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 4000 msecs
etharp_timer
etharp_timer
etharp_timer
etharp_timer
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
transaction id xid(0)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
ip4_output_if: en0
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        2      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9b     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
ethernet_output: sending packet 52c6
dhcp_discover: deleting()ing
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 8000 msecs
etharp_timer
etharp_timer
etharp_timer
etharp_timer
etharp_timer
ethernet_input: dest:22:33:44:55:08:00, src:45:00:01:50:00:02, type:0
etharp_timer
ethernet_input: dest:11:22:33:44:55:08, src:00:45:00:01:50:00, type:200
etharp_timer
etharp_timer
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
transaction id xid(0)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
ip4_output_if: en0
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        3      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9a     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
ethernet_output: sending packet 52c6
dhcp_discover: deleting()ing
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 16000 msecs
etharp_timer
etharp_timer
etharp_timer
etharp_timer
etharp_timer
ethernet_input: dest:22:33:44:55:08:00, src:45:00:01:50:00:03, type:0
etharp_timer
ethernet_input: dest:11:22:33:44:55:08, src:00:45:00:01:50:00, type:300
etharp_timer
etharp_timer
etharp_timer
etharp_timer
etharp_timer
etharp_timer
etharp_timer

#282 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-15 11:53:36

移植UIP就很正常,不知道LWIP为啥不行
[main.c@0129]:RN4870 Init:Success
[main.c@0135]:Set BLE Name:Success
[main.c@0422]:Mac=00:11:22:33:44:55
[main.c@0434]:DHCP_Configured Successed
[main.c@0435]:DHCP  Mode
[main.c@0438]:Ip=192.168.6.193
[main.c@0440]:Sm=255.255.255.0
[main.c@0442]:Gw=192.168.6.1
[main.c@0443]:Port=4001
[main.c@0444]:********************************************************/

#283 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-15 10:53:19

vip888888 说:
xfdr0805 说:

楼主,下边这个问题怎么解决呢?
这是个16位的单片机,XC16编译器,是编译器不支持吗?
#define PACK_STRUCT_BEGIN __packed

[main.c@0092]:Project Name:PIC24FJ512GB606
[main.c@0097]:RN4870 Init:Success
[main.c@0103]:BM64 Init:Success
[main.c@0104]:DSP Init:Success
Assertion "Struct packing not implemented correctly. Check your lwIP port." failed at line 340 in src/lwip-2.1.2/src/core/init.c
ABRT

你把 lwipopts.h的那个 MEM_ALIGNMENT 4 四字节对齐 改成MEM_ALIGNMENT 2 两字节试试。


这个问题我把#define PACK_STRUCT_BEGIN __packed 修改为#define PACK_STRUCT_STRUCT __attribute__ ((__packed__))这样就可以了

#284 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-14 15:36:03

楼主,下边这个问题怎么解决呢?
这是个16位的单片机,XC16编译器,是编译器不支持吗?
#define PACK_STRUCT_BEGIN __packed

[main.c@0092]:Project Name:PIC24FJ512GB606
[main.c@0097]:RN4870 Init:Success
[main.c@0103]:BM64 Init:Success
[main.c@0104]:DSP Init:Success
Assertion "Struct packing not implemented correctly. Check your lwIP port." failed at line 340 in src/lwip-2.1.2/src/core/init.c
ABRT

#285 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-12 11:44:03

我又发现了另外一个开源的TCP/IP 协议栈,竟然直接支持ENC424J600,自带Driver,楼主有兴趣没,整个移植教程:)

https://www.oryx-embedded.com/products/CycloneTCP

2020-09-12_114303.png
072941fc66oyk4chlgowkc.jpg

#286 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-12 11:34:05

vip888888 说:
xfdr0805 说:

楼主,能否出个教程,移植LWIP2.1.2最新版的,网上普遍1.4的,结构不大一样,以前只用过uIP1.0,LWIP还是初次接触,芯片用的ENC424J600,UIP的已经移植没问题的,想试试LWIP,我是使用PIC24FJ512GB606

你说的这个ENC424J600我没有我上网查了下这个芯片还是内置PHY和MAC层,此芯片的驱动我就不说了自行完成接收和发送帧,封装成一个发送函数一个接收函数这个没问题吧?,我们就说LWIP协议移植的关键点在哪。你看我给的整个例子LWIP是直接下载的。然后你看我初始化的时候提供的东西就知道了。因为你使用的是以太网卡所以配置那里开启#define LWIP_ETHERNET 1 这个置1就行,我没用所以我置0了。然后你将协议栈里面netif文件夹里ethemet.c加进工程,然后初始化的时候加入你自己的初始化。
https://whycan.cn/files/members/4813/11.png
然后基本上每张网卡的初始化就是一个struct netif结构。你去看下此结构就明白需要给什么了。实际上需要物理层提供的东西1.一个网卡包发送函数初始化到netif结构体上,2一个接收到网卡数据包函数当然这里接收到的数据需要用数据结构 struct pbuf链表连起来。然后像我给的例子一样调用下面处理函数就行了。
if (netif->input(p, netif) != ERR_OK) {
      pbuf_free(p);
    }
https://whycan.cn/files/members/4813/12.png

非常感谢楼主指点,我大概知道是什么原因移植好的LWIP2.1.2不能ping通了,我按照网上移值的,发送函数和接收函数是在ethenetif.c里的low_level_input和low_level_output,结构与2.0之前的已经不一样了,周一我再重新按照楼主说的移植一扁试试。ENC424J600已经用uIP验证过了,没问题

#287 Re: 全志 SOC » v3s没有i2s外设 有没有什么spi sdio 等能转i2s信号的芯片 最好有现成的linux驱动的 » 2020-09-11 19:25:09

mango 说:

直接用v3s的真身S3L,外设全了,价格还比v3s低

这芯片为啥这么多马甲?

#288 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 孔雀石 SDR STM32H7-SDR 验证成功 » 2020-09-11 17:49:44

642242855 说:

有没有试过用H750的,我用750不能正常运行,一定要H743的单片机吗

什么现象呢?

#289 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 孔雀石 SDR STM32H7-SDR 验证成功 » 2020-09-11 17:49:17

642242855 说:

有没有试过用H750的,我用750不能正常运行,一定要H743的单片机吗

没试过750,H743反正是没问题

#290 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-11 17:48:14

楼主,能否出个教程,移植LWIP2.1.2最新版的,网上普遍1.4的,结构不大一样,以前只用过uIP1.0,LWIP还是初次接触,芯片用的ENC424J600,UIP的已经移植没问题的,想试试LWIP,我是使用PIC24FJ512GB606

#291 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-11 11:53:34

liyucai 说:

还是没明白是怎么把 串口当成网口 用的。 
是否是这样:
     板子端 是 slipif.c 来实现,电脑端 是 sudo ifconfig sl0 2.23.29.180 pointtopoint 2.23.29.160 up 来实现 ?


我感觉应该是把使用串口来接收和处理LWIP的数据的,并没有经过物理层

#292 Re: Cortex M0/M3/M4/M7 » 2.通过LWIP协议栈使用学习http,tcp,网卡之间的关系. » 2020-09-11 11:37:58

vip888888 说:
kekemuyu 说:

无法形容,只能说lz牛逼。脑洞大开一下,既然串口可以用作物理网卡完成物理层协议,那么其他通讯口应该也可以,i2c,spi,can甚至自己用io模拟都可以用作网卡了.

从理论上来说当然是可以的,问题是你得有对应接口的解析程序。这里只是为了阐述他们直接的关系使用=。=

楼主这里的串口并没有完成物理层协议,只是这里的通信是没有经过物理层的

#293 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 孔雀石 SDR STM32H7-SDR 验证成功 » 2020-09-07 21:38:51

yobbo 说:

怎么突然发现都在玩孔雀石?
我已经分析了原理图,在考虑改为全志的可能性,f1c100s没有数字音频接口,A系列的没有玩过,还在研究告诉spi——adc的可能性

F1C100S连I2S都没有吗?SPI-ADC应该没问题

#296 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 发一个取模工具 支持fontawsome图标字体 » 2020-09-05 14:19:35

xfdr0805
回复: 1

这个工具是在https://blog.csdn.net/mostone/article/details/12843613这位大神基础上修改而来 
源代码在此:https://github.com/memstone/mosFontTool

以下是修复的问题:

修复在WIN10下 ,系统DPI放大后显示模糊的问题

添加Fontawsome字体导出功能

添加FontAWsome字体预览功能

添加BIN导出功能

添加C数组输出格式及注释格式功能

添加导出图片旋转与镜像功能

在原作者基础上,修复一些BUG …

欢迎使用,如有BUG,请留言,有时间我会修复

https://whycan.cn/files/members/4881/FontTool.rar
2020-09-05_141606.png
2020-09-05_141634.png

#297 DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 孔雀石 SDR STM32H7-SDR 验证成功 » 2020-09-04 21:13:52

xfdr0805
回复: 22

孔雀石 SDR 原版是四层线路,改成了双层板,元件由0402修改为0603 方便焊接,LCD用的是50pin的, 也可以自己修改一下用40pin的,成本更便宜一些,已经打板验证成功, 需要说明,测试发现以下两个问题 1.是这个电路在100M有干扰,据说群里其它人画的四层板也一样, 2.一直按着触摸屏,会有哒哒声,屏幕灭了之后 就没有了。

改成双面板并且大小在10x10cm 以内,元件全部用0603,打板成本明显下降,更适合焊接,喜欢SDR的可以打样直接打样焊接

烧录旧代码可以使用,频率限制在200M以内,烧录最新板由于需要激活码,可以发邮件给原作者尝试要一下,这个板子被我同事发邮件要到了,我就要不到了,就不再折腾了

补充: 在烧录新版本后,如果想回旧版本,需要在烧录完旧代码后,一通电前短接FRAM的 SPI接口任意两根线直到屏幕点亮再松手
禁止用于商业用途!个人随便玩儿!

配套外壳链接:连接
屏幕:链接
PCB:PCB连接

PCB BOM.zip (216.35 KB)
Reciever_msi001.zip (397.99 KB)

082113xhniph7c2m8m8xm8.png
082102xz1zx1ooo0cs88s2.png
082856pea7eddezu9fe9ee.jpg
082918sdc6dvmf60src8dk.jpg
082908qcmiimhhjvmvcv7j.jpg
113135r8hmafpaz9njagun.png

#304 Re: 全志 SOC » 发布一套V3S可用的BSP内核的完整包(含u-boot、BSP内核、buildroot、.config、sunxi-tools、lrzsz) » 2020-08-05 09:31:08

kesion 说:

编译uboot的交叉编译器和 编译Linux的交叉编译器不一样的?CROSS_COMPILE=arm-linux-gnueabi- 这个编译器哪里可以下载了?apt install 没有下载的

是啊,编译器不一样,arm-linux-gnueabi VS arm-linux-gnueabihf 

可以这样安装:sudo apt install gcc-arm-linux-gnueabi,查看版本:arm-linux-gnueabi-gcc -v

$ arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

#305 Re: 全志 SOC » Lichee-pi-zero allwinner-v3s LCD 成功驱动 ~ » 2020-08-05 08:30:28

恭喜,我也刚拿到手,用论坛镜像测试,硬件没问题,还在编译镜像中。

#306 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 学习 VS2017/VS2019 + LVGL 7.0 » 2020-08-05 08:26:47

明月照我沟渠 说:

https://whycan.cn/files/members/4746/QQ截图20200803103034.png

void lv_test2()
{
	lv_obj_t* label2 = lv_label_create(lv_scr_act(), NULL);
	lv_obj_set_style_local_text_font(label2, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &lv_font_simsun_16_cjk);
	lv_obj_set_pos(label2, 100, 100);
	lv_label_set_text(label2, "\xE4\xB8\x80\xE4\xB8\x83\xE4\xB8\x80\xE4\xB8\x83\xE4\xB8\x80\xE4\xB8\x83\xE4\xB8\x80\xE4\xB8\x83");
}

用自带的 lv_font_simsun_16_cjk 汉字字库显示正常.


不能直接输入汉字吗?

#309 Re: 全志 SOC » 尝试使用Ubuntu20.04从零构建Licheepi V3s Zero的SPI Flash系统镜像(32M) » 2020-08-04 13:49:29

为什么一开始编译linux 会出现这个,变成默认配置了

sudo  make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm 
scripts/kconfig/conf  --syncconfig Kconfig
*
* Restart config...
*
*
* System Type
*
MMU-based Paged Memory Management Support (MMU) [Y/n/?] y
ARM system type
> 1. Allow multiple platforms to be selected (ARCH_MULTIPLATFORM) (NEW)
  2. EBSA-110 (ARCH_EBSA110) (NEW)
  3. EP93xx-based (ARCH_EP93XX) (NEW)
  4. FootBridge (ARCH_FOOTBRIDGE) (NEW)
  5. Hilscher NetX based (ARCH_NETX) (NEW)
  6. IOP13xx-based (ARCH_IOP13XX) (NEW)
  7. IOP32x-based (ARCH_IOP32X) (NEW)
  8. IOP33x-based (ARCH_IOP33X) (NEW)
  9. IXP4xx-based (ARCH_IXP4XX) (NEW)
  10. Marvell Dove (ARCH_DOVE) (NEW)
  11. Micrel/Kendin KS8695 (ARCH_KS8695) (NEW)
  12. Nuvoton W90X900 CPU (ARCH_W90X900) (NEW)
  13. NXP LPC32XX (ARCH_LPC32XX) (NEW)
  14. PXA2xx/PXA3xx-based (ARCH_PXA) (NEW)
  15. RiscPC (ARCH_RPC) (NEW)
  16. SA1100-based (ARCH_SA1100) (NEW)
  17. Samsung S3C24XX SoCs (ARCH_S3C24XX) (NEW)
  18. TI DaVinci (ARCH_DAVINCI) (NEW)
  19. TI OMAP1 (ARCH_OMAP1) (NEW)
choice[1-19?]:

#310 Re: 全志 SOC » 尝试使用Ubuntu20.04从零构建Licheepi V3s Zero的SPI Flash系统镜像(32M) » 2020-08-04 13:47:00

* 加入Ethernet支持

Device Drivers  --->
	[*] Network device support  ---> 
		 [*]   Ethernet driver support  --->    
			[*]   STMicroelectronics devices
				<*>     STMicroelectronics Multi-Gigabit Ethernet driver
				[ ]       Support for STMMAC Selftests 
				<*>       STMMAC Platform bus support 
				< >         Support for snps,dwc-qos-ethernet.txt DT binding.  
				<*>         Generic driver for DWMAC   
				<*>         Allwinner GMAC support    
				<*>         Allwinner sun8i GMAC support 

(很奇怪,全志的芯片网络支持会在STMicroelectronics deveices配置菜单下面。)

我clone下来没有发现
<*>         Allwinner GMAC support   
<*>         Allwinner sun8i GMAC support

#311 Re: 全志 SOC » 尝试使用Ubuntu20.04从零构建Licheepi V3s Zero的SPI Flash系统镜像(32M) » 2020-08-04 09:45:32

按照LZ的教程,我碰到的问题记录一下  U-boot 编译:
1.cc1: error: bad value (‘armv5’) for ‘-march=’ switch
   解决方法:sudo apt install gcc-arm-linux-gnueabi,查看版本:arm-linux-gnueabi-gcc -v
   sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
2.在编译时提示Your dtc is too old, please upgrade to dtc 1.4 or newer
   解决方法:sudo apt-get install device-tree-compiler  更新即可
3. 
  ...
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPY    spl/u-boot-spl.bin
  MKSUNXI spl/sunxi-spl.bin
  OBJCOPY u-boot-nodtb.bin
  CAT     u-boot-dtb.bin
  COPY    u-boot.bin
  MKIMAGE u-boot.img
  COPY    u-boot.dtb
  BINMAN  u-boot-sunxi-with-spl.bin
  /bin/sh: 1: ./tools/binman/binman: not found
  Makefile:1079: recipe for target 'u-boot-sunxi-with-spl.bin' failed
  make: *** [u-boot-sunxi-with-spl.bin] Error 127
  解决方法:实际是有的,只是python没有安装,装了就可以了
  sudo apt-get install python

#312 Re: NXP i.MX6UL/6ULL » DART-6UL Evaluation Kits 板子到了,用buildroot编译好的系统不能从SD卡启动的问题 » 2020-07-31 12:21:56

这。。。把我激动的,开发板都选错了 ,那个配置文件应该是这个开发板的
imx6ul.png

config目录里还有一个freescale_imx6ullevk_defconfig  再试试编译这个看看

freescale_imx6ullevk_defconfig 

不过这下载速度太慢了吧,只有几十KB VPN也开着 
>>> linux-headers rel_imx_4.19.35_1.1.0 Downloading
这个文件这么大吗?9个多GB

#313 Re: NXP i.MX6UL/6ULL » DART-6UL Evaluation Kits 板子到了,用buildroot编译好的系统不能从SD卡启动的问题 » 2020-07-31 11:35:03

孤星泪 说:

二进制对比一下能跑的img固件

官方的文件比我编译出来的大的多,官方的在1G左右,我编译出来的80多MB

ftp://ftp.variscite.com/DART-6UL/Software/

#315 NXP i.MX6UL/6ULL » DART-6UL Evaluation Kits 板子到了,用buildroot编译好的系统不能从SD卡启动的问题 » 2020-07-31 10:47:29

xfdr0805
回复: 4

新手刚接触linux  在ubuntu18.04虚拟机里用buildroot 2020.05 选择imx6ulevk.defconfig 直接编译,没做任何修改,编译成功后,我把sdcard.img用win32disk直接烧写到SD卡上,开发板选择从SD卡启动,但是上电没任何反应,不知道哪里问题,请高手指点下,谢谢!
https://www.variscite.com/product/evaluation-kits/dart-6ul-kits/
2020-07-31_104922.png
config.png
snap.png
image.png

#318 Re: 全志 SOC » F1C100S的Keil裸机USB+LCD+PWM+GPIO工程搞定,修复GNU工具链BUG » 2020-07-28 13:18:51

有没有vscode 版本的,公司禁止使用盗版Keil 防止收到律师涵   之前的to_ascii(\0x41\0x44)已中招

#320 Re: 8051/STC8/AT89C51/N76E003 » 分享我的好友无私技术高手yywyai做的CH552G编程器和上位软件,希望大家测试使用提供改进建议,促成国内开源编程器的发展 » 2020-07-23 19:50:07

折腾人生 说:

这里有位牛人分分钟解决了,还把修改方法都放出来分享,大家很容易就可以自制的,当然也可以用它做的开发板秒变编程器
还写了制作教程,真是太厉害了
电路比yywyai的电路还简单,个人自制都不是问题
http://www.diybcq.com/thread-144061-1-1.html
这里还提供了瑶杰编程器直接改的图,确实是开源牛人一个
http://www.diybcq.com/thread-144065-1-1.html

之前一直用的CH341,用的这个软件,也挻方便的

2020-07-23_194839.png

#322 Re: Cortex M0/M3/M4/M7 » STM32 lcd绘图驱动 » 2020-07-23 15:08:35

多半是RGB565模式 就是2个字节

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn