How many of you have never built a NetBSD kernel?
|
|
- Louisa Clark
- 5 years ago
- Views:
Transcription
1 A Smart Port Card Tutorial - The Exercises John DeHart Washington University jdd@arl.wustl.edu 1 Question? How many of you have never built a NetBSD kernel? 2 page 1
2 Exercises Outline Download a kernel Build a kernel for the SPC Modify a file system Build a file system from scratch Configure an SPC for IP connectivity Install the SPC hardware in a Switch Use completely separate set of switches from other exercises Do this as you have free time throughout SATURDAY 3 Open Exercises: If time permits... things we have not done yet things we can discuss and/or start working on. Building a kernel - you add the SPC mods Download program using AAL5 frames Investigate Linux kernel for SPC 4 page 2
3 Setup We need to divide into 7 Groups: Each group gets its own: login (spc1, spc2, spc3, spc7 passwords: Spc1Tut, Spc2Tut, ) switch with SPC already installed on Port 4 PC with PC APIC connected to Port 3 /usr/spc directory tree WUGS Switch Port 1 Port 0 Port 2 Port 7 APIC Fiber Pair 2 Serial Cables Port 3 SPC/ Port 4 Port 6 Port 5 5 Directory Tree for each Group: /usr/spc/netbsd NetBSD source directories /usr/spc /bin WUGS and SPC utilities binaries /usr/spc /boot_loader Source for SPC boot loader /usr/spc /configuration GBNSC config files and Jammer scripts /usr/spc /download Directory from which to download kernels /usr/spc /root_wdir Directory for portion of kernel build done as root /usr/spc /spc_utilities Source code for SPC utilities 6 page 3
4 Directory Tree for each Group: WUGS Utilities: GBNSC Jammer GBNSC config file Jammer script for configuring switch SPC Utilities: resetspc download_apic download_eni mknl: make symbol-only netbsd mkimg: make BSS image download directory pre-built bootloader boot.out bit file Pre-built kernel spckernel/netbsd.bss.orig SPC kernel source tree non-spc kernel source tree Scripts for building kernel SPC Filesystem 7 Exercise 1: Kernel Downloading page 4
5 Exercise 1 - Download and boot a Kernel Reset switch Run GBNSC and Jammer to configure switch: as root: > cd /usr/spc/configuration > sh config.apic.connections as regular user: > cd /usr/spc/configuration >../bin/gbnsc -r -a config.switch.apic & >../bin/jammer 0.1 wooster 3551 SPC_Control.js 9 Exercise 1 - continued Configure the PC (/etc/remote) so you can use tip: spc1:dv=/dev/tty01:dc:br#9600:pa=none spc0:dv=/dev/tty00:dc:br#9600:pa=none Start the tip processes in two separate windows as root: > tip spc0 > tip spc1 10 page 5
6 Exercise 1 - continued Download bootloader and kernel > cd /usr/spc/download >../bin/download_apic -a download will take 4-5 minutes make sure you see this fairly quickly: boot loader started, sleep(2) Sending entire kernel...sendfile(filename=netbsd.bss, load_addr = 0x100000, start = 0x0, sendlen = 0x ) while you re waiting look at the scripts and source code: /usr/spc/configuratoin/spc_control.js Look at the WUGS connections to get to the SPC /usr/spc/spc_utilities/download_apic/main.cc 11 Exercise 1 - continued Boot to multi-user mode When you see this: Enter pathname of shell or RETURN for sh: hit <return> Then at # prompt, type exit Log in as root (no password) on the serial console Use Terminal Type: vt100 Notice which port is the console port. tty00 or tty01? Check the size of the netbsd kernel in the file system: > ls -l /netbsd > du -s /netbsd Check the size of the file system: > df -k / While looking at your watch, try this: > sleep 20 what is the effect of these SPCs running at 25 MHz? Why? 12 page 6
7 Send a reset control cell Exercise 1 - continued > /usr/spc/bin/resetspc -a See that the serial console is now dead Why does resetspc hang? Look at code... Kill it with a <ctrl-c> Download bootloader and kernel again See boot messages in tip window 13 Exercise 2: Kernel and Filesystem Building page 7
8 Exercise 2A - Building a kernel Do these steps as regular user (i.e. not as root) Make sure the kern and pci source code is configured: > cd /usr/spc/netbsd/usr/src/sys/kern > make init_sysent.c > cd../dev/pci > make -f Makefile.pcidevs Kernel config file provided: /usr/spc/netbsd/usr/src/sys/arch/i386/conf/spc_24mb > cd /usr/spc/netbsd/usr/src/sys/arch/i386/conf > config SPC_24MB > cd../compile/spc_24mb > make depend 15 Exercise 2A - Building a kernel (con t) Three shell scripts are provided: mk.1, mk.2, mk.3 Its easier for this part if you have two windows open root window in directory /usr/spc/root_wdir regular user window in directory: /usr/spc/netbsd/usr/src/sys/arch/i386/compile/spc_24mb Stage 1: mk.1: run as regular user performs make to build kernel may take several minutes: take a look at mk.1, mk.2, mk.3 while you are waiting where does the kernel file end up when it is ready for download? > cd /usr/spc/netbsd/usr/src/sys/arch/i386/compile/spc_24mb/ >../mk.1 16 page 8
9 Exercise 2A - Building a kernel (con t) Stage 2: mk.2 run as root inserts symbol-only copy of /netbsd into filesystem > cd /usr/spc/root_wdir >./mk.2 Stage 3: mk.3 run as regular user copies filesystem into netbsd kernel file takes a couple of minutes... > cd /usr/spc/netbsd/usr/src/sys/arch/i386/compile/spc_24mb/ >../mk.3 Download bootloader and kernel again don t forget to reset SPC and if you use resetspc, don t forget to kill it with <ctrl-c> 17 Exercise 2B - Modifying a kernel Modify the kernel Change kernel so it boots to multi-user mode look in sys/arch/i386/i386/md_root.c (search for SINGLE) Change timing of clock in system FPGA look at: sys/arch/i386/isa/timerreg.h (#define TIMER_FREQ) add a kernel config file option to change TIMER_FREQ If needed, configure switch as in Exercise 1 Rebuild your kernel You will need to do a > make clean in the compile/spc_24mb directory If needed, configure switch as in Exercise 1 If needed, send reset control cell to SPC Download bootloader and kernel Log in via serial port Check the file system and verify that it is what you built 18 page 9
10 Exercise 2C - Modify a file system Modify the SPC Filesystem (as root, be careful...) > cd /usr/spc/root_wdir > vnconfig -t spc24mb -v -c /dev/vnd0d SPC24MB.fs > mount /dev/vnd0d /mnt > cd /mnt/etc Put something in it that will tell you that it is yours e.g. a file in /mnt/etc/<your_name> Change console to other TTY port modify /mnt/etc/ttys (in SPC filesystem) also change default terminal type for non-console tty to vt100 also need to change the kernel config file and re-run config > umount /mnt > vnconfig -u /dev/vnd0d 19 Exercise 2C - Modify a file system (con t) Rebuild your kernel If needed, configure switch as in Exercise 1 If needed, send reset control cell to SPC Download bootloader and kernel Log in via serial port Check the file system and verify that it is what you built 20 page 10
11 Exercise 2D - Build a file system Build your own Filesystem from scratch Edit /etc/disktab to create a new sized disk: 18MB. spc18mb spc18mbkernspc Kernel FileSystem Disk:\ :ty=simulated:se#512:nt#16:rm#300:ns#27:nc#80:\ :pa#34560:oa#0:ba#4096:fa#512:ta=4.2bsd:\ :pb#34560:ob#0:\ :pc#34560:oc#0: > cd /usr/spc/root_wdir Use dd(1) to create a file > dd if=/dev/zero of=<filename> count=<numblocks> Use vnconfig(1) to configure the file as a vnode disk > vnconfig -t <disktab entry> -v -c /dev/vnd0d <filename> Use disklabel (1) to give it a label > disklabel -rw /dev/vnd0d <disktab entry> <label> > disklabel -r /dev/vnd0d Use newfs(1) to put a filesystem on the disk > newfs -m 0 -o space -i c 54 -T <disktab entry> /dev/rvnd0a 21 Exercise 2D - Build a file system (con t) Mount it. > mount /dev/vnd0a /mnt Populate the disk: Use mknod(1) to make devices in /dev directory see next page for details! Mount the original SPC filesystem we used before on /mnt1 > vnconfig -t spc24mb -v -c /dev/vnd1d <original filesystem filename> > mount /dev/vnd1d /mnt1 if /mnt1 does not exists you may have to create it with mkdir Look through /mnt1/* and populate your filesystem from there Useful command, this does a tar(1) from directory to directory: > cd <dir1>; tar cf -. (cd <dir2>; tar xfbp -) Unmount > umount /mnt > vnconfig -u /dev/vnd0d > umount /mnt1 > vnconfig -u /dev/vnd1d 22 page 11
12 Exercise 2D - (con t) : mknod(1) Devices > cd /mnt > mkdir dev > cd dev > mknod bpf0 c 23 0 > mknod bpf1 c 23 1 > mknod bpf2 c 23 2 > mknod bpf3 c 23 3 > mknod console c 0 0 > mknod drum c 4 0 > mknod io c 2 14 > mknod klog c 7 0 > mknod kmem c 2 1 > mknod lkm c 28 0 > mknod mem c 2 0 > mknod null c 2 2 > mknod ptyp0 c 6 0 > mknod ptyp1 c 6 1 > mknod ptyp2 c 6 2 > mknod ptyp3 c 6 3 > mknod rmd0a c 24 0 > mknod rmd0b c 24 1 > mknod rmd0c c 24 2 > mknod stderr c 22 2 > mknod stdin c 22 0 > mknod stdout c 22 1 > mknod tty c 1 0 > mknod tty00 c 8 0 > mknod tty01 c 8 1 > mknod ttyp0 c 5 0 > mknod ttyp1 c 5 1 > mknod ttyp2 c 5 2 > mknod ttyp3 c 5 3 > mknod zero c 2 12 > mknod md0a b 17 0 > mknod md0b b 17 1 > chmod 600 console > chmod 640 drum > chmod 640 io > chmod 600 klog > chmod 640 kmem > chmod 640 mem > chmod 666 null > chmod 640 md0a > chmod 640 md0b > chmod 640 md0c > chmod 640 rmd0a > chmod 640 rmd0b > chmod 640 rmd0c > chmod 666 stderr > chmod 666 stdin > chmod 666 stdout > mknod md0c b 17 2 > chmod 666 tty > chmod 644 tty00 > chmod 644 tty01 > chmod 666 zero 23 Exercise 2D - (con t) : mknod(1) Devices > cd /mnt > mkdir dev > cd dev > mknod bpf0 c 23 0 > mknod bpf1 c 23 1 > mknod bpf2 c 23 2 > mknod bpf3 c 23 3 > mknod console c 0 0 > mknod drum c 4 0 > mknod io c 2 14 > mknod klog c 7 0 > mknod kmem c 2 1 > mknod lkm c 28 0 > mknod mem c 2 0 > mknod null c 2 2 > mknod ptyp0 c 6 0 > mknod ptyp1 c 6 1 > mknod ptyp2 c 6 2 > mknod ptyp3 c 6 3 > mknod rmd0a c 24 0 > mknod rmd0b c 24 1 > mknod rmd0c c 24 2 > mknod stderr c 22 2 > mknod stdin c 22 0 > mknod stdout c 22 1 > mknod tty c 1 0 > mknod tty00 c 8 0 > mknod tty01 c 8 1 > mknod ttyp0 c 5 0 > mknod ttyp1 c 5 1 > mknod ttyp2 c 5 2 > mknod ttyp3 c 5 3 > mknod zero c 2 12 > mknod md0a b 17 0 > mknod md0b b 17 1 > chmod 600 console > chmod 640 drum > chmod 640 io > chmod 600 klog > chmod 640 kmem > chmod 640 mem > chmod 666 null > chmod 640 md0a > chmod 640 md0b > chmod 640 md0c > chmod 640 rmd0a > chmod 640 rmd0b > chmod 640 rmd0c > chmod 666 stderr > chmod 666 stdin > chmod 666 stdout OK, OK. There is a script for this. /usr/spc/bin/mknods > mknod md0c b 17 2 > chmod 666 tty > chmod 644 tty00 > chmod 644 tty01 > chmod 666 zero 24 page 12
13 Exercise 2D - Build a file system (con t) Rebuild your kernel Change the kernel config file Look through the make scripts to change filesystem Re-config and re-make the kernel If needed, configure switch as in Exercise 1 If needed, send reset control cell to SPC Download bootloader and kernel Log in via serial port Check the file system and verify that it is what you built Keep it running while you go on to next exercise Exercise 3: IP Configuration page 13
14 Exercise 3A - IP Between SPC and PC Save any changes you make for the SPC in your filesystem Configure an IP address for the SPC s APIC > ifconfig Configure an IP address for the PC s APIC Configure an APIC connection on each > atm_ifconfig Add routes on PC and SPC: > route add... Configure the necessary WUGS connection(s) 27 Exercise 3A - IP Address Assignments Team PC APIC IP Address SPC APIC IP Address > cat filename telnet postscript.cs page 14
15 Exercise 3A - IP Between SPC and PC Try to ping Iterate until you can ping from PC to SPC Tools for debugging the IP connection: netstat APIC readcounts utility /usr/local/bin/readcounts on both PC and SPC WUGS cell counters (Jammer) Turn on telnetd edit /etc/inetd.conf on SPC kill -HUP <inetd pid> iterate until you can telnet from PC to SPC Be patient on some machines telnet seems to take a while to connect. Not sure why yet Exercise 3A - IP Between SPC and PC Make sure you have saved all your changes Reset switch Rebuild kernel with your newly modified filesystem and re-download. Does it still work page 15
16 Exercise 3B - IP Between Neighbor SPCs Use SPCs as routers: Domain PC PC Domain SPC SPC Exercise 3B - IP Between Neighbor SPCs Save any changes you make for the SPC in your filesystem Configure an IP address alias for the SPC s APIC to put it in the neighboring SPC s domain > ifconfig alias Remove the network route that the above caused: > route delete -net Configure an APIC connection on each SPC > atm_ifconfig Add routes on PC and SPC: > route add... Configure the necessary WUGS connection(s) 32 page 16
17 Exercise 3B - IP Between Neighbor SPCs Try to ping Iterate until you can ping from PC to neighbor PC Tools for debugging the IP connection: netstat APIC readcounts utility (/usr/local/bin/readcounts on SPC) WUGS cell counters Make sure you have saved all your changes Reset switch Rebuild kernel with your newly modified filesystem and re-download. Does it still work Exercise 4: Hardware Installation page 17
18 Exercise 4 - Installing an SPC in a Switch Power Off Open Switch Removing Glink Line Card from Port 4 or 5 Install SPC Install Serial Cables, feed in through front panel Re-Install Glink Line Card on top of SPC Close Switch Connect serial cables to PC Power On Download and Boot Kernel Tom will provide a Slide or two 35 Open Exercises page 18
19 Open Exercises: SPC Mods for NetBSD Do this first if you are interested in SPC/Linux Compare kernel config files: /usr/spc/netbsd/usr/src/sys/arch/i386/conf/spc_24mb /usr/spc/netbsd/usr/src/sys/arch/i386/conf/apic_1_4_1 Note the major differences Find the network devices in both. Anything interesting? Compare source files: /usr/spc/netbsd/usr.orig /usr/spc/netbsd/usr Directories where there are differences: sys/arch/i386/i386 sys/arch/i386/isa sys/dev/ic sys/dev/pci sys/ Open Exercises: AAL5 Download Program currently we download via APIC control cells 16 bytes of data per cell send one cell, wait for response cell before sending next one slow: 4-5 minutes for a 24MB kernel Preferred method would be AAL5 Use APIC Control cells to configure AAL5 descriptors Send Kernel in AAL5 frames to SPC Read it back to verify? 38 page 19
20 Open Exercises: Linux Kernel for the SPC ONLY if you are already familiar with NetBSD/SPC mods ONLY if you are already VERY familiar with Linux Kernel Changes: Memory Disk Serial port console APIC Configuration by APIC driver System FPGA impact: Timer configuration RTC requirements Serial port configuration Static IRQ assignment Download and Boot Boot loader Other things that Linux expects from the BIOS or bootloader? 39 page 20
The Washington University Smart Port Card
The Washington University Smart Port Card John DeHart Washington University jdd@arl.wustl.edu http://www.arl.wustl.edu/~jdd 1 SPC Personnel Dave Richard - Overall Hardware Design Dave Taylor - System FPGA
More informationSPC and Crossbow. John DeHart Acknowledgements
SPC and Crossbow John DeHart jdd@arl.wustl.edu January 10, 2001 WUGS Kits Workshop Washington 1 Acknowledgements Special Thanks to: Sumi Choi Anshul Kantawala Fred Kuhns Samphel Norden Jyoti Parwatikar
More informationWashington WASHINGTON UNIVERSITY IN ST LOUIS
NetBSD Installation Procedure NetBSD Installation for the Washington University Gigabit Switch Kits Program Presented by: jdd@arl.wustl.edu http://www.arl.wustl.edu/~jdd http://www.arl.wustl.edu/arl Applied
More informationEmbedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island
Embedded Linux Systems Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Generic Embedded Systems Structure User Sensors ADC microcontroller
More informationA Smart Port Card Tutorial --- Hardware
A Smart Port Card Tutorial --- Hardware John DeHart Washington University jdd@arl.wustl.edu http://www.arl.wustl.edu/~jdd 1 References: New Links from Kits References Page Intel Embedded Module: Data Sheet
More informationOutline. Cgroup hierarchies
Outline 4 Cgroups 4-1 4.1 Introduction 4-3 4.2 Cgroups v1: hierarchies and controllers 4-16 4.3 Cgroups v1: populating a cgroup 4-24 4.4 Cgroups v1: a survey of the controllers 4-38 4.5 Cgroups /proc files
More informationOutline. Cgroup hierarchies
Outline 15 Cgroups 15-1 15.1 Introduction to cgroups v1 and v2 15-3 15.2 Cgroups v1: hierarchies and controllers 15-17 15.3 Cgroups v1: populating a cgroup 15-24 15.4 Cgroups v1: a survey of the controllers
More informationList of Linux Commands in an IPm
List of Linux Commands in an IPm Directory structure for Executables bin: ash cpio false ln mount rm tar zcat busybox date getopt login mv rmdir touch cat dd grep ls perl sed true chgrp df gunzip mkdir
More informationChecking Resource Usage in Fedora (Linux)
Lab 5C Checking Resource Usage in Fedora (Linux) Objective In this exercise, the student will learn how to check the resources on a Fedora system. This lab covers the following commands: df du top Equipment
More informationLinux Systems Administration Getting Started with Linux
Linux Systems Administration Getting Started with Linux Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International
More informationDTK2410 Specification
version 1.0 DIGNSYS Inc. FEATURES Hardware DTK2410 reference board Reference board for embedded application SAMSUNG S3C2410 MCU NOR/NAND Flash and SDRAM USB host and device UART interface JTAG interface
More informationLinux Command Line Primer. By: Scott Marshall
Linux Command Line Primer By: Scott Marshall Draft: 10/21/2007 Table of Contents Topic Page(s) Preface 1 General Filesystem Background Information 2 General Filesystem Commands 2 Working with Files and
More informationChapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories
Chapter Two Exploring the UNIX File System and File Security Lesson A Understanding Files and Directories 2 Objectives Discuss and explain the UNIX file system Define a UNIX file system partition Use the
More informationWelcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions
Welcome to getting started with Ubuntu 12.04 Server. This System Administrator Manual guide to be simple to follow, with step by step instructions with screenshots INDEX 1.Installation of Ubuntu 12.04
More informationGNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018
GNU/Linux 101 Casey McLaughlin Research Computing Center Spring Workshop Series 2018 rccworkshop IC;3df4mu bash-2.1~# man workshop Linux101 RCC Workshop L101 OBJECTIVES - Operating system concepts - Linux
More information1. Conventions in this tutorial Introduction Check and change configuration settings as needed Start Digi ESP...
This tutorial introduces the power and features of Digi ESP for Embedded Linux as a development environment. It shows how to create a simple Linux application, transfer it to a target development board,
More informationECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017
ECE 550D Fundamentals of Computer Systems and Engineering Fall 2017 The Operating System (OS) Prof. John Board Duke University Slides are derived from work by Profs. Tyler Bletsch and Andrew Hilton (Duke)
More informationCrash Course in Unix. For more info check out the Unix man pages -orhttp://www.cs.rpi.edu/~hollingd/unix. -or- Unix in a Nutshell (an O Reilly book).
Crash Course in Unix For more info check out the Unix man pages -orhttp://www.cs.rpi.edu/~hollingd/unix -or- Unix in a Nutshell (an O Reilly book). 1 Unix Accounts To access a Unix system you need to have
More informationFilesystem Hierarchy Operating systems I800 Edmund Laugasson
Filesystem Hierarchy Operating systems I800 Edmund Laugasson edmund.laugasson@itcollege.ee There has been used materials from Margus Ernits, Katrin Loodus when creating current slides. Current document
More informationShort Read Sequencing Analysis Workshop
Short Read Sequencing Analysis Workshop Day 2 Learning the Linux Compute Environment In-class Slides Matt Hynes-Grace Manager of IT Operations, BioFrontiers Institute Review of Day 2 Videos Video 1 Introduction
More informationUNIX System Administration
$!... 14:13 $$... 14:13.netrc...12:27-28 /etc/fstab... 6:25 /etc/hosts.equiv... 8:23 /etc/inittab Entries... 4:8 /etc/netmasks... 8:22 /etc/shells... 12:25 /home... 6:69 /tmp...6:61-67 /usr... 6:70 /var...
More informationML410 VxWorks Workbench BSP and System Image Creation for the BSB Design Using EDK 8.2i SP2. April
ML410 VxWorks Workbench BSP and System Image Creation for the BSB Design Using EDK 8.2i SP2 April 2007 Overview Hardware Setup Software Setup & Requirements Generate VxWorks BSP Create VxWorks Project
More informationChapter-3. Introduction to Unix: Fundamental Commands
Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system
More informationIBM AIX Basic Operations V5.
IBM 000-190 AIX Basic Operations V5 http://killexams.com/exam-detail/000-190 QUESTION: 122 Which of the following options describes the rm -i command? A. It removes and reports the file names it removes.
More informationWeek 5 Lesson 5 02/28/18
Week 5 Lesson 5 02/28/18 Important Announcements Extra Credits If you haven t done so, send your pictures to risimms@cabrillo.edu for 3 points EXTRA CREDIT. Join LinkedIn for 3 points Perkins/VTEA Survey
More informationLab 1: Introduction to Linux Networking
CMPE 150: Introduction to Computer Networks Fall 2011 http://courses.soe.ucsc.edu/courses/cmpe150/fall11/01/ Lab 1: Introduction to Linux Networking Materials: Please bring a USB drive to each lab section.
More informationML410 VxWorks BSP and System Image Creation for the BSB Design Using EDK 8.2i SP1. April
ML410 VxWorks BSP and System Image Creation for the BSB Design Using EDK 8.2i SP1 April 2007 Overview Hardware Setup Software Setup & Requirements Generate VxWorks BSP Create VxWorks Project Create VxWorks
More informationITEC451 Network Design & Analysis Laboratory Guide: Appendix
Linux Guide Accessing the command prompt Before you can access the command prompt, you must login to the system. The administrative user on Linux machines is named root. On most Linux distributions, you
More informationIntroduction to the shell Part II
Introduction to the shell Part II Graham Markall http://www.doc.ic.ac.uk/~grm08 grm08@doc.ic.ac.uk Civil Engineering Tech Talks 16 th November, 1pm Last week Covered applications and Windows compatibility
More informationThe Unix Shell & Shell Scripts
The Unix Shell & Shell Scripts You should do steps 1 to 7 before going to the lab. Use the Linux system you installed in the previous lab. In the lab do step 8, the TA may give you additional exercises
More informationCS197U: A Hands on Introduction to Unix
CS197U: A Hands on Introduction to Unix Lecture 3: UNIX Operating System Organization Tian Guo CICS, Umass Amherst 1 Reminders Assignment 2 is due THURSDAY 09/24 at 3:45 pm Directions are on the website
More informationRocketRAID 2680 SAS Controller FreeBSD Installation Guide
RocketRAID 2680 FreeBSD Installation Guide RocketRAID 2680 SAS Controller FreeBSD Installation Guide Version 1.0 Copyright HighPoint Technologies, Inc. All rights reserved. Last updated on August 19, 2008
More informationUpgrade Cisco Interface Module for LoRaWAN IXM using the Console
Upgrade Cisco Interface Module for LoRaWAN IXM using the Console Contents Introduction Prerequisites Requirements Components Used Background Information Configure Step 1. Prepare the firmware images (and
More informationLAB #7 Linux Tutorial
Gathering information: LAB #7 Linux Tutorial Find the password file on a Linux box Scenario You have access to a Linux computer. You must find the password file on the computer. Objective Get a listing
More informationUNIX System Programming Lecture 3: BASH Programming
UNIX System Programming Outline Filesystems Redirection Shell Programming Reference BLP: Chapter 2 BFAQ: Bash FAQ BMAN: Bash man page BPRI: Bash Programming Introduction BABS: Advanced Bash Scripting Guide
More informationCross-compilation with Buildroot
Instituto Superior de Engenharia do Porto Mestrado em Engenharia Eletrotécnica e de Computadores Arquitetura de Computadores Cross-compilation with Buildroot Introduction Buildroot is a tool that can be
More informationOperating Systems 2014 Assignment 4: File Systems
Operating Systems 2014 Assignment 4: File Systems Deadline: Sunday, May 25 before 23:59 hours. 1 Introduction A disk can be accessed as an array of disk blocks, often each block is 512 bytes in length.
More informationCSN08101 Digital Forensics. Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak
CSN08101 Digital Forensics Lecture 4: System Level Disk Control Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak Essential Linux for Forensics You will learn in this lecture: Command Summary:
More informationEssential Unix and Linux! Perl for Bioinformatics, ! F. Pineda
Essential Unix and Linux! Perl for Bioinformatics, 140.636! F. Pineda Generic computer architecture Memory Storage Fig. 1.2 From Designing Embedded Hardware, 2 nd Ed. by John Catsoulis OS concepts Shell
More informationSetting up PostgreSQL
Setting up PostgreSQL 1 Introduction to PostgreSQL PostgreSQL is an object-relational database management system based on POSTGRES, which was developed at the University of California at Berkeley. PostgreSQL
More informationManage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)
Manage Directories and Files in Linux Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change Directories and List Directory Contents Create and View
More informationRocketRAID 64xL SAS Controller FreeBSD Installation Guide
RocketRAID 64xL FreeBSD Installation Guide RocketRAID 64xL SAS Controller FreeBSD Installation Guide Version 1.0 Copyright HighPoint Technologies, Inc. All rights reserved. Last updated on December 11,
More information5/20/2007. Touring Essential Programs
Touring Essential Programs Employing fundamental utilities. Managing input and output. Using special characters in the command-line. Managing user environment. Surveying elements of a functioning system.
More informationminit Felix von Leitner September 2004 minit
minit Felix von Leitner felix-minit@fefe.de September 2004 minit What is this all about? This talk is about a new init program called minit. Several itches needed scratching: 1. Typical Linux distributions
More informationFirst of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.
Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If
More informationFirst Steps. DNP/SK18 Embedded Linux Starter Kit
DNP/SK18 Embedded Linux Starter Kit First Steps SSV Embedded Systems Heisterbergallee 72 D-30453 Hannover Phone: +49 (0)511/40 000-0 Fax: +49 (0)511/40 000-40 E-mail: sales@ist1.de Manual Revision: 1.0
More informationCSE 390a Lecture 2. Exploring Shell Commands, Streams, and Redirection
1 CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 2 Lecture summary Unix
More informationCSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80
CSE 303 Lecture 2 Introduction to bash shell read Linux Pocket Guide pp. 37-46, 58-59, 60, 65-70, 71-72, 77-80 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Unix file system structure
More informationTcpdump. For this exercise you must again be root. Login and obtain root privileges: Note that we use three computers for this exercise.
1 For this exercise you must again be root. Login and obtain root privileges: sudo su Note that we use three computers for this exercise. C S H 2 Create an account on the server that can be used from the
More informationINTRODUCTION TO LINUX
INTRODUCTION TO LINUX REALLY SHORT HISTORY Before GNU/Linux there were DOS, MAC and UNIX. All systems were proprietary. The GNU project started in the early 80s by Richard Stallman Goal to make a free
More informationRocketRAID 2680/2684 SAS Controller Red Hat Enterprise/CentOS Linux Installation Guide
RocketRAID 2680/2684 SAS Controller Red Hat Enterprise/CentOS Linux Installation Guide Version 1.0 Copyright 2008 HighPoint Technologies, Inc. All rights reserved. Last updated on November 13, 2008 Table
More informationLinux Command Line Interface. December 27, 2017
Linux Command Line Interface December 27, 2017 Foreword It is supposed to be a refresher (?!) If you are familiar with UNIX/Linux/MacOS X CLI, this is going to be boring... I will not talk about editors
More informationIntroduction to Linux
Introduction to Operating Systems All computers that we interact with run an operating system There are several popular operating systems Operating Systems OS consists of a suite of basic software Operating
More informationIntroduction to Unix. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University
Introduction to Unix Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is an OS? OS is a resource manager Sharing Protection Fairness Performance
More informationTroubleshooting TFTP Problems on Resource Manager Essentials
Troubleshooting TFTP Problems on Resource Manager Essentials Document ID: 18246 Contents Introduction Prerequisites Requirements Components Used Conventions Configuring Configuration Archive for TFTP as
More informationCSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes
CSE 390a Lecture 2 Exploring Shell Commands, Streams, Redirection, and Processes slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 1 2 Lecture
More information3 Connection, Shell Serial Connection over Console Port SSH Connection Internet Connection... 5
Contents 1 Description 2 2 Supported Devices 3 3 Connection, Shell 4 3.1 Serial Connection over Console Port...................... 4 3.2 SSH Connection................................. 4 3.3 Internet Connection...............................
More informationCENG 334 Computer Networks. Laboratory I Linux Tutorial
CENG 334 Computer Networks Laboratory I Linux Tutorial Contents 1. Logging In and Starting Session 2. Using Commands 1. Basic Commands 2. Working With Files and Directories 3. Permission Bits 3. Introduction
More informationRocketRAID 231x/230x SATA Controller Fedora Linux Installation Guide
RocketRAID 231x/230x SATA Controller Fedora Linux Installation Guide Version 1.0 Copyright 2008 HighPoint Technologies, Inc. All rights reserved. Last updated on April 7, 2009 Table of Contents 1 Overview...1
More informationInstalling the Product Software
CHAPTER 1 The Cisco Configuration Engine is a network management software that acts as a configuration service for automating the deployment, management, and upgrading of network devices and services.
More informationINSTALLATION. Security of Information and Communication Systems. Table of contents
Security of Information and Communication Systems INSTALLATION Table of contents 1. Introduction...2 2....3 2.1. Hardware requirement...3 2.2. of the system...3 2.3. of ALCASAR...7 2.4. Connexion to the
More informationThe landscape. File hierarchy overview. A tree structure of directories The directory tree is standardized. But varies slightly among distributions
The landscape David Morgan File hierarchy overview A tree structure of directories The directory tree is standardized But varies slightly among distributions portions can spread across different partitions
More informationRocketRAID 231x/230x SATA Controller Red Hat Enterprise/CentOS Linux Installation Guide
RocketRAID 231x/230x SATA Controller Red Hat Enterprise/CentOS Linux Installation Guide Version 1.0 Copyright 2008 HighPoint Technologies, Inc. All rights reserved. Last updated on November 5, 2008 Table
More informationIntroduction to Unix: Fundamental Commands
Introduction to Unix: Fundamental Commands Ricky Patterson UVA Library Based on slides from Turgut Yilmaz Istanbul Teknik University 1 What We Will Learn The fundamental commands of the Unix operating
More informationIntroduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines
Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical
More informationTable of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs
Summer 2010 Department of Computer Science and Engineering York University Toronto June 29, 2010 1 / 36 Table of contents 1 2 3 4 2 / 36 Our goal Our goal is to see how we can use Unix as a tool for developing
More informationINSTALLATION. Security of Information and Communication Systems
Security of Information and Communication Systems INSTALLATION Table of contents 1.Introduction...2 2.Installation...3 2.1.Hardware requirement...3 2.2.Installation of the system...3 2.3.Installation of
More informationOutline. Structure of a UNIX command
Outline Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission (owner, group, rwx) File and directory
More informationLecture-4. Introduction to Unix: More Commands, Boot-up Actions and X Window
Lecture-4 Introduction to Unix: More Commands, Boot-up Actions and X Window What You Will Learn We continue to give more information about the fundamental commands of the Unix operating system. We also
More informationSystem control mechanisms
System control mechanisms David Morgan System control - boot and after passing kernel boot parameters sysconfig: boot process control /proc and sysctrl: tuning kernel config others controlling default
More informationComputer Systems and Architecture
Computer Systems and Architecture Stephen Pauwels Computer Systems Academic Year 2018-2019 Overview of the Semester UNIX Introductie Regular Expressions Scripting Data Representation Integers, Fixed point,
More informationIntroduction to Linux
Introduction to Linux January 2011 Don Bahls User Consultant (Group Leader) bahls@arsc.edu (907) 450-8674 Overview The shell Common Commands File System Organization Permissions Environment Variables I/O
More informationFedora Linux Installation Guide
RocketRAID 276x SAS Controller Fedora Linux Installation Guide Version 1.1 Copyright 2012 HighPoint Technologies, Inc. All rights reserved. Last updated on May 29, 2012 Table of Contents 1 Overview...
More informationLinux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester
Linux Essentials Programming and Data Structures Lab M Tech CS First Year, First Semester Adapted from PDS Lab 2014 and 2015 Login, Logout, Password $ ssh mtc16xx@192.168.---.--- $ ssh X mtc16xx@192.168.---.---
More informationMaintaining the System Software
CHAPTER 2 This chapter covers the tasks required for maintaining a Content Engine. Upgrading the System Software, page 2-1 Recovering the System Software, page 2-2 Maintaining the Hard Disk Storage, page
More informationThe UNIX File System
The UNIX File System Magnus Johansson May 9, 2007 1 UNIX file system A file system is created with mkfs. It defines a number of parameters for the system, such as: bootblock - contains a primary boot program
More informationEmbedded System Design
Embedded System Design Lecture 10 Jaeyong Chung Systems-on-Chips (SoC) Laboratory Incheon National University Environment Variables Environment variables are a set of dynamic named values that can affect
More informationChapter 6. Boot time configuration. Chapter 6 Boot time configuration
Chapter 6. Boot time configuration Chapter 6 Boot time configuration Last revised: 20/6/2004 Chapter 6 Outline In this chapter we will learn about: How the system boots How to configure the boot loaders
More informationECE 471 Embedded Systems Lecture 10
ECE 471 Embedded Systems Lecture 10 Vince Weaver http://www.eece.maine.edu/ vweaver vincent.weaver@maine.edu 3 October 2013 Announcements Homework #2 has been assigned. extended until the 10th. The due
More informationMINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit
MINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit Jurij Ivastsuk-Kienbaum jurij [at] device-image.de Revision History First draft March 14, 2006 This document describes a setup
More informationCS 1550 Project 3: File Systems Directories Due: Sunday, July 22, 2012, 11:59pm Completed Due: Sunday, July 29, 2012, 11:59pm
CS 1550 Project 3: File Systems Directories Due: Sunday, July 22, 2012, 11:59pm Completed Due: Sunday, July 29, 2012, 11:59pm Description FUSE (http://fuse.sourceforge.net/) is a Linux kernel extension
More informationFormatting 1. Commands starting with $ are Linux console commands on the host PC:
Custom Kernel Guide by Arrvindh Shriraman Last update: April 1, 2016 This document guides the user through: 1. Downloading and compiling the Linux kernel's source code. 2. Running a custom kernel inside
More informationFilesystem Hierarchy and Permissions
and Linux Prepared by Steven Gordon on 19 April 2017 Common/Reports/linux-file-permissions.tex, r1417 1/15 Multiuser and Server Operating System Linux systems are commonly used as a multi-user system E.g.
More informationEECS2301. Lab 1 Winter 2016
EECS2301 Lab 1 Winter 2016 Lab Objectives In this lab, you will be introduced to the Linux operating system. The basic commands will be presented in this lab. By the end of you alb, you will be asked to
More informationSpring 2017 Gabriel Kuri
Lab 2 ECE 431L Spring 2017 Gabriel Kuri This lab is made up of two parts. Part 1 will consist of familiarizing yourself with the Raspberry Pi (RPi). It includes running Unix/Linux commands to become somewhat
More informationIntroduction to remote command line Linux. Research Computing Team University of Birmingham
Introduction to remote command line Linux Research Computing Team University of Birmingham Linux/UNIX/BSD/OSX/what? v All different v UNIX is the oldest, mostly now commercial only in large environments
More informationQEMU and the Linux Kernel
CSC 256/456: Operating Systems QEMU and the Linux Kernel John Criswell! University of Rochester 1 Outline Useful tools! Compiling the Linux Kernel! QEMU! Linux Kernel Details 2 Useful Tools 3 screen Virtual
More informationMy Own Help On Unix Environment
My Own Help On Unix Environment ***** *** * This is my own collection on some tips/hints to help my work on Unix Environment. As my Unix is my second skill, hence the information here is very basic and
More informationPresented by Bill Genske Gary Jackson
Quintessential School Systems Session C Linux Presented by Bill Genske Gary Jackson Copyright Quintessential School Systems, 2009 All Rights Reserved 867 American Street --- Second Floor --- San Carlos,
More informationMills HPC Tutorial Series. Linux Basics II
Mills HPC Tutorial Series Linux Basics II Objectives Bash Shell Script Basics Script Project This project is based on using the Gnuplot program which reads a command file, a data file and writes an image
More informationCREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================
Requirements :: --------------- CREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================ * I prepared my stand alone RTAI for the following hardware configurations.
More informationIntroduction to UNIX Shell Exercises
Introduction to UNIX Shell Exercises Determining Your Shell Open a new window or use an existing window for this exercise. Observe your shell prompt - is it a $ or %? What does this tell you? Find out
More informationUsing grub to Boot various Operating Systems
Operating Systems and Systems Integration Using grub to Boot various Operating Systems Contents 1 Aim 2 2 What You Will Do 2 3 Background 2 3.1 Installing grub in MBR from a floppy, and from the OS........
More informationItron Riva Dev Mini Kit Getting Started Guide
Itron Riva Dev Mini Kit Getting Started Guide Table of Contents Introduction... 1 Host Computer... 2 Connect and Power-up ROOT... 2 Connect and Power-up NODE... 8 Summary and Next Steps... 14 Introduction
More informationThe Microdrive and CF card are electrically compatible this means that a CF card reader can be used to program a Microdrive.
1 This guide is for users wishing to use an embedded system or appliance, such as an Alix board, HP Thin Client (we strongly recommend and have had tremendous success with the HP T5710) with ICOM repeater
More informationCHE3935. Lecture 1. Introduction to Linux
CHE3935 Lecture 1 Introduction to Linux 1 Logging In PuTTY is a free telnet/ssh client that can be run without installing it within Windows. It will only give you a terminal interface, but used with a
More informationMore Raspian. An editor Configuration files Shell scripts Shell variables System admin
More Raspian An editor Configuration files Shell scripts Shell variables System admin Nano, a simple editor Nano does not require the mouse. You must use your keyboard to move around the file and make
More informationbash startup files Linux/Unix files stty Todd Kelley CST8207 Todd Kelley 1
bash startup files Linux/Unix files stty Todd Kelley kelleyt@algonquincollege.com CST8207 Todd Kelley 1 midterms (Feb 27 and April 10) bash startup files More Linux Files review stty 2 We customize our
More informationRocketRAID 2310/2300 Controller Fedora Linux Installation Guide
RocketRAID 2310/2300 Controller Fedora Linux Installation Guide Version 1.1 Copyright 2006 HighPoint Technologies, Inc. All rights reserved. Last updated on Jan 20, 2006 Table of Contents 1 Overview...1
More informationUoW HPC Quick Start. Information Technology Services University of Wollongong. ( Last updated on October 10, 2011)
UoW HPC Quick Start Information Technology Services University of Wollongong ( Last updated on October 10, 2011) 1 Contents 1 Logging into the HPC Cluster 3 1.1 From within the UoW campus.......................
More information