Upload
others
View
12
Download
0
Embed Size (px)
Citation preview
Laborator 1Introducere
Sisteme de Operare 2 (SO2)
Departamentul de Calculatoare
CSE Dep Laborator 1, Introducere 1/14
Sisteme de operare 2
I operating systems internals
I kernel programming
I altfel de programare (freestanding environment)
I serios sh*t
I less coding, more documentation & code browsing &debugging ... & thinking
I http://elf.cs.pub.ro/so2/wikiI http://elf.cs.pub.ro/so2/wiki/needtoknow
I lista de discut, ii
I mas, ini virtuale (Linux 2.6.31.6, Windows 2003 Server R2Standard)
I 3p curs, 2p laborator, 10p teme
CSE Dep Laborator 1, Introducere 3/14
Laborator SO2
I EG207
I 15 minute prezentare, 80 de minute exercit, ii
I task-based
I maxim 11 puncte pe laborator
I maxim 12 student, i la un laborator
I kernel karma
I intens s, i lucrativ
I fit, i activi, ıntrebat, i cand nu s, tit, i/nu iese
I enjoy
I feedback is welcome (personal, lista)
I Linux Kernel Development, 3nd Edition, Linux Device Drivers,3rd Edition
I Windows Driver Development
CSE Dep Laborator 1, Introducere 4/14
Nucleul Linux
I core-ul sistemului de operare GNU/Linux(/Mozilla/Qt/. . . )
I http://www.kernel.org
I current stable 2.6.37
I mas, ina virtuala de Linux pentru SO2 – 3.2.5
I Use the source, Luke!
I GCC, GNU Make
CSE Dep Laborator 1, Introducere 6/14
Compilare/instalare nucleu Linux
I download & unpack
I (copy config)
I make menuconfig
I make
I make modules install
I make install
I (build initial ramdisk (initrd))
I GRUB config
I boot
CSE Dep Laborator 1, Introducere 7/14
Source code browsing
I cscope or LXRI cscope – integrates with editor, flow
I make cscope
I LXR – browser based, flexible
I complementary, not mutually exclusive
CSE Dep Laborator 1, Introducere 8/14
Nucleul Windows
I Windows NT kernel
I Windows Driver Kit (WDK)
I msvc, nmake
CSE Dep Laborator 1, Introducere 10/14
Compilare nucleu Windows (WRK)
I Windows Research Kernel
I C:\cygwin\home\Administrator\so2\WRK
I indicat, ii ın README.txt
I boot.ini
I NTLoader
CSE Dep Laborator 1, Introducere 11/14
WinDbg, LiveKd
I Debugging Tools for Windows
I Debug Symbols
I WinDbgI LiveKd
I depanare “live”I integrat ın WinDbg (File – Kernel Debug – Local)
CSE Dep Laborator 1, Introducere 12/14
Keywords
I SO2
I mas, ini virtuale
I kernel (nucleu)
I Linux
I vanilla
I http://www.kernel.org
I .config
I make menuconfig
I make, make install
I bzImage, vmlinuz
I /lib/modules/3.x.y/
I LXR (Linux CrossReference)
I Windows NT
I Windows Driver Kit (WDK)
I Debugging Tools
I WinDbg, LiveKd
I Windows Research Kernel(WRK)
CSE Dep Laborator 1, Introducere 14/14