{"id":22079752,"url":"https://github.com/serg3k/device-tree-reader","last_synced_at":"2025-03-23T20:42:42.395Z","repository":{"id":110170272,"uuid":"490053836","full_name":"serg3k/device-tree-reader","owner":"serg3k","description":"Locate .dtb objects in binary files and dump them","archived":false,"fork":false,"pushed_at":"2022-06-21T14:27:04.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T16:38:02.300Z","etag":null,"topics":["bootloader","device-tree","dtb","fdt","openbsd-wip"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serg3k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-05-08T20:59:43.000Z","updated_at":"2024-09-18T13:17:19.000Z","dependencies_parsed_at":"2023-04-21T19:07:44.874Z","dependency_job_id":null,"html_url":"https://github.com/serg3k/device-tree-reader","commit_stats":null,"previous_names":["serg3k/device-tree-reader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serg3k%2Fdevice-tree-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serg3k%2Fdevice-tree-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serg3k%2Fdevice-tree-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serg3k%2Fdevice-tree-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serg3k","download_url":"https://codeload.github.com/serg3k/device-tree-reader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168807,"owners_count":20571799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bootloader","device-tree","dtb","fdt","openbsd-wip"],"created_at":"2024-11-30T23:09:19.617Z","updated_at":"2025-03-23T20:42:42.364Z","avatar_url":"https://github.com/serg3k.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intro\nI've built this small utility because I thought I need to locate Device Tree \nobjects in binaries and dump them in text-form.\nThis helped me when I was running OpenBSD 7.1 on arm-based PineBook Pro.\nI copy-pasted fdt.c and fdt.h from OpenBSD's \n[efiboot](https://github.com/openbsd/src/blob/master/sys/arch/arm64/stand/efiboot/). \nI did some lame adjustments for the sake of convenience.\nIt could be that using `libfdt` was cleaner and better option, but back then I did not know \nit actually exists. `efiboot` code was pretty simple and easy to understand \nso I just reused it.\n\nFor the time being I only built it in OpenBSD using native make(1).\nPerhaps I will add support for other BSDs and Linux/MacOs.\n\nNote: it needs to be checked whether `fdtdump` or `dtc -o` is a better fit for this task.\nIn this case, current utility could be minimized to only locate dtb objects in a given binary \nand dump them as separate files. (text file with list of dumped object, their offset and \nsize should then also be generated).\n\n\n\n# Bulding\n\n* [x] OpenBSD\n* [ ] FreeBSD\n* [ ] NetBSD\n* [ ] MacOS\n* [ ] Linux\n\nI used to build it on OpenBSD using [make(1)](https://man.openbsd.org/make). GNU make is currently \nnot supported and Linux build has not been tested.\n\n```\nmake \n```\n\n\nTo build on Linux/MacOS, use this:\n\n```\nmake \n```\n\n# Running\n\n```\n./main /usr/local/...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserg3k%2Fdevice-tree-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserg3k%2Fdevice-tree-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserg3k%2Fdevice-tree-reader/lists"}