Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with upstream #15

Open
wants to merge 543 commits into
base: dasharo-release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
543 commits
Select commit Hold shift + click to select a range
17d1dc5
Revert "MAINTAINERS: Add Arthur Heymans for sb600spi"
ArthurHeymans Jun 17, 2023
885f792
Makefile: Fix DirtyJTAG build
jeanthom Jun 15, 2023
7887df9
ichspi.c: Bug fix for ich_hwseq_get_flash_id
galorithm Jan 12, 2023
1ee04cd
flashchips: Add support for XMC XM25QH128A
Oct 2, 2022
b66f476
flashchips: add support for MX25V16066/KH25V16066
PotatoCider Oct 11, 2022
27a368a
MAINTAINERS: Add Anastasia Klimchuk for flashchips
Jun 16, 2023
aac723f
flashchips.c: Adding support for ISSI IS25WP020/40/80
hacc1225 Jun 13, 2023
af8c203
flashchips: add support for MX77L25650F chip
arturkow2000 Oct 19, 2022
751b16e
doc: Add Windows MSYS2 build instructions
heijligen May 13, 2023
f317a11
Makefile: Simplify the NI-845X detection
heijligen May 15, 2023
7538b74
tests/io_mock.h: add missing includes
heijligen May 15, 2023
81c3f31
meson: Add support for ni845x_spi on Windows
heijligen May 15, 2023
c3f1c75
doc: Add build instructions for NI-845x on Windows
heijligen May 15, 2023
819f6d7
meson: improve error message for unsupported systems
tari May 29, 2023
ea54723
doc: Add documentation license
Jun 23, 2023
91aa2d8
flashchips: Add XTX XT25F64B
WereCatf Oct 6, 2021
e08899f
libflashrom: Add layout "exclude" API
computersforpeace Jun 22, 2023
51335a8
ni845x_spi: pass global state through func params
Joursoir Jan 18, 2023
0f0f952
ni845x_spi: handle errors using goto during initialization
Joursoir Jan 20, 2023
e0fe2c7
ni845x_spi: refactor singleton states into reentrant pattern
Joursoir Jan 19, 2023
f17c506
doc: Add Team page which describes Gerrit groups
Jun 23, 2023
2b692d7
doc: Add new Development guidelines
Jun 17, 2023
9917fa0
flash: Update the comment for flashchip eraseblocks
Jun 9, 2023
cc145f0
doc: Fix the example Signed-off-by line to be displayed properly
Jul 21, 2023
4210f6a
doc: Fix Contact link in README
Jul 24, 2023
8ce4f98
website/gh workflow: Resolve 404 links
Jul 29, 2023
9463535
doc: Add link to old wiki in the side menu
Jul 28, 2023
c7f6f02
MAINTAINERS: Fix the link to dev guides and simplify the paragraph
Jul 31, 2023
207dffd
doc: Add link to flashrom patches to dev guide
Jul 28, 2023
d666a81
doc: Fix broken link to old mailing list archives on pipermail
Aug 5, 2023
8a3db80
flashchips: Add ISSI IS25LQ016
Th3Fanbus Apr 16, 2020
c17be0b
MAINTAINERS: Add Nikolai Artemiev for flashchips
nartemiev Aug 15, 2023
2bfc85b
flashchips: add Macronix MX25L3255E
jclehner Sep 6, 2021
4afab4d
MAINTAINERS: Add Stefan Reinauer to flashchips
reinauer Aug 21, 2023
bf70daa
MAINTAINERS: Add Martin Roth for AMD SPI
martinlroth May 3, 2023
cfc2389
doc: Add Emergency help red box to the intro
Aug 19, 2023
cfffbde
doc: Copy logo files into flashrom repository
Aug 17, 2023
e1b89fd
doc: Add flashrom logo to index page
Aug 17, 2023
d534100
doc: Add favicon to config to display in the browser tab
Aug 18, 2023
beaf9cd
Makefile: Remove a bashism when searching for sphinx-build
bdschuym Aug 18, 2023
8690714
flashchips.c: Add support for IS25WQ040
Oct 7, 2021
910ef0c
doc: Fix nesting of About flashrom group of menu items
Aug 19, 2023
d59287d
flashrom: only perform WP unlock for write/erase operations
nartemiev Jun 21, 2023
f7ffe5f
spi25_statusreg: add verbose output on status registers read results
Aug 26, 2023
7617467
flashchips: Add WP features for Winbond W25X20
Aug 26, 2023
aa468cf
flashchips: add definition of the XT25F02E SPI NOR flash
superna9999 Jan 27, 2021
ebda447
flashchips: Add support for MXIC MX25U25643G
myriadsRays Jul 31, 2023
879fa06
meson.build: Upgrade minimum Meson version to 0.56.0
SamsonovAnton Sep 12, 2023
9ccbf1c
flashchips: Add support for XMC XM25QH80B
mans0n Apr 6, 2022
0fba888
tree: Rename master branch to main
reinauer Jun 10, 2023
5234c57
flashchips: add WP features for W25X* analogous to tested W25X20
Aug 26, 2023
f2a208c
doc: Fix formatting for the example of commit message
Sep 26, 2023
230a1d5
doc: Convert write-protect docs to sphinx
Sep 23, 2023
48afad2
doc: Convert release notes for v1.3
Sep 23, 2023
6f14ead
flashchips: Mark Atmel AT29C010A chip as tested for write operation
Sep 22, 2023
49832e3
doc: Make Time of Meeting more consistent
reinauer Sep 29, 2023
47d3dcd
flashchips: Add write-protect support for MXIC MX25U25643G
rogeryou Sep 27, 2023
b17fff0
doc: Add first version of code of conduct
Jul 14, 2023
fba29da
flashchips: Mark FM25F01 as tested for read/write/probe/erase
Oct 17, 2023
0b8dcba
ich_descriptors: Fix debug print
PatrickRudolph Oct 12, 2023
95424a2
ich_descriptors: Fix table printing
PatrickRudolph Oct 12, 2023
1dd7c88
ichspi: Add support for C740 PCH
PatrickRudolph Sep 28, 2023
86110b4
doc: Add meson test command to TLDR for meson instructions
Oct 27, 2023
ea91d4f
raiden: Support target index with generic REQ_ENABLE
jesultra Apr 14, 2023
52b794f
flashchips: Add Puya P25Q21H/11H/06H
WereCatf Oct 6, 2021
fa88085
erasure_layout: Fix double invocation of erasers
Sep 10, 2023
9c130db
erasure_layout: Add region boundaries to printed info message
Oct 21, 2023
ffa2159
tests: Unit tests for erase function selection algo
Sep 12, 2022
8a7f8ad
spi25_statusreg: rename amic_a25l032 print to a generic name
Joursoir Nov 2, 2023
41cb466
flashchips: change print lock status funcs for Winbond chips
Joursoir Jun 19, 2023
abd9a1e
flashchips: Split GD25Q127C/GD25Q128C and add GD25Q128E
Nov 14, 2023
bda8361
serial: Fix sp_flush_incoming for serprog TCP connections
Nov 17, 2023
8efe4fb
Remove dependency on C23 __has_include()
SamsonovAnton Nov 24, 2023
fb456a6
Makefile: CONFIG_INTERNAL depends on raw mem access
ffontaine Nov 5, 2023
9a57031
docs: Add guideline about Gerrit display names
Nov 24, 2023
360d965
MAINTAINERS: Add Hsuan Ting Chen for flashrom_tester
Nov 30, 2023
0dbf2de
buspirate_spi: add support for hiz output with pullups=off
therealdreg Dec 7, 2023
e188cc3
flashrom_tester: Align WP output format with upstream
ScottChao-Wistron Sep 14, 2023
8ac3574
erasure_layout: Remove redundant verifications from `erase_write`
gruuuve Nov 21, 2023
5106287
flashrom_tester: Drop technical debt
HsuanTingChen Nov 27, 2023
6f3339f
flashchips: Add GD25LQ255E
Nov 16, 2023
bb8e6f9
flashchips: Add write-protect support for GD25LQ255E
Dec 12, 2023
48b9ece
erasure_layout: Fix unaligned region end offset by 1
Nov 9, 2023
2bf299f
tests: Add test cases for erasing/writing unaligned layout regions
Nov 9, 2023
a21be91
flashchips: Mark FM25Q16 as probe/read tested
Jan 15, 2024
c52f949
doc: Add docs how to add and update test status of flashchips
Sep 23, 2023
04deed8
flashrom_tester: Fix partial_lock_test on libflashrom
HsuanTingChen Nov 27, 2023
f08acc6
flashchips: Add Macronix MX25R1635F
ra1nb0w Nov 14, 2022
56bb56d
doc: Add doc how to add unit tests
Feb 4, 2024
8b074c8
Makefile,meson.build: Add support for Sphinx versions prior to 4.x
SamsonovAnton Feb 12, 2024
49fbdc7
doc: Clarify that adding docs follows dev process and add into howtos
Feb 19, 2024
6d128a4
Makefile: Fix version string for non-Git builds
SamsonovAnton Feb 21, 2024
e8c350f
serprog: Add support for multiple SPI chip selects
Jan 15, 2024
f5ca2db
serprog: clean up documentation
Jan 15, 2024
d15e86d
doc: Add links to Gerrit groups in team page
Feb 24, 2024
f2a7504
doc: Add doc how to support flashrom project
Feb 23, 2024
7be4907
fmap: Update major/minor version check
computersforpeace Nov 14, 2023
5370503
doc: Update arbitration team to be flashrom specific
Mar 7, 2024
0802655
linux_mtd: Provide no-op delay implementation
computersforpeace Feb 27, 2024
3c5eb53
cli_classic: Defer flashrom_init calibration until after options parsing
computersforpeace Feb 27, 2024
54b053e
udelay: Lower the sleep vs delay threshold
computersforpeace Mar 1, 2024
9cc6be2
serprog: Fix scan-build warning of resource leak
Mar 3, 2024
70e1a41
cli_common: Add link to the documentation how to mark chip tested
Mar 16, 2024
b65f347
flashchips: Add Zetta Device ZD25LQ128
SamsonovAnton Mar 21, 2024
435309e
doc/dev_guide: Add section about Jenkins build, and scan-build
Mar 15, 2024
1bcedfa
flashchips: Add support for MXIC MX25L12850F
daniel-723 Mar 20, 2024
041644a
classic_cli_manpage.rst: Update doc for custom_rst of raiden_debug_spi
Mar 7, 2024
2a5d292
serprog: Add SPI Mode and CS Mode commands
funkeleinhorn Mar 23, 2024
124b6ea
meson: Update CI script to enforce building man pages and docs
Apr 4, 2024
7bc347e
Makefile: Fix cleanup for Sphinx versions prior to 4.x
SamsonovAnton Apr 8, 2024
c06abc9
doc: Make OS specific instructions as headers so they are linkable
Apr 8, 2024
e5ed0c6
util/list_yet_unsupported_chips.h: Fix path
CodingVoid Apr 11, 2024
85f14ef
ich: Add names for region 5, 9, 10, 11, 12, 15
HsuanTingChen Mar 19, 2024
6f47cc1
flashchips: Add support for MXIC MX25R8035F
daniel-723 Apr 12, 2024
be95e0b
flashchips: Add write protect function support for MX25R1635F
daniel-723 Apr 12, 2024
a79ec24
flashchips: Split and add write-protect support for MX25L12833F
HsuanTingChen Apr 8, 2024
183208b
udelay: only use OS time for delays, except on DOS
tari Mar 26, 2024
c2bb2ef
flashchips: Add support for MXIC MX25L3239E
daniel-723 Mar 30, 2024
e558ef1
flashchips: Add support for MXIC MX25L1633E
daniel-723 Apr 12, 2024
17df1f0
doc: Convert serprog docs to rst and add to doc directory
Apr 20, 2024
5737ff9
flashrom_tester: Correct "WP screw" message
computersforpeace Apr 24, 2024
b5fbe9d
dos/meson: add a hint for setting sys_root
tari May 6, 2024
9a86bd3
dos: mark myusec_delay static
tari May 6, 2024
59c4597
Make sleep threshold for delays configurable
tari Mar 28, 2024
751409e
doc: Add user doc with links to ChromeOS documents
May 3, 2024
b2ad472
flashrom: Don't throw around "delay 1 second" so lightly
computersforpeace Feb 29, 2024
a67b796
flashrom: Change chip unlock error to warning
nartemiev May 3, 2024
1a779db
MAINTAINERS: add Peter Marheine for build system
tari May 9, 2024
2638aaf
flashrom-tester: Include flashrom/src/cmd.rs tests in Cargo workspace
HsuanTingChen May 6, 2024
adeaaf6
flashchips: Add support for MXIC MX25R2035F
daniel-723 Apr 12, 2024
e177e77
flashrom_udev.rules: Add rule for CH347
nic3-14159 May 3, 2024
0f2128d
doc: Fix index files in Supported HW section
May 4, 2024
138387a
erasure_layout: don't copy region buffers if they're null/zero-size
Joursoir Mar 26, 2024
61b26a5
flashchips: Add support for MXIC MX25L1636E
daniel-723 Apr 12, 2024
643ae4d
flashchips: Add support for MXIC MX25L3273F
daniel-723 Mar 30, 2024
3b3e25f
flashchips.c: mark XM25QU256C as tested for probe/read/erase/write.
mkopec May 15, 2024
85b9771
ichspi.c: Add support for region 9 and beyond in Meteor Lake
HsuanTingChen Feb 22, 2024
22e5d4a
doc: Add doc for dummyflasher
May 17, 2024
8675277
flashchips: Add support for Boya B25Q64AS
boyesm May 8, 2024
a83d996
flashchips: Add support for chip model GD25LF128E
victorswlim1 May 11, 2024
2f8e643
flashchips: Add support for GigaDevice GD25LR256E, GD251R512ME
Sep 28, 2021
8e30a6d
Add documentation for pico-serprog
funkeleinhorn May 6, 2024
35a2168
add gcc-14 -Werror=calloc-transposed-args compatibility
Joursoir May 26, 2024
0668903
flashchips: Correct feature_bits for MX25L128*
HsuanTingChen May 22, 2024
2843442
doc: Add doc for supported flash chips
May 4, 2024
9a9ccdb
doc: Link useful section of manpage into Supported programmers index
May 25, 2024
510ef74
tests/erase: record the opcode for each erase
tari May 10, 2024
d7e4240
Add clarification to struct flash_region on chipoff_t
tari May 28, 2024
140d65b
Correct get_flash_region() to use inclusive upper bounds
tari May 17, 2024
7fcae77
flashchips: Add XTX XT25F128B
robimarko May 27, 2024
47de5d7
flashchips.c: Add support for XM25RU256C
Apr 29, 2024
acd6a32
flashchips: Add support for MXIC MX25R4035F
daniel-723 Apr 12, 2024
e25129d
ch347_spi: Add driver support for CH347F packaging
ZhiyuanYuanNJ Apr 30, 2024
1ed9523
doc: Convert ME and Intel docs
May 25, 2024
077c641
erasure_layout: Fix get_flash_region bug
tari May 13, 2024
332c5d0
flashchips: add support for chip model Winbond W25Q16JV_M
mhei May 30, 2024
ad10d8c
doc: Add doc for supported chipsets
May 4, 2024
9048085
doc: Add doc for supported boards and laptops
May 10, 2024
1211566
flashchips: Add support for chip model GD25LB128E/GD25LR128E
victorswlim1 Jun 8, 2024
85ff4a3
MAINTAINERS: Add Anastasia Klimchuk for CI script
Jun 13, 2024
2cea18b
MAINTAINERS: Remove Thomas Heijligen from build system and sphinx docs
heijligen Jun 18, 2024
05a4b22
print.c: Print total numbers of supported USB and PCI devices
Jun 19, 2024
6aec783
doc: Add current numbers of supported devices to the intro page
Jun 19, 2024
4f3ee6f
ich_descriptor: Fix chipset_names index for Intel Meteor Lake
subrata-b Jun 20, 2024
d32b487
flashchips: add GD25LB256E chip model
victorswlim1 Jun 20, 2024
f8e6186
print.c: Print B (block-protect) test status of the chips
Jun 19, 2024
eeb9b5d
flashchips: Set default wp test status for chips with custom config
Jun 19, 2024
30d1b5a
hwaccess_x86_io: Fix Android compilation with bionic libc
Jun 19, 2024
57cd50c
ichspi: Add support for Panther Lake
subrata-b Jun 21, 2024
9e175cf
util/ich_descriptors_tool: Add Panther Lake SoC to supported chipsets
subrata-b Jun 21, 2024
a89d2f9
flashchips: Add Support for XMC XM25QU80B
Ssunk Jun 23, 2024
4b1611a
flashchips: Add Support for XMC XM25QH16C/XM25QH16D
Ssunk Jun 23, 2024
9bb3082
VERSION: Update version to 1.4.0-rc1
Jun 27, 2024
f67aa67
libflashrom.map: remove non-existent functions
grobian Jun 28, 2024
ee7f3a7
VERSION: Update version to 1.4.0-rc2
Jul 11, 2024
e4e0fd0
meson: Fix project name as flashrom
Jul 23, 2024
30c85a6
doc: Release notes for version 1.4.0
Jul 6, 2024
eace095
VERSION: Update version to 1.4.0
Jul 25, 2024
551a222
doc: Add download info to release notes 1.4.0
Jul 25, 2024
550a172
VERSION: Update version to 1.5.0-devel
Jul 25, 2024
0cf4b46
flashchips: Add chip models GD25LB256F/GD25LR256F
victorswlim1 Jun 28, 2024
98cff50
how_to_add_new_chip: Add a section for feature bits and WRSR handling
HsuanTingChen Jun 5, 2024
04d0259
flashchips: Add support for MXIC MX25U25645G
daniel-723 Jun 3, 2024
7432b54
flashchips: Add Support for XMC XM25QU16C
Ssunk Jun 27, 2024
2f7edbf
flashchips: Add Support for XMC XM25QH32C/XM25QH32D
Ssunk Jun 27, 2024
029951e
flashchips: Add Support for XMC XM25QU32C
Ssunk Jun 27, 2024
3e7d474
flashchips: Add Support for XMC XM25QH64D
Ssunk Jun 27, 2024
c864c10
flashchips: Add Support for XMC XM25QH128D
Ssunk Jun 27, 2024
4465fe6
flashchips: Add Support for XMC XM25QU128D
Ssunk Jun 27, 2024
806e764
flashchips: Add Support for XMC XM25QH256D
Ssunk Jun 27, 2024
a7606f0
flashchips: Add Support for XMC XM25QU256D
Ssunk Jun 27, 2024
1865ac2
flashchips: Add Support for XMC XM25QH512C/XM25QH512D
Ssunk Jun 27, 2024
ff656e0
flashchips: Add Support for XMC XM25QU512C/XM25QU512D
Ssunk Jun 27, 2024
e0bc199
doc: Add manpage entries for nic3com, gfxnvidia, satasii
Jul 15, 2024
d3f9c25
flashchips: add support for chip model Winbond W25Q32JV_M
mhei Jul 21, 2024
ba29ab1
manibuilder: Make curl follow redirects
Jul 28, 2024
f944a04
MAINTAINERS: Add David Reguera for Bus Pirate
therealdreg Jul 29, 2024
923b6b5
doc: Add page with misc notes and advice
Jul 13, 2024
d611c31
doc: Add doc for in-system programming
Jul 13, 2024
d99afdc
doc: Add doc for buspirate programmer
Jul 15, 2024
f1ddf46
doc: Add overview doc for user_docs
Jul 20, 2024
fd97d5b
doc: Fix the link to In-System programming doc
Aug 3, 2024
3d7094a
doc: Convert the doc for MSI JSPI1
Aug 2, 2024
03090fe
flashchips: add GD25LF256F
victorswlim1 Jul 31, 2024
133b112
Remove the Makefile
tari Jul 29, 2024
213fdb0
doc: Add doc describing release process
Aug 4, 2024
5ddd3b5
flashrom.c: Delete legacy erase and write logic
Aug 9, 2024
9c3aed0
flashrom.c: Rename {erase|write}_by_layout_new as the only one
Aug 9, 2024
126de26
flashchips: add GD25LB512ME
victorswlim1 Aug 7, 2024
e4cb19a
flashchips: add support for MX77U51250F chip
bguvendi May 22, 2024
8685230
flashchips: adding GD25LB512MF/GD25LR512MF
victorswlim1 Aug 13, 2024
97922fb
flashchips: add GD25LF512MF model
victorswlim1 Aug 14, 2024
87134f5
tree: Remove print_wiki.c
Aug 16, 2024
33dda33
doc: Remove leftover reference to building_with_make
Aug 16, 2024
1197f08
chipset_enable.c: Use PCI_ACCESS_ECAM to access pci register
kaneche1 Aug 13, 2024
b938411
flashchips: add GD25B128E and GD25R128E
victorswlim1 Aug 18, 2024
e0ed3b2
stlinkv3_spi: Mark STLinkV3-Mini not working
martonmiklos Aug 15, 2024
4e61edb
flashchips: Add definitions for Fudan FM25Q04, FM25Q64 and FM25Q128
SamantazFox Aug 18, 2024
2305110
flashchips: Update test status for Fudan FM25Q08 and FM25Q128
SamantazFox Aug 18, 2024
6ccfef8
flashchips: add GD25B256E and GD25R256E
victorswlim1 Aug 20, 2024
00e02a6
ch347_spi: Add spi clock frequency selection
ZhiyuanYuanNJ Jun 3, 2024
b2a35e1
flashchips: add GD25B512MF and GD25R512MF
victorswlim1 Aug 25, 2024
2c57364
reduce DELAY_MINIMUM_SLEEP_US to 100 by default
tari Apr 2, 2024
14f121e
Ensure verify operation completed in full if chip memory modified
Aug 24, 2024
11d5c17
ichspi: Add RaptorPoint PCH support
miczyg1 Jun 19, 2023
d71e88e
erasure_layout: Fix init_eraseblock segmentation fault
DigitalDJ Sep 6, 2024
b6b0eba
Fix FEATURE_NO_ERASE chips and add test for them
Sep 4, 2024
87f2d67
dediprog: Fix comment about usb transfer size
Sep 19, 2024
aa11890
en29lv640b.c: Fix the comment about chunksize
Sep 19, 2024
88d31fc
dummyflasher: Enable higher frequency emulation, add docs and tests
Sep 19, 2024
b0e8bc4
doc: Add manpage item for nicintel_spi
Aug 2, 2024
c7680c0
doc: Convert doc for ft2232_spi
Aug 11, 2024
84bfe0e
tests: Add header stdlib.h to allow scan-build to do analysis
Sep 21, 2024
6c26e9e
build: never install cmocka
tari Sep 26, 2024
f5d1bed
ichspi: Change the opcode position for reprogramming on the fly 2->4
Sep 27, 2024
0332d5e
ichspi: const-correct POSSIBLE_OPCODES[]
persmule Sep 30, 2024
f80cadd
ichspi: Merge spi_master implementations for Intel ich
persmule Sep 30, 2024
26a1eb5
ichspi: Probe opcode in POSSIBLE_OPCODES[] as well
persmule Sep 8, 2024
ad6d288
doc/contact: Add note to IRC section and calm down the formatting
Oct 6, 2024
348dbeb
erasure_layout: Erase larger block only when all sub-block need erase
persmule Oct 1, 2024
521c85c
flashchips: add GD25F64F
victorswlim1 Oct 8, 2024
1ba039c
flashchips: add GD25F256F
victorswlim1 Aug 26, 2024
762b85e
Merge remote-tracking branch 'upstream/main' into sync
PLangowski Oct 23, 2024
b6a6618
.github/workflows/build.yml: Upgrade github action versions
PLangowski Oct 23, 2024
02fc8f0
.github/workflows/build.yml: Use meson
PLangowski Oct 23, 2024
0a01af0
wip: Fix errors
PLangowski Oct 23, 2024
9ef8388
fix build errors after sync
m-iwanicki Dec 5, 2024
5b8e4f7
workflow: update flashrom binary path
m-iwanicki Dec 6, 2024
912ee02
workflow: Add `meson test` step
m-iwanicki Dec 6, 2024
ac1e25d
Merge branch 'dasharo-release' into sync
PLangowski Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,30 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y git build-essential debhelper pkg-config libpci-dev libusb-1.0-0-dev libftdi1-dev meson

- name: Build Flashrom
run: make
run: |
meson setup builddir
meson compile -C builddir

- name: Test Flashrom
run: |
meson test -C builddir

- name: Save Flashrom binary as artifact
run: |
mkdir artifacts
mv flashrom artifacts/
mv builddir/flashrom artifacts/
continue-on-error: true # Allow workflow to continue even if 'flashrom' doesn't exist

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: flashrom-artifact
path: artifacts/
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.d
!Makefile.d/
*.o
/.doctrees
/.features
/.dependencies
/.libdeps
Expand All @@ -9,8 +9,10 @@
/flashrom-*
/flashrom.exe
/flashrom.8
/flashrom.bash
/libflashrom.a
/libflashrom-doc/
/man8

/util/ich_descriptors_tool/ich_descriptors_tool
/util/ich_descriptors_tool/ich_descriptors_tool.exe
Expand Down
21 changes: 15 additions & 6 deletions 82802ab.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ int probe_82802ab(struct flashctx *flash)

/* Reset to get a clean state */
chip_writeb(flash, 0xFF, bios);
programmer_delay(10);
programmer_delay(flash, 10);

/* Enter ID mode */
chip_writeb(flash, 0x90, bios);
programmer_delay(10);
programmer_delay(flash, 10);

id1 = chip_readb(flash, bios + (0x00 << shifted));
id2 = chip_readb(flash, bios + (0x01 << shifted));

/* Leave ID mode */
chip_writeb(flash, 0xFF, bios);

programmer_delay(10);
programmer_delay(flash, 10);

msg_cdbg("%s: id1 0x%02x, id2 0x%02x", __func__, id1, id2);

Expand Down Expand Up @@ -114,7 +114,7 @@ int erase_block_82802ab(struct flashctx *flash, unsigned int page,
// now start it
chip_writeb(flash, 0x20, bios + page);
chip_writeb(flash, 0xd0, bios + page);
programmer_delay(10);
programmer_delay(flash, 10);

// now let's see what the register is
status = wait_82802ab(flash);
Expand Down Expand Up @@ -142,7 +142,7 @@ int write_82802ab(struct flashctx *flash, const uint8_t *src, unsigned int start
return 0;
}

int unlock_28f004s5(struct flashctx *flash)
static int unlock_28f004s5(struct flashctx *flash)
{
chipaddr bios = flash->virtual_memory;
uint8_t mcfg, bcfg;
Expand Down Expand Up @@ -195,7 +195,7 @@ int unlock_28f004s5(struct flashctx *flash)
return 0;
}

int unlock_lh28f008bjt(struct flashctx *flash)
static int unlock_lh28f008bjt(struct flashctx *flash)
{
chipaddr bios = flash->virtual_memory;
uint8_t mcfg, bcfg;
Expand Down Expand Up @@ -249,3 +249,12 @@ int unlock_lh28f008bjt(struct flashctx *flash)

return 0;
}

blockprotect_func_t *lookup_82802ab_blockprotect_func_ptr(const struct flashchip *const chip)
{
switch (chip->unlock) {
case UNLOCK_28F004S5: return unlock_28f004s5;
case UNLOCK_LH28F008BJT: return unlock_lh28f008bjt;
default: return NULL; /* fallthough */
};
}
127 changes: 0 additions & 127 deletions Documentation/building.md

This file was deleted.

Loading