sl@0: @rem
sl@0: @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: @rem All rights reserved.
sl@0: @rem This component and the accompanying materials are made available
sl@0: @rem under the terms of "Eclipse Public License v1.0"
sl@0: @rem which accompanies this distribution, and is available
sl@0: @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: @rem
sl@0: @rem Initial Contributors:
sl@0: @rem Nokia Corporation - initial contribution.
sl@0: @rem
sl@0: @rem Contributors:
sl@0: @rem
sl@0: @rem Description:
sl@0: @rem
sl@0: 
sl@0: ::	IMPORTANT NOTE:
sl@0: ::	Before running these batch file, the following steps need to be done:
sl@0: ::
sl@0: ::	- copy estartnandcomp.txt in the testfiles folder to epoc32\rom\h4hrp\unistore2
sl@0: ::
sl@0: ::	- Update the quicknand.bat to include "rofs2.img" and "rofs3.img" and copy this file to epoc32\rom\h4hrp\
sl@0: ::	  (copy quicknand.bat from the testfiles folder)
sl@0: 
sl@0: ::	- Create the nandloader:
sl@0: ::		- get the source code for base_e32 component using CBR
sl@0: ::		- navigate to ..\cd cedar\generic\base\e32\rombuild\
sl@0: ::		- run the following command
sl@0: ::		- rom -v=h4hrp -i=armv5 -b=urel -t=nandloader -m=_NAND2
sl@0: ::		- zip this into a sis$rom.zip and copy it on the MMC card
sl@0: ::
sl@0: ::	- Copy the core.img,rofs1.img,rofs2.img,rofs3.img to MMC card
sl@0: ::
sl@0: ::	Upon boot-up of the board the device will go in to the NAND LOADER.  Select 0 to Format the NAND Drive. 
sl@0: ::	Then press 9 to exit the NAND Loader
sl@0: ::
sl@0: ::	Call quicknand.bat to set-up the core image and the rofs partitions.
sl@0: ::
sl@0: ::	- Run featregsetuptest
sl@0: ::
sl@0: ::	F=FEATURE & XF=EXCLUDE_FEATURE
sl@0: ::	CORE
sl@0: ::	F=		XF
sl@0: ::	
sl@0: ::	ROFS2.IBY
sl@0: ::	F=TestAA  	XF=TestBB, Fax, XF=TestCC
sl@0: ::
sl@0: ::	ROFS3.IBY
sl@0: ::	ROFS3	F=TestBB,Usb	XF=TestAA, F=TestCC	
sl@0: ::
sl@0: :: This batch file should be run from \epoc32\rom\tools
sl@0: ::
sl@0: :: BUILDING THE DEFAULT TECHVIEW ROM IN NAND2 I.E CORE AND ROFS1 
sl@0: ::
sl@0: call buildrom -D_FULL_DEBUG -D_NAND2 -D_ROFS_SIZE=20000000 h4hrp techview removablefeatures.iby featregsetupTest.iby -f..\include\featureUIDs.xml
sl@0: ren h4hrp_001.techview.nand.rofs.img rofs1.img
sl@0: 
sl@0: :: BUILDING THE ADDITIONAL ROM SECTION 2
sl@0: ::
sl@0: call buildrom -D_FULL_DEBUG -D_NAND2 -D_ROFS_SIZE=20000000 h4hrp techview removablefeatures.iby rofs2.iby -f..\include\testfeatureUIDs2.xml
sl@0: ren h4hrp_001.techview.nand.rofs2.img rofs2.img
sl@0: 
sl@0: :: BUILDING THE FINAL ROM SECTION 3
sl@0: ::
sl@0: call buildrom -D_FULL_DEBUG -D_NAND2  -D_ROFS_SIZE=20000000 h4hrp techview removablefeatures.iby rofs2.iby rofs3.iby -f..\include\testfeatureUIDs3.xml
sl@0: ren h4hrp_001.techview.nand.rofs3.img rofs3.img
sl@0: ren h4hrp_001.techview.nand.IMG core.img
sl@0: 
sl@0: :: NOW JUST COPY THESE TO THE MMC CARD WITH THE NANDLOADER
sl@0: