Implementation Method Linux-USB Gadget Framework –The Linux-USB Gadget Framework makes it easy for peripherals and other devices embedding GNU/Linux system.

Slides:



Advertisements
Similar presentations
Chapter 9 Part III Linux File System Administration
Advertisements

Primary Author: Girish Verma Secondary Author(s): Navya Prabhakar Presenter: Navya Prabhakar Company/Organization: CircuitSutra USB Modeling Quick Start.
Booting the Linux Kernel Dr. Michael L. Collard 1.
Linux on commodity network H/W Josh Parsons LUGOD talk August 15 th 2005.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Team Wolf Distributed, Consistent and Secure USB Storage Final Project Review Eddie Lai Matt Dube Sean Busch Zhou Zheng.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Handheld TFTP Server with USB Andrew Pangborn Michael Nusinov RIT Computer Engineering – CE Design 03/20/2008.
Embedded System Programming Introduction to Device Drivers.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
29 April 2005 Part B Final Presentation Peripheral Devices For ML310 Board Project name : Spring Semester 2005 Final Presentation Presenting : Erez Cohen.
Guide To UNIX Using Linux Third Edition
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Operating Systems.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Guide To UNIX Using Linux Fourth Edition
Internal components, Backing Storage, Operating Systems Software
Chapter 6 Advanced Installation. Objectives  Describe the types and structure of SCSI devices  Explain the different levels of RAID and types of RAID.
Linux Installation and Administration – Lesson 5 Tutor: George Papamarkos Topic: Devices in Linux.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
ITE 1 Chapter 5. Chapter 5 is a Large Chapter It has a great deal of useful information about operating systems. You will find this VERY helpful when.
Hands-On Virtual Computing
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
02/2008 MATRIX VISION GmbH 1 Presentation The intelligent camera and Image processing sensor.
Linux+ Guide to Linux Certification, Third Edition Chapter 6 Advanced Installation.
Section 3.1: Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random.
Beagle Board Fast Boot Hui Chen Keji Ren Dec 10 th, 2009 EE382N-4 Project.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Chapter Two Exploring the UNIX File System and File Security.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
RDC R32xx/HB30x Web UI & System Configuration Design March. 23, 2006 draft version 0.99 RDC Semiconductor Co., Ltd. All Rights Reserved.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
CSC414 “Introduction to UNIX/ Linux” Lecture 3. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
7200 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. 1/7 OfficeServ 7200 Enterprise IP Solutions Data Server S/W Upgrade.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
Digital Communication Systems Comp Functions of the Operating System.
Linux Kernel Programming (LKP). LKP New sub-course New sub-course We will learn together We will learn together Evaluation of this part of course will.
Embedded Software Design Week II Linux Intro Linux Kernel.
Linux Filesystem Administration
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com The GRUB bootloader Michael.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com Block filesystems Michael.
Burn ISO Image File to USB Drive From:
The GRUB bootloader Michael Opdenacker Thomas Petazzoni Free Electrons
By Ganesan Alagu Ganesh Feb 26, 2008
Guide to Linux Installation and Administration, 2e
Computer System Laboratory
Using USB gadget drivers
By Ganesan Alagu Ganesh Feb 21, 2008
Linux Kernel Module Programming
UBUNTU INSTALLATION
Installing OS.
Chapter 12: File System Implementation
Web UI & System Configuration Design
Introduction to the Kernel and Device Drivers
Exploring the UNIX File System and File Security
Operating System Module 1: Linux Installation
Troubleshooting (CPU)
Linux+ Guide to Linux Certification, Third Edition
NFS.
Chapter 2: The Linux System Part 5
Presentation transcript:

Implementation Method Linux-USB Gadget Framework –The Linux-USB Gadget Framework makes it easy for peripherals and other devices embedding GNU/Linux system software to act in the USB "device" (slave) role. The drivers implementing and using that API combine to make a useful driver framework for Linux systems that implement USB peripherals. File-backed Storage feature of Linux-USB Gadget Framework –implements the USB Mass Storage class, appearing to the host as a SCSI disk drive. This uses a file or block device as a backing store for the drive.

Configure Kernel Gadget is built in Linux-2.6 version We only need to configure, rebuild and install the 2.6 kernel, then we can get the gadget functions in the OS. The configure parameters related to gadget and its back-backed storage feature –CONFIG_USB_GADGET=y –CONFIG_USB_GADGET_DEBUG_FILES=y –CONFIG_USB_GADGET_PXA2XX=y –CONFIG_USB_PXA2XX=y –CONFIG_USB_PXA2XX_SMALL=y –CONFIG_USB_FILE_STORAGE=m

Stargate Export ‘disk’ device Create the device file for the ‘disk’ device –For usb flash storage mknod /dev/sda b 8 0 mknod /dev/sda1 b 8 1 Change its permission –Chmod 666 /dev/sda* Export it to usb slave interface –modprobe g_file_storage file=/dev/sda Remove it from usb slave interface –modprobe –r g_file_storage

Stargate Exports Its Root Image Find it root image partition (device) –cat /proc/mtd, you can see the devices of mtd –It is /dev/mtdblock1 in my testing stargate Export it to usb slave interface –modprobe g_file_storage file=/dev/mtdblock1

Other linux to see the content Pay attention to the filesystem exported by stargate usb slave interface For ext3 (et. usb flash storage) or other filesystem that are supported by linux(fedora), linux(fedora) will prompt up the usb disk automatically For jffs2 (the stargate root image); because other linux(fedora) doesn’t directly support the jffs2 filesystem, we need to do more things in order to show the content from stargate.

linux(fedora) shows jffs2 filesystem Using fake mtd device to show jffs2 –modprobe jffs2 –modprobe mtdcore –modprobe mtdchar –modprobe mtdram total_size=32512 erase_size=256 –modprobe mtdblock –mknod /dev/mtdblock b 31 0 –chmod 666 /dev/mtdblock –dd if=/dev/sda of=/dev/mtdblock –mount -t jffs2 /dev/mtdblock /mnt/usb Then we can see the root filesystem of stargate, which is in /mnt/usb directory on linux(fedora)

Write Back to Stargate For ext3 or other filesystems that linux(fedora) supports –You can directly write and change the content in the mounted volume. What you did will be saved to stargate directly. For jfss2 filesystem that linux(fedora) doesn’t support –We use faked MTD device (which is actually the memory in fedora) to handle jffs2 filesystem. So, what you have written is stored in the faked MTD device (the memory). If you want to save the changes to stargate, you need to copy the image back to stargate. –On fedora, run ‘dd if=/dev/mtdblock of=/dev/sda’, then the whole jffs2 root image will be copied back to stargate –Pay attention that the image you will copy is the whole filesystem, not only the things you wrote, but also other files in the image.

Upgrade Stargate OS through Its USb Slave Interface You can use the method mentioned in previous page to upgrade the OS on the stargate by the usb slave interface. It is fast and convenient. This is a good feature comes from this project. However, if you upload a wrong kernel image, the stargate cannot boot the linux kernel successfully. What can you do? You can still boot stargate to its bootldr command interface. And there are commands to let you transfer root image from PC to stargate by its serial port. Therefore, you can recover the system on stargate.

Testing System Architecture Stargate connects to other linux by using its slave interface via a usb cable A usb flash storage attach to the usb host interface of Stargate Other linux use its USB host interface StargateLinux USB Slave inteface USB Host Interface USB Host Interface USB Flash Storage