自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小猪爱拱地

勤奋和毅力是通向成功的阶梯

  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 tar:time stamp in the future

如果解压一个拷贝自一个系统时间在当前系统之后的 包,会提示如题目这样。tar: openssl-1.0.1e/apps/openssl.cnf: time stamp 2013-12-31 15:26:04 is 1360584537.139999998 s in the futureopenssl-1.0.1e/apps/openssl-vms.cnftar: openssl-1.0.1

2013-12-31 08:13:12 6369

原创 Unhandled Page fault

“Unhandled Page fault" 是在内核代码里输出的 (arch/arm/mm/fault.c):static void__do_user_fault(struct task_struct *tsk, unsigned long addr, unsigned int fsr, unsigned int sig, int code,

2013-12-23 10:22:59 14518

原创 制作mipsel 交叉工具链

1. 在 ~/code 下建立目录 cross-compile, 在 cross-compile 下建立setup, 保存下载的文件: ls ~/code/cross-compile/setup/binutils-2.24.tar.bz2 gcc-4.6.4.tar.bz2 glibc-2.18.tar.bz2 glibc-linuxthreads-2.5.tar.bz2 linux

2013-12-22 00:35:22 4779

原创 MIPS 的寄存器

MIPS 有32个寄存器(0~31), 每个寄存器各有不同的用途。寄存器 zero (  0):    0 常量。不能保存数据寄存器 at   (1):        预留给 汇编编译器用寄存器  v0 (2)             v1 (3) :         这两个寄存器用来保存函数的返回值寄存器 a0 (4)           a1 (5)

2013-12-20 00:23:36 5202

转载 Understanding and optimizing Memory utilization

Understanding and optimizing Memory utilizationAdded by Bhavin Turakhia, last edited by Bhavin Turakhia on Mar 20, 2013 (view change)  |  PermaLink  |  Toggle SidebarUn

2013-12-18 02:04:31 2688

原创 QEMU 调试内核

这个比较简单,首先,启动 qemu的时候,加上 -S -s 参数: qemu-system-arm -S -s -M vexpress-a9 -kernel ./linux-3.2/arch/arm/boot/zImage -sd rootfs.img --append "root=/dev/mmcblk0 rw rootfs=ext3 rootdelay=3 physmap.enabled

2013-12-16 09:13:22 1677

原创 在QE MU上模拟SD Card Rootfs

1. 编译 busybox的 ARM版本。2. 拷贝必要的动态库文件到 _install/lib下面。-rwxr-xr-x 1 charles charles 93476 Oct 7 2011 ld-2.13.solrwxrwxrwx 1 charles charles 10 Apr 25 2012 ld-linux.so.3 -> ld-2.13.so-rwxr-

2013-12-15 01:09:56 1459

原创 Debug Stack Overflow的问题

例子代码如下:#include #include void return_input(){ char array[20]; gets(array); printf("%s\n", array);}int main(int argc, char **argv){ return_input();}gcc -fno-stack-protector

2013-12-13 02:57:20 1969

转载 Debug一个Segmentation fault的问题

先看下面的一个程序: cat test21.c void main(void){ int *pointer; int i; pointer = malloc(sizeof(int)); for(i = 0; 1; i++) { pointer[i] = i; printf("pointer[%d] = %d\n", i, pointer[i]); }}执行时,最

2013-12-12 02:18:26 2690

原创 可执行文件和debug文件分离的时候的 debug

可执行文件如果包含了debug信息,会变得很大,这样在资源受限的嵌入式系统里是不允许的,所以,一种解决方案是, 编译代码的时候,输出两个文件,一个是没有debug信息的文件,另一个是包含debug信息的文件。 前一个放到目标板上,后一个则是放在开发机器上,用来在debug的时候用。下面通过一个例子说名如何这样做。先写个简单的程序:$ cat test20.c int main(voi

2013-12-11 22:43:55 1576

Algorithm (4th), by Robert Sedgewick

Amazon 五星书。 Classic Reference The latest version of Sedgewick’s best-selling series, reflecting an indispensable body of knowledge developed over the past several decades. Broad Coverage Full treatment of data structures and algorithms for sorting, searching, graph processing, and string processing, including fifty algorithms every programmer should know. See algs4.cs.princeton.edu/code. Completely Revised Code New Java implementations written in an accessible modular programming style, where all of the code is exposed to the reader and ready to use.

2012-04-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除