Thomas Heijligen has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/73439 )
Change subject: meson_cross: Introduce meson cross file for DJGPP/DOS
......................................................................
meson_cross: Introduce meson cross file for DJGPP/DOS
With `meson setup --cross-file meson_cross/i586_djgpp_dos.txt builddir`
you can build flashrom as DOS executable.
Change-Id: Iabda73942c1e64cd46604c78533982374f78e1a4
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
A meson_cross/i586_djgpp_dos.txt
1 file changed, 42 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/39/73439/1
diff --git a/meson_cross/i586_djgpp_dos.txt b/meson_cross/i586_djgpp_dos.txt
new file mode 100644
index 0000000..66d5ed0
--- /dev/null
+++ b/meson_cross/i586_djgpp_dos.txt
@@ -0,0 +1,29 @@
+# This file is for cross compiling flashrom for DOS with DJGPP.
+#
+# Make sure the program names match your toolchain
+#
+# Make sure pkg-config can find your self compiles libpci
+# or add the path of your libpci.pc as 'pkg_config_libdir'
+# under [properies] below.
+
+[binaries]
+c = 'i586-pc-msdosdjgpp-gcc'
+ar = 'i586-pc-msdosdjgpp-ar'
+strip = 'i586-pc-msdosdjgpp-strip'
+pkgconfig = 'pkg-config'
+
+[host_machine]
+system = 'dos'
+cpu_family = 'x86'
+cpu = 'i586'
+endian = 'little'
+
+[built-in options]
+c_std = 'gnu99'
+default_library = 'static'
+
+[project options]
+tests = 'disabled'
+ich_descriptors_tool = 'disabled'
+
+[properties]
--
To view, visit https://review.coreboot.org/c/flashrom/+/73439
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Iabda73942c1e64cd46604c78533982374f78e1a4
Gerrit-Change-Number: 73439
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-MessageType: newchange
Attention is currently required from: Edward O'Callaghan, Angel Pons.
Hello build bot (Jenkins), Edward O'Callaghan,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/73102
to look at the new patch set (#4).
Change subject: cli_classic: include a fallback inplementation of getopt
......................................................................
cli_classic: include a fallback inplementation of getopt
Some systems [0] may not provide getopt and their gnu extensions. So
provide a fallback implementation. This is based on musl libc's code.
[0] DJGPP/DOS
Change-Id: I6ebbde075014e3b45b0f9e04b34b72aa969e1197
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M cli_classic.c
A cli_getopt.c
A include/cli_classic.h
M meson.build
4 files changed, 324 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/02/73102/4
--
To view, visit https://review.coreboot.org/c/flashrom/+/73102
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6ebbde075014e3b45b0f9e04b34b72aa969e1197
Gerrit-Change-Number: 73102
Gerrit-PatchSet: 4
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Thomas Heijligen, Stefan Reinauer, Peter Marheine.
Hello build bot (Jenkins), Anastasia Klimchuk, Peter Marheine, Alexander Goncharov,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/73359
to look at the new patch set (#2).
Change subject: doc: Add build instructions
......................................................................
doc: Add build instructions
Those build instructions are mostly based on `Documentation/building.md`
and the wiki.
The `.. todo::` sections are non essential parts that will complete or
improve the documentation. Either the content is not yet there or the
sphinx-plugins to generate or improve them musst be first written.
Change-Id: I96771e98b313a6d26dd2be940ff37998d4124324
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
D Documentation/building.md
M doc/conf.py
A doc/developers_doc/building_from_source.rst
A doc/developers_doc/index.rst
M doc/index.rst
5 files changed, 276 insertions(+), 148 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/59/73359/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/73359
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I96771e98b313a6d26dd2be940ff37998d4124324
Gerrit-Change-Number: 73359
Gerrit-PatchSet: 2
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-CC: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Edward O'Callaghan, Angel Pons.
Hello build bot (Jenkins), Edward O'Callaghan, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/73101
to look at the new patch set (#3).
Change subject: meson.build: Use library() to build libflashrom
......................................................................
meson.build: Use library() to build libflashrom
Use library() instead of both_libraries() to build libflashrom. The
built-in option `default-library` can be used to decide which kind of
libraries should be built. Make `both` the default and throw an error in
the case someone tries to build the classic_cli with a shared library.
Change-Id: I27f10fdf1227795a9a3b4e050a2d708b58f10ee7
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M meson.build
1 file changed, 27 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/01/73101/3
--
To view, visit https://review.coreboot.org/c/flashrom/+/73101
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I27f10fdf1227795a9a3b4e050a2d708b58f10ee7
Gerrit-Change-Number: 73101
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: ChrisEric1 CECL.
Thomas Heijligen has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/72057 )
Change subject: Add support for VIA VL805 USB controller flashing
......................................................................
Patch Set 23:
(1 comment)
Patchset:
PS23:
> I found the problem with your chip. The code fails when readcnt != 4 […]
I've dug much deeper into this programmer and here is an update:
A lot of the names are misleading.
* Only `0x43`, `0x50`, `0x78` and `0x7c` are real PCI registers.
* All `VL805_REG_*` defines are commands send via the `0x78` register.
* The values for the command are passed via the `0x7c` register.
The values calculated and written as SPI_TRANSACTION value are for the most cases not correct. Only with 4 bytes in and out it is successful. That's the reason why it works with a `RDID4` patched W25x10 flash and SFDP compatible chips.
Random findings:
* The CMD_SPI_CS=0 mussed be send after CMD_SPI_TRANSACTION
```
REG_MCU 0x43 - Reserved register
REG_FWV 0x50 - Firmware Version (This is the only documented one)
REG_CMD 0x78 - XHCI Optional Bits Configuration Address (19:0)
REG_DAT 0x7c - XHCI Optional Bits Configuration Data (31:0)
CMD_MAGIC_30004 0x00030004 - 0x200, unknown magic value
CMD_SPOP_POLLING 0x0004000c - (1|0), currently not sure what's for
CMD_PCI_WB_EN 0x00040020 - 0xffffff01 - not a clue what this is exactly for
CMD_SPI_OUTDATA 0x000400d0 - <spi commands> + <content>
CMD_SPI_INDATA 0x000400e0 - <content>
CMD_SPI_TRANSACTION 0x000400f0 - 0x5__ Here lies the problem!
CMD_CLK_DIVIDER 0x000400f8 - Default can be used, need external measurement
CMD_SPI_CS 0x000400fc - (1|0) voltage on SPI CS Pin, needs confirmation
```
So for now the right values for `CMD_SPI_TRANSACTION` is the missing mystery that needs to be solved.
HELP NEEDED:
If someone has a Raspberry Pi 4, I'm very interested on a strace of their vl805, closed source, update tool https://github.com/raspberrypi/rpi-eeprom
It would be really helpful to get a `strace -x vl805 -d` log of an read, write and verify operation.
--
To view, visit https://review.coreboot.org/c/flashrom/+/72057
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I71435afcacdf97e14d627e35bce3d29de9657f38
Gerrit-Change-Number: 72057
Gerrit-PatchSet: 23
Gerrit-Owner: ChrisEric1 CECL <christopherericlentocha(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nicholas Chin <nic.c3.14(a)gmail.com>
Gerrit-Attention: ChrisEric1 CECL <christopherericlentocha(a)gmail.com>
Gerrit-Comment-Date: Fri, 03 Mar 2023 14:41:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Thomas Heijligen <src(a)posteo.de>
Gerrit-MessageType: comment
Attention is currently required from: Thomas Heijligen, Stefan Reinauer.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/73359 )
Change subject: [WIP] doc: Add build instructions
......................................................................
Patch Set 1:
(5 comments)
File doc/building_from_source.rst:
https://review.coreboot.org/c/flashrom/+/73359/comment/e51260ef_adf4cc06
PS1, Line 32: build
If this is a builddir (I think it is), then let's name it builddir.
The reason is that `build` looks like a command, can be confusing. I would prefer the name which indicates a directory.
And I just discovered, it is called builddir below! :)
https://review.coreboot.org/c/flashrom/+/73359/comment/5413952f_c8b2355a
PS1, Line 174: ross
ross -> cross (typo)
https://review.coreboot.org/c/flashrom/+/73359/comment/9bee4446_2cd5bdca
PS1, Line 192: If you are not happy with the initial configuration, e.g. a programmer is missing,
: or you want to review it
If you want to change your initial configuration for some reason (for example you discovered that a programmer is missing), run::
(In your initial text, I am not sure what did you mean by "you want to review it"? the command changes the config, not just prints it?)
https://review.coreboot.org/c/flashrom/+/73359/comment/cd39e1dd_42a25cc3
PS1, Line 206: To get a code coverage report
For coverage report: let's keep the existing instructions, please! They more detailed, written recently so they are up-to-date. I don't want to lose that piece of wisdom.
File doc/conf.py:
https://review.coreboot.org/c/flashrom/+/73359/comment/9d543edc_6b58441a
PS1, Line 22: 'sphinx.ext.todo'
This is a cool feature! :)
--
To view, visit https://review.coreboot.org/c/flashrom/+/73359
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I96771e98b313a6d26dd2be940ff37998d4124324
Gerrit-Change-Number: 73359
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-CC: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Comment-Date: Fri, 03 Mar 2023 09:03:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment