rem *** this file was generated by MakeDNL.bat ***

rem partnumbers MY11.5 EEU
rem Bootsoftware Partnumber 13458536
writekds 0x0dd8 0x685CCD
rem Bootsoftware Partnumber Alphacode
writekds 0x0dd9 AA 
 
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 
rmdir /dev/nand0/sds 
mkdir /dev/nand0/sds 
mkdir /dev/nand0/sds/ser 
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 
delete /dev/nand0/lid/imp_data/lid_id.dat 
delete /dev/nand0/lid/imp_data/lid_data/connect.dat   
delete /dev/nand0/lid/imp_data/lid_data/lid00002.dat 
delete /dev/nand0/lid/imp_data/lid_data/meta0000.dat 
rmdir /dev/nand0/POI/user 
mkdir /dev/nand0/POI/user 
rem download the process files in the required directories 
verify on 
rem unpack images first, this is faster: 
unpack images0.uli 
unpack images1.uli 
unpack images2.uli 
unpack images3.uli 
unpack images4.uli 
unpack images5.uli 
unpack images6.uli 
unpack images7.uli 
unpack images8.uli 
unpack images9.uli 
unpack images10.uli 
unpack images11.uli 
unpack images12.uli 
unpack images13.uli 
unpack images14.uli 
unpack images15.uli 
unpack images16.uli 
unpack images17.uli 
unpack images18.uli 
unpack images19.uli 
unpack images20.uli 
unpack images21.uli 
unpack images22.uli 
unpack images23.uli 
unpack images24.uli 
unpack images25.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 off 
copy NavMediumAccess.cfg /dev/nand0/NavMediumAccess.cfg 
verify on 
echo processing file 33.2 of 45 
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 new reset vector 
load_bin reset_vect.bin 0xbfc00000 
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 
rmdir /dev/nand0/tima 
unpack fonts.uli 
echo processing file 20 of 21 
rem special commands begin ---------------------------- 
verify off 
delete /dev/nand0/tun_LearnMem_lmm.dat 
delete /dev/nand0/TM_LMM1.dat 
delete /dev/nand0/DCM_TunerMaster_LMM_d0.dat 
delete /dev/nand0/DCM_TunerMaster_LMM_d1.dat 
delete /dev/nand0/DCM_TunerMaster_LMM_d2.dat 
delete /dev/nand0/cfg/navi/loaddec.ini 
delete /dev/nand0/cfg/navi/sentence.snt 
delete /dev/nand0/cfg/navi/tripfile.ini 
delete /dev/nand0/china/elftest.cfg 
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/UAM_LMM.DAT 
delete /dev/nand0/UAM_ROWDETAIL1.dat 
delete /dev/nand0/UAM_ROWDETAIL2.dat 
delete /dev/nand0/UAM_ROWDETAIL3.dat 
delete /dev/nand0/UAM_ROWDETAIL4.dat 
delete /dev/nand0/UAM_ROWDETAIL5.dat 
delete /dev/nand0/UAM_ROWDETAIL6.dat 
delete /dev/nand0/UAM_ROWDETAIL7.dat 
delete /dev/nand0/UAM_ROWDETAIL8.dat 
delete /dev/nand0/UAM_ROWDETAIL9.dat 
delete /dev/nand0/UAM_ROWDETAIL10.dat 
delete /dev/nand0/UAM_ROWDETAIL11.dat 
delete /dev/nand0/UAM_ROWDETAIL12.dat 
delete /dev/nand0/UAM_ROWDETAIL13.dat 
delete /dev/nand0/UAM_ROWDETAIL1BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL2BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL3BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL4BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL5BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL6BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL7BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL8BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL9BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL10BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL11BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL12BKUP.dat 
delete /dev/nand0/UAM_ROWDETAIL13BKUP.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 
delete /dev/nand0/datapool/DP_HMIINTERNAL 
delete /dev/nand0/datapool/DP_NAV 
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 
rmdir /dev/nand0/pv  
mkdir /dev/nand0/datapool 
rmdir /dev/nand0/datapool 
rmdir /dev/nand0/uam_db 
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 
format nand1 
rem Erase sector with DNL flag in raw NOR flash: 
erase 0xbfc20000 0x00020000 
echo SUCESSFULLY DONE 
endfile 
