about filesystems
12# 查看 linux 支持的文件系统cat /proc/filesystems procfs 常见的 内存文件系统The proc filesystem doesn’t support capabilities, ACL, or even changing basic permissions with chmod. Unix permissions determine whether the calling process gets access. Thus only root can write that file. With user namespaces, that’s the global root (the one in the original namespace); root in a container doesn’t get to change sysctl settings. sysfs常见的内存文件系统 tmpfs支持 xattr 常见的内存文件系统 jffs2支持 xattr 嵌入式常用的带有日志的 squashfs 支持xattr 高压缩只读...
Linux cmd (II)
linux cmd 112345# 创建 512M的空文件dd if=/dev/zero of=./output.bin bs=1M count=512# 创建 2M 的全为0xff的文件# 命令, 用到了管道, 重定向操作,tr 命令用的比较少,这里用上了tr "\000" "\377" < /dev/zero | dd of=./output.bin bs=1024 count=2048 mtd(闪存类) 设备可以当作字符也可以当作块设备来操作根据dev下的设备名/dev/mtd0 是字符设备 /dev/mtdblock0 块设备可以直接cat /dev/mtd0> mtd0.bin读出,使 echo mtd0.bin >/dev/mtd0 写入查看16进制1xxd output.bin |less
about-program-languages
编程语言分类标准很多,语言也有很多,每一种流传的语言的创建大多都有一些哲学思辨面向过程, 面向对象编译型,解释型函数式C, C++/Java/.NETPython/Java/C++/LispHaskell
about build tool/system
了解过的构建工具Make CmakeGradle AntNinjia GN
about embed software
busybox Swiss Knife for embed, include a lot of linux cmd (include, vi ,sed, awk, etc) mbedtls The Mbed TLS library is designed to integrate with existing (embedded) applications and to provide the building blocks for secure communication, cryptography and key management learn it @ https://tls.mbed.org/kb/how-to/mbedtls-tutorial 主要用于arm, is for substituting openssl dropbear is a ssh server for embed use musl libc light weight libc for embed environment uCore libc light weight l...
About Protocol
常见的协议和不常见的协议 AOA协议android上,谷歌定义的协议 Xmodem协议,基于UART的文件传输协议 NFS协议 RPC协议 HTTP协议
about bus
总线, 计算机的组成部件间用于传输数据或者指令的物理(软件逻辑)线路,以下列举一些嵌入式中常见的总线和其他总线 MIPIHDMISPI 标准的SPI总线是有CS(chip select)/SS(slave select), CLOCK, MISO(Master IN Slave out), MOSI 四条线,用于nor flash的扩展的SPI额外多了两条引脚 WP(write protect),HOLD(用于禁止主机和flash器件的所有通讯) 常见的1-wire(只用一条数据线,bitbang,只能单工), 2-wire(可以双工), 4-wire(使用WP和HOLD脚作为额外的两条数据线) 都是说用来传输数据的线的数量 标准的是2-wire, 1-wire 为了节约引脚,4-wire为了提升速率 SPI通信的开始总是以CS引脚电平拉低开始,拉高而结束 SPI clock的极性(ploar)和相位(phase) 各有0,1两种排列组合出来共有4种,所以spi有4种工作模式 四种模式的差异在于读取数据的时机是在第一个还是第二个跳变沿,是上升沿还...
about-vim
本文章主要讲解vim的学习路径和常用配置及基本介绍和操作模式切换,此处的模式不一定是vim官方的叫法,主要是我自己的理解浏览模式(只能使用hjkl进行上下左右光标切换)到编辑模式(可以输入字符) 键盘上的小写字符(a,i,o) a(append)光标的后边位置加入字符 i(insert)光标当前位置插入字符 o (open) 在光标的下一行新插入一行空行 键盘上的大写字符(A,I,O) A(Append)在行尾加入字符 I(Insert)在行首插入字符 O (Open) 在光标的上一行新插入一行空行 退出任意(命令模式,编辑模式,列编辑模式)模式到浏览模式 按键盘上的Esc键一次不行,按两次 ## 从浏览模式到命令模式,英文冒号 : wq(保存退出) 浏览模式到行编辑模式 V (大写字母v),可以选中多行进行批量操作 浏览模式下其他不常用的命令J(大写字母j)可以合并当前行和下一行,当前行的行尾和下一行的首部合并到当前行 命令模式的常用命令x (保存并退出)q (没有编辑,直接退出)q! (已经编辑了,放弃修改退出)w (把编辑内容从...
about-poll-seletc
平台特性linux : select poll epoolwindows: select
about-ethernet
以太网帧的尺寸https://www.zhihu.com/question/58979135