自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(35)
  • 资源 (9)
  • 收藏
  • 关注

原创 linux unlocked_ioctl

从2.6.36 以后的内核已经废弃了 file_operations 中的 ioctl 函数指针,取而代之的是 unlocked_ioctl, 用户空间对应的系统调用没有发生变化。struct file_operations----------------------This describes how the VFS can manipulate an open file

2013-05-29 09:55:16 3624

转载 linux misc device 混杂设备

misc device要点:1. misc 混杂设备 是char 字符设备。【driver/char/misc.c 文件位置可见一斑】2. misc device 是 主设备号为10 的字符设备。3. misc device 使用 struct miscdevice 结构提进行描述。4. misc device 使用 misc_register 函数进行注册, misc_der

2013-05-29 09:19:19 2162

转载 error: insufficient permissions for device 问题解决

http://alex-yang-xiansoftware-com.iteye.com/blog/1586667在ubuntu上进行android开发是,将设备连接到电脑上,执行adb shell命令,会报出如下错误:error: insufficient permissions for device解决的办法:root@android-ubuntu:platform-to

2013-05-28 21:59:20 1146

原创 Tiny6410 led 驱动实现分析

原创作品,转载请注明:http://write.blog.csdn.net/postedit/8984547本文作为学习自己写驱动的基础贴,重在总结写驱动程序从看开发板硬件使用手册,到开发板data sheet, 原理图,再到coding 的整个流程。以Tiny6410 开发板实现led 驱动为例:1. 看Tiny6410 硬件使用手册关于 LED 的介绍部分(要实现L

2013-05-28 15:09:52 3175

转载 linux C: lseek 获取文件长度

转载:http://baike.baidu.com/view/1080860.htm简介函数名: lseek功 能: 移动文件读/写指针头文件:#include #include 用 法: off_t lseek(int handle, off_t offset, int fromwhere);所有打开的文件都有一个当前文件偏移量(current file off

2013-05-27 10:51:39 6732

原创 do {} while(0)

2013-05-27 10:25:47 781

原创 linux staging tree

The Linux Staging Tree, what it is and is notIt's been many months since the Linux Kernel developers conference, where thelinux-staging tree was discussed and role changed. It turns out that peopl

2013-05-24 10:49:11 1341

原创 cp & vfs & ubifs & ubi & mtd & nand driver 总结贴

前段时间项目需要一直研究 ubifs ,作为流程的总结,学习了 cp 命令的实现【http://blog.csdn.net/chenqiang0721/article/details/8921613】, VFS 虚拟文件系统及其代码,ubifs 文件系统, ubi 设备层, mtd 设备层,以及最底层的nand flash driver.马上就要开展新的项目了,作为总结,把之前看的东西在整

2013-05-16 10:55:53 2114

原创 ubifs- B+ Tree

ubifs 使用 B+ tree , 好好研究一下下面对B+ 树 的讲述,看明白了设计原理和采用的搜索查找算法,才能真正看懂代码。( 摘自 JFFS3design.pdf )

2013-05-15 09:05:43 1560

原创 VFS 代码分析(open/read/write)

readinclude/linux/fs.hfile 结构体中有 const struct file_operations *f_op;struct file { /* * fu_list becomes invalid after file_free is called and queued via *

2013-05-14 13:02:27 2122

原创 linux 系统调用

在分析linux 系统调用 的代码时,如何快速找到 open/read/write 标准库系统调用对应的内核处理函数呢? 查找系统调用函数定义的宏:   SYSCALL_DEFINEeg, 在vim 中直接 :cs f t SYSCALL_DEFINE, 这样搜索结果也不过300多个,可以快速找到自己想找的系统调用函数。open 系统调用对应的内核函数在 fs/open.c 中

2013-05-14 09:33:07 1151

原创 linux cp 命令实现

linux cp 简单实现就是read 源文件的内容到一个buffer, 然后再将buffer 中的内容 write 到要copy 的目标文件中去,这样就实现了cp 的功能。看了busybox 中的实现无非就是read/write 操作,现在自己先实现一个最简单的,对文件操作熟悉一下。#include #include #include #define BUFSIZE 8*10

2013-05-13 17:16:46 2483

原创 VFS : linux kernel src document

Overview of the Linux Virtual File System    Original author: Richard Gooch           Last updated on June 24, 2007.  Copyright (C) 1999 Richard Gooch  Copyright (C) 2005 Pekka Enberg

2013-05-10 17:04:46 1524

原创 ubifs- 六大区域 (superblock area, master area, log area, lpt area, orphan area, main area )

There are in fact six areas in UBIFS whose position is fixed at the time the file system is created.The first two areas have already been described. The superblock area is LEB zero. The superblo

2013-05-10 09:39:03 2040

原创 ubifs- superblock

The first LEB is not LEB one, it is LEB zero. LEB zero stores the superblock node. The superblock node contains file system parameters that change rarely if at all.For example, the flash geometry (e

2013-05-10 08:54:01 1837

原创 ubifs- Master Node

The master node stores the position of all on-flash structures that are not at fixed logical positions. The master node itself is written repeatedly to logical eraseblocks (LEBs) one and two.LEB

2013-05-10 08:46:47 1719

原创 ubifs- Wandering Tree

The big difference between JFFS2 and UBIFS is that UBIFS stores the index on flash whereasJFFS2 stores the index only in main memory, rebuilding it when the file system is mounted.Potentially

2013-05-10 08:40:23 2045 1

原创 ubifs out-of-place update & Garbage Collection

A file system developed for flash memory requires out-of-place updates.This is because flash memory must be erased before it can be written to, and it can typically only be written once before needi

2013-05-09 22:36:14 2942

原创 ubifs 文件系统-1: overview

UBIFS is a new flash file system developed by Nokia engineers with help ofthe University of Szeged. In a way, UBIFS may be considered as the nextgeneration of the JFFS2 file-system.JFFS2 file system

2013-05-09 17:06:04 2075

原创 vim 如何在不同编辑器(VIM~gedit~firefox~etc.)之间复制粘贴

之前好久没整明白vim 如何将复制的内容粘贴到别的编译器中,尤其是全文复制粘贴,今天终于弄明白了,留念一下吧:参考文章:http://www.douban.com/group/topic/36502012/VIM 全选复制到其它编辑器的方法:1. 正常模式下, ggvG 全选高亮显示文字;2. “+y3. 在gedit/firefox 中直接 ctrl +v 粘贴就

2013-05-09 09:15:04 2927

原创 linux platform driver register

Platform Devices and Drivers~~~~~~~~~~~~~~~~~~~~~~~~~~~~See for the driver model interface to theplatform bus:  platform_device, and platform_driver.  This pseudo-busis used to connect device

2013-05-09 09:08:50 2059

转载 kmalloc

转载:http://blog.csdn.net/flyingdon/article/details/5107346Kmalloc内存分配和malloc相似,除非被阻塞否则他执行的速度非常快,而且不对获得空间清零。Flags参数#includeVoid *kmalloc(size_t size, int flags);第一个参数是要分配的块的大小,第二个参数是分配标志(f

2013-05-09 08:45:04 723

转载 Linux内核中ioremap映射的透彻理解

转载:http://www.linuxidc.com/Linux/2011-04/34295.htm几乎每一种外设都是通过读写设备上的寄存器来进行的,通常包括控制寄存器、状态寄存器和数据寄存器三大类,外设的寄存器通常被连续地编址。根据CPU体系结构的不同,CPU对IO端口的编址方式有两种:  (1)I/O映射方式(I/O-mapped)  典型地,如X86处理器为外设专门实现了

2013-05-09 08:43:50 669

转载 linux ftrace 调试工具

先开博客记录一下,抽时间好好研究一下ftrace ,现在linux 急需调试工具:http://www.ibm.com/developerworks/cn/linux/l-cn-ftrace/

2013-05-09 08:41:12 1012

转载 le32_to_cpu and cpu_to_le32

转载:http://blog.csdn.net/wzws45/article/details/6153106Then when do we use le32_to_cpu( ) , and when do we use cpu_to_le32( )?> > The names tell it. le32_to_cpu is used for convesions fro

2013-05-08 08:06:29 2735

转载 VIM 跳转

转载:http://www.cnblogs.com/moiyer/archive/2010/04/01/1952681.html在vim下可以使用常用的箭头键 但是 还有其它键可以让你更快的达到目标hjkl 这是代替箭头键功能的 H M L 跳到屏幕的顶上 中间 下方 w 跳到下一个单词的开始e 跳到单词的结束b 向后跳gg 跳到文件的开始

2013-05-07 15:36:08 796

原创 交叉编译 ARM busybox for Tiny6410

busybox 下载网址:http://www.busybox.net/source.html$ git clone git://busybox.net/busybox.gitInitializing cgroup subsys cpuLinux version 2.6.36-FriendlyARM-g3c85a8a (chenqiang@chenqiang-laptop)

2013-05-06 22:45:16 1991

原创 linux init ramfs/init rd

linux kernel 可以支持 init ramfs/ init rd 启动,就是在linux kernel 内核初始化完毕,切换到用户空间执行的init可以放到initrd 中,在linux menuconfig 的时候配置进去就可以将initrd 编译链接进vmlinux/zImage中了。这样,就可以省去了rootfs 了,对于调试一些问题很方便,下面首先制作一个最简单的init r

2013-05-06 21:44:01 2015

转载 NUMA (Non- Uniform Memory Access Architecture)

转载:http://www.ibm.com/developerworks/cn/linux/l-numa/Linux 的 NUMA 技术吴庆波 (wqb123@263.net)国防科技大学计算机学院简介: NUMA(Non-Uniform Memory Access Architecture)系统在市场上的应用越来越广泛,许多厂商都成功推出了基于NUMA

2013-05-06 09:48:13 1964

原创 Tiny6410 tftpboot & NFS rootfs

同道中人写的博客不错:http://blog.csdn.net/yinjiabin/article/details/7489563u-boot cmdline:==> tftp c0008000 zImage==> bootm==> setenv qc tftp c0008000 zImage\; bootm\;

2013-05-05 23:09:36 950

原创 vim 学习总结

用vim 也有段时间了一直只用了一些基本的操作,也没细细研究VIM 的强大功能。现在总结一下吧:$ vimtutor 可以查看一个入门级别的Guide,新手入门的话还是必读的,学习知识就是这样看别人的博客也好,听别人说也好都是二手的,原作者辛辛苦苦操刀写的Guide 和学习方法一定要看看,这样学习起来就快多了。光标停在一个局部变量上,输入gd 可以直接跳转到该变量定义的

2013-05-04 21:25:25 791

转载 The GNU configure and build system

The GNU configure and build systemIan Lance TaylorIntroductionGoalsToolsHistoryBuildingGetting StartedWrite configure.inWrite Makefile.amWrite acconfig.hGenerate filesExample

2013-05-03 23:20:40 1216

原创 mtd-utils 移植到 ARM 开发板 Tiny6410

本文介绍如何编译静态 mtd-utils 包,移植到 ARM 开发板Tiny 6410.1. git clone mtd-utils 工具包源代码:http://git.infradead.org/mtd-utils.git$ git clone git://git.infradead.org/mtd-utils.git2. mtd-utils 包依赖于 liblz

2013-05-03 22:35:05 3196

转载 expected specifier-qualifier-list before

linux kernel 编译的时候报错:expected specifier-qualifier-list before 转载:http://hi.baidu.com/wwssttt/item/edaa423696b7c5c72e8ec2ae在oc中经常会遇到expected specifier-qualifier-list before sth之类得编译错误,造

2013-05-03 20:22:31 13476

原创 makefile 隐含变量

隐含变量内嵌隐含规则的命令中, 所使用的变量都是预定义的变量。我们将这些变量称为“隐含变量”。这些变量允许对它进行修改:在Makefile中、通过命令行参数或者设置系统环境变量的方式来对它进行重定义。无论是用那种方式,只要make在运行时它的定义有效,make的隐含规则都会使用这些变量。当然,也可以使用“-R”或“--no builtin-variables”选项来取消所有的隐含变量(同时

2013-05-03 09:23:38 1857

Android HAL layer analysis

讲解 Android HAL 硬件抽象层特别好的文档,从上到下的Android 代码结构分析,以及具体实例分析。

2013-08-14

NFS 网络文件系统分析

NFS 网络文件系统入门文档,版权归原作者。

2013-07-10

BitBake User Manual .pdf

bitbake, yocto, for learning yocto, open embedded build system.

2013-04-10

OpenEmbedded User Manual .pdf

OpenEmbedded User Manual, for learning yocto, open embedded, linux, build system.

2013-04-10

Linux.PowerPC详解-核心篇

学习PowerPc linux 特别好的文档,对于bootloader,kernel,init整个PowerPC linux 的初始化也有介绍。

2013-04-02

teraterm_utf8-4.58 非常好用的串口工具

非常好用的串口终端工具 使用几次就知道了

2013-02-27

uboot- ARM bootloader

uboot ARM bootloader 源代码

2012-11-10

空空如也

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

TA关注的人

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