본문 바로가기
Linux

[Ubuntu]OS161 install

by Yoon_estar 2024. 5. 25.
728x90
반응형

OS161 install

1. 필요한 스크립트 다운로드

wget https://people.ece.ubc.ca/~os161/download/cs161-ubuntu-darwin.sh

2. 스크립트 수정

cat cs161-ubuntu-darwin.sh

#/bin/bash

SYS161="sys161-2.0.3"
BINUTILS161="binutils-2.24+os161-2.1"
GCC161="gcc-4.8.3+os161-2.1"
GDB161="gdb-7.8+os161-2.1"
#MIRROR="<http://www.eecs.harvard.edu/~dholland/os161/download>"
MIRROR="<http://www.os161.org/download/>"    //주소 설정

#echo '*** Updating appliance ***'
#update50

echo '*** Installing Ubuntu packages ***'      // 주석 해제
sudo apt-get -y install bmake ncurses-dev libmpc-dev    // 주석 해제

 

3. 스크립트 실행

sh cs161-ubuntu-darwin.sh

4. 소스 코드 다운로드 및 환경 설정

mkdir -p ~/os161/src
cd os161/src

wget <https://people.ece.ubc.ca/~os161/download/os161-CPEN331-base-2016.tar.gz>
tar zxvf os161-CPEN331-base-2016.tar.gz

echo 'PATH=/ubc/ece/home/af/other/os161/tools/sys161/bin:/ubc/ece/home/af/other/os161/tools/os161/bin:$PATH' >> $HOME/.bashrc
source $HOME/.bashrc

5. OS161 컴파일 및 설치

./configure --ostree=$HOME/os161/root

bmake
bmake install

6. 커널 설정 및 컴파일

cd kern/conf
./config DUMBVM

cd ~/os161/src/kern/compile/DUMBVM
bmake depend
bmake
bmake install

7. 시뮬레이터 설정 파일 다운로드 및 OS161 실행

wget people.ece.ubc.ca/os161/download/sys161.conf.sample -O ~/os161/root/sys161.conf

cd ~/os161/root

sys161 kernel
sys161: System/161 release 2.0.3, compiled May 25 2024 08:17:10

OS/161 base system version 1.99.08
Copyright (c) 2000, 2001-2005, 2008-2011, 2013, 2014
President and Fellows of Harvard College.  All rights reserved.

Put-your-group-name-here's system version 0 (DUMBVM #1)

292k physical memory available
Device probe...
lamebus0 (system main bus)
emu0 at lamebus0
ltrace0 at lamebus0
ltimer0 at lamebus0
beep0 at ltimer0
rtclock0 at ltimer0
lrandom0 at lamebus0
random0 at lrandom0
lhd0 at lamebus0
lhd1 at lamebus0
lser0 at lamebus0
con0 at lser0

cpu0: MIPS/161 (System/161 2.x) features 0x0
OS/161 kernel [? for menu]:

 

반응형