Philips ISP1362 User Manual
Philips ISP1362 User Manual

Philips ISP1362 User Manual

Philips user's guide linux stack isp1362
Table of Contents

Advertisement

Quick Links

Revision History:
Version
Date
1.2
Jun 2003
1.1
Nov 2002
1.0
Oct 2002
We welcome your feedback. Send it to wired.support@philips.com.
Philips Semiconductors - Asia Product Innovation Centre
Visit
www.semiconductors.philips.com/buses/usb
UM10012_2
ISP1362 Linux Stack
User's Guide
Rev. 1.2
Description
Additions for Accelent IDP platform (Rev 04)
Additions for Aaccelent IDP platform
First release.
or
www.flexiusb.com
July 2003
Author
Srinivas Yarra
Srinivas Yarra
Srinivas Yarra

Advertisement

Table of Contents
loading

Summary of Contents for Philips ISP1362

  • Page 1 Jun 2003 Additions for Accelent IDP platform (Rev 04) Nov 2002 Additions for Aaccelent IDP platform Oct 2002 First release. We welcome your feedback. Send it to wired.support@philips.com. Philips Semiconductors - Asia Product Innovation Centre Visit www.semiconductors.philips.com/buses/usb User’s Guide Rev. 1.2 www.flexiusb.com...
  • Page 2: User's Guide Rev. 1.2—July

    Philips Semiconductors This is a legal agreement between you (either an individual or an entity) and Philips Semiconductors. By accepting this product, you indicate your agreement to the disclaimer specified as follows: DISCLAIMER PRODUCT IS DEEMED ACCEPTED BY RECIPIENT. THE PRODUCT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND.
  • Page 3: Table Of Contents

    ... 22 ... 23 Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide IDP (R 04)... 11 IDP (R 02)... 14 IDP (R 04)... 20 IDP (R 02)... 20 © Koninklijke Philips Electronics N.V. 2003. All rights reserved. 3 of 34...
  • Page 4 APPL 6.6.1. otgmsdemo ...33 6.6.2. tools...34 6.7..34 OBJS REFERENCES ... 34 UM10012-_2 User’s Guide ... 30 ... 31 Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide © Koninklijke Philips Electronics N.V. 2003. All rights reserved. 4 of 34...
  • Page 5 The names of actual companies and products mentioned herein may be the trademarks of their respective owners. All other names, products, and trademarks are the property of their respective owners. UM10012-_2 User’s Guide ... 15 © Koninklijke Philips Electronics N.V. 2003. All rights reserved. Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide 5 of 34...
  • Page 6: Introduction

    A USB host when connected to USB peripherals (OTG and non OTG). The ISP1362 Linux stack is a group of kernel and application modules arranged such that the code can be easily ported to any other platform running the Linux OS. All the platform-specific modules are made as separate modules.
  • Page 7: Core Modules

    Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide (OHCI HCD, UHCI HCD, Linux operating system Linux kernel basic device drivers USB class drivers USB core Host Controller Driver © Koninklijke Philips Electronics N.V. 2003. All rights reserved. 7 of 34...
  • Page 8: Otg Stack

    ISP1362 hardware through this driver. Since hardware access is mostly platform-dependent, this module must be ported to the target platform. This driver provides an interface to the ISP1362 registers and buffers, to the ISP1362 I/O ports and interrupts, and configures the ISP1362 based on the platform.
  • Page 9: Isp1362 Pci Evaluation Kit

    ISP1362 Linux stack. Make sure that the ISP1362 evaluation kit is configured in the OTG mode before using the software. If you want to use any other mode of the ISP1362, refer to ISP1362 PCI Evaluation Board User’s Guide for the hardware setup and Section 5.1.1 for the software setup.
  • Page 10 Loop back device support (in block devices) Any other USB options that need to be enabled Reboot the PC, with the new kernel and the ISP1362 PCI evaluation kit. 3.1.3.2.Setting Up the ISP1362 Linux Stack Go to the ISP1362 Linux #cd /usr/src/linux-otg/1362/source Edit the Rules.Make file for any changes in the compilation rules.
  • Page 11: Isp1362 Add-On Card For Intel Pxa250 Based Accelent Idp (Rev 04)

    The ISP1362 add-on card can be configured in various modes of the ISP1362: the host-only mode and the OTG mode. The OTG mode is the default mode for the add-on card as well as the ISP1362 Linux stack. Make sure that the ISP1362 add-on card is configured in the OTG mode before using the software.
  • Page 12 #gzip -cd /mnt/cdrom/Source/kernel/releasepatch-2.4.18-rmk7-pxa3-asi2.gz | patch -p0 #cd linux #make pxa_idp_config #make oldconfig ISP1362 stack release contains setup files related to Accelent IDP setup. First copy the ISP1362 release files (isp1362_linux_sw_stack.tar.gz) to the current directory ( #tar –zxvf isp1362_linux_sw_stack.tar.gz #patch -p1 <1362/misc/accelent_rev4/otg_kernel_patch_rev4 #cp /mnt/cdrom/Images/rootfs.tar.gz...
  • Page 13: Accelent Idp (Rev 04) Target Setup

    The cross compile path ( /usr/include/arm/2.95.3 version of the tool chain and from where the tool chain is downloaded. Similarly edit the Rules.Make of ISP1362 source ( changes The kernel source directory is different from the one specified above. Compile time flags. Refer to section 5.1. If you want any configuration changes. Make sure that...
  • Page 14: Isp1362 Add-On Card For Intel Pxa250 Based Accelent Idp (Rev 02)

    #./imod This will make the initial setup for the Accelent IDP for ISP1362 Linux stack. Note that you need to execute this script for the first time only. Connect the Accelent IDP to the Linux host system as a mass storage device, and perform the following steps on the host system.
  • Page 15: Setting Up The Isp1362 Add-On Card

    The ISP1362 add-on card can be configured in various modes of the ISP1362: the host-only mode and the OTG mode. The OTG mode is the default mode for the add-on card as well as the ISP1362 Linux stack. Make sure that the ISP1362 add-on card is configured in the OTG mode before using the software.
  • Page 16 #bzip2 –cd /mnt/cdrom/source/linuxtar.bz2 |tar xfv – #mv linux-2.4.18-rmk3-pxa2-asi1 /usr/src/linux-otg Copy the ISP1362 stack related source to the kernel directory ( the ISP1362 specific kernel patch, otg_kernel_patch_rev2 from the ISP1362 Linux stack release to kernel source. #cd /usr/src/linux-otg #tar –zxvf isp1362_linux_sw_stack.tar.gz #patch -p1 <1362/misc/accelent_rev2/otg_kernel_patch_rev2...
  • Page 17 ) CROSS_COMPILE path to the path of the cross /usr/src/linux-otg ) depends on where the tool chain is installed and the Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide © Koninklijke Philips Electronics N.V. 2003. All rights reserved. 17 of 34...
  • Page 18: Accelent Idp Setup

    #./init_setup This will make the initial setup for the Accelent IDP for ISP1362 Linux stack. Note that you need to execute this script for the first time only. Connect the Accelent IDP to the Linux host system as a mass storage device, and perform the following on the host system: Initialize and load the ISP1362 stack on to the target system as mentioned in Section 4.2 and connect the...
  • Page 19: Operating The Isp1362 Linux Stack

    The ISP1362 Linux stack modules (kernel as well as application) are dynamically loaded and unloaded to the kernel. Log on to the system as root, go to the ISP1362 Linux source directory and use the script to load modules. #cd /usr/src/linux-otg/1362/source/objs #./imod...
  • Page 20: Unloading The Stack

    The ISP1362 Linux stack modules (kernel as well as application) are dynamically loaded and unloaded to the kernel. Log on to the system as root, go to the ISP1362 object directory and use the script to load modules.. #cd /home/1362/objs #./imod...
  • Page 21: Loading The Stack

    The ISP1362 Linux stack modules (kernel as well as application) are dynamically loaded and unloaded to the kernel. Log on to the system as root, go to the ISP1362 object directory and use the script to load modules. #cd /home/1362/objs #./imod...
  • Page 22: Isp1362 Device Stack

    ISP1362 Device Stack Once the ISP1362 modules are loaded, you can connect the ISP1362 to any other PC USB host through the Mini-B to Standard-B cable. The ISP1362 device will appear as a mass storage device (removable disk). The following...
  • Page 23: Isp1362 Otg Stack

    Philips Semiconductors When connected to another USB host, with the ISP1362 as a device, you can: See the mass storage as a removable disk (capacity of 16 MB including the file system) See the contents of the disk Read/write the contents of the disk Format the disk (FAT16, EXT2 file systems) Partition the disk into smaller disks.
  • Page 24: Figure 4-4: Otg Mass Storage Application In The Idle State Snapshot

    OTG device disk and the remote OTG device disk (connected) will be mounted and available for use. UM10012-_2 User’s Guide © Koninklijke Philips Electronics N.V. 2003. All rights reserved. Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide 24 of 34...
  • Page 25: Figure 4-6: Otg Application File Selection Snapshot

    Figure 4-7 shows a snapshot of the OTG application when a Mini-A plug is inserted and the remote OTG device is the host. UM10012-_2 User’s Guide Figure 4-6: OTG Application File Selection Snapshot Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide © Koninklijke Philips Electronics N.V. 2003. All rights reserved. 25 of 34...
  • Page 26: Figure 4-7: Otg Application As A Device Snapshot

    This command will make the OTG mass storage device as a USB host on the executed target. UM10012-_2 User’s Guide Figure 4-7: OTG Application as a Device Snapshot options and their description: otgcmd.o Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide © Koninklijke Philips Electronics N.V. 2003. All rights reserved. 26 of 34...
  • Page 27: Figure 4-8 Otg B Device Accessing Remote Otg Mass Storage Device Files

    The following pictures shows snapshots of Accelent target screen during operation. Figure 4-8 OTG B device accessing remote OTG mass storage device files UM10012-_2 User’s Guide © Koninklijke Philips Electronics N.V. 2003. All rights reserved. Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide 27 of 34...
  • Page 28: Figure 4-9 Otg B Closing The Session After Connected Device Data Access

    OTG B device status as peripheral when connected to OTG A host, accessing the local disk files when in IDLE state and OTG status as OTG A device. UM10012-_2 User’s Guide © Koninklijke Philips Electronics N.V. 2003. All rights reserved. Rev. 1.2—July 2003 ISP1362 Linux Stack User’s Guide 28 of 34...
  • Page 29: Figure 4-10 Operations With Otg A And B Devices

    Philips Semiconductors ISP1362 Linux Stack User’s Guide Figure 4-10 Operations with OTG A and B devices UM10012-_2 © Koninklijke Philips Electronics N.V. 2003. All rights reserved. User’s Guide Rev. 1.2—July 2003 29 of 34...
  • Page 30: Configuration

    Philips Semiconductors 5. Configuration The ISP1362 Linux stack can be configured to work in different ways by using the static compilation time flags. The file in the root directory of the source code selects the global compilation flags. The local Rules.Make...
  • Page 31: Inside The Isp1362 Linux Stack

    Philips Semiconductors 6. Inside the ISP1362 Linux Stack The ISP1362 Linux stack release consists of two parts: a Linux kernel OTG patch for kernel version 2.4.18 and the ISP1362 Linux stack source code. The code is written in C. This chapter explains the ISP1362 Linux stack source code organization.
  • Page 32: Pdc

    File Name release/device/Makefile release/device/pdc release/device/devmscd release/device/diskemu 6.3.1. directory consists of files related to the ISP1362 Device Controller Driver and USB protocol driver. The following table shows the contents of the Table 6-5: Contents of the pdc Directory File Name release/device/pdc/Makefile release/device/pdc/usb_pdc.c release/device/pdc/usb_pdc.h...
  • Page 33: Hal

    6.5.1. x86pci directory consists of files related to the ISP1362 X86 PCI platform HAL porting files. The following x86pci table shows the contents of this directory and their description: Table 6-10: Contents of the x86pci Directory File Name release/hal/x86pci/Makefile release/hal/x86pci/hal_pci.c...
  • Page 34: Tools

    Release Notes ISP1362 Linux Stack Quick Start Guide IDP for Intel PXA250 Applications Processor Linux OS Software User Guide IDP for Intel PXA250 Applications Processor Linux OS ISP1362 OTG Add On Evaluation Kit with Intel PXA250 IDP UM10012-_2 User’s Guide...
  • Page 35 Philips Semiconductors Philips Semiconductors is a worldwide company with over 100 sales offices in more than 50 countries. For a complete up-to-date list of our sales offices please e-mail sales.addresses@www.semiconductors.philips.com. A complete list will be sent to you automatically. You can also visit our website http://www.semiconductors.philips.com/sales/...

Table of Contents