Coder Social home page Coder Social logo

wanzysky / csc256-mp2-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jtcriswell/csc256-mp2

0.0 1.0 0.0 183.68 MB

Repository for Linux Source Code for Machine Problem 2

Makefile 0.26% C 96.40% Shell 0.21% Roff 0.02% Assembly 1.21% C++ 1.33% Objective-C 0.27% Perl 0.12% Awk 0.01% Python 0.12% sed 0.01% Yacc 0.02% Lex 0.01% UnrealScript 0.01% SmPL 0.02% Gherkin 0.01% XS 0.01% Perl 6 0.01% Clojure 0.01% M4 0.01%

csc256-mp2-1's Introduction

Linux Source Code for CSC 256/456

This repository contains the Linux source code for CSC 256/456.

Downloading additional files

Students will need the OpenWRT hard disk image. The getfiles.sh script will download and unpack these files from the course web page. Simply execute the command:

o sh getfiles.sh

In case students want to get the files by hand, the information is below:

o The OpenWRT image that we use for our virtual machine is at http://www.cs.rochester.edu/courses/256/fall2015/QDGL/openwrt-15.05-x86-generic-combined-ext4.img

Compiling the kernel

To compile the kernel, cd into the linux-5.3.2 directory. Use the following commands the first time you build the kernel:

o cd linux-5.3.2

o make mrproper

o cp ../csc256.config .config

o make bzImage

Subsequent kernel compiles can be done just by using:

o make bzImage

The first kernel compile will take some time. Subsequent kernel compiles will take less time as the kernel build system will only recompile files that have changed (or that use header files that have changed).

If your system has multiple processors, you can use the -j option to GNU make to compile files in parallel. Just remember to be kind to your fellow students; don't specify too large a number with the -j option.

Running QEMU

The runqemu.sh script will launch QEMU with the needed command-line options. With no arguments, it will boot the OpenWRT disk image with the default kernel residing on the image. Alternatively, students can provide the pathname to their Linux kernel, and runqemu.sh will boot their kernel instead. The kernel is in the file linux-5.3.2/arch/x86_64/boot/bzImage.

Importing files into the QEMU virtual machine

Files in the floppy directory will appear as a hard disk within the virtual machine. To mount the hard disk, use the command:

o mount -t msdos /dev/sdb1 /mnt

The contents of the directory floppy should appear in /mnt.

Be sure to use the following command to unmount the hard disk device before shutting down the virtual machine:

o unmount /mnt

csc256-mp2-1's People

Contributors

jtcriswell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.