ページ1に含まれる内容の要旨
Installation Manual
for UBI
S3C6410
May 09, 2008
(Preliminary) REV 1.00
1
ページ2に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGE) V1.0 Important Notice The information in this publication has been carefully "Typical" parameters can and do vary in different checked and is believed to be entirely accurate at applications. All operating parameters, including the time of publication. Samsung assumes no "Typicals" must be validated for each customer responsibility, however, for possible errors or application by the customer's technical experts. omissions, or for any co
ページ3に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 Revision History Revision No Description of Change Refer to Author(s) Date 1.00 - Master Copy - Jongpill Lee May 09, 2008 NOTE: Revised parts are written in blue. Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available. 3 Specifications and information herein are subject to change without notice.
ページ4に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 CONTENTS 1 INTRODUCTION................................................................................................................................... 6 1.1 PURPOSE ......................................................................................................................................................................6 1.2 OVERVIEW ...................................................................................
ページ5に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 Figures FIGURE 1 UBI/MTD INTEGRATION ....................................................................................................................... 6 FIGURE 2 DEVICE DRIVERS ................................................................................................................................... 8 FIGURE 3 MEMORY TECHNOLOGY DEVICES .................................................................................
ページ6に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 1 Introduction 1.1 Purpose Ubi is general purpose flash management layer which has similar functionality as the Logical Volume Manager. The basic idea is that the UBI layer provides the management for multiple logical volumes, which can contain either static data or dynamic contents e.g. file systems. This guide will explain the initial steps for Installing UBI(Unsorted Block Image) and how to compile Linux Kernel. 1.2 Over
ページ7に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 2 Kernel Compilation 2.1 Root file System Make sure you have 2.6 compliant versions of insmod, rmmod, and lsmod. At least you have 2.6 compliant versions of insmod. 2.2 Kernel Compile In this chapter, you will understand the initial steps for Installing S3C BSP on Linux operating system. Kernel source is compressed by the name of “s3c-linux-2.6.21.tar.bz2”. Extract this bz2 file by executing the following command. After ex
ページ8に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 Select ‘Device Drivers’ from the ‘Linux Kernel Configuration’. FIGURE 2 Device Drivers Select ‘Memory Technology Devices(MTD)’ FIGURE 3 Memory Technology Devices Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available. 8 Specifications and information herein are subject to change without notice.
ページ9に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 Select ‘UBI – Unsorted block images’ FIGURE 4 UBI – Unsorted Block Images Select ‘Enable UBI’ to Module Type FIGURE 5 Enable UBI Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available. 9 Specifications and information herein are subject to change without notice.
ページ10に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 Select “Emulate MTD devices” FIGURE 6 Select “Emulate MTD Devices” Finally select ‘Exit’ and then ‘Yes’ to save your new kernel configuration. FIGURE 7 Saving New Kernel configuration Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available. 10 Specifications and information herein are subject to change without notice.
ページ11に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 Execute the following commands on your host PC, the Kernel image will be created in “s3c-linux- 2.6.21/arch/arm/boot/” directory by the name of “zImage”. Also, UBI Module will be created in “s3c-linux-2.6.21/drivers/mtd/ubi/”directory by the name of “ubi.ko”. [root@localhost s3c-linux-2.6.21]# make Preliminary product information describe products that are in development, for which full characterization data and associated e
ページ12に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 3 Test In this Chapter, you will understand how to test UBI in you system. 3.1 Download “ubi.ko” First, you have to download “ubi.ko” device module file that is created by make command. You can this device module in “linux/drivers/mtd/ubi/ubi.ko”. 3.2 Load UBI Module Next, Insert UBI Module(ubi.ko) which is download from your host with insmod command. Input command as following. [root@Samsung tmp]# insmod u
ページ13に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 3.3 Create UBI Volume Now, Make a UBI Volume in MTD partition. First of all, make “sysfs” directory and mount sysfs to sysfs directory. [root@Samsung tmp]# mount sysfs sysfs ./sysfs [root@Samsung tmp]# mount -t sysfs sysfs ./sysfs You need ubimkvol application which is to make ubi volume. Download ubimkvol application. And Excute ubimkvol as following command. [root@Samsung tmp]# ./ubimkvol -s 10245780 -N Storag
ページ14に含まれる内容の要旨
S3C6410 INSTALLATION MANUAL UBI(UNSORTED BLOCK IMAGES) V1.0 3.4 Mount jffs2 Finally, you want to read and write in UBI Volume, system is mounted temporary directory to /dev/mtdblock4. Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available. 14 Specifications and information herein are subject to change without notice.