Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer System Laboratory

Similar presentations


Presentation on theme: "Computer System Laboratory"— Presentation transcript:

1 Computer System Laboratory
Lab2 - Environment Setup II

2 Experimental Goal Learn how to use the software installed in Lab1.
Transfer files to bootloader (U-Boot) and Linux on PXA270. Copy (burn) files to flash on PXA270. 2013/9/24 / 20

3 Environment Host System Build System Target System Software
Windows XP Build System VirtualBox + Ubuntu 8.04 Target System Creator XScale PXA270 Software Bootloader (U-Boot) Putty TFTP Server Domingo You can download all software from RSWiki CSL Course Software 2013/9/24 / 20

4 Hardware Checklist power supply (PXA270) PXA270 ethernet cable
RS232 null cable parallel cable JTAG ICE power supply (ICE) CMOS sensor 2013/9/24 / 20

5 Target Board Creator XSCale PXA270 Creator PreSOCes 2013/9/24 / 20

6 Hardware Setup 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, or connect it then reset the PC. Connect ethernet cable to your PC. Connect PXA270 and ICE via JTAG. ethernet cable RS232 parallel cable ICE 2013/9/24 / 20

7 Introduction to Domingo
Domingo is an integrated development environment 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. 2013/9/24 / 20

8 Connect to PXA270 via Domingo
Step1: please refer to Lab1 to create a PXA270 project. Step2: click “Debug”  “Connect” or “connect the IDE to WINICE” to connect PXA270. Now, you can see related register value and instructions. 2013/9/24 / 20

9 Memory Layout of PXA270 Flash RAM U-Boot Linux kernel U-Boot (TFTP)
Root Filesystem 0x 0xa3f80000 U-Boot (Domingo) 0x 0xa Flash RAM 2013/9/24 / 20

10 Download Executable to PXA270 (1/3)
Step1: download u-boot.bin from our course website. Step2: click “Debug”  “Load Module ...” in Domingo. Step3: load u-boot.bin and configure “Option” to P;a3f80000. Step4: Click “Ok”. 2013/9/24 / 20

11 Download Executable to PXA270 (2/3)
Step5: connect to the serial console on PXA270 via putty. Execute the putty. Step6: configure com port and speed. Connection Type = Serial Serial line = COM1 Speed = 9600 Step7: click “Open”. 2013/9/24 / 20

12 Download Executable to PXA270 (3/3)
Step8: change PC value to a3f80000 in register window. Step9: click “Debug”  “Free Go”, and then you will see the message on putty. 2013/9/24 / 20

13 Transfer File via TFTP (1/3)
Step1: execute TFTP server. Step2: put u-boot.bin to the TFTP root virtual folder. 2013/9/24 / 20

14 Transfer File via TFTP (2/3)
Step3: set IP address on Windows XP to configure LAN environment. IP address = Netmask = Note that if you change to LAN IP, you might be not able to access WAN. Please download necessary software before you change the configuration. You can change back to DHCP after using TFTP to reconnect to WAN. 2013/9/24 / 20

15 Transfer File via TFTP (3/3)
Step4: check IP address on PXA270. u-boot$ printenv Hit any key to stop U-Boot autoboot. If the addresses are wrong, you can use setenv to change. Step5: execute tftp command in U-Boot to get file. u-boot$ tftp a u-boot.bin size of u-boot.bin 2013/9/24 / 20

16 Copy File from RAM to Flash (1/3)
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. Step1: 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 Step2: copy the file from RAM to flash. u-boot$ cp.b a a6c0 Step3: now, you can reset PXA270 to check the message of U-Boot. 2013/9/24 / 20

17 Copy File from RAM to Flash (2/3)
Please refer to previous slides to copy Linux kernel and root filesystem to flash. You can refer to the memory layout as in slide9. Step1: download uImage (Linux kernel) and rootfs (root filesystem) from our course website. Step2: copy uImage to flash address 0x80000. The erased end address is 0x47ffff (32 sectors). It will take about 3 minutes. Step3: copy rootfs to flash address 0x The erased end address is 0x137ffff (120 sectors). To avoid address collision, you can change RAM address to 0xa for TFTP. 2013/9/24 / 20

18 Copy File from RAM to Flash (3/3)
Step4: now, you can reset PXA270 to check the message of Linux. 2013/9/24 / 20

19 Transfer File via TFTP in Linux
Step1: in Linux, we also can transfer files via TFTP. You can read the usage by executing tftp command without any arguments. Step2: for example, if you want to get u-boot.bin from TFTP server , just type: % tftp -g -r u-boot.bin 2013/9/24 / 20

20 Lab Requirement & Bonus
Show that you can copy files to the flash both in U-Boot and in Linux. Bonus: Answer the question of lab2 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 Lab2 Ver1 2013/9/24 / 20


Download ppt "Computer System Laboratory"

Similar presentations


Ads by Google