搜集

hugo Hugo设置在新页面打开链接 <a href="{{ .Destination | safeURL }}"{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a> Hugo生成文章摘要的几种方式 内容摘要 typora Typora最新版激发(Ubu……

阅读全文

CMA

连续物理内存 Linux Kernel 中的 CMA 即连续内存区管理,其提供配置为 CONFIG_CMA 和 CONFIG_CMA_DEBUG,其管理的是一块块连续内存块,这个在物理地址上是连续……

阅读全文

distro_bootcmd 模式下修改 kernel command line

环境 硬件:OrangePi PC 编译环境:buildroot 修改 增加 initcall_debug 启动参数 # cat /boot/extlinux/extlinux.conf LABEL default kernel /boot/zImage devicetreedir /boot append root=PARTUUID=2d2a225f-07d8-4811-9802-314074f963ff rootwait console=${console} rootfstype=ext4 quiet panic=10 initcall_debug 参考 uboot distro_bootcmd 理解 U-Boot中Dis……

阅读全文

内核启动时间查看

initcall_debug kernel command line 增加 initcall_debug 参数 板子执行 dmesg > boot.log tftp -pr boot.log 192.168.31.223 ubuntu 执行 liyongjun@Box:~/project/board/buildroot/OrangePiPC/build/linux-custom$ ./scripts/bootgraph.pl ~/tftp/boot.log > ~/tftp/boot.svg 参考 优化嵌入式Linux的启动时间之内核……

阅读全文

SMP

硬件 OrangePi PC 多核模式 # cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 30.85 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 1 model name : ARMv7 Processor rev 5……

阅读全文

网卡驱动

信息搜集 中断 # ifconfig eth0 Link encap:Ethernet HWaddr 02:81:E6:56:D9:1F inet addr:192.168.31.32 Bcast:192.168.31.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11666519 errors:0 dropped:5150 overruns:0 frame:0 TX packets:5860150 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:255370485 (243.5 MiB) TX bytes:514635051 (490.7 MiB) Interrupt:46 # cat /proc/interrupts | grep eth 46: 11835604 0 0 0 GICv2 114 Level eth0 逻辑中断号:46,……

阅读全文

IPI

概念 IPI(Inter-Processor Interrupt,处理器间中断)。 处理器间中断允许一个 CPU 向其它 CPU 发送中断信号,处理器间中断不是通……

阅读全文

编译报错与解决

error: function declaration isn’t a prototype [-Werror=strict-prototypes] int fun() 解决: 即使函数括号内没有任何参数,也要加一个 void 类型……

阅读全文

MMU

MMU物理地址与加载器无关 user: MMU 中的物理地址来自加载器吗 assistant: MMU 中的物理地址不是来自加载器,它是由操作系统的地址映射机制控制的。在操作系统启动期间……

阅读全文