Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Environment Setup 2015/9/15/ 30 1.

Slides:



Advertisements
Similar presentations
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Advertisements

Lab 4 Department of Computer Science and Information Engineering National Taiwan University Lab4 - Bootloader 2014/10/14/ 13 1.
CCNA 2 v3.1 Module 2.
 Contents 1.Introduction about operating system. 2. What is 32 bit and 64 bit operating system. 3. File systems. 4. Minimum requirement for Windows 7.
Computer System Laboratory
Getting to Know the Digital Hub Can you sketch/draw the digital hub system – subsystems? Can you Identify Point of failures?
How to Install Windows 7.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Step 1 - Start your PC and place your Windows XP CD in your CD/DVD- ROM drive. Your PC should automatically detect the CD and you will get a message saying.
COMPUTER SYSTEM LABORATORY Lab8 - Debugging II. Lab 8 Experimental Goal Learn how to debug Linux in source-level by Domingo and diagnose target boards.
A crash course in njit’s Afs
TAX-AIDE Network Router Setup Network Printer Setups July SMT/TCS Training - Dallas1.
COMPUTER SYSTEM LABORATORY Lab4 - Bootloader. Lab 4 Experimental Goal Learn how to build U-Boot bootloader for PXA /10/8/ 142.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Lab 3 Department of Computer Science and Information Engineering National Taiwan University Lab3 - Cross Tools 2014/10/7/ 20 1.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Configuring the MagicInfo Pro Display
Computer System Laboratory
Tutorial 11 Installing, Updating, and Configuring Software
COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/
Hands-On Virtual Computing
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
Computer System Laboratory
Lab 11 Department of Computer Science and Information Engineering National Taiwan University Lab11 - Porting 2014/12/9/ 26 1.
Setting Up a Local WordPress Development Environment By Gregory Young Alternative Hosting
AT91SAM9261-EK WinCE 5.0 DEMO ATMEL AT91 Application & Support Group Version 1.O February 2007.
Please Note: Information contained in this document is considered LENOVO CONFIDENTIAL For Lenovo Internal Use Only Do Not Copy or Distribute!! For Lenovo.
1 Chapter Overview Using the New Connection Wizard to configure network and Internet connections Using the New Connection Wizard to configure outbound.
Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,
Beagle Board Fast Boot Hui Chen Keji Ren Dec 10 th, 2009 EE382N-4 Project.
Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1.
Linux in a Virtual Environment Nagarajan Prabakar School of Computing and Information Sciences Florida International University.
Conventions Department of Computer Science and Information Engineering National Taiwan University Conventions 2014/9/16/ 3 1.
Lab 10 Department of Computer Science and Information Engineering National Taiwan University Lab10 – Debugging II 2014/12/2 1 /16.
COMPUTER SYSTEM LABORATORY Lab6 - Root Filesystem.
7200 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. 1/16 OfficeServ 7200 Enterprise IP Solutions Data Server S/W Upgrade.
RT-LAB Electrical Applications 1 Opal-RT Technologies Use of the “Store Embedded” mode Solution RT-LAB for PC-104.
VirtualBox: How to create a Linux Virtual Machine.
Implementation of Embedded OS Lab4 Cortex-M3 Programming.
Implementation of Embedded OS Lab3 Porting μC/OS-II.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 – Bootloader + OS Kernel 2015/10/27/ 25 1.
Lab 8 Department of Computer Science and Information Engineering National Taiwan University Lab8 - Root Filesystem 2015/11/10/ 22 1.
Lab 9 Department of Computer Science and Information Engineering National Taiwan University Lab9 - Debugging I 2014/11/4/ 28 1.
HOW TO INSTALL WINDOWS 7? This step-by-step guide demonstrates how to install Windows 7 Ultimate. The guide is similar for other versions of Windows 7.
Implementation of Embedded OS
Lab 7 Department of Computer Science and Information Engineering National Taiwan University Lab7 – uCOS Application 2015/11/10/ 10 1.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
Lab 6-1 Department of Computer Science and Information Engineering National Taiwan University Lab6-1 - Sensor Network 2016/6/7/ 2 1.
Computer System Laboratory
Computer System Laboratory
Computer System Laboratory
Computer System Laboratory
Implementation of Embedded OS
Computer System Laboratory
Computer System Laboratory
Implementation of Embedded OS
Data Server S/W Upgrade Samsung Electronics Co., Ltd.
SAPC Hardware Pentium CPU (or 486) 4M usable memory
NETWORK SECURITY LAB Lab 8. Firewall and VPN.
bitcurator-access-webtools Quick Start Guide
Computer System Laboratory
Lecture9: Embedded Network Operating System: cisco IOS
Computer System Laboratory
Computer System Laboratory
Computer System Laboratory
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Environment Setup 2015/9/15/ 30 1

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Install build system and setup network configuration.  Learn how to copy (burn) files to flash on Creator XScale PXA /9/15/ 30 2 Local network

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Host System  Windows XP  Build System  VirtualBox + Ubuntu 8.04  Target System  Creator XScale PXA270  Software  VirtualBox  Ubuntu 8.04  Domingo  Bootloader (U-Boot)  Microtime diag program  You can find all software on CSL Course Software.CSL Course Software 2015/9/15/ 30 3

Lab 1 Department of Computer Science and Information Engineering National Taiwan University 2015/9/15/ 30 4 ICE Ethernet cableRS232 null cablePXA270 power supply (PXA270) power supply (ICE) JTAG parallel cable

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Connect RS232 null cable and parallel cable to your PC.  You should connect ICE to your PC with parallel cable before turning on the PC.  Connect Ethernet cable to your PC.  Connect PXA270 and ICE via JTAG. 2015/9/15/ 30 5 parallel cable Ethernet cable RS232

Lab 1 Department of Computer Science and Information Engineering National Taiwan University 2015/9/15/ 30 6 Host System (Windows XP)Target System (Creator XScale PXA270) VirtualBox Build System (Ubuntu 8.04) Domingo download TFTP serverTFTP client debug ICE and JTAG Samba server Network Neighborhood file sharing CPU, RAM

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Please download “VirtualBox” from or course website.  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. 2015/9/15/ 30 7

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: click “ 新增 (N)” in “Oracle VM VirtualBox 管理員 ”.  Step 2: create a Linux Ubuntu (32 bit) virtual machine (VM).  The size of memory needs at least 512 MB.  The size of disk needs at least 20 GB.  Step 3: add an additional network adapter to the VM.  “ 設定值 (S)”  “ 網路 ”  “ 介面卡 2”  “ 啟用網路卡 (E)”  “ 附加到 (A)” = “ 「僅限主機」介面卡 ” 2015/9/15/ 30 8

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 4: download Ubuntu 8.04 from course website.  Step 5: start your virtual machine and choose the Ubuntu image file for booting from CD/DVD.  “ 裝置 ”  “CD/DVD 裝置 ”  “ 選擇虛擬 CD/DVD 磁碟檔案 ”  Step 6: install Ubuntu  English version is more stable.  Change time zone to “Asia”  “Taipei”.  When finishing installation, press “ENTER” to reboot.  Please remember the account to login Linux.  Tips:  To uncaptured the keyboard and the mouse from virtual machine to Windows XP, please press the host key, right ctrl key by default. 2015/9/15/ 30 9

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: open a terminal in Ubuntu  “Applications”  “Accessories”  “Terminal”  You can execute commands with root privilege by typing “ sudo ”.  E.g., % sudo mkdir /etc/test  Step 2: install guest additions in Ubuntu  “ 裝置 ”  “ 插入 Guest Additions CD 映像 …”  Execute the script in Ubuntu  % sudo /media/cdrom/VBoxLinuxAdditions.run  Step 3: restart Ubuntu  % sudo reboot  Tips:  After complete installation of guest additions, you can also share clipboard between Windows XP and Ubuntu.  In VirtualBox:  “ 機器 ”  “ 設定值 ”  “ 一般 ”  “ 進階 ”  Change the setting of “ 共用剪貼簿 ” from “ 停用 ” to “ 雙向 ”. 2015/9/15/ 30 10

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: bridge the two network LAN, “VirtualBox Host-Only Network” and “ 區域網路 ” which connects PXA270, together.  Step 2: set IP address of the bridge on Windows XP to configure LAN environment.  IP address =  Netmask =  Step 3: set IP address on Ubuntu.  % sudo nano /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address netmask  % sudo /etc/init.d/networking restart 2015/9/15/ 30 11

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Unfortunately, Ubuntu 8.04 is now out of support and no longer receiving updates and security patches. There are repositories available at  Step 1: update apt repositories.  % sudo sed -i -e 's/tw.archive.ubuntu.com\|security.ubuntu.com/old- releases.ubuntu.com/g' /etc/apt/sources.list  Be careful of the area which was set during the installation. If you chose the area other than Taiwan, you have to modify the command to the correct one.  You can type “ man sed ” to see more information.  Step 2: upgrade the sources list.  % sudo apt-get update 2015/9/15/ 30 12

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Samba is a free implementation of the SMB/CIFS networking protocol originally developed by Andrew Tridgell.  Through SMB/CIFS protocol, we can share files between Windows XP and Linux by network neighborhood ( 網路芳鄰 ).  Step 1: install samba server in Ubuntu.  % sudo apt-get install samba  Step 2: set the samba password of your user account for samba service.  % sudo smbpasswd 2015/9/15/ Reference: Wikipedia - Samba,

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 3: share your home directory by adding a new entry in /etc/samba/smb.conf. [ ] path = /home/ browseable = yes read only = no create mask = 0664 directory mask = 0755 security = share  Step 4: restart the samba service.  % sudo /etc/init.d/samba restart  Please also set the workgroup in [global] entry to the workgroup of host system (Windows XP), e.g., MSHOME, etc.  You can check the workgroup in Windows XP by right-clicking on “ 我的電腦 ”  “ 內容 ”  “ 電腦名稱 ”. 2015/9/15/ 30 14

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: open “ 我的電腦 ”.  Step 2: click “ 工具 ”  “ 連線網路磁碟機 ”  Step 3: input the samba server name.  “ 磁碟機 ” = S:  “ 資料夾 ” = \\ \  Now, you can access files on Ubuntu from Windows. 2015/9/15/ 30 15

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: install TFTP server in Ubuntu.  % sudo apt-get install xinetd tftpd tftp  Step 2: create /etc/xinetd.d/tftp and put the following settings.  % sudo nano /etc/xinetd.d/tftp service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /home/ / disable = no } 2015/9/15/ 30 16

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 3: create TFTP Server root directory.  % cd ~  % sudo mkdir  % sudo chmod -R 777  % sudo chown -R nobody  Step 4: restart the xinetd service.  % sudo /etc/init.d/xinetd restart  Step 5: test the TFTP server  % cd ~/  % nano test.txt  Input some texts in this file.  % cd /tmp  % tftp  tftp> get test.txt  tftp> quit 2015/9/15/ 30 17

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Domingo is an integrated development environment (IDE) developed by Microtime Computer Inc..  Domingo adopts visual project management which integrates with editor, compiler, and debugger. It lets you manage project just from a single environment. 2015/9/15/ 30 18

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: download “domingo” from our course website.  Step 2: directly extract this image by WinRAR.  Step 3: click autorun.exe in CD to install.  We will use this to manage ICE. 2015/9/15/ 30 19

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: after complete installation, execute “Domingo for Linux 1.3”.  Step 2: choose “New Project”.  Step 3: configure “TargetMachine” and “Processor”.  TargetMachine = Carrier ICE/WINeZ/WIN2K ARM  Processor = PXA270  Step 4: configure “peripheral configuration manager (PCM)”.  Import “creator_pxa270.pcm”.  Click “To Initialize PCM when Connect” and “Ok”. 2015/9/15/ 30 20

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: check the hardware connection between PXA270 and ICE.  Be careful to connect parallel cable before turning on the PC.  Step 2: click “Debug”  “Connect” or “connect the IDE to WINICE” to connect PXA270.  Now, you can see related register value and instructions. 2015/9/15/ 30 21

Lab 1 Department of Computer Science and Information Engineering National Taiwan University 2015/9/15/ x x x x U-Boot diag Flash 0xA xA xA3F xA U-Boot (TFTP) RAM U-Boot (Domingo)

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: download “putty” from or course website.  Step 2: putty can be executed without installation. 2015/9/15/ 30 23

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: download “u-boot.bin” from our course website.  Step 2: click “Debug”  “Load Module...” in Domingo.  Step 3: load u-boot.bin and configure “Option” to P;A3F  Step 4: Click “Ok”. 2015/9/15/ 30 24

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 5: connect to the serial console on PXA270 via putty.  Please execute the putty which is installed previously.  Step 6: configure com port and speed.  Connection Type = Serial  Serial line = COM1  Speed = 9600  Step 7: click “Open”. 2015/9/15/ 30 25

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 8: change PC value to A3F80000 in register window.  Please press enter to commit the change.  Step 9: click “Debug”  “Free Go”, and then you will see the message on putty.  Remember to hit any key to stop U-Boot autoboot. 2015/9/15/ 30 26

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Step 1: put u-boot.bin into the folder in Ubuntu.  Step 2: execute “ tftp ” command in U-Boot to get file.  u-boot$ tftp a u-boot.bin  By default, u-boot will find the TFTP server in /9/15/ size of u-boot.bin

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Suppose we want to copy (burn) a file with 0x1a6c0 byes from RAM address 0xA to flash address 0x0, i.e., the u-boot.bin.  Step 1: erase the specified range (0x0 to 0x7FFFF).  Flash should be erased before copying files.  u-boot$ protect off 0 7ffff  u-boot$ erase 0 7ffff  Step 2: copy the file from RAM to flash.  u-boot$ cp.b a a6c0  Step 3: now, you can reset PXA270 and check the message of U-Boot.  Also, you can remove the JTAG from PXA270 because now you have a U-Boot program on your PXA270 and there is no need to use Domingo.  In case your U-Boot is broken, please use Domingo to copy a new one. 2015/9/15/ 30 28

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Microtime provides a program “ diag ” that can help developers diagnose peripheral devices on PXA270, e.g., SDRAM, flash, LED, CCD, LCD, etc. You can diagnose the target board by yourself first if you think it is broken.  Step 1: download diag_ram.bin.  u-boot$ tftp a diag_ram.bin  Step 2: copy diag_ram.bin to flash address 0x40000 on PXA270.  u-boot$ cp.b a  Step 3: reset PXA270 and then you will see the menu of diag on the LCD. 2015/9/15/ 30 29

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  We collect some common commands in Linux and questions in course website.   If you have any problems, please refer to the document first. 2015/9/15/ 30 30

Lab 1 Department of Computer Science and Information Engineering National Taiwan University  Show that you can share some data between Windows and Ubuntu.  Please hand in your lab report to the FTP.  Server:  Username: csl2015  Password: csl2015HomeWork  Directory: lab1,2  Please use this format for filename: “G# Ver#”, where G# is your group id and Ver# is revision version number.  E.g., G1 Ver2 2015/9/15/ 30 31