Linuxデバイスドライバ.PDF

Similar documents
PowerPoint プレゼンテーション

LinuxDeviceDriver2003-PDF.PDF

t20s3-fn09.pdf

% finger apt-get kernel-package, libc6-dev, gcc, make, bin86, bzip2, libdb3-dev, libncurses-dev, fakeroot

Armadillo-9 ソフトウェアマニュアル

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

3.2 Linux root vi(vim) vi emacs emacs 4 Linux Kernel Linux Git 4.1 Git Git Linux Linux Linus Fedora root yum install global(debian Ubuntu apt-get inst

Linux XScreenSaver T020074

dump / lcrash dump crash dump 2

最新Linuxデバイスドライバ開発応用-修正版-PDF.PDF

atmark-dist ディベロッパーズガイド

r10s4-fn03.pdf

1-index.PDF

FreeBSD 1

GNU/Linux on SuperH g,,,,, GNU/Linux on SuperH [1] SuperH (SH-3 SH-4) GNU/Linux g linux-kernel 1998 Linux (SH-3) g GD

tutorial_lc.dvi

debian_manual.dvi

Quickstart Guide 3rd Edition

untitled



OpenCV Windows(cygwin) Linux USB PC [1] Inel OpenCV OpenCV 1 Windows Linux OpenCV (a) (b)2 (c) (d) 1: OpenCV 1

UNIX


MINI2440マニュアル

I 2 tutimura/ I 2 p.1/??

unix.dvi

ィ 03ィェ ィィ 06ィー0902ィー04 ィェィ ィェィィ ツィィィーィ ィヲィー02 05ィー06 09ィェィ ツィ 05ィ! (08 05ィー ィ 04ィョィャ0209ィ 06) 0102ィ

Microsoft PowerPoint - dev1.ppt

Microsoft Word - K5VSSP32-install.docx

MINI2440マニュアル

13 I/O

1 Unix Kernel C OS 2 Linux kernel pw 3 level1:linux kernel 3.1 Linux Kernel Linux kernel kernel kernel /usr/src/linux/ Linux 3 make config(make oldcon

ZFS on Momonga7

Northern Lights Server

VoiceMaker-1.1 ― HMM音声合成用音響モデルの構築

waylandを動かす

PRIMERGY Econel 100 オンボード アレイコントローラ<RAID 1> フリーOS動作確認情報

SFS UML-KNOPPIX 1), 1), ), 3) 1),

untitled


imcs04 ソフトウェアマニュアル imcs04 ソフトウェアマニュアル Ver1.4 株式会社イクシスリサーチ , ixs Research Corporation All right reserved.

debian_install.dvi

橡環境設定.PDF

Lab GPIO_35 GPIO

untitled

Microsoft Word - iMCs03…\…t…g…E…F…A…}…j…–…A…‰_v1_1.doc

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

C

Apache Web Server 2 Compaq ActiveAnswers Deskpro Compaq Insight Manager Fastart Systempro Systempro/LT ProLiant ROMPaq Qvision SmartStart NetFlex Quic

スライド 1

untitled

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License

今から間にあう仮想化入門とXenについて

UCS M シリーズ サーバでの Redhat/CentOS オペレーティング システムのインストール

Microsoft Word - PSB導入ガイド_ docx


インストール取扱説明書

E2 Spider 2018/08/03 Intel NUC Core i7 PC 2.5 /M.2 SSD BOXNUC7I7BNH PC DDR4-2133(PC ) 8GBX2 260pin 1.2V CL15 SP016GBSFU213B22 WD SSD M /51

橡F&e Web Server開発環境の構築方法

konicaminolta.co.jp PageScope Net Care

Version Page 1

MAC root Linux 1 OS Linux 2.6 Linux Security Modules LSM [1] Security-Enhanced Linux SELinux [2] AppArmor[3] OS OS OS LSM LSM Performance Monitor LSMP

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

一般技術用紙…

1 (bit ) ( ) PC WS CPU IEEE754 standard ( 24bit) ( 53bit)

WinDriver PCI Quick Start Guide

double float

: Nonblocking I/O readpartial read EOF Solaris FILE 256 ungetc SEGV errno stdio considered harmful p.

2004 SYN/ACK SYN Flood G01P014-6

RouteMagic Controller( RMC ) 3.6 RMC RouteMagic RouteMagic Controller RouteMagic Controller MP1200 / MP200 Version 3.6 RouteMagic Controller Version 3

paper-front.PDF

東京エリア Debian 勉強会 - 資料

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player jp/download/player/ URL VMware Plaeyr VMware


KernelSizeTuningGuide : size examination

Microsoft Word - sugiyama.doc

00-COVER.P65

( ) Shift JIS ( ) ASCII ASCII ( ) 8bit = 1 Byte JIS(Japan Industrial Standard) X 0201 (X ) 2 Byte JIS ISO-2022-JP, Shift JIS, EUC 1 Byte 2 By

Configuring_01

thesis.dvi

Linux ドライバのインストール


NEC Storage series NAS Device

EQUIUM EQUIUM 1


★20052G1.doc

,…I…y…„†[…e…B…fi…O…V…X…e…•‡Ì…J†[…l…‰fi®“ì‡Ì›Â”‰›»pdfauthor

HITACHI Gigabit Fibre Channel (SUSE Linux Enterprise Server IOCard-FP2-Z-199(1)

( CUDA CUDA CUDA CUDA ( NVIDIA CUDA I

UJ-0318(A).indb

Microsoft Word - C.....u.K...doc

_‚Ofl¼

大統一Debian勉強会 gdb+python拡張を使ったデバッグ手法

WebSphere Application Server V5.0 for Linux Ver. 1.11

EDSF2006_ PDF


SCore と escience の install と 設定について 理化学研究所 亀山豊久

VLD Kazutoshi Kobayashi

... 3 Oracle on Linux I/O I/O... 5 I/O io_request_lock... 6 I/O GB RAM SGA GB RAM Very Large M

Transcription:

Linux hidaka@devdrv.com 2002/10/9 Linux Kernel Conference 2002 1

Linux 2

Linux 3

Software Hardware Device Algolith m Protocol Applicati on 4

CPU 128MB NIC ATI Radeon GeForce2 MX400 Matrox G400 DISK 5

OS 2.4 Redhat 7.1 Turbo Linux, Vine, Debian, Slackware, kernel.org 2.4.10 6

OS Shell, bash, ln, tar, gzip, patch, diff, rpm, linuxconf, ftp, X-Window vi, sh, Perl, C Makefile make gcc 7

BBS 8

http://kernel.org/ The Linux Document Project http://www.tldp.org/ Linux usb http://www.linux-usb.org/ http://examples.oreilly.com/linuxdrive2/ The Open Source Development Network http://www.osdn.com/ http://sourceforge.net/ http://freshmeat.net/ 9

Linux http://www.linux.or.jp/ OSDN Japan http://osdn.jp/ Linux at IBM http://www-6.ibm.com/jp/linux/ Change Log http://www.changelog.net/ ASCII Linux http://linux.ascii24.com/ 10

GPL Open Source FreeSoft 11

OS Unix / Linux Unix 12

Linux 13

Linux 14

15

Linux (method) open, read, write, release, ioctl, lseek, 16

read int read (struct inode *inode, struct file *file, char *buffer, int count) inode file buffer memcpy_to_fs() count buffer 17

/dev/ mknod 18

IF 19

/lib/modules/2.4.??-*/kernel/ /etc/modules.conf insmod aaa.o rmmod aaa modprobe aaa lsmod depmod -a 20

insmod init_module() register_capability() lseek() read() write().. capabilities[] printk(). rmmod cleanup_module() register_capability() 21

Linux 22

Makefile Makefile/modules linux-2.4.2-2 linux-2.4.18 linux-2.4.18ikd vmlinuz-2.4.2-2 vmlinuz-2.4.18 vmlinuz-2.4.18ikd 2.4.2-2 2.4.18 2.4.18ikd LILO linux linux-18 ikd-linux 23

/usr /src /linux-2.4.2-2 /kernel /driver /arch 2.4.2-2 /linux-2.4.18 /kernel /driver /arch 2.4.14 linux 2.4.18 24

make mrproper make *config make dep make clean make bzimage make modules make modules_install 25

make *config m make modules KERNEL MODULE gcc -D KERNEL -I/usr/src/linux-2.4.18/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DKBUILD_BASENAME=serial -DEXPORT_SYMTAB -c serial.c 26

mknod insmod rmmod lsmod depmod modprobe 27

28

Unix Socket 29

Linux 30

gdb printk() SysRq /proc kdb kdbg IKD 31

printk() float, double 32

SysRq SysRq Kernel 2.1.x Enable kdb 33

/proc /proc/ /proc/devices /proc/ioports IO /proc/interrupts IRQ 34

kdb (Built-In kernel debugger) http://oss.sgi.com/projects/kdb/ 35

kgdb (linux kernel source level debugger ) http://kgdb.sourceforge.net/ gdb 2 PC C frame pointer option Target Host 36

IKD (Integrated Kernel Debugging Facilities) http://www.kernel.org/pub/linux/kernel/people/andrea/ikd/ 2.2.12-ikd5 IKD kdb gdb Trace Memleak 37

lhcd (Linux Kernel Crash Dumps) http://lkcd.sourceforge.net/ lockmeter (Kernel spinlock metering for Linux) http://oss.sgi.com/projects/lockmeter/ KMSGDUMP (Linux Kernel Messages Dump Tool) http://www-miaif.lip6.fr/willy/pub/linux-patches/ 38

Linux 39

USB EE-260 http://e-kit.jp/ OmniVision OV511 + OmniVision OV7620 http://www.ovt.com/pdfs/ds_511p.pdf W3CAM http://mpx.freeshell.org/ 40

(1) Web cgi vidcat w3cam.cgi netscape shell 41

2002/10/9 Linux Kernel Conference 2002 42 Device Drivers (2)

2002/10/9 Linux Kernel Conference 2002 43 Device Drivers kdb