[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-20 Thread Nyúlós Lónyál
Hi Nico! Thanks for explaining. :) So what can I do in this case? Which programmer is the easiest to get the setup working? Rayer_SPI didn't even detect it, nor with shorter wires, this is why I went to ICH7, at least it can recognize KB9012, and read some random data from it. I will not connect

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-20 Thread Nico Huber
Hi Nyúlós, On 20.01.19 12:46, Nyúlós Lónyál wrote: > There are some programmer_delay values in ichspi.c, here is one which says > something about frequency: > > timeout = 100 * 60; /* 60 ms are 9.6 million cycles at 16 MHz. */ > while ((REGREAD16(ICH7_REG_SPIS) & SPIS_SCIP) && --timeout) { >

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-20 Thread Nyúlós Lónyál
There are some programmer_delay values in ichspi.c, here is one which says something about frequency: timeout = 100 * 60; /* 60 ms are 9.6 million cycles at 16 MHz. */ while ((REGREAD16(ICH7_REG_SPIS) & SPIS_SCIP) && --timeout) { programmer_delay(10); So I just need to increase programmer_delay,

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-20 Thread Mike Banon
Maybe try inserting some extra programmer_delay(n) to your ichspi.c ? Also I had a patch for the unreliable flashing environments - https://review.coreboot.org/c/flashrom/+/23840 - but didn't improve it yet so it haven't been merged, and already incompatible with the latest flashrom. Also maybe it

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-19 Thread Nyúlós Lónyál
Thanks for replying at my noob questions. :) The spispeed parameter, yea, I thought about it after looking into flashrom's source on GitHub. Sadly it's not in the code of ICH7 chipset (ichspi.c), so the spispeed option in flashrom command is unavailable. Someone already did that for AMD SB600

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-19 Thread Mike Banon
Sorry for a long reply, I just watched your video and - unless you changed its' speed - it seems to me that your KB9012 operations are going faster than expected, e.g. it reached 0x4*** address almost instantly while in my CH341A case it was almost certainly slower. So maybe you could experiment

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-16 Thread Nyúlós Lónyál
Same problem with 5cm long copper wires. Here is a video of what's happening: https://www.youtube.com/watch?v=JlbRGK9_gPg Nyúlós Lónyál ezt írta (időpont: 2019. jan. 16., Sze, 1:38): > The wires are ~20-25cm made of aluminium, but I have some broken USB > cables with copper wires. I can reduce

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-16 Thread Nyúlós Lónyál
The wires are ~20-25cm made of aluminium, but I have some broken USB cables with copper wires. I can reduce the distance of laptop's keyboard connector and DIP8 socket to about 5cm wire length, will give it a try tomorrow. And something that I've noticed at verifying with flashrom, it always gives

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-15 Thread Mike Banon
Sorry if I've already asked this question, but how long are your wires? Ideally they should be about 10cm length and made of good copper. Although it could work even for 30cm poor aluminum wires, still when there are read/write errors - the first suggestion which comes to my mind is to shorten the

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-15 Thread Nyúlós Lónyál
Sorry for the confusion. :( I think you have misunderstood me. My laptop's motherboard is taken out of the laptop. I have another machine, a desktop PC which I've used for trying rayer_spi programmer. Now I connect the laptop's KB9012's debug pins into the desktop PC motherboard's DIP8 BIOS

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-14 Thread Mike Banon
That is because KB9012 is active after your laptop has booted and not in debug state where it is possible to reflash it without a problem. Have you double checked your laptop's datasheet to make sure your connection is correct, and also that your laptop's corner ground is really connected to its'

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-11 Thread Nyúlós Lónyál
Finally managed it to detect KBC's internal flash using the motherboard's BIOS socket with removing it's SPI chip after boot, and connecting KB9012 in there. But the read always gives me different files, so I can't backup the current content of KB9012.

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-11 Thread Nyúlós Lónyál
Sorry for double mail. Erasing and writing fails too. *xubuntu@xubuntu:~/flashrom$ sudo ./flashrom -p internal -c "KB9012 (EDI)" -w /home/xubuntu/Desktop/EC-FD-Extract.bin flashrom p1.0-141-g9cecc7e on Linux 4.15.0-20-generic (x86_64)flashrom is free software, get the

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-10 Thread Nyúlós Lónyál
Yea, tried to discharge the motherboard, taken out CMOS battery too, it didn't help. I don't know if this is programmer related or not, I have reflashed 2 types of BIOS SPI chips with it, EN25QH16 and W25Q32BV. But these chips are maybe different from KB9012's debug interface. I can't get a CH341A

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-10 Thread Nyúlós Lónyál
Hi Mike! I've followed the linked guide, it gave me these results. The grounds are united, still the same error happens. I have tried to GND pin 42 of KB9012 as mentioned in the guide, and tried to connect both pin 41 and 42 to GND, as in KBC's datasheet at EDI related part, still no success,

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-09 Thread Mike Banon
Just to double-check: please discharge the motherboard completely by trying to turn it on while there is no power adapter connected, then unite three grounds (KB9012 / programmer / motherboard ) and only then connect the board's power adapter . After doing all that, please check if you could read

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-08 Thread Mike Banon
This rayer_spi is "RayeR parallel port programmer" which is external. Internal flashing will not work until someone will reverse engineer the proprietary UEFI update mechanism part of updating EC firmware. P.S. Meanwhile I'm contributing various patches to coreboot, although they are not discrete

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-08 Thread awokd via flashrom
Mike Banon wrote on 1/8/19 3:08 PM: Hi Nyulos, Have you tried following the KB9012 flashing instructions at DangerousPrototypes wiki? http://dangerousprototypes.com/docs/Flashing_KB9012_with_Bus_Pirate Although that is for Bus Pirate / CH341A programmers and LA-A091P, should be similar for your

[flashrom] Re: ENE KB9012QF A3 reflash help needed

2019-01-08 Thread Mike Banon
Hi Nyulos, Have you tried following the KB9012 flashing instructions at DangerousPrototypes wiki? http://dangerousprototypes.com/docs/Flashing_KB9012_with_Bus_Pirate Although that is for Bus Pirate / CH341A programmers and LA-A091P, should be similar for your Rayer programmer and LA-8241P