Skip to content

Instantly share code, notes, and snippets.

@KunYi
Last active August 7, 2021 06:59
Show Gist options
  • Save KunYi/44c775d636b9fa405a635e397d5adfd6 to your computer and use it in GitHub Desktop.
Save KunYi/44c775d636b9fa405a635e397d5adfd6 to your computer and use it in GitHub Desktop.
sw description of swupdate for srg-im8p board
{
"software": {
"version": "@@ADU_SOFTWARE_VERSION@@",
"@@MODEL_NAME@@": {
"hardware-compatibility": [
"1.0"
],
"stable": {
"rootA": {
"images": [
{
"filename": "srg-im8p-image-@@MACHINE@@.ext4.zst",
"sha256": "@srg-im8p-image-@@MACHINE@@.ext4.zst",
"type": "raw",
"compressed": "zstd",
"device": "/dev/mmcblk2p1",
"name": "rootfs",
"version": "@@RFS_VERSION@@",
"install-if-different": true
}
],
"bootenv": [
{
"name": "bootpart",
"value": "1"
},
{
"name": "upgrade_available",
"value": "1"
},
{
"name": "bootcount",
"value": "0"
}
]
},
"rootB": {
"images": [
{
"filename": "srg-im8p-image-@@MACHINE@@.ext4.zst",
"sha256": "@srg-im8p-image-@@MACHINE@@.ext4.zst",
"type": "raw",
"compressed": "zstd",
"device": "/dev/mmcblk2p2",
"name": "rootfs",
"version": "@@RFS_VERSION@@",
"install-if-different": true
}
],
"bootenv": [
{
"name": "bootpart",
"value": "2"
},
{
"name": "upgrade_available",
"value": "1"
},
{
"name": "bootcount",
"value": "0"
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment