基于《Linux设备驱动程序》书中的sbull程序以对Linux块设备驱动总结分析。
开始之前先来了解这个块设备中的核心数据结构:
struct sbull_dev {
int size; /* Device size in sectors */
u8 *data; ...
分类:
系统相关 时间:
2014-07-06 12:36:10
阅读次数:
250
sudo lsof -i : 9000COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEjava 61342 a 313u IPv6 0x1111111111111 0t0 TCP *:cslistener (LISTEN)然后根据PID杀进程:sudo kill -9 61342...
分类:
其他好文 时间:
2014-07-06 11:40:03
阅读次数:
192
AOSP ON MAKO(在NEXUS 4上刷ANDROID 4.4 源码包-下载/配置/编译/刷机)
特别感谢google官方文档及AOSP源码开放
参考链接:
https://source.android.com/source/building-devices.html (官方源码刷device)
https://developers.google.com/android/nexu...
分类:
移动开发 时间:
2014-07-06 10:56:04
阅读次数:
339
在使用linux的ramoops驱动模块时,在编译完加载时,会发现驱动加载不成功。明明直接使用的内核代码,为什么会出现这样的情况呢?
首先看一下ramoops的初始化代码:
180 static int __init ramoops_init(void)
181 {
182 return platform_driver_probe(&ramoops_driver, ramoops_pr...
分类:
其他好文 时间:
2014-07-04 00:24:28
阅读次数:
761
今天再做巡检的时候发现有一台服务器的RMAN备份不正常,有一段时间没能正常备份了。检查了一下脚本,正常,定时任务列表也正常,再检查一下/var/log/cron的内容,也没有问题。尝试在该挂载点上创建一个1.txt文件的时候,发现有异常报出来了。内容为:mount: block device /.....
分类:
其他好文 时间:
2014-07-03 10:31:23
阅读次数:
374
The Story:Last week, I found one of our embedded arm linux device ran out of flash space( totally only 128M for apps and OS).After checking for a whil...
分类:
其他好文 时间:
2014-07-02 14:30:13
阅读次数:
317
转自:http://robert.penz.name/658/howto-access-mtp-devices-via-usb-on-ubuntu-12-04/ A friend asked me how he can access his Nexus 7 device via USB on hi....
分类:
其他好文 时间:
2014-07-02 13:51:19
阅读次数:
289
做Linux方面也有三个多月了,对代码中的有些结构一直不是非常明确,比方platform_device与platform_driver一直分不清关系。在网上搜了下,做个总结。两者的工作顺序是先定义platform_device -> 注冊 platform_device->,再定义 platfor....
分类:
其他好文 时间:
2014-07-01 18:51:30
阅读次数:
247
DFU Class RequestsGet StatusThe Host employs the DFU_GETSTATUS request to facilitate synchronization with the device. This status gives information on...
分类:
其他好文 时间:
2014-07-01 17:35:20
阅读次数:
460