{"id":27211637,"url":"https://github.com/mimoja/amdfw","last_synced_at":"2025-04-10T01:29:55.294Z","repository":{"id":95809148,"uuid":"192484540","full_name":"Mimoja/amdfw","owner":"Mimoja","description":"golang library to parse AMD Firmware Structures","archived":false,"fork":false,"pushed_at":"2020-10-17T17:49:26.000Z","size":38,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T03:05:41.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mimoja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-06-18T07:02:49.000Z","updated_at":"2023-01-01T23:12:31.000Z","dependencies_parsed_at":"2023-03-07T08:30:20.593Z","dependency_job_id":null,"html_url":"https://github.com/Mimoja/amdfw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mimoja%2Famdfw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mimoja%2Famdfw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mimoja%2Famdfw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mimoja%2Famdfw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mimoja","download_url":"https://codeload.github.com/Mimoja/amdfw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140147,"owners_count":21054247,"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":[],"created_at":"2025-04-10T01:29:54.751Z","updated_at":"2025-04-10T01:29:55.283Z","avatar_url":"https://github.com/Mimoja.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# amdfw\n\nGolang library for reading and writing AMD firmware components\n\nCredit goes to @cwerling for his [psptool](https://github.com/cwerling/psptool)\n\n## amddump\ncmd/amddump is a small tool, that dumps all informations known to this library on a specfic image.\n\n\n```\namddump ryzeimage.rom\n\n```\n\n## Current Limitations\n- Always assumes valid FirmwareEntryTable. \n  - Some AM1 CPUs are not using it.\n  - Older FETs might be parsed wrong\n- Non Directory-Based Firmware (IMC, GEC, XHCI) cannot be extracted\n- All Offsets are treated as absolute. Partial Images often can't be read.\n\n## Usage\n\nSee cmd/amddump.go for read-only example code.\n\n```golang\n\nfunc main() {\n\n\timageBytes, err := ioutil.ReadFile(os.Args[1])\n\n\tif err != nil {\n\t\tlog.Fatal(\"Could not read file: \", err)\n\t}\n\n\timage, err := amdfw.ParseImage(imageBytes)\n\n\tif err != nil {\n\t\tlog.Println(\"Error while parse Image: \", err.Error())\n\t}\n\n\ttargetAddress := uint32(0x1C1000)\n\timage.FET.ImcRomBase = \u0026targetAddress\n\n\timage.FET.Write(imageBytes, image.FET.Location)\n\n\tioutil.WriteFile(os.Args[1], imageBytes, 666)\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimoja%2Famdfw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimoja%2Famdfw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimoja%2Famdfw/lists"}