Firmware upgrade using Linux tool, requires no hardware

Adjusting BENQ Blur Reduction and DyAc (Dynamic Acceleration) including Blur Busters Strobe Utility. Supports most BenQ/Zowie Z-Series monitors (XL2411, XL2420, XL2720, XL2735, XL2540, XL2546)
Xadras
Posts: 4
Joined: 22 Oct 2014, 22:06

Re: Firmware upgrade using Linux tool, requires no hardware

Post by Xadras » 23 Oct 2014, 16:39

update:

ubuntu@ubuntu-Aspire-6935:~/flashrom$ sudo modprobe i2c-dev
ubuntu@ubuntu-Aspire-6935:~/flashrom$ sudo i2cdetect -l
i2c-0 i2c nouveau-0000:01:00.0-0 I2C adapter
i2c-1 i2c nouveau-0000:01:00.0-1 I2C adapter
i2c-2 i2c nouveau-0000:01:00.0-2 I2C adapter
i2c-3 i2c nouveau-0000:01:00.0-3 I2C adapter
i2c-4 i2c nouveau-0000:01:00.0-4 I2C adapter
i2c-5 i2c nouveau-0000:01:00.0-5 I2C adapter
i2c-6 i2c nouveau-0000:01:00.0-8 I2C adapter
i2c-7 i2c nouveau-0000:01:00.0-9 I2C adapter
i2c-8 i2c nouveau-0000:01:00.0-10 I2C adapter
i2c-9 i2c nouveau-0000:01:00.0-11 I2C adapter
ubuntu@ubuntu-Aspire-6935:~/flashrom$ sudo i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- 49 -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- 59 -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
ubuntu@ubuntu-Aspire-6935:~/flashrom$ sudo i2cdump -r 0-127 0 0x50
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0, address 0x50, mode byte
Probe range limited to 0x00-0x7f.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 ff ff ff ff ff ff 00 09 d1 30 7f 45 54 00 00 ........??0?ET..
10: 0b 18 01 03 0e 35 1e 78 2e 9d e1 a6 54 54 9f 26 ?????5?x.???TT?&
20: 0d 50 54 a5 6b 80 d1 c0 45 7c 61 7c 81 80 81 bc ?PT?k???E|a|????
30: 95 3c 31 7c 01 01 02 3a 80 18 71 38 2d 40 58 2c ?<1|???:??q8-@X,
40: 45 00 13 2a 21 00 00 1e 00 00 00 ff 00 33 33 45 E.?*!..?.....33E
50: 30 30 39 37 34 53 4c 30 0a 20 00 00 00 fd 00 18 00974SL0? ...?.?
60: 78 0f 87 15 00 0a 20 20 20 20 20 20 00 00 00 fc x???.? ...?
70: 00 42 65 6e 51 20 58 4c 32 34 31 31 5a 0a 00 cd .BenQ XL2411Z?.?
ubuntu@ubuntu-Aspire-6935:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-0:49 -f
flashrom v0.9.7-r1852 on Linux 3.13.0-24-generic (i686)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Info: Will try to use device /dev/i2c-0 and address 0x49.
Info: WILL reset the device at the end.
Found Macronix flash chip "MX25L1605" (2048 kB, SPI) on mstarddc_spi.
Found Macronix flash chip "MX25L1605A/MX25L1606E" (2048 kB, SPI) on mstarddc_spi.
Found Macronix flash chip "MX25L1605D/MX25L1608D/MX25L1673E" (2048 kB, SPI) on mstarddc_spi.
Multiple flash chip definitions match the detected chip(s): "MX25L1605", "MX25L1605A/MX25L1606E", "MX25L1605D/MX25L1608D/MX25L1673E"
Please specify which chip definition to use with the -c <chipname> option.
ubuntu@ubuntu-Aspire-6935:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-0:49 -c "MX25L1605A/MX25L1606E" -r backup.bin -f
flashrom v0.9.7-r1852 on Linux 3.13.0-24-generic (i686)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Info: Will try to use device /dev/i2c-0 and address 0x49.
Info: WILL reset the device at the end.
Found Macronix flash chip "MX25L1605A/MX25L1606E" (2048 kB, SPI) on mstarddc_spi.
Reading flash... done.
ubuntu@ubuntu-Aspire-6935:~/flashrom$ tr '\000' '\377' < /dev/zero | dd of=firmware.bin bs=1k count=2k
2048+0 Datensätze ein
2048+0 Datensätze aus
2097152 Bytes (2,1 MB) kopiert, 0,0177809 s, 118 MB/s
ubuntu@ubuntu-Aspire-6935:~/flashrom$ dd if=XL2411Z_V2_20131209_8B72.BIN of=firmware.bin conv=notrunc
1664+0 Datensätze ein
1664+0 Datensätze aus
851968 Bytes (852 kB) kopiert, 0,00520596 s, 164 MB/s
ubuntu@ubuntu-Aspire-6935:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-0:49 -c "MX25L1605A/MX25L1606E" -w firmware.bin -f
[sudo] password for ubuntu:
flashrom v0.9.7-r1852 on Linux 3.13.0-24-generic (i686)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Info: Will try to use device /dev/i2c-0 and address 0x49.
Info: WILL reset the device at the end.
Found Macronix flash chip "MX25L1605A/MX25L1606E" (2048 kB, SPI) on mstarddc_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Error sending write command: errno 5.
spi_nbyte_program failed during command execution at address 0x1f300
Reading current flash chip contents... done. Looking for another erase function.
Error sending write command: errno 5.
spi_nbyte_program failed during command execution at address 0x27900
Reading current flash chip contents... Error sending write command: errno 5.
Can't read anymore! Aborting.
FAILED!
Uh oh. Erase/write failed.Checking if anything has changed.
Reading current flash chip contents... done.
Apparently at least some data has changed.
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail [email protected], thanks!
Info: Reset command was not sent. Either the noreset=1 option was used, or an error occured.

jalalinator
Posts: 2
Joined: 31 Oct 2014, 16:33

Re: Firmware upgrade using Linux tool, requires no hardware

Post by jalalinator » 31 Oct 2014, 23:03

if someone could help me it would mean alot to me, Ive gotten to the step where I have to load modprobe, the first time i did this step it worked and i was able to see my buses, but ever since then it no longer does anything. this is the copy of the code:

ubuntu@ubuntu:~/flashrom$ sudo modprobe i2c-dev
ubuntu@ubuntu:~/flashrom$ sudo i2cdetect -l
ubuntu@ubuntu:~/flashrom$ sudo i2cdetect 1
Error: Could not open file `/dev/i2c-1': No such device
ubuntu@ubuntu:~/flashrom$


no clue whats going on here its really frustrating as I feel like I know I can do this and I dont think I've missed a step. MAJOR thanks to Boeglin and Bishi (onpg5) and Chief and everyone else whos helping in this thread!

ciopenhauer
Posts: 18
Joined: 06 Nov 2014, 06:04

Re: Firmware upgrade using Linux tool, requires no hardware

Post by ciopenhauer » 06 Nov 2014, 07:41

I have the XL2420G. Is there anything I can do with this to have BlurBusters Utility work on my monitor? It says I have firmware V001 (August 2014).

Falkentyne
Posts: 2805
Joined: 26 Mar 2014, 07:23

Re: Firmware upgrade using Linux tool, requires no hardware

Post by Falkentyne » 08 Nov 2014, 13:29

Is there a bootable iso image for this (that you can just install on a usb drive) for people who have feet for hands, so they can run the flasher?
I want to try V3. (I've never in my life used Linux or ubuntu)
If not I'll pass, but I figured I'd try.
Read a lot of stuff in this thread but it all confuses me.
Would love a USB boot flash drive option (already have a few usb sticks available).

kamill
Posts: 30
Joined: 02 Apr 2014, 18:10

Re: Firmware upgrade using Linux tool, requires no hardware

Post by kamill » 11 Nov 2014, 17:40

Universal USB Installer + Linux LiveCD iso image = bootable pendrive.
Read Bishi's post from page 5 in this thread.

Phade
Posts: 4
Joined: 28 Nov 2014, 09:39

Re: Firmware upgrade using Linux tool, requires no hardware

Post by Phade » 28 Nov 2014, 09:53

Hello.

I'm stucked while flashing my BenQ XL2411Z.
I have used "W25X20" instead of "MX25L1605A/MX25L1606E"
at the following step.

# dump current firmware
sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "MX25L1605A/MX25L1606E" -r backup.bin

I got the information about the "W25X20" chip at the identifiy flash chip command:
# identify flash chip, on bus 1 (/dev/i2c-1) at address 0x49
sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49

If I'm using "MX25L1605A/MX25L1606E" I'll get an error that flashrom cannot find a flash chip.
is this wrong? Because at the last step I recieve an Error wich says:


Calibrating delay loop... OK.
Info: Will try to use device /dev/i2c-1 and address 0x49.
Info: WILL reset the device at the end.
Found Winbond flash chip "W25X20" (256 kB, SPI) on mstarddc_spi.
Error: Image size (2097152 B) doesn't match the flash chip's size (262144 B)!
manuel@manuel-desktop:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "W25X20" -w XL2411Z_V2_20131209_8B72.bin
flashrom v0.9.7-r1854 on Linux 3.13.0-24-generic (x86_64)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Info: Will try to use device /dev/i2c-1 and address 0x49.
Info: WILL reset the device at the end.
Found Winbond flash chip "W25X20" (256 kB, SPI) on mstarddc_spi.
Error: Image size (2097152 B) doesn't match the flash chip's size (262144 B)!
manuel@manuel-desktop:~/flashrom$

I appreciate your help.

Regards Manuel

blargg
Posts: 66
Joined: 20 Sep 2014, 03:59

Re: Firmware upgrade using Linux tool, requires no hardware

Post by blargg » 28 Nov 2014, 13:22

Error: Image size (2097152 B) doesn't match the flash chip's size (262144 B)!
Sounds like the new firmware you're prividing is corrupt or somehow not the correct file, as it's expecting it to be a power of two in size like the flash chip.

EDIT: the blog posting for the creator (?) has you pad it to the proper power-of-two size:

Code: Select all

tr '\000' '\377' < /dev/zero | dd of=firmware.bin bs=1k count=2k
dd if=XL2411Z_V2_20131209_8B72.bin of=firmware.bin conv=notrunc

sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "W25X20" -w firmware.bin

Phade
Posts: 4
Joined: 28 Nov 2014, 09:39

Re: Firmware upgrade using Linux tool, requires no hardware

Post by Phade » 28 Nov 2014, 15:33

Well I got the firmware from the BenQ homepage.
tr '\000' '\377' < /dev/zero | dd of=firmware.bin bs=1k count=2k
dd if=XL2411Z_V2_20131209_8B72.bin of=firmware.bin conv=notrunc

sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "W25X20" -w firmware.bin
I've done this before... I dont know what could be wrong.

blargg
Posts: 66
Joined: 20 Sep 2014, 03:59

Re: Firmware upgrade using Linux tool, requires no hardware

Post by blargg » 28 Nov 2014, 18:37

What commands did you use? The ones I gave copy the downloaded firmware to firmware.bin and pad that copy. In your log you were trying to flash the unpadded downloaded firmware. The tool was telling you that it's not padded, and only 2097152 bytes rather than the required 262144 bytes.

Phade
Posts: 4
Joined: 28 Nov 2014, 09:39

Re: Firmware upgrade using Linux tool, requires no hardware

Post by Phade » 29 Nov 2014, 03:04

Im using this:



Calibrating delay loop... OK.
Info: Will try to use device /dev/i2c-1 and address 0x49.
Info: WILL reset the device at the end.
Found Winbond flash chip "W25X20" (256 kB, SPI) on mstarddc_spi.
Reading flash... done.
manuel@manuel-desktop:~/flashrom$ tr '\000' '\377' < /dev/zero | dd of=firmware.bin bs=1k count=2k
2048+0 records in
2048+0 records out
2097152 bytes (2,1 MB) copied, 0,00897611 s, 234 MB/s
manuel@manuel-desktop:~/flashrom$ dd if=XL2411Z_V2_20131209_8B72.BIN of=firmware.bin conv=notrunc
1664+0 records in
1664+0 records out
851968 bytes (852 kB) copied, 0,00581132 s, 147 MB/s
manuel@manuel-desktop:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "W25X20" -w firmware.bin
flashrom v0.9.7-r1854 on Linux 3.13.0-24-generic (x86_64)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Info: Will try to use device /dev/i2c-1 and address 0x49.
Info: WILL reset the device at the end.
Found Winbond flash chip "W25X20" (256 kB, SPI) on mstarddc_spi.
Error: Image size (2097152 B) doesn't match the flash chip's size (262144 B)!
manuel@manuel-desktop:~/flashrom$

Post Reply