- 博客(55)
- 资源 (6)
- 收藏
- 关注

原创 ALSA框架解析
一、声音相关的几个概念PCM: 脉冲编码调制,一种数字信号的编码方式,用于保存音频数据MIDI: 乐器数字接口,一种乐器间通信的标准格式,用于描述声音流的产生过程,近乎“乐谱”mixer: 混音器,管理声音通道(单声道、立体声、多通道)的合成sequencer: 声音序列发生器(类比信号发生器),用于声音采集playback: 播放模式capture: 录音模式AD/D...
2018-05-31 22:35:27
1248
原创 Linux net cmd
arp -a ping traceroute route firewalld ufw host dig nslookup ifconfig ip ifup/ifdown nmcli netstat ss tcpdump nc nmap
2022-01-06 19:05:01
667
原创 namespace cgroup 简介
Tera Term 4.87Beyond Compare 3Enterprise_Architect注册码:Registration KeyADF8D83B-0683-4d1f-BB60-FF66D-WFM1-CHPZ-PII0-HN75-BCAuthorization KeyF08113BA-8B4F-41df-8F01-46DF2C35D249User: MTFCom...
2022-01-05 18:29:24
240
原创 uniq - uniquify files (remove duplicate lines from a sorted file)
uniq - uniquify files (remove duplicate lines from a sorted file)
2022-01-02 13:51:36
345
原创 D-Bus
D-Bus概述D-Bus是一个用于进程间通信的系统组件。由以下几个部分组成: libdbus:一个允许两个应用之间连接和交换消息的库; message bus daemon executable:基于 libdbus 构建,多个应用程序可以连接到这个守护进程上。这个守护进程可以将一个应用的消息路由到零个或多个应用。 Wrapper libraries or bindings based on particular application frameworks:例如
2021-12-31 19:52:17
1081
原创 Serial Presence Detect (SPD) Table
SPD 是内存上的一块EEPROM芯片,里面存储的是物理内存相关的的信息,一般是BIOS通过I2C总线读写。
2021-12-25 18:09:09
2044
原创 openMP
OpenMPOpenMP is an industry standard API of C/C++ and Fortran for shared memory parallel programming. The OpenMP Architecture Review Board (ARB) consists of major compiler vendors and many research institutions. Common architectures include shared memo..
2021-12-12 21:33:22
487
原创 linux 安装 chrome
方法sudo dnf install fedora-workstation-repositoriessudo dnf config-manager --set-enabled google-chromesudo dnf install google-chrome-stable参考链接Install Google Chrome on Fedora [GUI & Terminal Methods]
2021-11-11 21:06:35
680
原创 rust安装
由于rustup官方服务器在国外,如果直接按照rust官网的安装方式安装非常容易失败,即使不失败也非常非常慢如果用国内的镜像则可以分分钟就搞定官方安装文档: Install Rust - Rust Programming Languagecurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh国内镜像安装export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/r
2021-11-03 21:34:08
1014
原创 RAID (redundant array of independent disks)
服务器上为了保证数据的可靠性一般采用独立磁盘冗余阵列检测工具为:smartctldnf search smartmontoolssudo dnf install smartmontoolsman smartctl参考链接:What is RAID?smartmontools
2021-10-28 07:57:54
168
原创 rpm包构建方法
参考链接:https://man7.org/linux/man-pages/man1/grep.1.htmlhttps://man7.org/linux/man-pages/man7/regex.7.html
2021-10-16 18:32:48
250
原创 windows 命名约定
在windows上无法删除彻底删除Linux内核解压文件,提示“系统找不到指定的文件”经调查是文件命名的问题,可以采用下面的脚本处理(rm.bat)del /q /f /s \\?\%1rd /q /s \\?\%1goto endDEL /Q /F /S \\?\%1RD /Q /S \\?\%1:end参考链接https://docs.microsoft.com/zh-cn/windows/win32/fileio/naming-a-file?redirectedfro
2021-08-09 22:22:44
144
原创 ubuntu image start ( qemu console )
方法一修改grub默认配置文件sudo vi /etc/default/grub内容:#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"GRUB_CMDLINE_LINUX_DEFAULT="text"GRUB_CMDLINE_LINUX=”console tty0 console=ttyS0”GRUB_TERMANAL=seria...
2021-06-20 10:37:05
362
原创 raspi3 上手
内核编译:make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcmrpi3_defconfigmake ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfigmake ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
2021-06-19 21:47:55
288
原创 gcc 链接脚本
查看ld手册man ldDESCRIPTION ld combines a number of object and archive files, relocates their data and ties up symbol references. Usually the last step in compiling a program is to run ld. ld accepts Linker Command Language files written ...
2021-04-23 23:48:25
613
原创 ARM A-profile v7 v8 v9
Key features of the Cortex-A family of devices:Scalable clusters supporting single and multi-core configurations RISC cores with support for Armv7-A and Armv8-A architecture Full backward compatibility with code from previous Arm processors VFP and Ne
2021-04-17 23:18:05
951
原创 fastboot
FastbootFastboot is part of the Android bootloader as well as a program you can run on a computer to communicate with it.Fastboot is three different things with the same name:A protocol for communication between your phone hardware and a computer, s
2021-04-03 16:22:56
322
原创 virtio 框架简介
virtio 框架是一中传输机制virtqueues: A Transport Abstraction(a queue to register buffers for sending or receiving.)/** * virtqueue - a queue to register buffers for sending or receiving. * @list: the chain of virtqueues for this device * @callback: the f.
2021-04-01 23:51:24
543
1
原创 LVGL(Light and Versatile Graphics Library)
What is LVGL?The LVGL is a lightweight embedded library for displays and touchscreens providing everything required to build a fully featured-embedded GUIs.参考链接官网:https://lvgl.io/文档:https://docs.lvgl.io/latest/en/html/index.html示例:https://gith.
2021-03-11 23:45:39
703
原创 gnome gtk 入门
环境搭建sudo dnf install gtk4-devel.x86_64 gtk4-devel-docs.x86_64编译g++ `pkg-config --cflags gtk4` -o hello hello.cc `pkg-config --libs gtk4`/* hello.cc */#include <gtk/gtk.h>static void print_hello (GtkWidget *widget, gpointer data)..
2021-03-11 00:41:41
317
原创 Unicode 输入
工具:gucharmap编码 <---> \u7f16\u7801输入方法1、vim中Ctrl + v u 7 f 1 6Ctrl + v u 7 8 0 12、终端中Ctrl + Shift + U 7 f 1 6Ctrl + Shift + U 7 8 0 1参考链接https://home.unicode.org/http://www.unicode.org/charts/nameslist/https://tool.chinaz.c..
2021-03-03 23:43:07
973
1
原创 栈
栈的简单实现#include <stdio.h>#include <stdlib.h> #define T int struct Stack { T *data; int size; int top; void (*push)(struct Stack *s, T node); T*(*pop)(struct Stack *s); void (*show)(struct Stack *s);}; void
2021-02-28 20:34:55
115
原创 C代码行统计
统计当前文件夹下.c和.h文件的代码行数:find -name "*.[ch]" | xargs cat | grep -v ^$ | wc -l
2021-02-28 12:24:20
176
原创 平台设备
一、平台设备注册流程acpi_create_platform_device -> platform_device_register_full -> platform_device_alloc -> platform_device_add_resources -> platform_device_add_data -> platform_device_add_properties -> platform_device_add...
2021-02-22 20:53:33
223
原创 中断
一、软件相关1、架构相关中断程序:初始化中断向量表2、中断控制器驱动:set_handle_irq3、中断接口兼容层:中断描述(irq_desc[NR_IRQS])、中断使能控制、中断请求和释放以及标准中断处理流程框架4、设备驱动中实现中断处理程序:(*irq_handler_t)(int, void *)二、arm64 处理流程1、常规处理handle_arch_irq -> handle_irq -> handle_domain_irq
2021-02-20 23:58:59
140
原创 bootmem
启动时内存管理https://www.kernel.org/doc/html/v4.19/core-api/boot-time-mm.html#bootmem变更自从 v4.19-11831-g355c45affca7之后,内核不再支持bootmem原始方案,所有的架构都采用MEMBLOCK + NO_BOOTMEM方案管理启动时的内存。 自从v4.19-11856-g57c8a661d95d之后,原先采用bootmem.h中的接口均被删除,之后统一使用memblock.h。AP..
2021-02-08 22:14:31
284
1
原创 gnome-terminal 按键自动重复
1、通过控制中心gnome-control-center设置 -> 通用辅助 -> 打字修改重复健值(E)2、通过修改gnome的配置数据库dconf read /org/gnome/desktop/peripherals/keyboard/repeatdconf write /org/gnome/desktop/peripherals/keyboard/repeat turedconf write /org/gnome/desktop/...
2021-02-03 21:16:02
259
原创 ASoC 设备注册流程
组件注册snd_soc_register_component --> snd_soc_register_component --> snd_soc_add_component --> snd_soc_register_dais --> soc_add_dai --> snd_soc_component_add ...
2021-01-24 20:48:48
801
原创 ALSA 配置
环境变量: ALSA_CONFIG_PATH_VAR 全局的配置文件路径 ALSA_CONFIG_DIR 配置文件所在目录,默认值:/usr/share/alsa 配置文件名:alsa.conf默认的配置文件:/usr/share/alsa/alsa.conf预加载的配置文件列表: /usr/etc/alsa/conf.d /etc/alsa/conf.d /etc/asound.conf
2021-01-11 23:10:20
852
原创 amixer
amixer混音器,适用于ALSA声卡驱动的命令行工具语法: amixer [-option] [cmd] 参数: -c card 选择声卡,aplay -l 可以看到有几个声卡 -D device 暂时不清楚如何使用 -h 获取应用程序帮助信息 -q 安静模式 -s | --stdin ..
2021-01-05 22:26:07
709
原创 aplay
arecord, aplay播放器和录音器,适用于ALSA驱动声卡的命令行工具语法: arecord [flags] [filename] aplay [flags] [filename [filename]] ... 参数: -h, --help 显示帮助信息 --version 显示当前软件版本 -l, --list-devices ...
2021-01-04 22:53:27
4801
原创 file system
image#1 创建一个经过初始化的文件dd if=/dev/zero of=file.img bs=1k count=10000#2 将一个循环设备与这个文件关联起来losetup /dev/loop0 file.img#3 用循环设备创建 ext2 文件系统mke2fs -c /dev/loop0 10000#4 创建挂装点并通过循环设备挂装文件系统mkdir /mn...
2019-06-22 11:54:30
219
原创 network
Open Systems Interconnection (OSI) model, a conceptual framework that describes the functions of a networking or telecommunication system.Application (Layer 7)OSI Model, Layer 7, supports appli...
2019-06-22 09:28:29
235
原创 GPU
Graphics Processing Unit (GPU)The Graphics Processing Unit is controlled by the CPU through a direct interface of memory-mapped IO registers, and indirectly by parsing commands that the CPU has pla...
2019-06-22 09:08:02
278
markdown-tools-in-windows.gz
2019-06-19
PCIvsPCIe.pdf
2019-05-30
GNU_C_Compiler_Internals.pdf
2019-05-27
kubernetes v1.14.0
2019-04-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人