Page 37 of 58

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 08 Jan 2016, 17:47
by Falkentyne
Did you drop the laptop at all?
If not, you might have written to the laptop's i2c bus. I saw this happen with some people who were trying to program an EDID or some firmware (not for a Benq) and they sent the wrong command to the laptop display's i2c, completely rewriting it. They were able to fix it once someone found the original values.

BTW the displayport cable works at 144hz right?
You can't use flashrom with displayport. You cant even use the mstar ISP device with displayport. Displayport has its own EDID (which is why it will still work).

When you get the Mstar ISP device (its worth it anyway) then you can recover the corrupted DVI and VGA edid
And yes, in BIOS, the EDID is used and if its corrupted it will use 800x600 windowed most likely.

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 09 Jan 2016, 00:24
by radekpw
Yes I can get the monitor up to 144hz with the display port cable. I'm running custom at 120hz and 1502VT. I also got a Mstar on coming in the mail. I wish I knew that you couldn't flash using the display port cable, I wouldn't even have bothered and wouldn't have had this issue with the laptop. Hopefully I can figure something out. I didn't drop the laptop, all I was doing was firmware dumps, I guess that must have messed something up.

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 09 Jan 2016, 01:19
by Falkentyne
At 120hz, please use VT 1500.
Because VT 1502 occasionally causes frameskipping.

Also check your video card control panel
it might be using 6 bit depth at 120hz because displayport has an 8 bit color BPC limit on displayport at 360 mhz.

If its running at 6 BPC, try these timings.

horizontal total: 2001
Vertical total: 1499.

This should put your pixel clock at 359.94 MHz and put you back at 8 bits per channel (8 bpc) color :)
(this isn't needed over DVI, etc).

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 13 Jan 2016, 10:43
by roman
Hey guys, yesterday i tried flashing my xl2411Z from v1 to v2 firmware. I was using the vga port of my i5 processor iirc and followed the steps in the guide. Everything was fine during the patching process but at the final part where it verifies my monitor went black. The light in the bottom right shows nothing and all the buttons arent doing anything anymore too. Its like the power cable got plugged out.
Is there any hope or is my monitor completely ruined now??? :cry:

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 13 Jan 2016, 14:13
by Falkentyne
You said the monitor went black, right?
it should have been in standby mode if you were using it as VGA. it should not have been powered on in the first place!
All you need to do to flash the monitor is have it plugged in. The power does not need to be on.

Just reflash it.
The monitor has a boot block where it will be frozen and in standby.
I've completely -bricked- a monitor (on purpose) by using the Mstar ISP device to flash an XL2420Z firmware intentionally into an Asus VG248QE (I made a backup first, of course) and then recovered the VG248QE by re-flashing the backup into it.

Unplug the monitor from the wall for about 10 minutes (no AC power). Then plug it back in but don't press the power button of course. Then run the Linux flasher again and do the commands again and reflash it. Use the laptop's primary display as your main display.

This should reflash and it should work correctly this time.

Also at worst possible case, you can always buy the Mstar device and flash it with 100% chance of success as well.
http://www.yoycart.com/Product/5278188206/

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 13 Jan 2016, 14:46
by roman
Thanks for the heads up i will try it again. I dont have a laptop only a desktop. I suppose i could plug the xl2411z on the onboard VGA (and leave it off this time) and use either the onboard dvi or my graphics card output as display. Well hope i can get this thing together again.

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 13 Jan 2016, 17:04
by roman
I tried again and it gave me an error. Can someone help me please?

Code: Select all

ubuntu@ubuntu:~/flashrom$ sudo i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
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:~/flashrom$ sudo i2cdump -r 0-127 1 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-1, 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 37 33 32 53 4c 30 0a 20 00 00 00 fd 00 18    00732SL0? ...?.?
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 d5    .BenQ XL2411Z?.?
ubuntu@ubuntu:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49
flashrom v0.9.7-r1846 on Linux 3.19.0-25-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 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:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "MX25L1605A/MX25L1606E" -r backup.bin
flashrom v0.9.7-r1846 on Linux 3.19.0-25-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 Macronix flash chip "MX25L1605A/MX25L1606E" (2048 kB, SPI) on mstarddc_spi.
Reading flash... done.
ubuntu@ubuntu:~/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.00630124 s, 333 MB/s
ubuntu@ubuntu:~/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.00453258 s, 188 MB/s
ubuntu@ubuntu:~/flashrom$ sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "MX25L1605A/MX25L1606E" -w firmware.bin
flashrom v0.9.7-r1846 on Linux 3.19.0-25-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 Macronix flash chip "MX25L1605A/MX25L1606E" (2048 kB, SPI) on mstarddc_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000000! Expected=0x02, Found=0xb0, failed byte count from 0x00000000-0x001fffff: 0xff
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail [email protected], thanks!

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 13 Jan 2016, 17:26
by Falkentyne
Hi,
I've seen this error mentioned before.
This can only be solved by flashing on a different computer.
Usually a laptop with an "old" style (non-UEFI) legacy BIOS and a VGA port.

If that still fails, then the only way to recover 100% is to use the Mstar ISP device that I linked in the other message. That is the exact same hardware device that Benq uses in their factory (they even have software for it on their FTP site).

If you have no other computer or laptop to flash the monitor, then you should probably just buy this device.
The software for it is on the Blur Busters main site under "DIY V2 upgrade".

Shipping should take a couple of weeks. It will probably be faster than trying to RMA the monitor and dealing with Benq, anyway.

http://www.yoycart.com/Product/5278188206/

when you do get it, just upgrade to V4 firmware directly. The download link is in another forumthread several pages back (it say something like XL2411Z V4, XL2720Z V5, etc.

(edit) http://forums.blurbusters.com/viewtopic.php?f=13&t=2461

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 14 Jan 2016, 07:33
by roman
Alright thanks!

Re: Firmware upgrade using Linux tool, requires no hardware

Posted: 19 Jan 2016, 07:54
by roman
Alright so i finally got my hand on a laptop i could borrow and use for a short while. It has the old bios and i repeated the flashing process exactly as described here: http://boeglin.org/blog/index.php?entry ... e%28dom%29

I ran the commands in order there and before the final steps i moved the already extracted V2 firmware which i downloaded from the benq homepage to the flashrom director. The filename of that firmware is: XL2411Z_V2_20131209_8B72.BIN and i uploaded it also here: http://puu.sh/muBcE/6d23ae6f58.BIN because i have to redownload it every time i go to ubuntu live mode. (Just in case there is something wrong with the bin file).

The result on the laptop was that it ended up in the error again and my monitor still remains dead. There is no power light on it as if it is disconnected from the grid and none of the buttons on the monitor itself work. It has been in that stage ever since i tried to flash it the first time.

I ran the commands in order just as described in the TL;DR at the bottom and I have done this multiple times now and took caution to not forget anything or any other mistake that could possibly be caused by me.

Code: Select all

# build
svn co svn://flashrom.org/flashrom/trunk@1846 flashrom
cd flashrom
wget -O- http://boeglin.org/static/benq/0001-Add-programmer-for-the-MSTAR-I2C-ISP-protocol.patch | patch -p1
make -j

############### After downloading i would move the already extracted XL2411Z_V2_20131209_8B72.BIN into the flashrom directory and continued with the next steps.


# load i2c-dev driver
sudo modprobe i2c-dev

# list all i2c buses
sudo i2cdetect -l
# list i2c devices on bus 1
sudo i2cdetect 1
# get EDID (0x50) from bus 1
sudo i2cdump -r 0-127 1 0x50

# identify flash chip, on bus 1 (/dev/i2c-1) at address 0x49
sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49

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

# extend firmware to 2MB, to match the flash chip size
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

# write firmware
sudo ./flashrom -p mstarddc_spi:dev=/dev/i2c-1:49 -c "MX25L1605A/MX25L1606E" -w firmware.bin
I am suspecting there goes something wrong during the last commands which dump the current firmware and extrend firmware to 2MB. Honestly i have no clue about these commands but i think it messes up at this point and it tries to just flash something broken again.

Also please note that the entry on 0x37 has vanished and no longer shows up when running the detect command. The read of the EDID shows that this is the i2c bus for the XL2411Z , so basicly the address 37 vanished from my monitor. I remember it being there when V1 was on it though so it got removed during the failed V2 flash attempt. It is probably the reason why the monitor is totally blank, no power light and no on screen display.

Now i hope for a solution explained in simple steps if possible since i dont really know alot of technical things and dont know anything about linux at all. Please just tell me how to get the monitor running again step by step and what the issue could be?

Is it in the firmware? The steps of dumping the current firmware and extending to 2mb and flashing? The address 37 missing? Maybe someone could upload a "prepared" firmware version that i would just simply try to flash, skipping the preparation steps?

I have tried this both on my desktop's onboard graphics and on the laptop. Both ending in the same error.

The version of linux i am using? I am using ubuntu linux live cd downloaded from the website recently just for this so it should be up to date. I am also running these commands beforehand since i read they are required to make certain commands work and i would get errors without it anyways.

Code: Select all

sudo gedit /etc/apt/sources.list
#add "universe multiverse" at the end of the second line, to it reads "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" Save, then exit the editor.
sudo apt-get update
sudo apt-get install i2c-tools subversion libpci-dev
Well i think i have described everything as clearly as possible and hope someone here knowledgeable enough can tell me what to do. My monitor is completely unusable now and i dont have the money nor am i willing to pay 50€ and wait "couple weeks" for something that i dont really want to buy and will use just once anyways. Also please dont tell me to ask in the rent forum about the mstar upgrader tool. I wont send money to someone else that i dont even know and probably get scammed and wait for a week for something to arrive. I want to fix my issue now for once and have this monitor run again and never touch it again.

Thanks