2013年3月15日

摘要: 参考连接:http://wenku.baidu.com/view/ae78a00390c69ec3d5bb75ce.html?st=1 链接上已经指明了我之前一直2013.01版本uboot产生错误的原因,2010.3版本到2010.6版本是uboot的一个分界,而2010.3版本的uboot是最接近samsung定制的s3c-u-boot-1.1.6版本uboot的一个版本号,所以在此选择版本2010.3 1、download the uboot from ftphttp://ftp.denx.de/pub/u-boot/download u-boot-2010.03.tar.bz2... 阅读全文
posted @ 2013-03-15 12:55 plinx 阅读(5253) 评论(0) 推荐(1) 编辑
摘要: 1、下载uboothttp://ftp.denx.de/pub/u-boot/ 2、解压文件tar xvf u-boot-latest.tar.bz2 3、进入uboot根目录、接着开始修改文件 4、创建板级文件目录cd /borad/samsungmkdir smdk6410 5、复制smdk6400文件到创建的文件目录cp smdk6400/* smdk6410/ 6、修改目录下的文件名cd smdk6410mv smdk6400.c smdk6410.cmv smdk6400_nand_spl.c smdk6410_nand_spl.c 7、修改板级文件内容vim smd... 阅读全文
posted @ 2013-03-15 00:41 plinx 阅读(5613) 评论(0) 推荐(0) 编辑

2013年3月10日

摘要: 由于学校的校园网服务器比较旧,开发板无法直接使用DHCP。 所以有两种解决思路: 1、在接入开发板之前,先接入一个交换机,接出来的接口再接开发板。 2、可能由于开发板内核版本旧导致的驱动版本比较旧(因为开发板OK6410买来的时候,配给的是3.01,而12.04版本的ubuntu的内核版本是3.2,在接入时,PC是可以适配这个校园网并获得ip),所以现在进行对开发板内核进行更新,目标版本3.6.3。 过程参考:http://blog.csdn.net/lwfbibi/article/details/7471877 步骤一:解压# tar xvf linux-3.6.3.tar.b... 阅读全文
posted @ 2013-03-10 21:43 plinx 阅读(4068) 评论(0) 推荐(0) 编辑

2013年2月13日

摘要: /inclue/linux/tty_driver.h/* Use TTY_DRIVER_* flags below */#define tty_alloc_driver(lines, flags) \ __tty_alloc_driver(lines, THIS_MODULE, flags)/* * DEPRECATED Do not use this in new code, use tty_alloc_driver instead. * 不赞成使用这个新代码,通常使用tty_alloc_driver来代替。其实他们实际意义是一样的 * (And chang... 阅读全文
posted @ 2013-02-13 15:18 plinx 阅读(1679) 评论(0) 推荐(0) 编辑
摘要: 底行模式:%s/^\s*[0-9]*\s*//g恢复缩进,在普通模式下gg//至段首v//visual模式G//段尾=//恢复缩进 阅读全文
posted @ 2013-02-13 14:07 plinx 阅读(244) 评论(0) 推荐(0) 编辑

2013年2月12日

摘要: struct tty_operations { struct tty_struct * (*lookup)(struct tty_driver *driver, struct inode *inode, int idx);//返回对应的tty设备, 若为NULL则返回ERR_PTR, 在tty_mutex函数中调用//该项可选,默认为使用ttys array int (*install)(struct tty_driver *driver, struct tty_struct *tty);//install一个tty设... 阅读全文
posted @ 2013-02-12 22:49 plinx 阅读(2659) 评论(0) 推荐(0) 编辑

2013年2月7日

摘要: 编译器 arm-linux-gccarm-linux-gcc hello.c -o hello 反汇编器 arm-linux-objdumparm-linux-objdump -D -S hello//-D, --disassemble-all Display assembler contents of all sections//-S, --source Intermix source code with disassembly ELF文件查看工具 arm-linux-readelfarm-linux-readelf -a hello //check the data and ... 阅读全文
posted @ 2013-02-07 14:01 plinx 阅读(344) 评论(1) 推荐(0) 编辑

2013年1月31日

摘要: 1、minicom串口的传输 一般在linux下直接检测到U转串的驱动了,若为虚拟机,先装主机驱动,然后将usbserial分配给虚拟机即可,若主机为linux系统,接上即可自动安装驱动。$ lsmod | grep pl2303 或者 $ lsmod | grep usbserial 可以看到设备如下 安装minicom$ sudo apt-get install minicom$ sudo apt-get install lrzsz 配置minicom$ sudo mincom -s 首先设置serial port setup 通常情况下只用改第一个,改为ttyUSB0(通... 阅读全文
posted @ 2013-01-31 13:33 plinx 阅读(1858) 评论(0) 推荐(0) 编辑

2013年1月28日

摘要: 在linux内核中,主要的静态发生于以下几种情况: 1、对称多处理器(SMP)的多个CPU: 多个CPU共同使用系统总线,可访问共同点的外设和存储器。 2、单CPU内核进程与抢占它的进程: 一个进程的执行可被另一高优先级进程打断。 3、中断(硬中断、软中断、Tasklet,底半部)与进程之间: 中断可以打断正在执行的进程,若访问该进程正在访问的空间,将引发竞态。 上述并发的发生出了SMP是真正的并行以外,其他的都是“宏观并行,微观串行”的,但其引发的实质问题与SMP相似。 访问共享字段的代码区域成为临界区(critical sections) 中断屏蔽: 使用方法loc... 阅读全文
posted @ 2013-01-28 22:14 plinx 阅读(3101) 评论(0) 推荐(0) 编辑

2013年1月20日

摘要: 想要了解字符设备的内部实现,最直接的方法是先来看struct file_operations,在结构体中封装的函数,实际上就是字符设备可以实现的功能。struct file_operations { struct module *owner;//拥有该结构体的模块指针,一般设为THIS_MODULE loff_t (*llseek) (struct file *, loff_t, int);//修改文件当前的读写认为,对应为llseek()函数 ssize_t (*read) (struct file *, char __user *, size_... 阅读全文
posted @ 2013-01-20 21:46 plinx 阅读(415) 评论(0) 推荐(0) 编辑

导航