BertoldVdb / ms-tools

Program, library and reference designs to develop for MacroSilicon MS2106/MS2109/MS2130 chips.
MIT License
112 stars 10 forks source link

Setting runtime EDID on MS2109 #13

Open FallingSnow opened 11 months ago

FallingSnow commented 11 months ago

I decided to create this issue to keep from spamming #10.

The only place I was able to find the EDID was in the CODE region. RAM and EEPROM did not seem to contain the EDID.

The following returns the edid on an MS2109.

$ sudo ./cli read CODE 0x7738 256

Trying to write an EDID to it however returns the following:

$ sudo ./cli write-file CODE 0x7738 /tmp/edid.bin
cli: error: Memory can't be written

I assume this is because it's the CODE region and cannot be written to.

Am I just not looking at the RAM region the right way to find the EDID in it?

BertoldVdb commented 10 months ago

You can't edit the CODE region as it is in ROM, I will email you something to try.

FallingSnow commented 10 months ago

Got your email. I'll test it tomorrow.

FallingSnow commented 10 months ago

It did work! Thank you! It took some messing around with to get it working. I finally took the edid from your edid_change.bin and slightly modified it and it took.

Since this exists in CODE I'm assuming it is not possible to change the edid without flashing the EEPROM and resetting the device?

BertoldVdb commented 10 months ago

Hello,

No, it is possible to do it at runtime as well, but I wanted to try a simple method first. I will try to document it some time in the future.

Sincerely, Bertold

Op wo 25 okt. 2023 22:14 schreef Ayrton Sparling @.***>:

It did work! Thank you! It took some messing around with to get it working. I finally took the edid from your edid_change.bin and slightly modified it and it took.

Since this exists in CODE I'm assuming it is not possible to change the edid without flashing the EEPROM and resetting the device?

— Reply to this email directly, view it on GitHub https://github.com/BertoldVdb/ms-tools/issues/13#issuecomment-1779986210, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQILGOYBB2AOSW2ZNBYGATYBFXL5AVCNFSM6AAAAAA5ALSIP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZZHE4DMMRRGA . You are receiving this because you commented.Message ID: @.***>

FallingSnow commented 10 months ago

Awesome, thank you for taking the time to work on this Bertold!

1248429482 commented 9 months ago

您不能像在 ROM 中那样编辑 CODE 区域,我会通过电子邮件发送给您一些尝试。

Send me a thank you 1248429482@qq.com