mirror of
https://github.com/hirschmann/nbfc.git
synced 2026-04-26 00:56:01 +03:00
[GH-ISSUE #1034] All the values in ec-probe are hexdumps are 00 and there is no output for the ec-probe monitor command #890
Labels
No labels
Stale
bug
config
discussion
duplicate
enhancement
experimental
feature
help-wanted
info
invalid
invalid
pull-request
question
up-for-grabs
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nbfc-hirschmann#890
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @skinatro on GitHub (Dec 15, 2020).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/1034
I am unsure if this is a bug or not so sorry in advance. I am trying to create a config for the laptop asus tuf fx505dy but I am facing this issue and I am not sure how do I solve it.
Bug Description

All the values in the
ec-probe.exe dumpouput are as 00 and when I am trying to monitor the ec , I am not getting any output, the only output is the output in the image belowTo Reproduce
Use the
ec-probe.exe dumpandec-probe.exe monitorcommandExpected behavior
Give proper output like it is shown in the wiki page chapter - EC probing tool
System information
NbfcServiceLog.2020-12-06.txt
Additional Information
dump.txt
this is the dump file
@Andrei-k0v commented on GitHub (Dec 15, 2020):
I have the same problem. Asus F509FB. Windows 10 20H2.
@tomprost commented on GitHub (Dec 15, 2020):
Am Dienstag, den 15.12.2020, 10:40 -0800 schrieb skinatro:
For me the following from dump:
But I have no idea what to do with it. What more information do you
need to give me a little push in the right direction?
Best,
Thomas
@skinatro commented on GitHub (Dec 16, 2020):
@tomprost do you have a fx505dy, ?
With that dump you can monitor the values under load and then you can probe the values which you think are the values for the fan, if your successfully probe the correct addresses then the fans will start running.
check this page out
[(https://github.com/hirschmann/nbfc/wiki/Probe-the-EC%27s-registers)]
@tomprost commented on GitHub (Dec 16, 2020):
Am Mittwoch, den 16.12.2020, 07:47 -0800 schrieb skinatro:
@tomprost commented on GitHub (Dec 17, 2020):
Am Mittwoch, den 16.12.2020, 07:47 -0800 schrieb skinatro:
@skinatro commented on GitHub (Dec 17, 2020):
@tomprost this page i guess
https://github.com/hirschmann/nbfc/wiki/Probe-the-EC%27s-registers
sorry I cant help you more regarding which registers and how to do stuff because it wont work on mine machine
@tomprost commented on GitHub (Dec 17, 2020):
Am Donnerstag, den 17.12.2020, 14:12 -0800 schrieb skinatro:
Hope, some others are reading this post, too.
Maybee, someone has an idea ... :-)
@skinatro commented on GitHub (Dec 18, 2020):
@agastyashr No I dont, I created this issue because I came across the issue , while trying to create the config the laptop. I think the ec-probe tool wont work on this laptop, so I think I will need to physically try to open the laptop and try to search for EC chip
@skinatro commented on GitHub (Dec 19, 2020):
@agastyashr I looked at what you sent, also I also , I was checking some other repos and one of the repo states that - It turns out that AMD has there own embedded controller which controls the thermal and fan thing call System Management Unit (SMU). Because of this, the ACPI based solution won't work on AMD machine.
this is one I am referring to ---> https://github.com/dominiksalvet/asus-fan-control/issues/56
So I dont think I can create the config, and its a dead end for our model.
If you use linux, you can try this
https://github.com/leonmaxx/asus_fanmode
https://github.com/hackbnw/faustus
@Falcosc commented on GitHub (Mar 25, 2021):
Originally posted by @ThomasThongCE in https://github.com/dominiksalvet/asus-fan-control/issues/56#issuecomment-677057414
I am not sure about this, because latest Lenovo AMD devices work fine, even with Rainor and its new STTv2
I have full access to the EC, and fan controll is as usual for current Lenovo devices at register 47
At first I thought asus-fan-control controll does not use the same way to talk to EC like nbfc does and just need to adapt the nbfc solution. Then I found this issue here where Asus TUF don't have EC access at all.
I only want to tell you that this is not an AMD related issue. Lenovo devices do have EC access even on AMD plattform.
@stnufc commented on GitHub (Apr 5, 2021):
. So no solution and its Asus problem, not AMD? Damn..
Its not even possible to change turboboost fans speed? It's for some reason 5500-5600 rpm, but I want full - 6300 or more...
@skinatro commented on GitHub (Apr 30, 2021):
Oh thanks for clearing the confusion but if it doesnt has EC access then how the asus proprietary app and bios display the fan speed and control fan modes?
@Falcosc commented on GitHub (Apr 30, 2021):
AMD provides fan control over SMU. I don't know if you can skip integrating EC access with this new feature.
@skinatro commented on GitHub (Apr 30, 2021):
Oh thanks a lot
@Mis012 commented on GitHub (Jul 28, 2021):
well... since I came across this, I can chime in: while this APU's FCH does seem to support fan control, the ACPI tables suggest that the functionality is not used on FX505DY, while there are plenty of fan references around the EC stuff...
As for the vinafix post, I wouldn't rule out that the user was asking for (some?) it8225e fw, rather than stating that it8225e is the IC used. The capsule file mentions it8226e instead, so at this point the best course of action would be to just read what is printed on the chip. Sadly the chip is on the less convenient side of the motherboard, I've found some photos but they are all too low res / blurry.
@Mis012 commented on GitHub (Jul 28, 2021):
8225 would definitely be preferable since at least you can get the datasheet if you pay for it, compared to 8226
on the other hand, something entirely different that has a datasheet available for free would be even nicer :P
btw, schematics would also have the IC name if someone has those...
@skinatro commented on GitHub (Aug 5, 2021):
@Mis012 but even if you pay for the datasheet, i think the laptop skips the functionality entirely , then how can it be used?
@Mis012 commented on GitHub (Aug 9, 2021):
ok, I opened the laptop, and it's it8225e indeed
the ACPI tables make it clear that the EC is involved in fan control, while the FCH doesn't seem to be (even though amd's docs do say that it's possible to use the FCH)
I've just found that https://www.skclappy.in/threads/it8225e.94/ has popped up, looks to be the same file size as vinafix, so maybe can be gotten for free?
@Mis012 commented on GitHub (Aug 9, 2021):
also coreboot's ectool on Linux seems to give more than just zeroes fwiw, but the datasheet would probably be a better bet (if it's indeed a datasheet, and not something like this... IT8225E.pdf )
@Mis012 commented on GitHub (Aug 9, 2021):
http://www.lannafix.com/forum.php?mod=viewthread&tid=5769 looks a bit more like it with the <1MB file size being for an archive
@Mis012 commented on GitHub (Sep 13, 2021):
aaand it was not, another useless cutout from some schematics
@Mis012 commented on GitHub (Sep 13, 2021):
on the plus side, I've figured out how to talk to the EC-internal bus, on which the actual hw that controls the speed lies.
it's a bit cumbersome, so I have a script for it :P
the register layout seems to be the same as (or similar enough to) this: http://archive.hack.lu/2015/radare2-workshop/demos/Firmware/demo5_it8502e/ITE_IT8502E_F_G_V0_7_7_09042008_1COM.pdf
of interest is the block diagram (to see why you need to access the EC-internal bus, unless your EC firmware has an interface that allows you to do what you want, which would not be documented anywhere anyway)
of particular interest to you would be
7.11 PWM, specifically this part:which means that all you need to do to control the fan speed is:
i2ec_write 0x18 [0x02-0x09] [speed from 0 to 0xff], for examplei2ec_write 0x18 0x08 0xffchanges my keyboard backlight to full brightness (not a fan, but it works similarly enough I guess)you're welcome, now if anyone could please find the actual datasheet for IT8225E... :/
@skinatro commented on GitHub (Sep 18, 2021):
@Mis012
I will try to find some , also you mentioned coreboot
you planning to port libreboot/coreboot to the laptop?
@Mis012 commented on GitHub (Sep 18, 2021):
well... the thing is, I would need more stuff to do that, like schematics and some more docs for the APU... and possibly some AGESA blob, unless the docs are detailed enough that I could actually reimplement the stuff that thing does...
Also I would almost be more interested in u-boot + a device tree + porting the chomebook EC codebase to the IT8225E... :P
I really don't like ACPI, and I feel like this laptop could work fine with a device tree instead (I have some WIP stuff on https://gitlab.com/Mis012/booting-linux-with-fdt-on-x86, right now it's really just figuring out why the GPU acts up, maybe writing a driver for the AOAC reset controller, and of course a fw for the EC that could hook up with the existing chromebook drivers (which would probably need some device tree support added))
@skinatro commented on GitHub (Sep 18, 2021):
sorry I am a total novice in this kind of stuff
@github-actions[bot] commented on GitHub (Mar 19, 2022):
This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed
@stnufc commented on GitHub (Mar 24, 2022):
So there really isnt anything that can be possible done to control the fans on asus fx505? Such a shame...
@Mis012 commented on GitHub (Mar 24, 2022):
well... you can overwrite the pwm value just fine, the issue is that the EC firmware will change it right back
though you can crash the EC fw and then you don't need to worry about that :P
and fwiw, if the EC is an 8051 core (it's not all that easy to tell, it would seem), then cros-ec is most definitely out of the question... :/
@Mis012 commented on GitHub (Sep 13, 2023):
seems the EC has an andes risc-v core, so porting cros-ec would be a possibility... of course having no register map for this particular model is unfortunate
@Mis012 commented on GitHub (Sep 13, 2023):
Another "solution" that I don't find very practical is to just write the PWM value on a loop, since the EC clearly can't compete with a multiple GHz CPU in writing the register. One would probably want to use these single-level read/write primitives instead of the multi-level ones I posted previously:
@memfissoftware commented on GitHub (Mar 31, 2025):
@Mis012 what is exactly io_write8 and io_read8?
is it part of nbfc or a linux package?
@Mis012 commented on GitHub (Mar 31, 2025):
https://github.com/adurbin/iotools