- 博客(159)
- 资源 (27)
- 收藏
- 关注
原创 使用clion编辑内核
最近在尝试使用clion,早期eclipse cdt过于臃肿,更新也没有新功能增加;使用上也非常繁琐:需要添加头文件,配置,需要在项目配置里面单独配置;新建立项目如内核就比较麻烦;没有好的官方解决办法(一般都是重复劳动力,或者黑科技:修改已有工程的配置文件——不能一次搞定)clion在建立工程时,使用【file】【new cmake projectfrom source...】,在弹出的框中,选择删除不需要的架构相关代码,如arch下面的x86等:然后,选择好后,点击【ok】然...
2020-06-05 11:28:50
1374
原创 subversion-1.13.0 源码编译
依赖包下载:scons-2.4.1.tar.gzhttps://nchc.dl.sourceforge.net/project/scons/scons/2.4.1/scons-2.4.1.tar.gzserf-1.3.9.tar.bz2https://downloads.apache.org/serf/serf-1.3.9.tar.bz2apr-util-1.6.1.ta...
2020-03-26 20:45:03
760
原创 go 实现的分布式爬虫
自学golang期间,编写gorouting,chan相关代码,实现分布式爬去某主站的每个页面的链接,暂未想到有什么好办法,在抓取完网页上的链接后,自动退出程序。抓取性能:内存(8G)占用97%,抓取链接数量:923571个。具体代码如下:package mainimport ( "fmt" "net/http" "strings" "golang.org/x/net/html")...
2018-06-25 22:09:23
3145
1
原创 go编译go-gtk
使用go编译go-gtk,直接编译会出现错误:pkg-config --cflags -- gdk-2.0 gthread-2.0pkg-config --libs -- gdk-2.0 gthread-2.0go build github.com/mattn/go-gtk/gdk: invalid flag in pkg-config --libs: -Wl,-luuid爬文后,发现这里的讨...
2018-06-07 09:36:38
3192
3
原创 win32: 使用go编译go自身
因项目需要,需要重新编译go。本文记录使用go编译go自身的流程,方便后面继续修改编译:如直接自己编译自己,会出现下面的错误:$ cd /c/go/src $ ./make.bat Building Go cmd/dist using C:\Go go tool: no such tool "compile" go tool: no such tool "compile" go...
2018-06-07 09:17:58
1248
原创 event read-- read a event and print it out
#include #include #include #include #include #include #include #include #include #define test_bit(bit) (mask[(bit) / 8] & (1 << ((bit) % 8)))int main(int argc, char **argv){ char name
2017-05-21 22:03:58
357
原创 backtrace 调试 代码执行的路径(调用栈)
直接贴代码:#include #include #include #include void myfunc3(void){ int j, nptrs; #define SIZE 100 void *buffer[100]; char **strings; nptrs = backtrace(buffer, SIZE); pr
2017-05-21 22:01:10
613
转载 金士顿授权店
金士顿正品放心店(A类为专营) 数据来源:http://legacy.kingston.com/china/support/zhengpin/zhengpin.htmA 类放心店省市经销商名称联系电话沈阳金皇数码024-23967420沈阳华盟024
2017-05-21 21:58:26
1937
原创 eclipse with android : Didn't find class "com.xx.xx.MainActivity" on path: DexPathList
eclipse with android : Didn't find class "com.xx.xx.MainActivity" on path: DexPathList
2017-05-06 23:25:25
1811
原创 osx + win7 双系统安装
Windows 7 64位可以采用UEFI方式引导安装。1、条件是硬盘模式为AHCI,2、磁盘格式为GPT格式,3、主板开启EFI,4、bootmgfw.efi文件。可以从一个装好的win7 x64系统中拷贝出来(C:\Windows\Boot\EFI),或者用压缩软件打开安装U盘里面sources\install.wim,把里面对应目录的bootmgfw.
2016-07-24 13:11:52
1129
转载 ElementTree排序问题
http://stackoverflow.com/questions/14257978/elementtree-setting-attribute-orderApply monkey patch as mentioned below:: in ElementTree.py file, there is a functionnamed as _serialize_xml; in this
2016-06-22 22:41:14
4346
原创 修改 dokuwiki(适合开发类的最好的wiki) 支持 editor.md(国人做的最好的markdown)编辑
dokuwiki editor.md
2016-05-29 22:31:45
12111
3
原创 VMware Workstation unrecoverable error: (vmx)
VMware Workstation unrecoverable error: (vmx)VMware Workstation crashed when connected to CCID smartcard.Exception 0xc0000005 (access violation) has occurred.A log file is available in "E:\O
2012-03-22 01:03:06
24659
转载 给俺的B189换换那该死的铃声。。。
给俺的B189换换那该死的铃声。。。 第一步:待机下输入 *#2739# ,进入打开端口画面,但要输入密码,pin为 *#67367678#,存储后自动退出 第二步:下载三星pc套件,即pcmanager 2.0,地址:http://www.updatestar.com/zh-tw/detail/samsung-new-pc-studio 比较大,有一百多兆。 第三步:该套
2012-01-05 13:25:36
1202
转载 让Notepad++使用TextMate的主题
今天升级了一下我的Notepad++的版本,就是在因为Windows7每次启动都要求我重启,确认以后没反应,再次打开故障依旧……汗一个,最后确认原因是因为权限不够,以管理员身份运行一次就好了。好了,废话不多说,切入文章正题。由于升级后要把原来的很多插件和style主题移植到新的版本,变的很麻烦,Notepad++自带的几个主题又不能让人满意,于是想到了TextMate——The Missing
2011-12-28 08:32:14
23576
翻译 linux kernel 当前运行中 锁的状态信息【适用于调试模式】
当俺的设备死机的时候,发现是因为锁导致的,这时候相当郁闷的是没地方看系统相关锁的信息,当找到内核文档下的相关信息后,大惊:原来开发者已经为俺考虑好这些东东了:进入调试模式就是这么简单:锁统计信息信息LOCK STATISTICS- WHY锁竞争会严重地影响性能和表现Because things like lock contention can severely
2011-12-21 17:12:09
1970
转载 INFO: task bonnie++:31785 blocked for more than 120 seconds
When running some high workloads on UEK kernels on systems with a lot of memory you might see the following errors in /var/log/messages: INFO: task bonnie++:31785 blocked for more than 120 secon
2011-12-21 15:33:12
3725
原创 minifilter
minifilter透明加解密源码http://bbs3.driverdevelop.com/read.php?tid=119736http://bbs3.driverdevelop.com/read.php?tid=111662http://bbs3.driverdevelop.com/read.php?tid=110838http://bbs3.driverdevelo
2011-12-20 14:55:20
3330
转载 Read and Write to a Keyboard device in Linux using C++
I had to write some userspace code to read and write to a keyboard device in Linux using C++. I thought it would be as simple and open(), read() and write(). I was close but was missing a couple key
2011-12-20 14:43:44
1259
转载 关于uboot写yaffs2文件系统代码
现在正在看uboot烧写yaffs2的代码,有点疑问输入命令后执行do_nand,然后执行到nand_write_optsint nand_write_opts(nand_info_t*meminfo, const nand_write_options_t *opts){。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
2011-12-20 14:42:17
1363
转载 "no symbol version for xxx"在2.6.26内核上的问题
主要是2.6.26内核的module.c中check_version()发生了改变,在检查不到符号版本的时候返回0或者是-ENOEXEC,而之前的版本是返回1,导致的这个问题2.6.26:代码如下:#ifdef CONFIG_MODVERSIONSstatic int check_version(Elf_Shdr *sechdrs,
2011-12-20 14:39:42
2640
转载 S3C2440A驱动RGB接口TFT LCD的研究
http://blog.youkuaiyun.com/gooogleman/article/details/4324559http://topic.youkuaiyun.com/u/20100827/15/655aced8-5b0c-469f-abd7-06d6f9250bec.htmlhttp://blog.youkuaiyun.com/aaronychen/article/details/4553543htt
2011-12-20 14:32:35
1017
转载 timer_list
nclude/linux/timer.h里声明。 struct timer_list { struct timer_list *next; struct timer_list *prev; unsigned long expires; unsigned long data;
2011-12-20 14:29:36
719
转载 2410 中断
在ARMZ中提供两种中断,FIQ和IRQ,一般情况下都用IRQ中断。其中有七种异常中断模式。中断分为源中断,和子中断源,比如说外部中断可以都是源中断,只要设置好触发的条件,就可以直接跳进中断程序,但是串口不是,他的触发类型很多,接收,发送,错误,超时都可以触发中断,所以这类中断源出了一个源中断,下面还有子中断,其中对于外部中断跟串口中断区别比较:对于外部中断源,没有子中断源的时候,设置好是
2011-12-20 14:14:07
814
原创 s3c2440 电源管理 FCLK HCLK PCLK的关系 硬件之时钟
s3c2440 电源管理 FCLK HCLK PCLK的关系 硬件之时钟 http://blog.youkuaiyun.com/Charistain_huang/article/details/4947505http://hi.baidu.com/tengzhouit/blog/item/65c7cadd8764cdd58c10297a.htmlhttp://www.linuxf
2011-12-20 14:11:23
801
原创 linux内核支持pppd
嵌入式设备上 linux 无线模块 的PPPD支持 和相关配置转载:http://hi.baidu.com/cornsoup/blog/item/76c8468897e416b90f2444a1.htmlhttp://blog.chinaunix.net/space.php?uid=21091200&do=blog&id=1830726http://uw714do
2011-12-20 14:08:36
2032
原创 多应用程序编译,Makefile
程序结构如下 $projectroot | +---------------+----------------+ | | |
2011-12-20 14:01:40
817
原创 ubuntu 命令行错误命令提示:慢!!!
装了 ubuntu 10.4和升级后的版本都会有此问题,主要是root@zanget:/#asdfNo command 'asdf' found, did you mean: Command 'asdfg' from package 'aoeui' (universe) Command 'sadf' from package 'sysstat' (main) Command '
2011-12-05 17:40:09
2176
原创 dm365 ubl splash logo
因为连接至7‘屏幕的需要,为引导程序制作了logo;而dm365 的引导程序有3个,rbl,ubl 和uboot;如果放到uboot,引导rbl,ubl将占用较长时间;效果不太好。最好的时间是放在ubl里面,启动第一个用户可定义的引导程序。 请到此下载源码。使用方法 1. 在 LOCAL_boot里面的DEVICE_init 后 调用 init_lcd(); (见
2011-10-11 13:52:48
1965
1
转载 使用getopt_long解析程序长选项参数
写在前面:对于可选参数一定要使用以下两种方法标明其值 –wValue 或--who==Value 而不能是 --who Value,而对于必填参数则可以使用-lValue 或 --love Value或--love=Value,这并不是bug.//=======
2011-08-23 14:20:36
868
原创 kernel debug:
kernel debug:I think you also need to pass the boot arg "early_printk" as well to see the early debug output.You might also try passin
2011-08-21 20:03:01
1026
原创 alarm,sigsetjmp,siglongjmp 注意事项
sigjmp_buf timeoutbuf;sigjmp_buf toplevel; static void timer(int sig){ int save_errno = errno; (void)sig;
2011-08-18 21:36:57
1584
转载 kernel启动控制台还不可用时发生crash的调试方法
kernel启动控制台还不可用时发生crash的调试方法在调试linux kernel时,如果crash发生在控制台还不可用时,那将没有任何信息能够被打印,那分析原因就变成了一摸黑。有以下方法有助于帮助分析: 1, early printk 在kernel配置选项中启
2011-08-18 12:31:23
3033
gsm mux 【a mux for gsm modem with serial port】
2011-12-20
gsm mux 『a linux mux』
2011-12-20
dm365 ubl logo源码
2011-10-11
PE雨林木风系统维护工具 WLDNA12.22
2011-09-21
vmware tools.6.03.For 2.6.kernel
2011-09-21
SecureCRT-kg.exe
2011-09-21
SecureCRT.v.6.7.1-kg
2011-09-21
win xp - vista 字体替换
2011-03-22
Xtreme Toolkit Pro
2011-03-22
HUAWEI CDMA Datacard ModemAT Command Interface Specification
2011-03-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人