rem *** this file was generated by MakeDNL.bat *** 
 
rem Test writing to all FFS partitions: if writing fails, the partition is formatted 
ffs_check nand0 
ffs_check nand1 
rem setdisplay MID_CUSTOMER 
rem create all directories 
rmdir /dev/nand0/cfg 
mkdir /dev/nand0/cfg 
rmdir /dev/nand0/fonts 
mkdir /dev/nand0/fonts 
rmdir /dev/nand0/images 
mkdir /dev/nand0/images 
rem delete old files 
delete /dev/nand0/SysProg1.out 
delete /dev/nand0/SysProg2.out 
delete /dev/nand0/sysprogosalio.out 
delete /dev/nand0/sysprogcal.out 
delete /dev/nand0/sysprogperf.out 
delete /dev/nand0/ProcBase.out 
delete /dev/nand0/ProcMW.out 
delete /dev/nand0/ProcHMI.out 
delete /dev/nand0/ProcMM.out 
delete /dev/nand0/ProcMP1.out 
delete /dev/nand0/ProcMap.out 
delete /dev/nand0/ProcNav.out 
delete /dev/nand0/ProcCHN.out 
delete /dev/nand0/ProcSDS.out 
delete /dev/nand0/ProcVideo.out 
delete /dev/nand0/config.bin 
delete /dev/nand0/resource.bin 
delete /dev/nand0/BuildVersion.reg 
delete /dev/nand0/base.reg 
delete /dev/nand0/hmiapp.reg 
delete /dev/nand0/map.reg 
delete /dev/nand0/mmapp.reg 
delete /dev/nand0/MWapp.reg 
delete /dev/nand0/mp1app.reg 
delete /dev/nand0/conf.reg 
delete /dev/nand0/sdsapp.reg 
delete /dev/nand0/videoapp.reg 
delete /dev/nand0/navapp.reg 
delete /dev/nand0/errmemflag.dnl 
delete /dev/nand0/sys_toc.cfg 
delete /dev/nand0/navdata.cfg 
rem download the process files in the required directories 
verify on 
rem unpack images first, this is faster: 
unpack images.uli 
echo processing file 2 of 21 
copy sysprog1.out /dev/nand0/SysProg1.out 
echo processing file 3 of 21 
copy sysprog2.out /dev/nand0/SysProg2.out 
echo processing file 4 of 21 
copy sysprogosalio.out /dev/nand0/sysprogosalio.out 
echo processing file 5 of 21 
copy sysprogcal.out /dev/nand0/sysprogcal.out 
echo processing file 5.1 of 21 
copy sysprogperf.out /dev/nand0/sysprogperf.out 
echo processing file 6 of 21 
copy ProcBase.out /dev/nand0/ProcBase.out 
echo processing file 7 of 21 
copy ProcMW.out /dev/nand0/ProcMW.out 
echo processing file 8 of 21 
copy ProcHMI.out /dev/nand0/ProcHMI.out 
echo processing file 9 of 21 
copy ProcMM.out /dev/nand0/ProcMM.out 
echo processing file 10 of 21 
copy ProcMP1.out /dev/nand0/ProcMP1.out 
echo processing file 11 of 21 
copy ProcMap.out /dev/nand0/ProcMap.out 
echo processing file 12 of 21 
copy ProcNav.out /dev/nand0/ProcNav.out 
echo processing file 13 of 21 
echo processing file 13.1 of 21 
verify on 
verify flash 
rem programming Rul_Testmanager with implicit erase 
rem but no update of RUL from the cd in car, as update has to be undervoltage safe 
ignore cd Rul_Testmanager_Rom.bin  
load_bin Rul_Testmanager_Rom.bin 0xbfca0000 
rem programming resident unit 
echo processing file 1 of 21 
erase 0xbf820000 0x00360000 
load_bin dragon.bin 0xbf820000 
rem download the registry files in the required directories 
verify off 
echo processing file 14 of 21 
copy BuildVersion.reg /dev/nand0/BuildVersion.reg 
echo processing file 15 of 21 
echo processing file 16 of 21 
copy config.bin /dev/nand0/config.bin 
echo processing file 17 of 21 
copy resource.bin /dev/nand0/resource.bin 
verify on 
echo processing file 18 of 21 
unpack registries.uli 
echo processing file 19 of 21 
unpack fonts.uli 
echo processing file 20 of 21 
unpack cfg1.uli 
unpack cfg2.uli 
copy navdata.cfg /dev/nand0/navdata.cfg 
rem special commands begin ---------------------------- 
verify off 
delete /dev/nand0/tun_LearnMem_lmm.dat 
delete /dev/nand0/Clock_LMM.dat 
delete /dev/nand0/display.cfg 
delete /dev/nand0/DnlSrcCARD.set 
delete /dev/nand0/DnlSrcCd.set 
delete /dev/nand0/DnlSrcDVD.set 
delete /dev/nand0/DnlSrcUSB.set 
delete /dev/nand0/download.off 
delete /dev/nand0/download.on 
delete /dev/nand0/FC_SPM_BACKGROUND.dat 
delete /dev/nand0/FC_SPM_LOG.dat 
delete /dev/nand0/FC_SPM_WATCHDOG.dat 
delete /dev/nand0/FC_TmcTuner_LMM.dat 
delete /dev/nand0/gps_int1.dat 
delete /dev/nand0/HEATCTRL_LMM.DAT 
delete /dev/nand0/KBD_LMM.dat 
delete /dev/nand0/landscape_crrsw.dat 
delete /dev/nand0/Lightning_LMM.dat 
delete /dev/nand0/OffsetBase.dat 
delete /dev/nand0/OffsetRds.dat 
delete /dev/nand0/ProfileCtrl_LMM.dat 
delete /dev/nand0/personalised_crrsw.dat 
delete /dev/nand0/protected_crrsw.dat 
delete /dev/nand0/replay.bin 
delete /dev/nand0/replay.cfg 
delete /dev/nand0/resetsaveram_crrsw.dat 
delete /dev/nand0/sys_toc.cfg 
delete /dev/nand0/TM_LMM1.dat 
delete /dev/nand0/tr_class_cnfg.cfg 
delete /dev/nand0/tr_dev_cnfg.cfg 
delete /dev/nand0/trip.bin 
delete /dev/nand0/trip.cfg 
delete /dev/nand0/tun_QuartHour_lmm.dat 
delete /dev/nand0/unprotected_crrsw.dat 
delete /dev/nand0/VDCLK_LMM.DAT 
delete /dev/nand0/vdsensor/gpsdata.bin 
delete /dev/nand0/vdsensor/gyrodata.bin 
delete /dev/nand0/vdsensor/odomdata.bin 
delete /dev/nand0/datapool/DP_CONFIG 
delete /dev/nand0/datapool/DP_EOL 

rem leave the HMI datapool untouched
rem delete /dev/nand0/datapool/DP_HMIINTERNAL 
rem delete /dev/nand0/datapool/DP_NAV 
rem delete /dev/nand0/datapool/DP_TUNER 

delete /dev/nand0/AllInOne.zip 
delete /dev/nand0/cdda_lastmode.dat 
delete /dev/nand0/MP_pers_1.ini 
delete /dev/nand0/MP_pers_hdd.dat 
delete /dev/nand0/MP_pers_dvd.dat 
delete /dev/nand0/MP_pers_usb.dat 

rem leave the HMI datapool untouched
rem mkdir /dev/nand0/datapool 
rem rmdir /dev/nand0/datapool 

rem EOL Trigger to be set 
copy BuildVersion.reg /dev/nand0/EOLUpdateTrigger.dat 
rem copy navdata.cfg /dev/nand0/ForceEOLTrigger.dat 
rem special commands end ----------------------------- 
rem LAST FILE TOC 
verify off 
echo on 
echo processing file 21 of 21 
copy sys_toc.cfg /dev/nand0/sys_toc.cfg 
copy sys_toc.cfg /dev/nand0/rul.dnl 
rem verify all 
verify on 
rem delete homezone 
rem Erase sector with DNL flag in raw NOR flash: 
erase 0xbfc20000 0x00020000 
echo SUCESSFULLY DONE 
endfile 
