updater local K=/etc/jffs2/zImage_spinand 来升级内核,提示如下:
解决方法:
将updater.c里面的main函数最后的这个判断改成如下即可,去掉升级备份分区的升级。
if(0)//g_nand_flash_flag == 1)
{
if(-1 == fha_interface_Update_ASA_data((const char* )&partition_info))
{
if (g_bIsSem) semctl(sem_id, APP_UPDATE_FILE, SETVAL, 0);
printf("update asa_data %d failed\n", CLpartition);
}
memset(&partition_info, 0, sizeof(T_PARTITION_INFO));
if(-1 == fha_interface_get_ASA_data((const char*)&partition_info))
{
if (g_bIsSem) semctl(sem_id, APP_UPDATE_FILE, SETVAL, 0);
printf("update asa_data %d failed\n", CLpartition);
}
printf("partition_info.partition_cnt:%ld\n", partition_info.partition_cnt);
//printf("partition_info.partition_name_info[0].partition_name:%s\n", partition_info.partition_name_info[0].partition_name);
//printf("partition_info.partition_name_info[1].partition_name:%s\n", partition_info.partition_name_info[1].partition_name);
//printf("partition_info.partition_name_info[2].partition_name:%s\n", partition_info.partition_name_info[2].partition_name);
//fha_interface_set_protect(1);
}