1 / 21

Computer System Laboratory

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

janei
Download Presentation

Computer System Laboratory

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computer System Laboratory Lab1 Environment Setup I

  2. Experimental Goal Install necessary software for coming Labs. / 21

  3. 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

  4. Install VirtualBox (1/2) • Download VirtualBox from https://www.virtualbox.org/ or course website (VirtualBox-4.1.20-80170-Win.exe). • Install VirtualBox. • Use default setting is fine. • Note that the network will be disconnected temporarily during the installation. • The related networking drivers should be installed. / 21

  5. Install VirtualBox(2/2) After installation complete, you can execute “Oracle VM VirtualBox” to manage your virtual machines. / 21

  6. Create a Virtual Machine in VirtualBox • Step1: click “新增” in “Oracle VM VirtualBox管理員”. • Step2: create a Ubuntu Linux virtual machine. • Use default setting is fine. • Step3: adjust sizes of memory and disk for your machine. • The size of disk needs at least 20GB. / 21

  7. Install Ubuntu 8.04 in VirtualBox (1/3) • 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: restart the virtual machine. • Step4: install Ubuntu 8.04. • English version is more stable. • Use default setting is fine. • Change timezone to “Asia”  “Taipei”. • Remember to create an account to login Linux. / 21

  8. Install Ubuntu 8.04 in VirtualBox (2/3) Step5: eject the image file after installation complete and then restart the virtual machine. Now, you can see the Ubuntu 8.04 desktop as follows. / 21

  9. Install Ubuntu 8.04 in VirtualBox(3/3) • To return the ownership of keyboard and mouse from virtual machine to Windows XP, press the right ctrl key. • In Ubuntu, if you want to execute commands in command-line (like 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

  10. Share Folder Between Windows and Ubuntu • 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 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

  11. 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

  12. Share Clipboard • After installation complete of guest additions, you also can share clipboard between Windows XP and Ubuntu. • In VirtualBox: • “機器”  “設定值” • “一般”  “進階” • Change the setting of “共用剪貼簿” from “停用” to “雙向”. / 21

  13. Install Putty Step1: download putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html or course website. Step2: putty can be executed without installation. / 21

  14. 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 installation complete, execute “TFTP Server Manager”. • Step3: connect to local TFTP server. / 21

  15. 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 slide10. • The default path is C:\Documents and Settings\All Users\Application Data\WinAgents\TFTP Server 4\TFTPRoot\. / 21

  16. 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

  17. Create a PXA270 Project in Domingo (1/4) Step1: after installation complete, execute “Domingo for Linux 1.3”. Step2: choose “New Project”. / 21

  18. Create a PXA270 Project in Domingo (2/4) • Step3: configure “TargetMachine” and “Processor”. • TargetMachine= Carrier ICE/WINeZ/WIN2K ARM • Processor = PXA270 / 21

  19. 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

  20. 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

  21. Misc • We collect some common commands in Linux and questions in course website. • http://rswiki.csie.org/dokuwiki/courses:101_1:csl_common_ins_errors • If you have any problems, please refer to the document first. / 21

More Related