当前位置: 首页 > news >正文

【linux】全志Tina配置swupdate工具进行分区打包

一、文件路径

1、描述文件:

.\build\swupdate\sw-description-ab

2、镜像打包文件:

.\build\swupdate\sw-subimgs-ab.cfg

二、文件作用

1、sw-description-ab

用于描述版本信息和ab区中要打包的分区信息以及挂载点。

2、sw-subimgs-ab.cfg

用于列举编译后存在于out目录下的文件中,要参与swupdate打包时的ab区分区名称信息

三、文件内容

1、sw-description-ab

software =
{version = "0.1.0";description = "Firmware update for Tina Project";stable = {/* now in systemA, we need to upgrade systemB(bootB, rootfsB) */now_A_next_B = {images: (/* {filename = "kernel";volume = "bootB";                },{filename = "rootfs";volume = "rootfsB";                  },*/{filename = "scu_b";device = "/dev/mtdblock17";	   }/*,{filename = "uboot";type = "awuboot";},{filename = "boot0";type = "awboot0";},  {filename = "app";device = "/dev/mtdblock12";	   },    */          );bootenv: ({name = "swu_mode";value = "";},{name = "scuAB";value = "B";}/* {name = "boot_partition";value = "bootB";},{name = "root_partition";value = "rootfsB";},{name = "systemAB_next";value = "B";},{name = "swu_version";		value = "2.0.0";},{name = "swu_next";value = "reboot";}*/);};/* now in systemB, we need to upgrade systemA(bootA, rootfsA) */now_B_next_A = {images: (/*{filename = "kernel";volume = "bootA";},={filename = "rootfs";volume = "rootfsA";},*/{filename = "scu_a";device = "/dev/mtdblock16";	                   }/*,{filename = "uboot";type = "awuboot";},{filename = "boot0";type = "awboot0";},{filename = "app";device = "/dev/mtdblock12";	   },   */);bootenv: ({name = "swu_mode";value = "";},{name = "scuAB";value = "A";}/*{name = "boot_partition";value = "bootA";},{name = "root_partition";value = "rootfsA";},{name = "systemAB_next";value = "A";},{name = "swu_version";		value = "2.0.0";},{name = "swu_next";value = "reboot";}*/);};};/* when not call with -e xxx,xxx    just clean */bootenv: ({name = "swu_param";value = "";},{name = "swu_software";value = "";},{name = "swu_mode";value = "";},{name = "swu_version";value = "";});}

2、sw-subimgs-ab.cfg

swota_file_list=(
build/swupdate/sw-description-ab:sw-description
# out/t113/evb1/openwrt/uboot.img:uboot
# out/t113/evb1/openwrt/boot0.img:boot0
# out/t113/evb1/openwrt/boot.img:kernel
# out/t113/evb1/openwrt/rootfs.img:rootfs
# out/t113/evb1/pack_out/user-resource.fex:user-res
# out/t113/evb1/pack_out/app.fex:app
# out/t113/evb1/pack_out/scu.fex:scu_b
out/t113/evb1/pack_out/scu.fex:scu_a
)

http://www.lqws.cn/news/532729.html

相关文章:

  • 《PT100两线制温度测量系统设计:从电路原理到嵌入式实现》
  • 【嵌入式ARM汇编基础】-ELF文件格式内部结构详解(二)
  • 香港政府发表《香港数字资产发展政策宣言 2.0》,提出「LEAP」框架
  • 星型模式(Star Schema)
  • lua脚本为什么能保证原子性
  • 云效代码仓库导入自建gitlab中
  • Redis核心知识详解:从全局命令到高级数据结构
  • 首款SUV小米YU7、小米AI眼镜等新品重磅发布,玄戒O1超大规模量产
  • 湖北理元理律师事务所:科学债务优化如何守护民生底线
  • MySQL 总是差八个小时,如何破?
  • Linux中部署Jenkins保姆间教程
  • 爬虫005----Selenium框架
  • 9. 回文数
  • MySQL (二):范式设计
  • Linux服务器部署Leantime与cpolar构建低成本团队协作环境
  • LRU缓存C++
  • kubernetes》》k8s》》滚动发布 、金丝雀发布 、
  • 医疗AI专科子模型联邦集成编程分析
  • 第一章-人工智能概述-机器学习基础与应用(1/36)
  • 时序分析未完待续
  • DeepSeek16-open-webui Pipelines开发填坑
  • 什么是财务共享中心?一文讲清财务共享建设方案
  • dlib检测视频中的人脸并裁剪为图片保存
  • centos 7 安装NVIDIA Container Toolkit
  • 鸿蒙原子化服务与元服务:轻量化服务的未来之路
  • Spring Security 安全控制终极指南
  • postman接口功能测试
  • 【音视频】Ubuntu下配置ffmpeg库
  • Learning a Neural Solver for Multiple Object Tracking
  • 表单数据收集实现分析