{"id":19473317,"url":"https://github.com/vooon/ota-mkfw","last_synced_at":"2026-06-13T03:06:07.625Z","repository":{"id":69835605,"uuid":"51173609","full_name":"vooon/ota-mkfw","owner":"vooon","description":"Firmware packer like px_mkfw.py","archived":false,"fork":false,"pushed_at":"2016-07-29T08:21:02.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T15:36:24.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vooon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-05T20:58:43.000Z","updated_at":"2016-04-14T17:59:02.000Z","dependencies_parsed_at":"2023-02-22T03:16:09.171Z","dependency_job_id":null,"html_url":"https://github.com/vooon/ota-mkfw","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vooon/ota-mkfw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fota-mkfw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fota-mkfw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fota-mkfw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fota-mkfw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vooon","download_url":"https://codeload.github.com/vooon/ota-mkfw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fota-mkfw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34270418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T19:18:08.379Z","updated_at":"2026-06-13T03:06:07.620Z","avatar_url":"https://github.com/vooon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ota-mkfw: fimrware image packer\n===============================\n\nSimple proof-of-concept firmware image packer.\nIt works similar to [`px_mkfw.py`][1] from PX4 firmware,\nexcept it uses [RFC-7049 (CBOR)][2] instead of JSON.\nThanks to binay format we may omit base64 encoding, and gzip is optional.\n\n\nFile format\n-----------\n\nFor CBOR there exists own CDDL, but JSON-like is easier to understood:\n\n```none\n// File\n[\t                                // File root element is Array\n    \"OTAFWv1\", \t                    // first element is magic string (in map it's position unpredictable)\n    Metadata{},\t                    // second - Metadata object (map)\n    {                               // third element - image map\n        \"firmware.bin\": Image{},    // required\n        \"parameters.xml\": Image{},  // optional additional data\n        ...\n    }\n]\n// EOF\n\n// Metadata object\n{\n    \"description\": \"some description\",                  // may be \"\"\n    \"build_date\": Tag(0, \"2016-02-09T23:57:09+0300\"),   // RFC3339, alternative: Tag(1, \u003cposix time\u003e)\n    \"version\": \"0.1.0\",                                 // may be `git describe`\n    \"revision\": \"\u003cgit hash\u003e\",                           // SCM revision.\n    \"board\": \"\u003csome id\u003e\",                               // Board ID\n    ...                                                 // extensions\n}\n\n// Image object\n{\n    \"load_address\": 0x00800000,             // optional, flash location\n    \"dfu_alt\": 0,                           // optional, DFU Alternate setting number (look dfu-util)\n\n    \"size\": 123,                            // uncompressed size to verify payload\n    \"sha1sum\": \"\u003cbyte string (20 bytes)\u003e\",  // optional, SHA1 digest of uncompressed data\n\n    \"image\": \"\u003cuncompressed byte string\u003e\",  // File data. May be raw byte string and compressed (tagged)\n                                            // deflated: Tag(12222, \"\u003cdefalted byte string\u003e\")\n    ...                                     // extensions\n}\n```\n\n\nComparison\n----------\n\nCurrent PX4 master (3e02bb1), px4fmu-v2: `.px4` file size is 847153, `.ofw` - 635442.\nBoth has same images of:\n\n| image              | size (bytes) |\n| ------------------ | ------------:|\n| firmware_nuttx.bin |       992428 |\n| parameters.xml     |       204128 |\n| airframes.xml      |        21010 |\n\n```\nota-mkfw -o nuttx-px4fmu-v2-default.ofw --desc PX4FMUv2 --board PX4FMUv2 --git-identity -n firmware.bin -a 0x00800000 --dfu-alt 0 -n parameters.xml -n airframes.xml firmware_nuttx.bin ../../../parameters.xml ../../../airframes.xml\n```\n\nThe difference not so great, also base64 and JSON parser exist everywhere,\nwhile CBOR require additional libraries.\n\n\n[1]: https://github.com/PX4/Firmware/blob/master/Tools/px_mkfw.py\n[2]: https://tools.ietf.org/html/rfc7049\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvooon%2Fota-mkfw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvooon%2Fota-mkfw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvooon%2Fota-mkfw/lists"}