- 博客(2)
- 收藏
- 关注
原创 openwrt生成固件(dd命令)
一、基本操作 1、分区查看 查看openwrt分区 root@OpenWrt:/# dmesg [ 0.394554] m25p80 spi0.0: w25q256 (32768 Kbytes) [ 0.399584] 4 fixed-partitions partitions found on MTD device spi0.0 [ 0.406029] Creating 4 MTD partitions on "spi0.0": [ 0.411013] 0x000000000000
2022-05-06 17:15:50 1295
原创 驱动开发笔记(内核模块初识)
一、简单的内核模块源码结构 1、头文件 #include <linux/init.h> #include <linux/module.h> 2、模块加载函数 static int __init hello_init(void) { printk(KERN_INFO "hello world\n");//内核打印用printk函数,可定义输出级别 return 0; } module_init(hello_init); module_init 函数返回值为整型,初始
2022-05-06 16:52:17 158
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人