ota_update_nonos工程
1.OtaConfig.h内修改
#define OTA_SERVER_SECURED              0

Ota工程(OTA library)
1.OtaCommon.h内添加
//modify define
#define TEM_CDN_URL "http://onlyisu.in/1.bin"
#define TEM_FILE_NAME "/sys/mcuimg2.bin"
#define TEM_FILE_SIZE 3400
2.OtaApp.c内sl_extLib_OtaRun函数做如下修改：

	1.case OTA_STATE_IDLE内将
            pOtaApp->state = OTA_STATE_CONNECT_SERVER;
            pStatistics->startCount++;
            Report("sl_extLib_OtaRun: call OtaClient_ConnectServer OTA server=%s\r\n", pOtaApp->pOtaServerInfo->server_domain);
            status = OtaClient_ConnectServer(pOtaClient, pOtaApp->pOtaServerInfo);
            if( status < 0)
            {
                _OtaCleanToIdle(pOtaApp);
                Report("sl_extLib_OtaRunERROR: OtaClient_ConnectServer, status=%ld\r\n", status);
                if (status == OTA_STATUS_ERROR_CONTINUOUS_ACCESS)
                {
                    pStatistics->continuousAccessErrorCount++;
                    return RUN_STAT_ERROR_CONTINUOUS_ACCESS_FAILURES;
                }
                pStatistics->ota_connect_error++;
                return RUN_STAT_ERROR_CONNECT_OTA_SERVER;
            }
		修改为
		//modify pass the OTA check status
		pOtaApp->state = OTA_STATE_METADATA;
//            pOtaApp->state = OTA_STATE_CONNECT_SERVER;
//            pStatistics->startCount++;
//            Report("sl_extLib_OtaRun: call OtaClient_ConnectServer OTA server=%s\r\n", pOtaApp->pOtaServerInfo->server_domain);
//            status = OtaClient_ConnectServer(pOtaClient, pOtaApp->pOtaServerInfo);
//            if( status < 0)
//            {
//                _OtaCleanToIdle(pOtaApp);
//                Report("sl_extLib_OtaRunERROR: OtaClient_ConnectServer, status=%ld\r\n", status);
//                if (status == OTA_STATUS_ERROR_CONTINUOUS_ACCESS)
//                {
//                    pStatistics->continuousAccessErrorCount++;
//                    return RUN_STAT_ERROR_CONTINUOUS_ACCESS_FAILURES;
//                }
//                pStatistics->ota_connect_error++;
//                return RUN_STAT_ERROR_CONNECT_OTA_SERVER;
//            }

	2.case OTA_STATE_RESOURCE_LIST:内注释掉下面一行
	//modify pass the log file update
    //LogClient_ConnectAndPrint(pOtaApp->pvLogClient, pOtaApp->pOtaServerInfo, pOtaApp->vendorStr, pOtaApp->pStatistics);
	
	3.case OTA_STATE_METADATA:内添加下面内容
	//modify update the download info of new FW
	strcpy((char *)g_OtaFileMetadata.cdn_url, TEM_CDN_URL);
	strcpy((char *)g_OtaFileMetadata.rsrc_file_name,TEM_FILE_NAME);
	g_OtaFileMetadata.sflash_file_size = TEM_FILE_SIZE;
	g_OtaFileMetadata.flags = METADATA_FLAGS_RESET_MCU;
	pOtaApp->isMCUAppUpdate = 1; 
	按照下面修改CdnClient_ConnectByUrl函数参数。
	status = CdnClient_ConnectByUrl(pOtaApp->pvCdnClient, &g_OtaFileMetadata, pOtaApp->pOtaServerInfo->secured_connection);
	
	4.case OTA_STATE_CONNECT_CDN:内按照下面修改CdnClient_SetFileInfo参数。
	CdnClient_SetFileInfo(pOtaApp->pvCdnClient, g_OtaFileMetadata.sflash_file_size, g_OtaFileMetadata.rsrc_file_name);
	
	5.case OTA_STATE_DOWNLOADING:按照下面修改对应的参数。
    /* set mcu number and reset flag (even in error) */
    if (g_OtaFileMetadata.flags & METADATA_FLAGS_RESET_NWP)
    {
        pOtaApp->resetNwp = 1;
    }
    /* set reset flag if one of the files is with the reset flag */
    if (g_OtaFileMetadata.flags & METADATA_FLAGS_RESET_MCU)
    {
        pOtaApp->resetMcu = 1;
    }