PocketStoreII v Quick Installation Guide. April 2007, Version 2.4

Similar documents
BRDS ( , WS 2017) Ulrich Schmid

AN4491 Application note

AN2637 Application note

Release Notes for QNX Neutrino BSP for Renesas SH7785 SDK 1.0.0#

OMAP3530 has 256MB NAND flash in PoP (PoP: Package-On-Package implementation for Memory Stacking) configuration.

HPS SoC Boot Guide - Cyclone V SoC Development Kit

Release Notes for QNX Neutrino BSP for Renesas SH7780 EDOSK 1.0.0#

Mobile phones Memory technologies MMC, emmc, SD & UFS

Release Notes of the QNX BSP for Centrality Atlas II EVB Trunk#

OpenSSD Platform Simulator to Reduce SSD Firmware Test Time. Taedong Jung, Yongmyoung Lee, Ilhoon Shin

Getting Started with FreeRTOS BSP for i.mx 7Dual

WinCE for LPC3250. BUMMS China Nov PDF created with pdffactory Pro trial version

1 Do not confuse the MPU with the Nios II memory management unit (MMU). The MPU does not provide memory mapping or management.

Embest SOC8200 Single Board Computer

Introduction p. 1 Why Linux? p. 2 Embedded Linux Today p. 3 Open Source and the GPL p. 3 Free Versus Freedom p. 4 Standards and Relevant Bodies p.

Getting Started with the MCU Flashloader

Porting WinCE 5.0 to your NXP BlueStreak MCU Board

Revision: 0.30 June Intel Server Board S1200RP UEFI Development Kit Firmware Installation Guide

AN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP

RIFF BOX JTAG Preview

Implementing In-Application Programming on the ADuC702x

Versatile Express. Boot Monitor. Reference Manual. Copyright ARM. All rights reserved. ARM DUI 0465F (ID110612)

ADENEO WINDOWS CE 6.0 PORT ON AT91SAM9263EK TECHNICAL DESIGN DOCUMENT

PM9263 Getting Started with Windows CE 6.0

ML410 VxWorks Workbench BSP and System Image Creation for the BSB Design Using EDK 8.2i SP2. April

Megawin 8051 ISP via COM Port

Parallella Linux - quickstart guide. Antmicro Ltd

Installation Guide for MV320 (Windows CE 5.0)

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

Universal Monitor Interface

Introduction to Embedded Bootloader. Intel SSG/SSD/UEFI

Application Note: JN-AN-1003 JN51xx Boot Loader Operation

AN4872 Application note

Boot Loader. Bootloader

Description DK Number Version Main Application DK EBOOT Loader DK Operating System DK

Real-Time Systems / Real-Time Operating Systems EE445M/EE380L.6, Spring 2016

EM210 Burn Linux Image Manual. Catalogue

AM1808 Mango1808 Wince 6.0 이미지 Write 방법. Crazy Embedded Laboratory

Date: 24/08/07 Replaces Bulletin: Replacement of HDD on SVMi-20 Bulletin Number: TB

VORAGO VA108x0 Bootloader application note

Operating Systems Design Exam 2 Review: Spring 2011

AVR ATMega Bootloader Version AVR Bootloader (0.03) 0. INTRODUCTION Purpose References Revision history...

CS 416: Opera-ng Systems Design March 23, 2012

Bootstrapping. Steve Muckle Dave Eckhardt

M2351 Trusted Boot. Application Note for 32-bit NuMicro Family

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission

The FAT File System. 1. FAT Overview. 2. Boot Sector, FAT, Root Directory, and Files The FAT F 䤀耄 le System

Microsoft File Allocation Table

Serial Boot Loader For CC2538 SoC

HT32 Series In-System / In-Application Programmer User Manual

Changing the i.mx51 NAND Flash Model for Windows Embedded CE TM 6.0

CS3600 SYSTEMS AND NETWORKS

µtasker Boot-loader support

Bootloader Design Techniques for MCUs. Jacob Beningo, CSDP

SSD Firmware Implementation Project Lab. #4

Kinetis Flash Tool User's Guide

NAND/MTD support under Linux

RapID Platform Network Interface with

ML410 VxWorks BSP and System Image Creation for the BSB Design Using EDK 8.2i SP1. April

OMAP-L138 experimenter Kit. QuickStart Guide O

ADENEO WINDOWS CE 5.0 PORT ON AT91SAM9260EK TECHNICAL DESIGN DOCUMENT

Kinetis Bootloader to Update Multiple Devices in a Field Bus Network

Intel IXP42X Product Line of Network Processors and IXC1100 Control Plane Processor: Flash Programming

KFG1G16Q2B. 1Gb OneNAND B-die INFORMATION IN THIS DOCUMENT IS PROVIDED IN RELATION TO SAMSUNG PRODUCTS, AND IS SUBJECT TO CHANGE WITHOUT NOTICE.

XMC4800 EtherCAT APP SSC Firmware Update Slave Example. Getting Started Version 3.0

Industrial M SATA III NGFF SSD

High Performance Real-Time Operating Systems

3.3 WinCE System Installation

DevKit8000 Evaluation Kit

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

Introduction to the TenByTen6410

Kinetis Flash Tool User's Guide

CS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2015 Lecture 25

The Right Approach to Minimal Boot Times

PL-I Assignment Broup B-Ass 5 BIOS & UEFI

TMS320LF240x-A Flash Programming

Quick Operation Manual

TN1234 Technical note

Mobile Operating Systems Lesson 04 PalmOS Part 2

Kinetis Updater User's Guide

DRIVER STATION v1.0 UTILITY LOADER Created: 22DEC2008 FIRST DRIVER STATION UTILITY LOADER RE-IMAGE INSTRUCTIONS

OMAP SW. Release Notes. OMAP Software Tools OST version 2.5 Release. 16xx/1710/242x platforms. Document Revision: 2.5 Release

Advanced Operating Systems

There is a general need for long-term and shared data storage: Files meet these requirements The file manager or file system within the OS

Project 3: An Introduction to File Systems. COP4610 Florida State University

CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

IPL+UBI: Flexible and Reliable with Linux as the Bootloader

smxnand RTOS Innovators Flash Driver General Features

STAFF: State Transition Applied Fast Flash Translation Layer

Atmel Studio IDE for RIO-2015PG User Guide

TEFS: A Flash File System for Use on Memory Constrained Devices

How to use Wi-Fi module

Getting Started with TargetOS on the ZedBoard 1 Introduction

DS2 Products Auto-Update Tool BSP

March Getting Started with the Intel Desktop Board DQ77MK UEFI Development Kit

Using Serial Flash on the Xilinx Spartan-3E Starter Board. Overview. Objectives. Version 8.1 February 23, 2006 Bryan H. Fletcher

Programming in the MAXQ environment

MV V210 Android 4.0 Compilation

Software Development Advanced

S1C17 Family Application Note S1C17 Series Boot Loader Sample Software

Transcription:

PocketStoreII v1.5.1 Quick Installation Guide April 2007, Version 2.4

Copyright notice Copyrightc 2007 Flash Software Group, Samsung Electronics, Co., Ltd All rights reserved. Trademarks PocketStoreII is trademark of Flash Software Group, Samsung Electronics Co., Ltd in Korea and other countries Restrictions on Use and Transfer All software and documents of PocketStoreII are commercial software. Therefore, you must install, use, redistribute, modify and purchase only in accordance with the terms of the license agreement you entered into with Flash Software Group, Samsung Electronics Co., Ltd. All advertising materials mentioning features or use of this software must display the following acknowledgement: "This product includes PocketStoreII written by Flash Software Group, Samsung Electronics Co., Ltd. Quick Installation Guide 2

Preface SEC-FSG PS2 IG-001 This document is a quick installation guide for PocketStoreII v1.5.1 for Windows Mobile 6.0 developed by Flash Software Group, Samsung Electronics. Purpose This document is intended for Project Manager, Project Leader, and Application Programmers who are installing PocketStoreII for the first time. All users must have experience with Microsoft Window Mobile software. Scope This document provides the requirements and instructions for installing, configuring and building PocketStoreII on target. Definitions and Acronyms Acronyms BSP EBOOT IPL IMGFS FATFS Block FTL HAL OTP ONW XSR Definition Board Support Package Ethernet BOOT / Ethernet Boot-loader Initial Program Loader Image File System FAT File System OneNAND is partitioned into fixed-sized blocks. A block is 128K bytes. Flash Translation Layer A software module which maps between logical addresses and physical addresses when accessing OneNAND memory Hardware Abstraction Layer One Time Programmable OneNAND Writer extended Sector Remapper Related Documents - XSR v1.5.1_part1.sector Translation Layer Programmer s guide - XSR v1.5.1_part2.block Management Layer Programmer s guide History Version Date Comment Author 2.0 2006-06-23 Initial revision Hyunsoo Cho 2.2 2007-04-13 Modified Heejun Lim 2.3 2007-04-26 Modified Jongsoon Park 2.4 2007-04-27 Review Thomas Quick Installation Guide 3

1. PocketStoreII Installation PocketStoreII is a flash translation layer, made by Samsung Electronics, for OneNAND device that uses Windows Mobile as operating system. This section provides the prerequisites for installing the PocketStoreII v1.5.1 on Windows Mobile 6.0 1.1. Prerequisites Target H/W with Samsung OneNAND Microsoft Windows Mobile AKU6.x Samsung PocketStoreII v1.5.1 for Windows Mobile Package 1.2. Install PocketStoreII Package Unzip PocketStoreII package file. (PocketStoreII_v1.5.1_pX_%_TARGETPLATROOT%.zip) into your BSP. Recommended directory location is %_TARGETPLATROOT%\Src\PocketStoreII. Quick Installation Guide 4

We also provide example of Eboot source in %_TARGETPLATROOT% \Platform\Src\PocketStoreII\Example\directory. But those sources are just a reference sample, so you may need to modify Eboot for your own target H/W. 1.3. PocketStoreII Configuration 1.3.1. Modify build configure files Modify %_TARGETPLATROOT%\src\PocketStoreII\env.bat for your BSP You should set these environment variables for building PocketStoreII set BSP_POCKETSTORE=1 set XSR_PAM=<CPU_TYPE> Add environment variables into %_TARGETPLATROOT%\%_TGTPLAT%.bat @REM Include PocketStoreII configuration call %_TARGETPLATROOT% \Platform\src\PocketStoreII\env.bat Add PocketStoreII directory into %_TARGETPLATROOT% \Platform\src\DIRS DIRS =. \ PocketStoreII \ 1.3.2. Modify OS configuration files Add PocketStoreII DLL into %_TARGETPLATROOT%\files\platform.bib MODULES ; Name Path Memory Type ; -------------- ---------------------------------- ----------- IF BSP_POCKETSTORE ONDisk.dll $(_FLATRELEASEDIR)\ONDisk.dll NK SH ENDIF BSP_POCKETSTORE Modify %_TARGETPLATROOT%\files\platform.reg IF BSP_POCKETSTORE #include "$(_TARGETPLATROOT)\Platform\src\PocketStoreII\PocketStoreII.reg" Quick Installation Guide 5

ENDIF BSP_POCKETSTORE You may refer to the %_TARGETPLATROOT%\ Src\PocketStoreII\PocketStoreII.reg file. Modify %_TARGETPLATROOT%\files\memory.cfg.xml <HARDWARE> <RAM START="0x84000000" LENGTH="0x02000000"></RAM> <NAND SECTORSIZE="0x800" BLOCKSIZE="0x1F800" LENGTH="0x01A16000" ID="FLASH" /> </HARDWARE> Memory.cfg.xml describes the platform s RAM and Flash memory layout. The layout will be used when disk image tool creates the OS image. Following table shows information about configuration attributes that used in above sample. Attribute name value Description SECTORSIZE 0x800 Sector size in bytes BLOCKSIZE 0x1F800 Block size of NAND flash in bytes. It is fixed in PocketStoreII. LENGTH 0x1A16000 Size of OS image in bytes. It must be even multiple value of BLOCKSIZE ID FLASH Unique, non-empty identifier You may change the length if you want to change the image size or build the BSP in debug configuration. USERSTORE element, showed bellow example, should be removed from memory.cfg.xml. <IMGFS ID="OS" STORAGE_ID="MBStrata" FREE_SPACE_BUFFER="0x40000"/> <USERSTORE STORAGE_ID="MBStrata" ID="Storage" PART_TYPE="0x04" /> </PARTITIONS> Add PocketStoreII code into %_TARGETPLATROOT%\files\wpc\oem.cpm.csv or %_TARGETPLATROOT%\files\smartfon\oem.cpm.csv nk.exe,oemxipkernel ONDisk.dll,OEMXIPKERNEL Quick Installation Guide 6

1.3.3. Modify OAL(Os Adaptation Layer) & KERNEL Add PocketStoreII handler into %_TARGETPLATROOT%\Platform\src\inc\ioctl_tab.h { IOCTL_HAL_POSTINIT, 0, OALIoctlPostInit }, { IOCTL_POCKETSTOREII_CMD, 0, OALIoCtlPocketStoreCMD }, Add PocketStoreII handler into %_TARGETPLATROOT%\Platform\src\kernel\oal\ioctl.c #include <XSR.h> #include <HALWrapper.h> CRITICAL_SECTION cspocketstorebml; BOOL OALIoctlPostInit( UINT32 code, VOID *pinpbuffer, UINT32 inpsize, VOID *poutbuffer, UINT32 outsize, UINT32 *poutsize) { RETAILMSG(1,(TEXT("[OEMIO:INF] + IOCTL_HAL_POSTINIT\r\n"))); InitializeCriticalSection(&csPocketStoreBML); RETAILMSG(1,(TEXT("[OEMIO:INF] - IOCTL_HAL_POSTINIT\r\n"))); } return TRUE; BOOL OALIoCtlPocketStoreCMD( UINT32 code, VOID *pinpbuffer, UINT32 inpsize, VOID *poutbuffer, UINT32 outsize, UINT32 *poutsize) { BOOL bresult; EnterCriticalSection(&csPocketStoreBML); bresult = PSII_HALWrapper(pInpBuffer, poutbuffer, poutsize); LeaveCriticalSection(&csPocketStoreBML); if (bresult == FALSE) { RETAILMSG(1,(TEXT("[OEMIO:INF] * IOCTL_POCKETSTOREII_CMD Failed\r\n"))); return FALSE; } } return TRUE; Add PocketStoreII libraries into %_TARGETPLATROOT%\Platform\src\kernel\oal\sources and SOURCELIBS= \ Quick Installation Guide 7

$(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUINDPATH)\PSIIHALWrapper. lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUINDPATH)\PSIIGetUID.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUINDPATH)\BML.lib \!IF ("$(IMGULDR)"=="1") $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUINDPATH)\OSLessOAM_RW.lib \!ELSE $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUINDPATH)\OSLessOAM_KE R.lib \!ENDIF $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUINDPATH)\$(XSR_PAM)PA M.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUINDPATH)\ONLD.lib 1.3.4. Modify Config.h %_TARGETPLATROOT%\Platform\src\PocketStoreII\config.h #define PSII_VERSION "[PocketStoreII] v1.5.1 P4 (16/FEB/2007)\r\n" #undef PSII_DBGMSG_ENABLE #include "config_debug_msg.h" #define ONENAND_BASEADDR #define LLD_OTP_UID #define LLD_OTP_PBN region) 0x08000000 // OTP read enable 1000 // OTP block npbn (should be in unlocked PSII_DBGMSG_ENABLE decides whether to take print out of PocketStoreII debug message or not. If it is undefined, the debug message will not be shown. And if it is defined, you can control the message category in config_debug_msg.h. ONENAND_BASEADDR defines the physical base address of the OneNAND and it may be different to hardware configuration. 1.3.5. Modify BOOTLOADER Add PocketStoreII libraries into %_TARGETPLATROOT%\Platform\src\BOOTLOADER\EBOOT\sources TARGETLIBS= \ $(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\eboot.lib \ $(_TARGETPLATROOT)\lib\$(_CPUDEPPATH)\bootpart.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\STL.lib \ Quick Installation Guide 8

$(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\$(XSR_PAM) PAM.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\BML.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\OSLessOAM.l ib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\ONLD.lib \ Also, add PocketStoreII libraries into %_TARGETPLATROOT%\Platform\src\ BOOTLOADER\IPL\sources TARGETLIBS= \ $(_TARGETPLATROOT)\lib\$(_CPUDEPPATH)\bootpart.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\STL.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\$(XSR_PAM) PAM.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\BML.lib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\OSLessOAM.l ib \ $(_TARGETPLATROOT)\src\PocketStoreII\Lib\$(_CPUDEPPATH)\ONLD.lib 1.4. Build & Run After completing build & makeimg, you may have ONBL1.nb0, ONBL2.nb0 from PocketStoreII. These two binaries should be written to 0-th block in OneNAND. For writing images to OneNAND, you may simply use provided ONW or make your own customized utility. For both the cases, you can refer to the chapter 3. Quick Installation Guide 9

2. Platform Customization This chapter describes configuration changes based on your platform to deploy PocketStoreII. 2.1. Samsung S3C2410X This platform only supports OneNAND asynchronous read mode with ncs0 booting. You may use default configuration without changes. Modify %_TARGETPLATROOT%\Src\PocketStoreII\env.bat set BSP_POCKETSTORE=1 set XSR_PAM=S3C2410X 2.2. TI OMAP730 / OMAP850 This platform supports both asynchronous and synchronous read mode with internal and external booting. If you are using external boot, you may use default configuration. But you should change following configurations for internal boot. Modify %_TARGETPLATROOT%\Src\PocketStoreII\env.bat set BSP_POCKETSTORE=1 set XSR_PAM=OMAP850 %_TARGETPLATROOT%\src\PocketStoreII\config.h //PAM.cpp #define ONENAND_BASEADDR #define PAM_USE_ASMCPY 0x0C000000 // We will use assembly memcpy %_TARGETPLATROOT%\Src\PocketStoreII\ONBL1\OMAP850\OneNAND.inc ONLD_BASE_ADDRESS EQU 0x0C000000 %_TARGETPLATROOT%\src\PocketStoreII\ONBL1\OMAP730\startup.s Quick Installation Guide 10

ONBL2_BASE_ADDRESS EQU 0x13150000 This address should be same with the entry point of ONBL2 2.3. INTEL PXA320 This platform only supports OneNAND asynchronous read mode with ncs0 booting. You may use default configuration without changes. Modify %_TARGETPLATROOT%\Platform\ZYLONITE\Src\PocketStoreII\env.bat set BSP_POCKETSTORE=1 set XSR_PAM=PXA320 2.4. OMAP2420 This platform has 2 different booting modes and OneNAND base address depends on the booting mode. So, two different base addresses are specified to config.h for each booting mode Modify %_TARGETPLATROOT%\Src\PocketStoreII\config.h #include "config_debug_msg.h" #define ONENAND_BASEADDR 0x08000000 // OMAP2420 #define ONENAND_BASEADDR2 0x00000000 // OMAP2420 for external booting Quick Installation Guide 11

3. ONW ONW (OneNAND Writer) is the OneNAND writing tool for writing binary images from host memory to OneNAND. For adopting PocketStoreII, you should format OneNAND by BML or STL layer before writing any binary images. For this, ONW may format OneNAND and write your own binary images. ONW is executed on RAM in target platform, so you can use JTAG tool or your own tool to download ONW. The memory location of written binary images for ONW is pre-defined in ONWConfig.h. 3.1. ONW Configuration Some information have to be modified to appropriate value for target platform. These addresses are used for the buffer of bootloader images. %_TARGETPLATROOT%\src\PocketStoreII\ONW\ONWconfig.c #define ONBL1_ADDRESS #define ONBL2_ADDRESS #define EBOOT_ADDRESS #define IPL_ADDRESS #define OS_ADDRESS 0x80100000 0x80150000 0x80200000 0x80300000 0x80400000 #define NUM_OF_IMAGE 4 #define ONW_BML_FORMAT #define ONW_OS_FORMAT #define ONW_OS_WRITE #define ONW_FAT_FORMAT c.f. Macro description MACRO NUM_BML_IMG_WRITE NUM_BML_PARTITION ONBL1_ADDRESS ONBL2_ADDRESS EBOOT_ADDRESS IPL_ADDRESS OS_ADDRESS ONW_BML_FORMAT ONW_OS_FORMAT Description It means the number of binary images written by BML. In this case, 3 binary images mean ONBL1&ONBL2, EBOOT, and IPL. OS region isn t concerned with this configuration. It means the number of BML partition to be created in OneNAND It means the buffer location for ONBL1&ONBL2 image. The size of ONBL1 is 2KB (1KB is unused.) and the size of ONBL2 is 126KB. Always ONBL1 and ONBL2 should reside in the first block of OneNAND. It means the buffer location of EBOOT image. It means the buffer location of IPL image. It means the buffer location of OS image. You should check the size of written dio file, and the size of RAM area. This macro can be used only if OS_REGION_WRITE is defined. It means BML format on all BML partitions. This operation doesn t erase OneNAND. So, you can always define this macro. It means STL_Format on OS partition. You should format Quick Installation Guide 12

ONW_OS_WRITE ONW_FAT_FORMAT NUM_OF_IMAGE OS partition before writing OS image. This operation may erase the partition. It means to write OS image on OS partition. It means STL_Format on FAT partition. You should format FAT partition before booting up. Format operation will do all FAT partitions. Total number of OneNAND to write image. The following is a BML partition configuration. You may change this for your own purpose. %_TARGETPLATROOT%\src\PocketStoreII\ONW\$(XSR_PAM)\ONWConfig.c If you want to use OneNAND for booting & storage device, use below code. VOID _SetXSRPI(VOID) { gstxsrparti.nnumofpartentry = NUM_BML_PARTITION; gstxsrparti.stpentry[0].nid = PARTITION_ID_EBOOT; gstxsrparti.stpentry[0].nattr = BML_PI_ATTR_RO BML_PI_ATTR_FROZEN; gstxsrparti.stpentry[0].n1stvbn = EBOOT_START; gstxsrparti.stpentry[0].nnumofblks = EBOOT_NUM; gstxsrparti.stpentry[1].nid = PARTITION_ID_IPL; gstxsrparti.stpentry[1].nattr = BML_PI_ATTR_RO BML_PI_ATTR_FROZEN; gstxsrparti.stpentry[1].n1stvbn = IPL_START; gstxsrparti.stpentry[1].nnumofblks = IPL_NUM; gstxsrparti.stpentry[2].nid = PARTITION_ID_COPIEDOS; gstxsrparti.stpentry[2].nattr = BML_PI_ATTR_RO; gstxsrparti.stpentry[2].n1stvbn = OS_START; gstxsrparti.stpentry[2].nnumofblks = OS_NUM; gstxsrparti.stpentry[3].nid = PARTITION_ID_FILESYSTEM; gstxsrparti.stpentry[3].nattr = BML_PI_ATTR_RW; gstxsrparti.stpentry[3].n1stvbn = FAT0_START; gstxsrparti.stpentry[3].nnumofblks = FAT0_NUM; gstxsrparti.stpentry[4].nid = PARTITION_ID_FILESYSTEM+1; gstxsrparti.stpentry[4].nattr = BML_PI_ATTR_RW; gstxsrparti.stpentry[4].n1stvbn = FAT1_START; gstxsrparti.stpentry[4].nnumofblks = FAT1_NUM; } gstxsrparti.stpentry[5].nid = PARTITION_ID_EBOOTCFG; gstxsrparti.stpentry[5].nattr = BML_PI_ATTR_RW; gstxsrparti.stpentry[5].n1stvbn = EBOOTCFG_START; gstxsrparti.stpentry[5].nnumofblks = EBOOTCFG_NUM; If you want to use OneNAND as only storage device, replace the above part to below part. VOID _SetXSRPI(VOID) { Quick Installation Guide 13

gstxsrparti.nnumofpartentry = 1; } gstxsrparti.stpentry[0].nid = PARTITION_ID_FILESYSTEM; gstxsrparti.stpentry[0].nattr = BML_PI_ATTR_RW; gstxsrparti.stpentry[0].n1stvbn = 0; gstxsrparti.stpentry[0].nnumofblks = 1001; Edit the memory configuration of ONW in %_TARGETPLATROOT%\Platform\src\PocketStoreII\ ONW\$(XSR_PAM)\onw.bib Following values are have to be modified to appropriate values. MEMORY ; Name Start Size Type ; ------- -------- -------- ---- RAM 80060000 00050000 RAM STACK 80040000 00020000 RESERVED ONW 80000000 00040000 RAMIMAGE ROMSTART=80000000 ROMWIDTH=32 ROMSIZE=40000 Also you should customize startup.s code that is located at %_TARGETPLATROOT%\Platform\src\PocketStoreII\ONW\startup.s 3.2. Executing ONW You may use In-Circuit-Debugger or UART to download ONW, bootloader and OS image into your target RAM. And you should confirm that the downloading address in target matches with ONBL_ADDRESS, EBOOT_ADDRESS, IPL_ADDRESS and OS_ADDRESS. Complete downloading these binaries, and execute ONW to write other images to OneNAND. Then, you may see several messages from ONW through UART. If there is no errors in writing OneNAND, reboot the target and check log messages from OneNAND booting sequence. Quick Installation Guide 14