Re: Downloading nk.bin to Target device without PB?



There are 4 files in the CF card
1. autorun.cmd - first file to run, format the flash, call the below 3 files
in
following sequence, wait for the CF card to be
removed
and reset the system
2. update.z - mount the firmware to drive 3 " can i replace this with BSP
..o or .dll???"
3. Config.xml - replace xml to be use by the program drive 1
4. boot.rom - reprogram and replacing the bootloader in drive 1

There is two part of the xml i don't understand
1) Where is the image="vm10153.rom"?
Does it reside inside update.z firmware?

<bootloader name="bootloader1" select="1">
<application name="1" image="vm10153.rom"/>
</bootloader>
2) The filesystem resides in filesystem also?

<script name="001" main="app.xml">
<filesystem name="script" filename="script11001.z"/>
<filesystem name="fonts" filename="fonts11001.z"/>
<filesystem name="audio" filename="audio11001.z"/>
<filesystem name="pics" filename="pics11001.z"/>
<filesystem name="custom" filename="tables11001.z"/>
<filesystem name="adverts" filename="adverts11001.z"/>
////////////////////////////////////////
'cv2021.cmd

' format the strata flash
drive 1
drive 0
format !!!

' select the compact flash drive
drive 1

' copy the firmware
mount update.z
drive 3
copy * 0

' copy the updated config file
drive 1
copy config.xml 0

' re-program the bootloader
drive 1
bootroot boot.rom


'================================================
'================================================
'
' REMOVE THE COMPACT FLASH CARD !!!
'
'================================================
'================================================

' wait for compact flash card to be removed
cflash detect 0

' reset the cv
reset



//////////////////////////////////////////
<?xml version = "1.0"?>

<config name="config1">
<bootloader name="bootloader1" select="1">
<application name="1" image="vm10153.rom"/>
</bootloader>

<hardware name="hardware1">
<screen name="SCREEN"/>

<cv2021serial name="COMdebug" PortNumber="0" baudrate="115200" />


<Option name="GpsOption" Sel="GpsSignav" Text=" ">
<Object name="GpsSignav" Text=" ">

<cv2021serial name="COMgps" PortNumber="5" baudrate="9600" />
<NMEAGPS name="GPS" Serial="COMgps" OnChange="GPSOnChange"
ReportOnTime="1000" ReportOnDistance="20"
ModemResetCmds=""$PAUSA,002,,8,0,C,3,6,4.5,2,1","$PAUSA,004,,0,0122.00,N,10355.00,E,0032,M","$PAUSA,016,"" ReceiverID="4"/>

</Object>

<Object name="GpsMG5101" Text=" ">

<cv2021serial name="COMgps" PortNumber="5" baudrate="4800"
invertrx="false" inverttx="false" />
<GPSMG5101 name="GPS" Serial="COMgps" OnChange="GPSOnChange"
ReportOnTime="1000" ReportOnDistance="20"/>

</Object>
</Option>

<!--************************************** TV1021 module
************************************** -->

<!-- ScanBusSerial configout: pprrrrttttBBff - port, receive, transmit,
baud, flags
baud: 0=9600, 1=300, 2=512, 3=600, 4=1200, 5=2400, 6=4800, 7=7200, 8=19200,
9=38400, 10=57600
flags: 0=one stop bit, 8=two stop bits, 0=7 bits, 4=8 bits, 0=none 1=odd
2=even
-->

<ScanBusNode name="tv1021" portnumber="6" NodeAddress="1"
DataReserved="16" MaxBaudRate="1" MaxHDLCTransfer="200" ProcessTimeout="30"
Description="Head unit..." Text=" ">
<ScanBusSerial name="COMTouchScreen" node="tv1021"
ConfigOut="0400800002"/>
<ScanBusSerial name="ComKB" node="tv1021"
ConfigOut="0501000100"/>
<ScanBusSerial name="COMTVB" node="tv1021"
ConfigOut="01008000800000"/>
<ScanBusSerial name="ComTVC" node="tv1021"
ConfigOut="0200800080"/>
<ScanBusSerial name="ComTVTemp" node="tv1021"
ConfigOut="0600040001"/> <!-- 2 bytes per sample, temp in K -->
<ScanBusSerial name="ComTVBL" node="tv1021"
ConfigOut="0700010002"/> <!-- 1 byte per sample -->
</ScanBusNode>

<!--************************************** Serial Module
************************************** -->
<ScanBusNode name="SerialExp" portnumber="7" NodeAddress="1"
DataReserved="16" MaxBaudRate="1" MaxHDLCTransfer="200" ProcessTimeout="30"
Description="Serial Expansion" Text=" ">

<!--************* Mobitex modem -->
<ScanBusSerial name="COMnif" node="SerialExp"
ConfigOut="00010001000002"/>
<ScanBusPin name="PinDTRnif" node="SerialExp" ConfigOut="0883000080" />
<ScanBusSerial name="COMrts" node="SerialExp"
ConfigOut="0100800080040A"/>
<ScanBusSerial name="ComSerC" node="SerialExp"
ConfigOut="02008000800000"/>

<!-- break on port 1 -->
<!--
<ScanBusPin name="PinSerBK1" node="SerialExp" ConfigOut="0f83000080" />
-->

<!-- control the serial board driver IC correctly -->
<ScanBusPin name="COMpinDriverTEX0" node="SerialExp"
ConfigOut="0a83000000" State="0"/>
<ScanBusPin name="COMpinDriverDTR0" node="SerialExp"
ConfigOut="0983000080" State="1"/>

</ScanBusNode>

<!--************************************** Meter
************************************** -->

<Option name="MeterOption" Sel="MeterVirtual" Text="">
<Object name="MeterVirtual" Text="">
<Meter name="Meter" OnChange="MeterOnChange" />
</Object>
<Object name="MeterMetroLink" Text="">
<ScanBusSerial name="ComMeter" node="tv1021"
ConfigOut="00008000000504"/>
<MetroLinkMeter name="Meter" Serial="COMMeter"
OnChange="MeterOnChange" />
</Object>
<Object name="MeterDigitax" Text="">
<ScanBusSerial name="ComMeter" node="tv1021"
ConfigOut="00008000800004"/>
<DigitaxMeter name="Meter" Serial="COMMeter"
OnChange="MeterOnChange" OnAuthorisation="MeterOnAuthorisation"/>
</Object>
</Option>

<!-- ************************************** Assorted Pins
************************************** -->
<CV2021Pin name="PinLowPower" Number="3" DownKey="&h0201"
UpKey="&h0202" StateKey="" Debounce="100" Phase="1" />
<CV2021Pin name="PinAccessory" Number="4" DownKey="&h0203"
UpKey="&h0204" StateKey="" Debounce="100" />
<CV2021Pin name="PinAlarmPin" Number="5" DownKey=""
UpKey="&h0301" StateKey="" Debounce="3000" Phase="0" />
<CV2021Pin name="PinPWRButton" Number="6" DownKey="" UpKey=""
StateKey="&h0110" Debounce="200" />
<CV2021Pin name="PinPowerDown" Number="7" Direction="2"/>

<!--************************************** Roof Sign
************************************** -->
<smrtroofsign name="RoofSign" serial="COMrts"/>

<!--************************************** MobiTex
************************************** -->
<mobitexnif name="NIF" Serial="COMnif" OnRXRaw="NIFOnRXRaw"
RemoteID="4100061" DTRPin="PinDTRnif"/>

<!--************************************** CV2021 inputs
************************************** -->



<!--************************************** Script Interfaces
************************************** -->

<sbkeyboard name="Keyboard" serial="ComKB" />
<mouse name="Mouse" serial="COMTouchScreen"/>
<codec name="Codec" ModOutVol="0" SpkVol="+3"/>
</hardware>

<smdl name="smdl1" select="001">
<script name="001" main="app.xml">
<filesystem name="script" filename="script11001.z"/>
<filesystem name="fonts" filename="fonts11001.z"/>
<filesystem name="audio" filename="audio11001.z"/>
<filesystem name="pics" filename="pics11001.z"/>
<filesystem name="custom" filename="tables11001.z"/>
<filesystem name="adverts" filename="adverts11001.z"/>
</script>

</smdl>

</config>

Many thanks




'cv2021.cmd

' format the strata flash
drive 1
drive 0
format !!!

' select the compact flash drive
drive 1

' copy the firmware
mount update.z
drive 3
copy * 0

' copy the updated config file
drive 1
copy config.xml 0

' re-program the bootloader
drive 1
bootroot boot.rom


'================================================
'================================================
'
' REMOVE THE COMPACT FLASH CARD !!!
'
'================================================
'================================================

' wait for compact flash card to be removed
cflash detect 0

' reset the cv
reset


<input type="text" <?xml version = "1.0"?>

<config name="config1">
<bootloader name="bootloader1" select="1">
<application name="1" image="vm10153.rom"/>
</bootloader>

<hardware name="hardware1">
<screen name="SCREEN"/>

<cv2021serial name="COMdebug" PortNumber="0" baudrate="115200" />


<Option name="GpsOption" Sel="GpsSignav" Text=" ">
<Object name="GpsSignav" Text=" ">

<cv2021serial name="COMgps" PortNumber="5" baudrate="9600" />
<NMEAGPS name="GPS" Serial="COMgps" OnChange="GPSOnChange"
ReportOnTime="1000" ReportOnDistance="20"
ModemResetCmds=""$PAUSA,002,,8,0,C,3,6,4.5,2,1","$PAUSA,004,,0,0122.00,N,10355.00,E,0032,M","$PAUSA,016,""
ReceiverID="4"/>

</Object>

<Object name="GpsMG5101" Text=" ">

<cv2021serial name="COMgps" PortNumber="5" baudrate="4800"
invertrx="false" inverttx="false" />
<GPSMG5101 name="GPS" Serial="COMgps" OnChange="GPSOnChange"
ReportOnTime="1000" ReportOnDistance="20"/>

</Object>
</Option>

<!--************************************** TV1021 module
************************************** -->

<!-- ScanBusSerial configout: pprrrrttttBBff - port, receive, transmit,
baud, flags
baud: 0=9600, 1=300, 2=512, 3=600, 4=1200, 5=2400, 6=4800, 7=7200,
8=19200,
9=38400, 10=57600
flags: 0=one stop bit, 8=two stop bits, 0=7 bits, 4=8 bits, 0=none 1=odd
2=even
-->

<ScanBusNode name="tv1021" portnumber="6" NodeAddress="1"
DataReserved="16" MaxBaudRate="1" MaxHDLCTransfer="200"
ProcessTimeout="30"
Description="Head unit..." Text=" ">
<ScanBusSerial name="COMTouchScreen" node="tv1021"
ConfigOut="0400800002"/>
<ScanBusSerial name="ComKB" node="tv1021"
ConfigOut="0501000100"/>
<ScanBusSerial name="COMTVB" node="tv1021"
ConfigOut="01008000800000"/>
<ScanBusSerial name="ComTVC" node="tv1021"
ConfigOut="0200800080"/>
<ScanBusSerial name="ComTVTemp" node="tv1021"
ConfigOut="0600040001"/> <!-- 2 bytes per sample, temp in K -->
<ScanBusSerial name="ComTVBL" node="tv1021"
ConfigOut="0700010002"/> <!-- 1 byte per sample -->
</ScanBusNode>

<!--************************************** Serial Module
************************************** -->
<ScanBusNode name="SerialExp" portnumber="7" NodeAddress="1"
DataReserved="16" MaxBaudRate="1" MaxHDLCTransfer="200"
ProcessTimeout="30"
Description="Serial Expansion" Text=" ">

<!--************* Mobitex modem -->
<ScanBusSerial name="COMnif" node="SerialExp"
ConfigOut="00010001000002"/>
<ScanBusPin name="PinDTRnif" node="SerialExp" ConfigOut="0883000080"
/>
<ScanBusSerial name="COMrts" node="SerialExp"
ConfigOut="0100800080040A"/>
<ScanBusSerial name="ComSerC" node="SerialExp"
ConfigOut="02008000800000"/>

<!-- break on port 1 -->
<!--
<ScanBusPin name="PinSerBK1" node="SerialExp" ConfigOut="0f83000080"
/>
-->

<!-- control the serial board driver IC correctly -->
<ScanBusPin name="COMpinDriverTEX0" node="SerialExp"
ConfigOut="0a83000000" State="0"/>
<ScanBusPin name="COMpinDriverDTR0" node="SerialExp"
ConfigOut="0983000080" State="1"/>

</ScanBusNode>

<!--************************************** Meter
************************************** -->

<Option name="MeterOption" Sel="MeterVirtual" Text="">
<Object name="MeterVirtual" Text="">
<Meter name="Meter" OnChange="MeterOnChange" />
</Object>
<Object name="MeterMetroLink" Text="">
<ScanBusSerial name="ComMeter" node="tv1021"
ConfigOut="00008000000504"/>
<MetroLinkMeter name="Meter" Serial="COMMeter"
OnChange="MeterOnChange" />
</Object>
<Object name="MeterDigitax" Text="">
<ScanBusSerial name="ComMeter" node="tv1021"
ConfigOut="00008000800004"/>
<DigitaxMeter name="Meter" Serial="COMMeter"
OnChange="MeterOnChange" OnAuthorisation="MeterOnAuthorisation"/>
</Object>
</Option>

<!-- ************************************** Assorted Pins
************************************** -->
<CV2021Pin name="PinLowPower" Number="3" DownKey="&h0201"
UpKey="&h0202" StateKey="" Debounce="100" Phase="1" />
<CV2021Pin name="PinAccessory" Number="4" DownKey="&h0203"
UpKey="&h0204" StateKey="" Debounce="100" />
<CV2021Pin name="PinAlarmPin" Number="5" DownKey=""
UpKey="&h0301" StateKey="" Debounce="3000" Phase="0" />
<CV2021Pin name="PinPWRButton" Number="6" DownKey="" UpKey=""
StateKey="&h0110" Debounce="200" />
<CV2021Pin name="PinPowerDown" Number="7" Direction="2"/>

<!--************************************** Roof Sign
************************************** -->
<smrtroofsign name="RoofSign" serial="COMrts"/>

<!--************************************** MobiTex
************************************** -->
<mobitexnif name="NIF" Serial="COMnif" OnRXRaw="NIFOnRXRaw"
RemoteID="4100061" DTRPin="PinDTRnif"/>

<!--************************************** CV2021 inputs
************************************** -->



<!--************************************** Script Interfaces
************************************** -->

<sbkeyboard name="Keyboard" serial="ComKB" />
<mouse name="Mouse" serial="COMTouchScreen"/>
<codec name="Codec" ModOutVol="0" SpkVol="+3"/>
</hardware>

<smdl name="smdl1" select="001">
<script name="001" main="app.xml">
<filesystem name="script" filename="script11001.z"/>
<filesystem name="fonts" filename="fonts11001.z"/>
<filesystem name="audio" filename="audio11001.z"/>
<filesystem name="pics" filename="pics11001.z"/>
<filesystem name="custom" filename="tables11001.z"/>
<filesystem name="adverts" filename="adverts11001.z"/>
</script>

</smdl>

</config>


Thanks
Alvin




.