
Linux
Manfeel
做自己喜欢并擅长的事,上帝也会助你走向成功
展开
-
编译内核的时候,出现 printf 命令后面为空的错误!
编译Linux内核的时候,出现了一个怪异的错误,和printf命令相关原创 2022-09-08 22:24:26 · 325 阅读 · 0 评论 -
WEB failsafe mode implements on WRTNode(MT7620N)
一、发现页面文件大于1446以后,就不能显示完全,几经周折,在uipopt.h中发现了这样几处定义: /** * The TCP maximum segment size. * * This is should not be to set to more than UIP_BUFSIZE - UIP_LLH_LEN -原创 2014-06-28 16:52:04 · 3101 阅读 · 0 评论 -
使能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 评论 -
修改XTerm相关属性(让字体更好看)
XTerm是Linux系统中常用的一个终端模拟软件,但其丑陋的默认字体让人无法忍受,google了一下相关资料,将修改方法记录如下:1.建立~/.Xresources文件,可参考下列内容:XTerm*faceName: Bitstream Vera Serif Monoxterm*faceSize: 11xterm*vt100*geometry: 100x30原创 2014-12-07 14:29:43 · 19394 阅读 · 5 评论 -
Getting Started with 64-bit ARM Development: Hello World and Linux on ARMv8 Fast Models
http://www.cnx-software.com/2012/11/06/getting-started-with-64-bit-arm-development-hello-world-and-linux-on-armv8-fast-models/转载 2014-10-12 20:44:32 · 3266 阅读 · 1 评论 -
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 评论 -
WRTNode(MT7620n)USB启动总结
一.修改mt7620.dtsi,去掉默认的bootargs,kernel_menuconfig取消buildin的command line 二.kernel_menuconfig加入scsi驱动,USB Storage,Ext4文件系统 三.set bootargs root=8:2 rootdelay=5 rootfstype=ext4 rw console=ttyS0,57600注意:ro原创 2014-06-22 14:11:03 · 8714 阅读 · 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 评论 -
U-Boot中部分cmd执行时死机问题分析
环境: WRTNode开发板 问题概述: 在控制台执行print,死机。执行httpd则可以运行。发现部分靠后的命令执行时会导致整个uboot死掉。 分析过程: 通过分析uboot源码,决定从find_cmd函数开始调试,还是老规矩,加入诊断输出代码。 printf("cmd_tp[%p] = %s\n",cmdtp, cmdtp->name);原创 2014-07-23 23:57:26 · 3602 阅读 · 0 评论 -
WRTNode(MT7620) UBoot 中实现USB功能过程记录
目标:在uboot中加入usb功能,实现从usb存储设备上启动kernel。ralink的SDK提供的uboot是支持usb相关命令的,只需要在config.mk打开相应的开关即可。一开始以为只需要这样做:RALINK_USB = ONRALINK_EHCI = ONRALINK_OHCI = ON编译烧写后,发现usb相关命令已经出现在uboot中了,但是每次原创 2014-06-10 21:51:08 · 10853 阅读 · 1 评论 -
双引号在cat显示heredoc中的妙用
我们知道,想在shell script中显示一大段文字(Heredoc),可以用 cat cat this quick brown fox jumps over the lazy dog powered by manfeel! EOF 这些普通的文本显示起来没有问题,一旦里面夹杂有特殊的字符(如“\”、“`”之类的),就会出问题。 有一个非常简单有效的方法,那就是用双引原创 2014-06-28 16:48:44 · 2333 阅读 · 0 评论 -
标准【wpa_supplicant】到【神州数码】 认证的修改记录(上)——准备工作
准备工作1.系统先要安装 libssl-dev,libnl-dev2.make & sudo make install3.标准wpa_supplicant调用过程非常复杂,为了看清函数间的调用关系,对源代码进行了如下修改:在wpa_debug.h文件中,对wpa_printf进行了重新的定义(将原来的wpa_printf改名为wpa_printf_manfeel)以便能够看清调用的原创 2013-11-07 23:02:45 · 2825 阅读 · 1 评论 -
ASUS N14U 源码编译过程分析(下)
接下来,分析router中的Makefile,接上一篇文章,在转到router目录时,上一级Makefile有如下内容: @$(MAKE) -C router all @$(MAKE) -C router installrouter中这个Makefile看起很大(有两千多行),仔细分析后,发现更简单。all目标all: clean-build kernel_heade原创 2013-11-01 21:21:28 · 3493 阅读 · 0 评论 -
GNU Make in Detail for Beginners
Large projects can contain thousands of lines of code, distributed in multiple source files, written by many developers and arranged in several subdirectories. A project may contain several component转载 2013-11-01 16:39:29 · 1473 阅读 · 0 评论 -
ASUS N14U 源码编译过程分析(上)
主要涉及到两个关键的Makfile,因为这些Makefile的自动化程度不高,所以代码显得很繁琐,但正因为如此,才相对显得比较简单。首先是asuswrt/release/src-ra-mt7620目录下的Makefile略去前面的变量定义部分,进入关键的部分:image目标image: @if [ -z "$(BUILD_NAME)" ]; then \ e原创 2013-11-01 20:35:19 · 10839 阅读 · 1 评论