上一页 1 ··· 8 9 10 11 12 13 下一页

2013年8月6日

摘要: step 1:创建根文件系统目录cd /opt/FriendlyARM/mini6410/linuxmkdir rootfscd rootfsmkdir bin dev etc lib proc sbin sys usr mnt tmp varmkdir usr/bin usr/lib usr/sbin lib/modulesstep2:创建设备文件:cd dev/mknod -m 666 console c 5 1mknod -m 666 null c 1 3cd ..step3:安装/etc(配置文件可以从其他做好的嵌入式系统中cp)tarzxvf etc.tar.gz –C /xxx/r 阅读全文
posted @ 2013-08-06 20:23 kwingmei 阅读(537) 评论(0) 推荐(0) 编辑

2013年7月30日

摘要: Finish And Until 'finish' lets the current function execute until it finishes. 'until makes gdb continue program execution until the given line is reached. Note: 'until' can only be executed if the program alreadyreturn Sometimes we want a function to terminate prematurely during 阅读全文
posted @ 2013-07-30 10:23 kwingmei 阅读(296) 评论(0) 推荐(0) 编辑
摘要: The Annoying C-Preprocessor Macrosgcc -gdwarf-2 -g3Breakpoint 1, main () at c_preprocessor_macros.c:1414 int state = STATE_BAD;(gdb) p STATE_BAD$1 = 1(gdb) info macro STATE_BADDefined at /home/choo/work/lin-club/gdb_-_customize_it/gdb_source_examples/c_preprocessor_macros.c:4#define STATE_BAD 1Brea. 阅读全文
posted @ 2013-07-30 10:04 kwingmei 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 主要便于调试使用, 如观测某个变量, 或某几个变量的表达式gdb allows creating gdb-scoped variables "on the fly":To see the list of defined convenience variables:To initialize a convenience variable only if it's not yet defined:init-if-undefine $foo=i*2 条件初始化Convenience variables are useful when writing gdb macros 阅读全文
posted @ 2013-07-30 10:01 kwingmei 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Making gdb do more (debugging) for less (re-typing)gdb allows us to debug our code primitively. 调试我们的代码Yet, gdb supports a large number of knobs and levers, all of which are quite documented. 也可以说太仔细了, 我们不会去看而已are too lazy to read documentation... ...and even more so, for software we've been usi 阅读全文
posted @ 2013-07-30 09:55 kwingmei 阅读(213) 评论(0) 推荐(0) 编辑

2013年7月29日

摘要: linux 模块/usr/src//Documentation/kbuild/modules.txt 有说明hello.c/* hello.c example minial module code */#include static int __init hello_init(void){ printk( KERN_INFO "Hello !\n" ); return 0;}static void __exit hello_exit(void){ printk( "Bye !\n" ); return ;}module_init(hello_init); 阅读全文
posted @ 2013-07-29 22:18 kwingmei 阅读(264) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-07-29 00:01 kwingmei 阅读(0) 评论(0) 推荐(0) 编辑

2013年7月27日

摘要: Initializing the GTK+ libraries is extremely simple for most applications.By calling gtk_init(),all initialization work is automatically performed for you.It begins by setting up the GTK+ environment,including obtaining the GDK display andpreparing the GLib main event loop and basic signal handling. 阅读全文
posted @ 2013-07-27 22:19 kwingmei 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 是参照网上的一些例子start.S.globl _start /*汇编的入口, 生成bin文件的开始处的标识, 把程序加载到某个地址, 用go 命令 go addr, 执行的就是下面的一条指令 */_start: /* peri port setup =Peripheral port setup */ ldr r0,=0x70000000 orr r0, r0, #0x13 mcr p15, 0, r0, c15, c2, 4 /*写处理器的操作 mcr move to coprocessor from register *//*当时很疑惑,不知道这段代码有什么用,经过一番查找,原来和ARM. 阅读全文
posted @ 2013-07-27 12:34 kwingmei 阅读(817) 评论(0) 推荐(0) 编辑

2013年7月26日

摘要: B, Branch,BL, Branch with Link,BX, Branch and exchange instruction set,BLX, Branch with Link and exchange instruction set,BXJ, Branch and change to Jazelle state.jazelle 不知道是什么意思:"jazz-ell". an adjective. calling someone a jazelle means that you are literally calling someone a cute asian/a 阅读全文
posted @ 2013-07-26 23:35 kwingmei 阅读(302) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页

导航