{"id":50759971,"url":"https://github.com/amd/flashrom-amd","last_synced_at":"2026-06-11T09:01:09.414Z","repository":{"id":361950867,"uuid":"1205164723","full_name":"amd/flashrom-amd","owner":"amd","description":"Publish AMD's changes to the opensource flashrom project","archived":false,"fork":false,"pushed_at":"2026-06-01T23:26:11.000Z","size":5441,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T01:15:29.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amd.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null,"notice":null,"maintainers":"MAINTAINERS","copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T17:42:05.000Z","updated_at":"2026-06-01T23:24:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/amd/flashrom-amd","commit_stats":null,"previous_names":["amd/flashrom-amd"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/amd/flashrom-amd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amd%2Fflashrom-amd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amd%2Fflashrom-amd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amd%2Fflashrom-amd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amd%2Fflashrom-amd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amd","download_url":"https://codeload.github.com/amd/flashrom-amd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amd%2Fflashrom-amd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34190585,"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-11T02:00:06.485Z","response_time":57,"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":"2026-06-11T09:01:08.115Z","updated_at":"2026-06-11T09:01:09.397Z","avatar_url":"https://github.com/amd.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"-------------------------------------------------------------------------------\nflashrom README\n-------------------------------------------------------------------------------\n\nflashrom is a utility for detecting, reading, writing, verifying and erasing\nflash chips. It is often used to flash BIOS/EFI/coreboot/firmware images\nin-system using a supported mainboard, but it also supports flashing of network\ncards (NICs), SATA controller cards, and other external devices which can\nprogram flash chips.\n\nIt supports a wide range of flash chips (most commonly found in SOIC8, DIP8,\nSOIC16, WSON8, PLCC32, DIP32, TSOP32, and TSOP40 packages), which use various\nprotocols such as LPC, FWH, parallel flash, or SPI.\n\nDo not use flashrom on laptops (yet)! The embedded controller (EC) present in\nmany laptops might interact badly with any attempts to communicate with the\nflash chip and may brick your laptop.\n\nPlease make a backup of your flash chip before writing to it.\n\nPlease see the flashrom(8) manpage.\n\n\nPackaging\n---------\n\nTo package flashrom and remove dependencies on Git, either use\nmake export\nor\nmake tarball\n\n'make export' will export all flashrom files from the Git repository at\nrevision HEAD into a directory named \"$EXPORTDIR/flashrom-$RELEASENAME\"\nand will additionally add a \"versioninfo.inc\" file in that directory to\ncontain the Git revision of the exported tree and a date for the manual\npage.\n\n'make tarball' will simply tar up the result of make export and compress\nit with bzip2.\n\nThe snapshot tarballs are the result of 'make tarball' and require no\nfurther processing. Some git files (for example the rust bindings) are omitted\nfrom the tarball, as controlled by the .gitattributes files.\n\n\nBuild Instructions\n------------------\n\nTo build flashrom you need to install the following software:\n\n * C compiler (GCC / clang)\n * pkg-config\n\n * pciutils+libpci (if you want support for mainboard or PCI device flashing)\n * libusb (if you want FT2232, Dediprog or USB-Blaster support)\n * libftdi (if you want FT2232 or USB-Blaster support)\n * libjaylink (if you want support for SEGGER J-Link and compatible devices)\n\nLinux et al:\n\n * pciutils / libpci\n * pciutils-devel / pciutils-dev / libpci-dev\n * zlib-devel / zlib1g-dev (needed if libpci was compiled with libz support)\n\nOn FreeBSD, you need the following ports:\n\n * devel/gmake\n * devel/libpci\n\nOn OpenBSD, you need the following ports:\n\n * devel/gmake\n * sysutils/pciutils\n\nTo compile on Linux, use:\n\n make\n\nTo compile on FreeBSD, OpenBSD or DragonFly BSD, use:\n\n gmake\n\nTo compile on Nexenta, use:\n\n make\n\nTo compile on Solaris, use:\n\n gmake LDFLAGS=\"-L$pathtolibpci\" CC=\"gcc -I$pathtopciheaders\" CFLAGS=-O2\n\nTo compile on NetBSD (with pciutils, libftdi, libusb installed in /usr/pkg/), use:\n\n gmake\n\nTo compile and run on Darwin/Mac OS X:\n\n Install DirectHW from coresystems GmbH.\n DirectHW is available at http://www.coreboot.org/DirectHW .\n\nTo cross-compile on Linux for DOS:\n\n Get packages of the DJGPP cross compiler and install them:\n djgpp-filesystem djgpp-gcc djgpp-cpp djgpp-runtime djgpp-binutils\n As an alternative, the DJGPP web site offers packages for download as well:\n djcross-binutils-2.29.1-1ap.x86_64.rpm\n djcross-gcc-7.2.0-1ap.x86_64.rpm\n djcrx-2.05-5.x86_64.rpm\n The cross toolchain packages for your distribution may have slightly different\n names (look for packages named *djgpp*).\n\n Alternatively, you could use a script to build it from scratch:\n https://github.com/andrewwutw/build-djgpp\n\n You will need the libpci and libgetopt library source trees and\n their compiled static libraries and header files installed in some\n directory say libpci-libgetopt/, which will be later specified with\n LIBS_BASE parameter during flashrom compilation. Easiest way to\n handle it is to put pciutils, libgetopt and flashrom directories\n in one subdirectory. There will be an extra subdirectory libpci-libgetopt\n created, which will contain compiled libpci and libgetopt.\n\n Download pciutils 3.5.6 and apply http://flashrom.org/File:Pciutils-3.5.6.patch.gz\n Compile pciutils, using following command line:\n\n make ZLIB=no DNS=no HOST=i386-djgpp-djgpp CROSS_COMPILE=i586-pc-msdosdjgpp- \\\n     PREFIX=/ DESTDIR=$PWD/../libpci-libgetopt  \\\n     STRIP=\"--strip-program=i586-pc-msdosdjgpp-strip -s\" install install-lib\n\n Download and compile with 'make' http://flashrom.org/File:Libgetopt.tar.gz\n\n Copy the libgetopt.a to ../libpci-libgetopt/lib and\n getopt.h to ../libpci-libgetopt/include\n\n Enter the flashrom directory.\n\n make CC=i586-pc-msdosdjgpp-gcc STRIP=i586-pc-msdosdjgpp-strip LIBS_BASE=../libpci-libgetopt/ strip\n\n If you like, you can compress the resulting executable with UPX:\n\n upx -9 flashrom.exe\n\n To run flashrom.exe, download http://flashrom.org/File:Csdpmi7b.zip and\n unpack CWSDPMI.EXE into the current directory or one in PATH.\n\nTo cross-compile on Linux for Windows:\n\n Get packages of the MinGW cross compiler and install them:\n mingw32-filesystem mingw32-cross-cpp mingw32-cross-binutils mingw32-cross-gcc\n mingw32-runtime mingw32-headers\n The cross toolchain packages for your distribution may have slightly different\n names (look for packages named *mingw*).\n PCI-based programmers (internal etc.) are not supported on Windows.\n Run (change CC= and STRIP= settings where appropriate)\n make CC=i686-w64-mingw32-gcc STRIP=i686-w64-mingw32-strip\n\nProcessor architecture dependent features:\n\n On non-x86 architectures a few programmers don't work (yet) because they\n use port-based I/O which is not directly available on non-x86. Those\n programmers will be disabled automatically if you run \"make\".\n\nCompiler quirks:\n\nIf you are using clang and if you want to enable only one driver, you may hit an\noverzealous compiler warning from clang. Compile with \"make WARNERROR=no\" to\nforce it to continue and enjoy.\n\nBindings:\n\n Foreign function interface bindings for the rust language are included in the\n bindings folder. These are not compiled as part of the normal build process.\n See the readme under bindings/rust for more information.\n\nInstallation\n------------\n\nIn order to install flashrom and the manpage into /usr/local, type:\n\n make install\n\nFor installation in a different directory use DESTDIR, e.g. like this:\n\n make DESTDIR=/usr install\n\nIf you have insufficient permissions for the destination directory, use sudo\nby adding sudo in front of the commands above.\n\n\nContact\n-------\n\nThe official flashrom website is:\n\n  http://www.flashrom.org/\n\nAvailable contact methods are\n\n  https://www.flashrom.org/Contact\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famd%2Fflashrom-amd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famd%2Fflashrom-amd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famd%2Fflashrom-amd/lists"}