anchor.diff:      if itest $ret != 0 ; then setenv ota_abort_reason "mmc dev 0 2 failed: $ret"; setenv ota_abort 1; run ota_cleans_script; exit; fi;
   
       # Write image to partition
  -    setenv u_part_start 0x00;
  +    setenv u_part_start 0x0;
       run ota_mmc_write;
       if itest $ota_abort == 1 ; then run ota_cleans_script; exit ; fi;
   
  
positive.code: 
  # function ota_conv_sizes
  # Convert a bytes size to a block size
  # input bytesize : size in bytes to convert
  # input blksize : size of a block in bytes
  # output numblk : converted size in blocks
  setenv ota_conv_sizes 'setexpr num_blk $bytesize / $blksize ; setexpr mod_blk $bytesize % $blksize ; if itest $mod_blk > 0 ; then setexpr num_blk $num_blk + 1; fi;'
  
  # function ota_mmc_write
  # Write a memory buffer to mmc drive
  # input floadaddr     : address of buffer to write
  # input u_part_start : block start in mmc
  # input num_blk      : number of block to write
  setenv ota_mmc_write 'if itest $ota_verbose == 1 ; then echo "mmc write ${floadaddr} ${u_part_start} ${num_blk};"; fi; mmc write $floadaddr $u_part_start $num_blk; ret=$?; if itest $ret != 0 ; then setenv ota_abort_reason "mmc write ${floadaddr} ${u_part_start} ${num_blk} failed"; setenv ota_abort 1; fi;'
  
negative.code: # Load partition binary image from update partition to memory
  # input  ota_drive      : ota drive name
  # input  ota_image_name : filename of image to load
  # input  floadaddr      : memory address destination
  # output filesize       : size of image in bytes
  setenv ota_load_image 'if itest $ota_verbose == 1 ; then echo "fatload ${ota_drive} ${floadaddr} ${ota_image_name};"; fi; fatload ${ota_drive} ${floadaddr} ${ota_image_name};ret=$?; if itest $ret != 0 ; then setenv ota_abort_reason "fatload ${ota_drive} ${floadaddr} ${ota_image_name} failed: ${ret}"; setenv ota_abort 1; fi;'
  
  