SlideShare a Scribd company logo
1	
  
COMP3500:	
  Project	
  2	
  How	
  to	
  install	
  and	
  compile	
  OS/161?	
  
	
  README	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
After	
  installed	
  VirtualBox	
  on	
  my	
  Windows	
  machine,	
  I	
  installed	
  CentOS	
  6.5	
  on	
  VirtualBox.	
  Next,	
  I	
  
successfully	
  installed	
  cs161-­‐binutils-­‐1.4	
  and	
  cs161-­‐gcc-­‐1.5.tar.	
  Unfortunately,	
  I	
  encountered	
  an	
  
error	
  "configure:	
  error:	
  no	
  termcap	
  library	
  found".	
  As	
  Dustin	
  suggested,	
  installing	
  the	
  missing	
  
package	
  can	
  solve	
  this	
  problem.	
  Please	
  use	
  the	
  following	
  command	
  to	
  install	
  the	
  package:	
  
yum install ncurses-devel
You	
  don't	
  have	
  to	
  install	
  CentOS	
  6.5,	
  because	
  I	
  believe	
  that	
  you	
  can	
  install	
  all	
  the	
  OS161	
  tools	
  on	
  
CentOS	
  7.	
  You	
  don't	
  have	
  to	
  install	
  VirtualBox	
  neither.	
  Nevertheless,	
  if	
  you	
  decide	
  to	
  install	
  
CentOS	
  on	
  VirtualBox,	
  please	
  refer	
  to	
  my	
  installation	
  log	
  below.	
  
1.	
  Download	
  CentOS	
  6.5	
  CD	
  ISO	
  image	
  file	
  
Tested	
  on	
  Windows7	
  http://archive.kernel.org/centos-
vault/6.5/isos/i386/
Tested	
  on	
  McOS http://getintopc.com/softwares/operating-
systems/centos-6-5-free-download/
2.	
  Download	
  VirtualBox	
  
https://www.virtualbox.org/wiki/Downloads
	
  
3.	
  Installation	
  of	
  CentOS	
  in	
  VirtualBox	
  
http://teaching.idallen.com/cst8207/14f/notes/000_centos_virtualb
ox_install.html
	
  
4.	
  Install	
  CentOS	
  
4.1	
  	
  Important!	
  	
  When	
  power	
  on	
  (boot)	
  your	
  virtual	
  machine,	
  you	
  should	
  see	
  the	
  CentOS	
  
installation	
  screen.	
  You	
  must	
  click	
  in	
  the	
  window	
  and	
  use	
  the	
  arrow	
  keys	
  to	
  stop	
  the	
  
Automatic	
  boot.	
  
4.2	
  	
  Important!	
  	
  After	
  the	
  installation	
  is	
  down,	
  please	
  reconfigure	
  the	
  Boot	
  Order.	
  Hard	
  
disk	
  first	
  followed	
  by	
  CD/DVD.	
  
5.	
  Create	
  a	
  user	
  account	
  in	
  CentOS	
  and	
  Login	
  CentOS	
  using	
  your	
  newly	
  created	
  account	
  
	
  
6.	
  Become	
  a	
  root	
  using	
  $su	
  and	
  Install:	
  
# yum -y install gcc
# yum -y install gcc-c++
# yum -y install vim-enhanced
# yum -y install emacs
# yum -y install gdb
# yum -y install ethtool
# yum -y install hdparm
# yum -y install pciutils
# yum -y install file
# yum install ncurses-devel
	
  	
  Important!	
  	
  If	
  you	
  don’t	
  install	
  the	
  ncurses-devel	
  package,	
  you	
  will	
  receive	
  an	
  
error	
  message	
  when	
  you	
  install	
  cs161-gdb-1.5 (see	
  also	
  step	
  10).	
  
	
  
2	
  
7.	
  Download	
  OS161	
  tarballs	
  
7.1	
  Create	
  the	
  cs161 directory	
  in	
  your	
  home	
  directory	
  
7.2	
  Download	
  the	
  following	
  tarballs	
  from	
  Canvas	
  and	
  save	
  them	
  in	
  your	
  cs161	
  directory	
  
	
   cs161-binutils-1.4.tar
cs161-gcc-1.5.tar	
  
	
   cs161-gdb-1.5.tar
sys161-1.14.tar.gz
os161-1.10.tar
8.	
  Install cs161-binutils-1.4	
  
cd cs161
tar vfzx cs161-binutils-1.4.tar
cd cs161-binutils-1.4
./toolbuild.sh
9	
  Build	
  the	
  cross	
  compiler	
  
cd ~/cs161
tar vfxz cs161-gcc-1.5.tar
cd cs161-gcc-1.5
./toolbuild.sh
3	
  
	
  
10.	
  Build	
  the	
  special	
  gdb	
  (works)	
  
cd ~/cs161
tar vfxz cs161-gdb-1.5.tar
cd cs161-gdb-1.5
./toolbuild.sh
Error Message: configure: error: no termcap library found	
  
Install	
  the	
  missing ncurses-devel package:	
  
4	
  
Successfully	
  installed	
  cs161-gdb-1.5
	
  
	
  
11.	
  Build	
  the	
  sys161	
  emulator	
  	
  
cd ~/cs161
tar vfxz sys161-1.14.tar.gz
cd sys161-1.14
./configure mipseb
make
make install
	
  
	
  
12.	
  Install	
  os161
	
   12.1	
  Unpack	
  os161-1.10.tar 	
  
	
   	
  	
  	
  	
  	
  	
  tar xvfz os161-1.10.tar.gz	
  
	
  
12.2	
  Configure	
  your	
  tree	
  for	
  the	
  machine	
  on	
  which	
  you	
  are	
  working.	
  We	
  assume	
  that	
  
you	
  work	
  in	
  the	
  directory ~/cs161.  Please	
  note	
  that	
  if	
  you	
  intend	
  to	
  work	
  in	
  a	
  
directory	
  that's	
  not	
  ~/cs161 (which	
  you	
  will	
  be	
  doing	
  when	
  you	
  test	
  your	
  later	
  
submissions),	
  you	
  will	
  have	
  to	
  use	
  the  –ostree option	
  to	
  specify	
  a	
  directory	
  in	
  which	
  
you	
  are	
  working.  ./configure –help explains	
  the	
  other	
  options.	
  
cd ~/cs161/src
./configure
	
   	
  
	
   12.3	
  Configure	
  a	
  kernel	
  named	
  ASST0.	
  
cd ~/cs161/src/kern/conf
./config ASST0
	
  12.4	
  Build	
  the	
  ASST0	
  kernel.	
  (cs161/src/compile).	
  Use	
  ‘echo $PATH’	
  to	
  check	
  
your	
  $PATH.	
  
5	
  
export PATH=~/cs161/bin:$PATH
cd ../compile/ASST0
make depend
make
	
   12.5	
  Install	
  the	
  ASST0	
  kernel.	
  
% make install
	
   	
  
	
   12.6	
  Now	
  also	
  build	
  the	
  user	
  level	
  utilties.	
  
cd ~/cs161/src
make
13.	
  RUN	
  OS161:	
  Change	
  into	
  your	
  root	
  directory.	
  
%cd ~/cs161/root
Run	
  the	
  machine	
  simulator	
  on	
  your	
  operating	
  system.	
  
%./sys161 kernel
	
  
Important!	
  	
  If	
  you	
  receive	
  the	
  following	
  error	
  message	
  “Sys161: Cannot open
config file sys161.conf”,	
  you	
  should	
  download	
  the	
  file	
  sys161.conf from	
  
Canvas	
  and	
  place	
  it	
  in	
  your	
  OS/161	
  root	
  directory	
  (~/cs161/root).
If	
  you	
  successfully	
  run	
  os161,	
  you	
  will	
  have:	
  
6	
  
	
  
At	
  the	
  prompt,	
  type	
  p /sbin/poweroff <return>. This	
  tells	
  the	
  kernel	
  to	
  run	
  the
"poweroff" program	
  that	
  shuts	
  the	
  system	
  down.	
  
	
  

More Related Content

What's hot

XPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARM
XPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARMXPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARM
XPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARM
The Linux Foundation
 
SFO15-TR9: PSCI, ACPI (and UEFI to boot)
SFO15-TR9: PSCI, ACPI (and UEFI to boot)SFO15-TR9: PSCI, ACPI (and UEFI to boot)
SFO15-TR9: PSCI, ACPI (and UEFI to boot)
Linaro
 
Docker Networking
Docker NetworkingDocker Networking
Docker Networking
Kingston Smiler
 
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, XilinxXPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
The Linux Foundation
 
How To Monetise & Bill CloudStack - A Practical Open Approach
How To Monetise & Bill CloudStack - A Practical Open ApproachHow To Monetise & Bill CloudStack - A Practical Open Approach
How To Monetise & Bill CloudStack - A Practical Open Approach
ShapeBlue
 
Memory Mapping Implementation (mmap) in Linux Kernel
Memory Mapping Implementation (mmap) in Linux KernelMemory Mapping Implementation (mmap) in Linux Kernel
Memory Mapping Implementation (mmap) in Linux Kernel
Adrian Huang
 
Docker, LinuX Container
Docker, LinuX ContainerDocker, LinuX Container
Docker, LinuX Container
Araf Karsh Hamid
 
A Introduction of Packer
A Introduction of PackerA Introduction of Packer
A Introduction of Packer
Freyr Lin
 
Installing and Configuring Domino 10 on CentOS 7
Installing and Configuring Domino 10 on CentOS 7Installing and Configuring Domino 10 on CentOS 7
Installing and Configuring Domino 10 on CentOS 7
Devin Olson
 
BusyBox for Embedded Linux
BusyBox for Embedded LinuxBusyBox for Embedded Linux
BusyBox for Embedded Linux
Emertxe Information Technologies Pvt Ltd
 
Systemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to loveSystemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to love
Alison Chaiken
 
HKG15-107: ACPI Power Management on ARM64 Servers (v2)
HKG15-107: ACPI Power Management on ARM64 Servers (v2)HKG15-107: ACPI Power Management on ARM64 Servers (v2)
HKG15-107: ACPI Power Management on ARM64 Servers (v2)
Linaro
 
既存サーバを後からAnsibleで構成管理する
既存サーバを後からAnsibleで構成管理する既存サーバを後からAnsibleで構成管理する
既存サーバを後からAnsibleで構成管理する
KeijiUehata1
 
OpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and Fanout
OpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and FanoutOpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and Fanout
OpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and Fanout
Saju Madhavan
 
Signature verification of kernel module and kexec
Signature verification of kernel module and kexecSignature verification of kernel module and kexec
Signature verification of kernel module and kexec
joeylikernel
 
Kernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologiesKernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologies
Anne Nicolas
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansible
Khizer Naeem
 
Telosys tutorial - Code generation for a Python web application based on Bott...
Telosys tutorial - Code generation for a Python web application based on Bott...Telosys tutorial - Code generation for a Python web application based on Bott...
Telosys tutorial - Code generation for a Python web application based on Bott...
Laurent Guérin
 
Boosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uringBoosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uring
ShapeBlue
 
Crear una dll en C++ y llamarla con la interfaz C#
Crear una dll en C++ y llamarla con la interfaz C#Crear una dll en C++ y llamarla con la interfaz C#
Crear una dll en C++ y llamarla con la interfaz C#
Ángel Acaymo M. G.
 

What's hot (20)

XPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARM
XPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARMXPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARM
XPDS16: Porting Xen on ARM to a new SOC - Julien Grall, ARM
 
SFO15-TR9: PSCI, ACPI (and UEFI to boot)
SFO15-TR9: PSCI, ACPI (and UEFI to boot)SFO15-TR9: PSCI, ACPI (and UEFI to boot)
SFO15-TR9: PSCI, ACPI (and UEFI to boot)
 
Docker Networking
Docker NetworkingDocker Networking
Docker Networking
 
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, XilinxXPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
 
How To Monetise & Bill CloudStack - A Practical Open Approach
How To Monetise & Bill CloudStack - A Practical Open ApproachHow To Monetise & Bill CloudStack - A Practical Open Approach
How To Monetise & Bill CloudStack - A Practical Open Approach
 
Memory Mapping Implementation (mmap) in Linux Kernel
Memory Mapping Implementation (mmap) in Linux KernelMemory Mapping Implementation (mmap) in Linux Kernel
Memory Mapping Implementation (mmap) in Linux Kernel
 
Docker, LinuX Container
Docker, LinuX ContainerDocker, LinuX Container
Docker, LinuX Container
 
A Introduction of Packer
A Introduction of PackerA Introduction of Packer
A Introduction of Packer
 
Installing and Configuring Domino 10 on CentOS 7
Installing and Configuring Domino 10 on CentOS 7Installing and Configuring Domino 10 on CentOS 7
Installing and Configuring Domino 10 on CentOS 7
 
BusyBox for Embedded Linux
BusyBox for Embedded LinuxBusyBox for Embedded Linux
BusyBox for Embedded Linux
 
Systemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to loveSystemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to love
 
HKG15-107: ACPI Power Management on ARM64 Servers (v2)
HKG15-107: ACPI Power Management on ARM64 Servers (v2)HKG15-107: ACPI Power Management on ARM64 Servers (v2)
HKG15-107: ACPI Power Management on ARM64 Servers (v2)
 
既存サーバを後からAnsibleで構成管理する
既存サーバを後からAnsibleで構成管理する既存サーバを後からAnsibleで構成管理する
既存サーバを後からAnsibleで構成管理する
 
OpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and Fanout
OpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and FanoutOpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and Fanout
OpenStack Oslo Messaging RPC API Tutorial Demo Call, Cast and Fanout
 
Signature verification of kernel module and kexec
Signature verification of kernel module and kexecSignature verification of kernel module and kexec
Signature verification of kernel module and kexec
 
Kernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologiesKernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologies
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansible
 
Telosys tutorial - Code generation for a Python web application based on Bott...
Telosys tutorial - Code generation for a Python web application based on Bott...Telosys tutorial - Code generation for a Python web application based on Bott...
Telosys tutorial - Code generation for a Python web application based on Bott...
 
Boosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uringBoosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uring
 
Crear una dll en C++ y llamarla con la interfaz C#
Crear una dll en C++ y llamarla con la interfaz C#Crear una dll en C++ y llamarla con la interfaz C#
Crear una dll en C++ y llamarla con la interfaz C#
 

Viewers also liked

P#1 stream of praise
P#1 stream of praiseP#1 stream of praise
P#1 stream of praise
Xiao Qin
 
How To Add System Call In Ubuntu OS
How To Add System Call In Ubuntu OSHow To Add System Call In Ubuntu OS
How To Add System Call In Ubuntu OS
Pratik Tambekar
 
Nas'12 overview
Nas'12 overviewNas'12 overview
Nas'12 overview
Xiao Qin
 
An Active and Hybrid Storage System for Data-intensive Applications
An Active and Hybrid Storage System for Data-intensive ApplicationsAn Active and Hybrid Storage System for Data-intensive Applications
An Active and Hybrid Storage System for Data-intensive Applications
Xiao Qin
 
Reliability Analysis for an Energy-Aware RAID System
Reliability Analysis for an Energy-Aware RAID SystemReliability Analysis for an Energy-Aware RAID System
Reliability Analysis for an Energy-Aware RAID System
Xiao Qin
 
How to do research?
How to do research?How to do research?
How to do research?
Xiao Qin
 
COMP2710 Software Construction: header files
COMP2710 Software Construction: header filesCOMP2710 Software Construction: header files
COMP2710 Software Construction: header files
Xiao Qin
 
IPCCC 2012 Conference Program Overview
IPCCC 2012 Conference Program OverviewIPCCC 2012 Conference Program Overview
IPCCC 2012 Conference Program Overview
Xiao Qin
 
OS/161 Overview
OS/161 OverviewOS/161 Overview
OS/161 Overview
Xiao Qin
 
Energy Efficient Data Storage Systems
Energy Efficient Data Storage SystemsEnergy Efficient Data Storage Systems
Energy Efficient Data Storage Systems
Xiao Qin
 
Why Major in Computer Science and Software Engineering at Auburn University?
Why Major in Computer Science and Software Engineering at Auburn University?Why Major in Computer Science and Software Engineering at Auburn University?
Why Major in Computer Science and Software Engineering at Auburn University?
Xiao Qin
 
Thermal modeling and management of cluster storage systems xunfei jiang 2014
Thermal modeling and management of cluster storage systems xunfei jiang 2014Thermal modeling and management of cluster storage systems xunfei jiang 2014
Thermal modeling and management of cluster storage systems xunfei jiang 2014
Xiao Qin
 
Common grammar mistakes
Common grammar mistakesCommon grammar mistakes
Common grammar mistakesXiao Qin
 
Surviving a group project
Surviving a group projectSurviving a group project
Surviving a group project
Xiao Qin
 
COMP2710: Software Construction - Linked list exercises
COMP2710: Software Construction - Linked list exercisesCOMP2710: Software Construction - Linked list exercises
COMP2710: Software Construction - Linked list exercises
Xiao Qin
 
Data center specific thermal and energy saving techniques
Data center specific thermal and energy saving techniquesData center specific thermal and energy saving techniques
Data center specific thermal and energy saving techniques
Xiao Qin
 
Understanding what our customer wants-slideshare
Understanding what our customer wants-slideshareUnderstanding what our customer wants-slideshare
Understanding what our customer wants-slideshare
Xiao Qin
 
Performance Evaluation of Traditional Caching Policies on a Large System with...
Performance Evaluation of Traditional Caching Policies on a Large System with...Performance Evaluation of Traditional Caching Policies on a Large System with...
Performance Evaluation of Traditional Caching Policies on a Large System with...
Xiao Qin
 
HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...
HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...
HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...
Xiao Qin
 

Viewers also liked (19)

P#1 stream of praise
P#1 stream of praiseP#1 stream of praise
P#1 stream of praise
 
How To Add System Call In Ubuntu OS
How To Add System Call In Ubuntu OSHow To Add System Call In Ubuntu OS
How To Add System Call In Ubuntu OS
 
Nas'12 overview
Nas'12 overviewNas'12 overview
Nas'12 overview
 
An Active and Hybrid Storage System for Data-intensive Applications
An Active and Hybrid Storage System for Data-intensive ApplicationsAn Active and Hybrid Storage System for Data-intensive Applications
An Active and Hybrid Storage System for Data-intensive Applications
 
Reliability Analysis for an Energy-Aware RAID System
Reliability Analysis for an Energy-Aware RAID SystemReliability Analysis for an Energy-Aware RAID System
Reliability Analysis for an Energy-Aware RAID System
 
How to do research?
How to do research?How to do research?
How to do research?
 
COMP2710 Software Construction: header files
COMP2710 Software Construction: header filesCOMP2710 Software Construction: header files
COMP2710 Software Construction: header files
 
IPCCC 2012 Conference Program Overview
IPCCC 2012 Conference Program OverviewIPCCC 2012 Conference Program Overview
IPCCC 2012 Conference Program Overview
 
OS/161 Overview
OS/161 OverviewOS/161 Overview
OS/161 Overview
 
Energy Efficient Data Storage Systems
Energy Efficient Data Storage SystemsEnergy Efficient Data Storage Systems
Energy Efficient Data Storage Systems
 
Why Major in Computer Science and Software Engineering at Auburn University?
Why Major in Computer Science and Software Engineering at Auburn University?Why Major in Computer Science and Software Engineering at Auburn University?
Why Major in Computer Science and Software Engineering at Auburn University?
 
Thermal modeling and management of cluster storage systems xunfei jiang 2014
Thermal modeling and management of cluster storage systems xunfei jiang 2014Thermal modeling and management of cluster storage systems xunfei jiang 2014
Thermal modeling and management of cluster storage systems xunfei jiang 2014
 
Common grammar mistakes
Common grammar mistakesCommon grammar mistakes
Common grammar mistakes
 
Surviving a group project
Surviving a group projectSurviving a group project
Surviving a group project
 
COMP2710: Software Construction - Linked list exercises
COMP2710: Software Construction - Linked list exercisesCOMP2710: Software Construction - Linked list exercises
COMP2710: Software Construction - Linked list exercises
 
Data center specific thermal and energy saving techniques
Data center specific thermal and energy saving techniquesData center specific thermal and energy saving techniques
Data center specific thermal and energy saving techniques
 
Understanding what our customer wants-slideshare
Understanding what our customer wants-slideshareUnderstanding what our customer wants-slideshare
Understanding what our customer wants-slideshare
 
Performance Evaluation of Traditional Caching Policies on a Large System with...
Performance Evaluation of Traditional Caching Policies on a Large System with...Performance Evaluation of Traditional Caching Policies on a Large System with...
Performance Evaluation of Traditional Caching Policies on a Large System with...
 
HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...
HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...
HDFS-HC2: Analysis of Data Placement Strategy based on Computing Power of Nod...
 

Similar to Project 2 how to install and compile os161

Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to Kernel
Muhammad Bilal
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012Chukwuma Onyeije, MD, FACOG
 
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01decenttr
 
Linux
LinuxLinux
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vmRon Morgan
 
Virtual box installation
Virtual box installationVirtual box installation
Virtual box installation
Niranjan Pandey
 
Build Moses on Ubuntu (64-bit) in VirtualBox: recorded by Aaron
Build Moses on Ubuntu (64-bit) in VirtualBox: recorded by AaronBuild Moses on Ubuntu (64-bit) in VirtualBox: recorded by Aaron
Build Moses on Ubuntu (64-bit) in VirtualBox: recorded by AaronLifeng (Aaron) Han
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
kmsa
 
Oracle11g on fedora14
Oracle11g on fedora14Oracle11g on fedora14
Oracle11g on fedora14
Khalid Matar Albuflasah
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2
Trinh Tuan
 
Running virtual box from the linux command line
Running virtual box from the linux command lineRunning virtual box from the linux command line
Running virtual box from the linux command line
Eric Javier Espino Man
 
OpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 WorkshopOpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 Workshop
Iban Nieto Castillero
 
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
Building a Two Node SLES 11 SP2 Linux Cluster with VMwareBuilding a Two Node SLES 11 SP2 Linux Cluster with VMware
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
geekswing
 
Installation of ubuntu, ns3 and compiling first
Installation of ubuntu, ns3 and compiling firstInstallation of ubuntu, ns3 and compiling first
Installation of ubuntu, ns3 and compiling first
Jawad Khan
 
Ci For The Web 2.0 Guy Or Gal
Ci For The Web 2.0 Guy Or GalCi For The Web 2.0 Guy Or Gal
Ci For The Web 2.0 Guy Or Gal
Chad Woolley
 
Basics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaBasics of Ansible - Sahil Davawala
Basics of Ansible - Sahil Davawala
Sahil Davawala
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
Information Technology
 

Similar to Project 2 how to install and compile os161 (20)

Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to Kernel
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012
 
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
 
Linux
LinuxLinux
Linux
 
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vm
 
Virtual box installation
Virtual box installationVirtual box installation
Virtual box installation
 
Build Moses on Ubuntu (64-bit) in VirtualBox: recorded by Aaron
Build Moses on Ubuntu (64-bit) in VirtualBox: recorded by AaronBuild Moses on Ubuntu (64-bit) in VirtualBox: recorded by Aaron
Build Moses on Ubuntu (64-bit) in VirtualBox: recorded by Aaron
 
Asterisknow Tutorial
Asterisknow TutorialAsterisknow Tutorial
Asterisknow Tutorial
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
 
Oracle11g on fedora14
Oracle11g on fedora14Oracle11g on fedora14
Oracle11g on fedora14
 
Install guide
Install guideInstall guide
Install guide
 
Install guide
Install guideInstall guide
Install guide
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2
 
Running virtual box from the linux command line
Running virtual box from the linux command lineRunning virtual box from the linux command line
Running virtual box from the linux command line
 
OpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 WorkshopOpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 Workshop
 
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
Building a Two Node SLES 11 SP2 Linux Cluster with VMwareBuilding a Two Node SLES 11 SP2 Linux Cluster with VMware
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
 
Installation of ubuntu, ns3 and compiling first
Installation of ubuntu, ns3 and compiling firstInstallation of ubuntu, ns3 and compiling first
Installation of ubuntu, ns3 and compiling first
 
Ci For The Web 2.0 Guy Or Gal
Ci For The Web 2.0 Guy Or GalCi For The Web 2.0 Guy Or Gal
Ci For The Web 2.0 Guy Or Gal
 
Basics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaBasics of Ansible - Sahil Davawala
Basics of Ansible - Sahil Davawala
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
 

More from Xiao Qin

How to apply for internship positions?
How to apply for internship positions?How to apply for internship positions?
How to apply for internship positions?
Xiao Qin
 
How to write research papers? Version 5.0
How to write research papers? Version 5.0How to write research papers? Version 5.0
How to write research papers? Version 5.0
Xiao Qin
 
Making a competitive nsf career proposal: Part 2 Worksheet
Making a competitive nsf career proposal: Part 2 WorksheetMaking a competitive nsf career proposal: Part 2 Worksheet
Making a competitive nsf career proposal: Part 2 Worksheet
Xiao Qin
 
Making a competitive nsf career proposal: Part 1 Tips
Making a competitive nsf career proposal: Part 1 TipsMaking a competitive nsf career proposal: Part 1 Tips
Making a competitive nsf career proposal: Part 1 Tips
Xiao Qin
 
Auburn csse faculty orientation
Auburn csse faculty orientationAuburn csse faculty orientation
Auburn csse faculty orientation
Xiao Qin
 
Auburn CSSE graduate student orientation
Auburn CSSE graduate student orientationAuburn CSSE graduate student orientation
Auburn CSSE graduate student orientation
Xiao Qin
 
CSSE Graduate Programs Committee: Progress Report
CSSE Graduate Programs Committee: Progress ReportCSSE Graduate Programs Committee: Progress Report
CSSE Graduate Programs Committee: Progress Report
Xiao Qin
 
Reliability Modeling and Analysis of Energy-Efficient Storage Systems
Reliability Modeling and Analysis of Energy-Efficient Storage SystemsReliability Modeling and Analysis of Energy-Efficient Storage Systems
Reliability Modeling and Analysis of Energy-Efficient Storage Systems
Xiao Qin
 

More from Xiao Qin (8)

How to apply for internship positions?
How to apply for internship positions?How to apply for internship positions?
How to apply for internship positions?
 
How to write research papers? Version 5.0
How to write research papers? Version 5.0How to write research papers? Version 5.0
How to write research papers? Version 5.0
 
Making a competitive nsf career proposal: Part 2 Worksheet
Making a competitive nsf career proposal: Part 2 WorksheetMaking a competitive nsf career proposal: Part 2 Worksheet
Making a competitive nsf career proposal: Part 2 Worksheet
 
Making a competitive nsf career proposal: Part 1 Tips
Making a competitive nsf career proposal: Part 1 TipsMaking a competitive nsf career proposal: Part 1 Tips
Making a competitive nsf career proposal: Part 1 Tips
 
Auburn csse faculty orientation
Auburn csse faculty orientationAuburn csse faculty orientation
Auburn csse faculty orientation
 
Auburn CSSE graduate student orientation
Auburn CSSE graduate student orientationAuburn CSSE graduate student orientation
Auburn CSSE graduate student orientation
 
CSSE Graduate Programs Committee: Progress Report
CSSE Graduate Programs Committee: Progress ReportCSSE Graduate Programs Committee: Progress Report
CSSE Graduate Programs Committee: Progress Report
 
Reliability Modeling and Analysis of Energy-Efficient Storage Systems
Reliability Modeling and Analysis of Energy-Efficient Storage SystemsReliability Modeling and Analysis of Energy-Efficient Storage Systems
Reliability Modeling and Analysis of Energy-Efficient Storage Systems
 

Recently uploaded

Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 

Recently uploaded (20)

Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 

Project 2 how to install and compile os161

  • 1. 1   COMP3500:  Project  2  How  to  install  and  compile  OS/161?    README                           After  installed  VirtualBox  on  my  Windows  machine,  I  installed  CentOS  6.5  on  VirtualBox.  Next,  I   successfully  installed  cs161-­‐binutils-­‐1.4  and  cs161-­‐gcc-­‐1.5.tar.  Unfortunately,  I  encountered  an   error  "configure:  error:  no  termcap  library  found".  As  Dustin  suggested,  installing  the  missing   package  can  solve  this  problem.  Please  use  the  following  command  to  install  the  package:   yum install ncurses-devel You  don't  have  to  install  CentOS  6.5,  because  I  believe  that  you  can  install  all  the  OS161  tools  on   CentOS  7.  You  don't  have  to  install  VirtualBox  neither.  Nevertheless,  if  you  decide  to  install   CentOS  on  VirtualBox,  please  refer  to  my  installation  log  below.   1.  Download  CentOS  6.5  CD  ISO  image  file   Tested  on  Windows7  http://archive.kernel.org/centos- vault/6.5/isos/i386/ Tested  on  McOS http://getintopc.com/softwares/operating- systems/centos-6-5-free-download/ 2.  Download  VirtualBox   https://www.virtualbox.org/wiki/Downloads   3.  Installation  of  CentOS  in  VirtualBox   http://teaching.idallen.com/cst8207/14f/notes/000_centos_virtualb ox_install.html   4.  Install  CentOS   4.1    Important!    When  power  on  (boot)  your  virtual  machine,  you  should  see  the  CentOS   installation  screen.  You  must  click  in  the  window  and  use  the  arrow  keys  to  stop  the   Automatic  boot.   4.2    Important!    After  the  installation  is  down,  please  reconfigure  the  Boot  Order.  Hard   disk  first  followed  by  CD/DVD.   5.  Create  a  user  account  in  CentOS  and  Login  CentOS  using  your  newly  created  account     6.  Become  a  root  using  $su  and  Install:   # yum -y install gcc # yum -y install gcc-c++ # yum -y install vim-enhanced # yum -y install emacs # yum -y install gdb # yum -y install ethtool # yum -y install hdparm # yum -y install pciutils # yum -y install file # yum install ncurses-devel    Important!    If  you  don’t  install  the  ncurses-devel  package,  you  will  receive  an   error  message  when  you  install  cs161-gdb-1.5 (see  also  step  10).    
  • 2. 2   7.  Download  OS161  tarballs   7.1  Create  the  cs161 directory  in  your  home  directory   7.2  Download  the  following  tarballs  from  Canvas  and  save  them  in  your  cs161  directory     cs161-binutils-1.4.tar cs161-gcc-1.5.tar     cs161-gdb-1.5.tar sys161-1.14.tar.gz os161-1.10.tar 8.  Install cs161-binutils-1.4   cd cs161 tar vfzx cs161-binutils-1.4.tar cd cs161-binutils-1.4 ./toolbuild.sh 9  Build  the  cross  compiler   cd ~/cs161 tar vfxz cs161-gcc-1.5.tar cd cs161-gcc-1.5 ./toolbuild.sh
  • 3. 3     10.  Build  the  special  gdb  (works)   cd ~/cs161 tar vfxz cs161-gdb-1.5.tar cd cs161-gdb-1.5 ./toolbuild.sh Error Message: configure: error: no termcap library found   Install  the  missing ncurses-devel package:  
  • 4. 4   Successfully  installed  cs161-gdb-1.5     11.  Build  the  sys161  emulator     cd ~/cs161 tar vfxz sys161-1.14.tar.gz cd sys161-1.14 ./configure mipseb make make install     12.  Install  os161   12.1  Unpack  os161-1.10.tar                tar xvfz os161-1.10.tar.gz     12.2  Configure  your  tree  for  the  machine  on  which  you  are  working.  We  assume  that   you  work  in  the  directory ~/cs161.  Please  note  that  if  you  intend  to  work  in  a   directory  that's  not  ~/cs161 (which  you  will  be  doing  when  you  test  your  later   submissions),  you  will  have  to  use  the  –ostree option  to  specify  a  directory  in  which   you  are  working.  ./configure –help explains  the  other  options.   cd ~/cs161/src ./configure       12.3  Configure  a  kernel  named  ASST0.   cd ~/cs161/src/kern/conf ./config ASST0  12.4  Build  the  ASST0  kernel.  (cs161/src/compile).  Use  ‘echo $PATH’  to  check   your  $PATH.  
  • 5. 5   export PATH=~/cs161/bin:$PATH cd ../compile/ASST0 make depend make   12.5  Install  the  ASST0  kernel.   % make install       12.6  Now  also  build  the  user  level  utilties.   cd ~/cs161/src make 13.  RUN  OS161:  Change  into  your  root  directory.   %cd ~/cs161/root Run  the  machine  simulator  on  your  operating  system.   %./sys161 kernel   Important!    If  you  receive  the  following  error  message  “Sys161: Cannot open config file sys161.conf”,  you  should  download  the  file  sys161.conf from   Canvas  and  place  it  in  your  OS/161  root  directory  (~/cs161/root). If  you  successfully  run  os161,  you  will  have:  
  • 6. 6     At  the  prompt,  type  p /sbin/poweroff <return>. This  tells  the  kernel  to  run  the "poweroff" program  that  shuts  the  system  down.