
Kernel
Manfeel
做自己喜欢并擅长的事,上帝也会助你走向成功
展开
-
编译内核的时候,出现 printf 命令后面为空的错误!
编译Linux内核的时候,出现了一个怪异的错误,和printf命令相关原创 2022-09-08 22:24:26 · 325 阅读 · 0 评论 -
WRTNode(MT7620) 通过USB启动OpenWRT过程记录(中)
貌似kernel忽略了bootargs代码位于build_dir…arch/mips/ralink中的prom.cstatic __init void prom_init_cmdline(int argc, char **argv){ int i; // manfeel , mod to pr_info from pr_debug pr_info(原创 2014-06-12 14:40:54 · 5419 阅读 · 0 评论 -
Device Tree Usage(理解DTS文件语法)
http://devicetree.org/Device_Tree_Usage转载 2014-06-15 19:37:58 · 12727 阅读 · 5 评论 -
Passing Command Line Arguments to a Module
Modules can take command line arguments, but not with the argc/argv you might be used to. To allow arguments to be passed to your module, declare the variables that will take the values of the comman转载 2014-06-22 10:00:02 · 960 阅读 · 0 评论 -
为OpenWrt添加实时钟(RTC)--以MT7620为例
前言实时钟,英文名RTC(Real Time Clock),在PC里面很常见,在OpenWrt里面却鲜有提及,手头上有一个DS1307的TinyRTC实时钟模块,经过一番折腾,将其融合到了OpenWrt系统,遂将操作过程记录成文.背景知识DS1307在最新的OpenWrt中已经提供支持,却没有整合进ramips中,因此,本文的一个重点便是如何为ramips系统配置ds1307.原创 2015-01-26 23:13:52 · 10282 阅读 · 2 评论 -
使能MT7620的第二个SPI接口(cs1)——兼谈pinmux与pinctrl驱动
前言 根据MT7620的数据手册,该芯片支持两个独立的spi接口,由于驱动不完善等种种原因,一直没能顺利的使用第二个spi接口.近日对mt7620的spi好好研究了一下,终于使能了第二个spi接口,将过程记录成文. 实现过程 spi驱动的诡异之处 mt7620的spi驱动位于:drivers/spi/spi-rt2880.c,里面有关spi cs1的代码非常诡异,因为7620与535原创 2015-02-08 10:40:18 · 18956 阅读 · 23 评论 -
MAC OSX 10.10 Yosemite 下编译 OP_TEE
0. 安装一些必备文件brew install libelf gnu-sed binutils(解决readelf)将sed、find、readlink、xargs、readelf分别链接到g开头的同名文件1. 下载源码repo init -u https://github.com/OP-TEE/manifest.git -m default.xml -b原创 2015-11-20 23:14:29 · 3167 阅读 · 2 评论