linux labs

Download Linux Labs

Post on 14-Jul-2015

102 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

C1Laborator 1 A. ~ncepem cu discutarea mesajelor de la pornirea unui sistem de calcul Linux. Pe fi[e sunt mesajele unui sistem dotat cu procesor AMD. Cu comanda dmesg sau dmesg | more ob]ine]i mesajele date de computerele cu procesoare INTEL din laborator. (Anumite abrevieri va trebui s\ le c\uta]i `ntr-unul din volumele despre hardware recomandate.) ~ntreb\rile sunt: 1. Ce distribu]ie Linux este folosit\ ? Ce num\r are nucleul ? 2. C=t\ memorie are PC -ul ? 3. Folose[te acest computer DMA (direct memory access) pentru transferul mai rapid al datelor `ntre periferice [i memorie ? 4. B\nui]i cu ce se ocup\ ACPI ? Dar APIC ? 5. C=te procesoare (CPU) sunt `n computer, pe placa de baz\ ? 6. Ce frecven]\ are fiecare procesor ? Care e frecven]a real\ ? Dar cea din catalog, de la magazin ? 7. Cum se nume[te exact procesorul ? 8. C=t\ memorie cache level 1 [i c=t\ memorie cache level 2 are computerul ? Este eficient\ aceast\ configura]ie [i de ce DA sau de ce NU ? 9. Ce `nseamn\ APM ? 10.Ce `ntrerupere folose[te tastaura ?

Linux

1

DanPopa

11.Dar mouse-ul cuplat la portul aux ? 12.~n ce mod Ultra DMA func]ioneaz\ controllerul de hard disk compatibil ATA-IDE ? 13.Ce firm\ a produs hard discul ? 14.Prima interfa]\, ide0, ce `ntrerupere folose[te ? 15.Ce alte periferice similare cu un hard disk (de exemplu cu hda) mai avem `n sistem ? Ce firm\ le-a produs ? 16.Ce `ntrerupere folose[te a-IIa interfa]\ ATA-IDE ? 17.Acest nucleu este proiectat pentru computere mici (pia]a soho) sau pentru servere de `ntreprindere ? Ce crede]i ? 18.Care sunt parametrii (da]i `n linia de comand\) primi]i de nucleu la pornire ? 19.C=t\ memorie ocup\ kernel-ul ? (eng. kernel `nseamn\ nucleu) 20.{tie cineva ce sunt BogoMIPS-ii ? De unde vine MIPS ? 21.Are acest sistem magistral\ PCI ? 22.C=te interfe]e seriale are placa de baz\ ? 23.Ce capacitate are discul hard ? 24.~n c=te parti]ii este `mp\r]it discul hard ? 25.Sistemul are un mouse PS/2 ? Sau de alt fel ? 26.Ave]i de-a face cu un sistem cu `n care mai multe device-uri se coport\ ca unul singur ? (md -urile sunt RAID-uri software ) B. Porni]i computerele din laborator. Dac\ nu au instalat Linux folosi]i Live-CD-uri. R\spunde]i din nou la toate aceste `ntreb\ri. Not\: Dac\ [ti]i un cuv=nt cheie din r\spuns pute]i folosi filtrul grep pentru a extrage din outputul comenzii dmesg textul dorit. Exemplu: dmesg | grep UDMA va extrage exact r=ndul pe care apare textul UDMA.Nota]i [i faptul c\ filtrul grep poate fi folosit la c\ut\ri mai sofisticate,tasta]i man grep sau info grep pentru a ob]ine Linux 2 DanPopa

detalile din manualul electronic. Manualul se `nchide cu : apoi q. Mesajele unui sistem cu procesor fabricat de AMD:Linux version 2.4.25-1mt (quintela@bi.mandrakesoft.com) (gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)) #1 Thu Feb 19 01:08:43 CET 2004 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000030000000 (usable) BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) 768MB LOWMEM available. ACPI: have wakeup address 0xc0001000 On node 0 totalpages: 196608 zone(0): 4096 pages. zone(1): 192512 pages. zone(2): 0 pages. ACPI: Unable to locate RSDP Kernel command line: BOOT_IMAGE=2425-1mt ro root=801 devfs=nomount acpi=ht Local APIC disabled by BIOS -- reenabling. Found and enabled local APIC! Initializing CPU#0 Detected 1197.985 MHz processor. Console: colour VGA+ 80x25 Calibrating delay loop... 2392.06 BogoMIPS Memory: 775000k/786432k available (1339k kernel code, 11044k reserved, 550k data, 148k init, 0k highmem) Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) Inode cache hash table entries: 65536 (order: 7, 524288 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 65536 (order: 6, 262144 bytes) Page-cache hash table entries: 262144 (order: 8, 1048576 bytes) CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 64K (64 bytes/line) Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: After generic, caps: 0383fbff c1cbfbff 00000000 00000000 CPU: Common caps: 0383fbff c1cbfbff 00000000 00000000 CPU: AMD Duron(tm) processor stepping 01 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK.

Linux

3

DanPopa

POSIX conformance testing by UNIFIX enabled ExtINT on CPU#0 ESR value before enabling vector: 00000000 ESR value after enabling vector: 00000000 Using local APIC timer interrupts. calibrating APIC timer ... ..... CPU clock speed is 1197.9877 MHz. ..... host bus clock speed is 199.6646 MHz. cpu: 0, clocks: 1996646, slice: 998323 CPU0 mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) mtrr: detected mtrr type: Intel ACPI: Subsystem revision 20040116 ACPI: Interpreter disabled. PCI: PCI BIOS revision 2.10 entry at 0xfb3e0, last bus=1 PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: ACPI tables contain no PCI IRQ routing entries PCI: Probing PCI hardware (bus 00) PCI: Using IRQ router VIA [1106/3177] at 00:11.0 isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A NET4: Frame Diverter 0.46 RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: IDE controller at PCI slot 00:11.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1 ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:DMA, hdd:pio hdc: SAMSUNG SC-140B, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 hdc: attached ide-cdrom driver.

Linux

4

DanPopa

hdc: ATAPI 40X CD-ROM drive, 128kB Cache, DMA Uniform CD-ROM driver Revision: 3.12 ide: late registration of driver. md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. Initializing Cryptographic API IEEE 802.2 LLC for Linux 2.1 (c) 1996 Tim Alpaerts NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 8192 buckets, 64Kbytes TCP: Hash tables configured (established 262144 bind 65536) Linux IP multicast router 0.06 plus PIM-SM NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. RAMDISK: Compressed image found at block 0 Freeing initrd memory: 235k freed VFS: Mounted root (ext2 filesystem). SCSI subsystem driver Revision: 1.00 PCI: Found IRQ 11 for device 00:0a.0 PCI: Sharing IRQ 11 with 00:10.2 PCI: Sharing IRQ 11 with 00:11.5 scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs (scsi0:A:0): 33.332MB/s transfers (16.666MHz, offset 8, 16bit) Vendor: SEAGATE Model: ST34371W Rev: 0280 Type: Direct-Access ANSI SCSI revision: 02 (scsi0:A:4): 10.000MB/s transfers (10.000MHz, offset 15) Vendor: TEAC Model: CD-R58S Rev: 1.0H Type: CD-ROM ANSI SCSI revision: 02 scsi0:A:0:0: Tagged Queuing enabled. Depth 253 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 SCSI device sda: 8496960 512-byte hdwr sectors (4350 MB) Partition check: /dev/scsi/host0/bus0/target0/lun0: p1 Journalled Block Device driver loaded EXT2-fs warning (device sd(8,1)): ext2_read_super: mounting ext3 filesystem as ext2 VFS: Mounted root (ext2 filesystem) readonly. Trying to move old root to /initrd ... okay Freeing unused kernel memory: 148k freed Real Time Clock Driver v1.10f usb.c: registered new driver usbdevfs usb.c: registered new driver hub usb-uhci.c: $Revision: 1.275 $ time 02:07:41 Feb 19 2004 usb-uhci.c: High bandwidth mode enabled PCI: Found IRQ 10 for device 00:10.0 PCI: Sharing IRQ 10 with 00:08.0

Linux

5

DanPopa

PCI: Sharing IRQ 10 with 00:08.1 PCI: Sharing IRQ 10 with 00:12.0 usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 10 usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 1 hub.c: USB hub found hub.c: 2 ports detected PCI: Found IRQ 3 for device 00:10.1 usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 3 usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 2 hub.c: USB hub found hub.c: 2 ports detected PCI: Found IRQ 11 for device 00:10.2 PCI: Sharing IRQ 11 with 00:0a.0 PCI: Sharing IRQ 11 with 00:11.5 usb-uhci.c: USB UHCI at I/O 0xdc00, IRQ 11 usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 3 hub.c: USB hub found hub.c: 2 ports detected usb-uhci.c: v1.275:USB Universal Host Controller Interface driver PCI: Found IRQ 5 for device 00:10.3 PCI: Sharing IRQ 5 with 00:0b.0 ehci_hcd 00:10.3: VIA Technologies, Inc. USB 2.0 ehci_hcd 00:10.3: irq 5, pci mem f0888000 usb.c: new USB bus registered, assigned bus number 4 ehci_hcd 00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003Dec-29/2.4 hub.c: USB hub found hub.c: 6 ports detected usbdevfs: remount parameter error usb.c: registered new driver usblp printer.c: v0.13: USB Printer Device Class driver i2c-core.o: i2c core module version 2.6.1 (20010830) i2c-algo-bit.o: i2c bit algorithm module Linux video capture interface: v1.00