220 likes | 378 Views
Computer System Laboratory. Lab1 - Environment Setup I. Experimental Goal. Install necessary software for coming Labs. Environment. Host System Windows XP Build System VirtualBox + Ubuntu 8.04 Target System Creator XScale PXA270 Software VirtualBox Putty TFTP Server Domingo
E N D
Computer System Laboratory Lab1 - Environment Setup I
Experimental Goal • Install necessary software for coming Labs. / 21
Environment • Host System • Windows XP • Build System • VirtualBox + Ubuntu 8.04 • Target System • Creator XScale PXA270 • Software • VirtualBox • Putty • TFTP Server • Domingo • You can download all software from RSWiki CSL Course Software / 21
Install VirtualBox (1/2) • Please download VirtualBox from https://www.virtualbox.org/ or course website (VirtualBox-4.2.18-88780-Win.exe). • Install VirtualBox. • Using default settings is fine. • Note that the network will be disconnected temporarily during the installation. • The related networking drivers should be installed. / 21
Install VirtualBox (2/2) • After complete installation, you can execute “Oracle VM VirtualBox” to manage your virtual machines. / 21
Create a Virtual Machine in VirtualBox • Step1: click “新增”in “Oracle VM VirtualBox 管理員”. • Step2: create a Ubuntu Linux virtual machine. • Using default settings is fine. • Step3: adjust the sizes of memory and disk for your virtual machine. • The size of disk needs at least 20 GB. / 21
Install Ubuntu 8.04 in VirtualBox (1/2) • Download Ubuntu 8.04 (ubuntu-8.04.4-desktop-i386.iso) from course website. • Step1: start your virtual machine. • Step2: choose the Ubuntu image file for booting from CD/DVD. • “裝置” “CD/DVD 裝置” “選擇虛擬 CD/DVD 磁碟檔案” • Step3: install Ubuntu 8.04. • English version is more stable. • Using default settings is fine. • Change time zone to “Asia” “Taipei”. • Remember to create an account to login Linux. • Now, you can see the Ubuntu 8.04 desktop. / 21
Install Ubuntu 8.04 in VirtualBox (2/2) • To uncaptured the keyboard and the mouse from virtual machine to Windows XP, please press the host key, right ctrl key by default. • In Ubuntu, if you want to execute commands like Linux in CSIE workstation,you can use “Terminal”. • “Applications” “Accessories” “Terminal” • If you want to execute commands with root privilege, you can type “sudo<command>”. • e.g. % sudomkdir /etc/test / 21
Add Share Folders • Step1: create a folder, <shared folder>, in Windows XP. • Step2: install guest additions in Ubuntu 8.04. • “裝置” “安裝 Guest Additions” • Execute the script in Ubuntu 8.04. • % sudo /media/cdrom/VBoxLinuxAdditions.run • Step3: set up the shared folder in VirtualBox. • “裝置”“共享資料夾” • Add a shared folder in “機器資料夾”. • Set the folder name to <shared folder>. • Mark it to be “自動掛載”and “永久性”. • Step4: mount the shared folder in Ubuntu 8.04. • % sudomkdir –p /mnt/<your path> • % sudomount.vboxsf<shared folder> /mnt/<your path> / 21
Test Your Shared Folder • Step1: create a file and a directory in the shared folder, e.g., <mounted folder>, in Ubuntu8.04. • % cd <mounted folder> • % touch test1 • % mkdir test2 • Step2: check your shared folder in Windows XP. / 21
Share Clipboard • After complete installation of guest additions, you can also share clipboard between Windows XP and Ubuntu. • In VirtualBox: • “機器” “設定值” “一般” “進階” • Change the setting of “共用剪貼簿”from “停用”to “雙向”. / 21
Install Putty • Step1: download putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html or course website (putty). • Step2: putty can be executed without installation. / 21
Install TFTP Server (1/2) • Step1: download TFTP server (tftpserver-setup.exe) from our course website and install it. • Please allow the TFTP services executing in the firewall. • Step2: after complete installation, execute “TFTP Server Manager”. • Step3: connect to local TFTP server. / 21
Install TFTP Server (2/2) • Now, you can see the window of “TFTP Server Manager”. • You can change the root virtual folder by “Manage Virtual Folders”. • Files in this virtual folder can be downloaded from TFTP client. • For convenience, you can set the path of virtual folder to the shared folder, i.e., the <shared folder> in slide 9. • The default path is C:\Documents and Settings\All Users\Application Data\WinAgents\TFTP Server 4\TFTPRoot\. / 21
Install Domingo • Step1: download domingo (DomingoforLinux_V131923.iso) from our course website. • Step2: you can mount this image file to virtual CD/DVD drives by DAEMON-tools or directly extract this image by WinRAR. • Step3: click autorun.exe in CD to install. / 21
Create a PXA270 Project in Domingo (1/4) • Step1: after complete installation, execute “Domingo for Linux 1.3”. • Step2: choose “New Project”. / 21
Create a PXA270 Project in Domingo (2/4) • Step3: configure “TargetMachine” and “Processor”. • TargetMachine = Carrier ICE/WINeZ/WIN2K ARM • Processor = PXA270 / 21
Create a PXA270 Project in Domingo (3/4) • Step4: configure “peripheral configuration manager (PCM)”. • Import creator_pxa270.pcm. • Click “To Initialize PCM when Connect” and “Ok”. / 21
Create a PXA270 Project in Domingo (4/4) • Now, you can see a project window in Domingo for our target board Creator XScale PXA270. / 21
Misc • We collect some common commands in Linux and questions in course website. • http://rswiki.csie.org/dokuwiki/courses:102_1:csl_common_ins_errors • If you have any problems, please refer to the document first. / 21
Lab Requirement & Bonus • Show that you can share files between Ubuntu and Windows. • Bonus:Answer the question of lab1 on RSWiki CSL course website.Write it in your report. • Please send your report to both TAs. • Please use this title format: [CSL] G# Lab# Ver# • E.g., [CSL] G15 Lab1 Ver1 / 21