完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好
我想在爱迪生运行时禁用与GPI_PWRBTN_N的任何交互。 我已经禁用了pwr-button-handler.service但是当我按下按钮超过7秒时它仍然会切断电源。 最糟糕的是,它会直接关闭电源,而不会正确关闭电源,因此可能会损坏文件系统。 究竟还在听什么输入? 我在哪里可以关掉它? 它是内核模块吗? 或者它是PMIC? 如果是,我可以配置PMIC不关闭吗? 谢谢。 以上来自于谷歌翻译 以下为原文 Hello I want to disable any interaction with GPI_PWRBTN_N when the edison is running. I have disabled the pwr-button-handler.service but it still cuts the power when I press the button longer than 7 seconds. The worst is that it does directly turn off the power, without shutting it down properly, so possibly damaging the filesystem. What exactly is still listening on this input? Where can I turn it off? Is it a kernel module? Or is it the PMIC? If yes, can I configure the PMIC not to turn off? Thank you. |
|
相关推荐
13个回答
|
|
HelloPai7u,感谢您对英特尔Edison Board Kit感兴趣。我们已经确认了您的请求,我们正在努力工作。一旦我们有解决方案,我们将尽快与您联系。谢谢您,Eliza
以上来自于谷歌翻译 以下为原文 Hello Pai7u, Thank you for your interest in the Intel Edison Board Kit. We have acknowledged your request and we are currently working o it. As soon as we will have a resolution, we will reach you back. Thank you, Eliza |
|
|
|
jerry1978 发表于 2018-11-20 07:42 HelloPai7u,感谢您的耐心等待。 在查看原理图时,看起来GPI_PWRBTN_N将进入Edison Module 70针连接器上的引脚17.我们相信GPI_PWRBTN_N将进入PMIC。 您可以通过修改源代码来禁用它。 请注意,对源代码的任何修改都超出了我们的支持范围。请随意尝试并与社区分享您的结果。 有用的链接: Edison - Linux Intel Edison Yocto Poky image如果您有其他问题,请告诉我们。最好的问候,Eliza 以上来自于谷歌翻译 以下为原文 Hello Pai7u, Thank you for your patience. When looking at the schematicsit looks like GPI_PWRBTN_N is going to Pin 17 on the 70 pin connector on the Edison Module. We believe the GPI_PWRBTN_N is going to the PMIC. You may be able to disable it by modifying the source code. Please note that any modification to the source code is out of our support scope. Feel free to give it a try and share your results with the community. Useful links: Please let us know if you have additional questions. Best regards, Eliza |
|
|
|
cd340823 发表于 2018-11-20 07:51 您好,如果所提供的信息有用,请告诉我们。您还有其他问题吗?谢谢,致以诚挚的问候,Eliza 以上来自于谷歌翻译 以下为原文 Hello Pai7u, Could you please let us know if the information provided was helpful? Do you have further questions? Thank you and best regards, Eliza |
|
|
|
你好伊丽莎 谢谢你的提问,但我担心尽管你的回答我无法解决我的问题。 在提出问题之前,我检查了所有可以找到的原理图和文档。 所以当然我知道第17针,但它无助于解决问题,因为我找不到任何原理图显示引脚进入模块内部的位置。 如果你问我是否还有其他问题,那么,是的,是的: - PMIC究竟是什么芯片? 我在硬件指南中读到它是TI SNB9024,但我找不到任何文档。 这个芯片有数据表吗? - 根据硬件指南,SNB9024可通过I2C进行配置。 SNB9024的I2C端口是否连接到可访问的I2C总线? - 你的意思是哪个源代码? linux内核的源代码? 如果是,您是否有任何提示在哪个方向搜索它? 是否有PMIC的内核模块? 我在源头搜索(感谢链接),但找不到任何关于SNB9024的信息。 我发现了许多不同的PMIC,例如 TPS65910,但不是SNB9024。 任何提示? 最好的祝福 以上来自于谷歌翻译 以下为原文 Hello Eliza Thanks for asking, but I'm afraid I couldn't resolve my issue despite your answer. Before asking the question, I checked all the schematics and documents I could find. So of course I knew about pin 17, but it does not help solving the problem because I couldn't find any schematics showing where the pin goes to inside the module. If you ask me if I have further questions, then well, yes: - What chip is the PMIC exactly? I read in the hardware guide that it is a TI SNB9024 but I can't find any documentation on it. Is there a datasheet for this chip? - According to the hardware guide, the SNB9024 is configurable via I2C. Is the I2C-port of the SNB9024 connected to an accessible I2C-bus? - Which source code do you mean? The source code of the linux kernel? If yes, do you have any hint in which direction to search for it? Is there a kernel module for the PMIC? I searched in the source (thanks for the link) but could not find anything about the SNB9024. I found a lot of different PMICs, like e.g. the TPS65910, but not the SNB9024. Any hint? Best regards |
|
|
|
HelloPai7u,以下是对您问题的回复: 您是对的,爱迪生模块硬件指南将TI SNB9024列为PMIC芯片。有关数据表,请联系TI。 是的。 是的,我们指的是Linux内核。 您可以查看这些代码,因为它们可能与PMIC - 内核电源有关,但我可能其他代码也指的是PMIC,所以我建议全部检查 - Edison KernelBest问候,Eliza 以上来自于谷歌翻译 以下为原文 Hello Pai7u, Here are the responses to your questions:
Eliza |
|
|
|
cd340823 发表于 2018-11-20 08:44 再一次问好 不幸的是,TI不会透露SNB9024的数据表,因为它似乎是针对英特尔(TI SNB9024电源管理IC数据手册)的定制芯片。 我想我找到了一种与SNB9024进行通信的方法(在drivers / platform / x86 / intel_scu_ipc.c中使用函数intel_scu_ipc_ioread8和write8,如果我错了请纠正我)。 但是如果没有数据表知道要写入哪个寄存器,我真的无法取得成功。 看来英特尔是唯一能够提供SNB9024数据表的人。 您能否提供SNB9024的数据表或至少有关电源按钮配置的寄存器? 像例如 与爱迪生模块硬件指南中表31描述备用电池寄存器的样式相同... 先谢谢你。 以上来自于谷歌翻译 以下为原文 Hello again Unfortunately, TI won't give out the datasheet of the SNB9024, because it seems to be a customized chip for Intel (TI SNB9024 power management IC Data Sheet ). I think I have found a way to communicate to the SNB9024 (using the function intel_scu_ipc_ioread8 and write8 in drivers/platform/x86/intel_scu_ipc.c, please correct me if I am wrong). But without datasheet to know which register to write to, I'm not really able to get ahead. It seems Intel is the only one who could give out the datasheet of the SNB9024. Can you please provide the datasheet of the SNB9024 or at least the registers concerning the configuration of the power button? Like e.g. in the same style as the table 31 in the Edison Module Hardware Guide describing the register for the backup battery... Thank you in advance. |
|
|
|
jerry1978 发表于 2018-11-20 08:56 您好Pai7u,我们发现了一些可以提供原始请求的更多信息。在Edison Breakout Board的硬件指南(第12页,第2.4节)和Arduino Kit(第25页,第9节)中,您可以找到以下信息:“The 电源按钮[BreakoutBoard中的SW1和Arduino Kit中的SW1UI2]由软件配置。按住电源按钮将产生不同的结果,具体取决于英特尔®Edison计算模块的当前状态和保持的持续时间......“我们 找到了一个用C编写的程序,它可能负责电源按钮操作(pwr-button-handler.c)。 您可以修改此程序并重建图像以满足您的项目需求!前面提到的C程序的位置:/ iot-devkit-yp-poky-edison-20160606 / poky / meta-intel-edison / meta-intel-edison -bsp / recipes-support / pwr-button-handler / files / pwr-button-handler.c如何从源代码构建Edison镜像: https://software.intel.com/zh-cn/node/593591 https://communities.intel.com/thread/115234我希望这些信息可以帮助您完成项目!最好的问候,Eliza 以上来自于谷歌翻译 以下为原文 Hello Pai7u, We have found something that will provide more information on your original request. In the Hardware guides for Edison Breakout Board (page 12, Section 2.4) and Arduino Kit (page 25, Section 9) you can find this information: "The power button [SW1 in Breakout Board and SW1UI2 in Arduino Kit] is configured by software. Pressing and holding the power button will produce different results depending on the current state of the Intel® Edison compute module and the duration of the hold..." We have found a program written in C that might be responsible for the power button actions (pwr-button-handler.c). You may modify this program and rebuild the image to fit your project needs! The location of the C program previously mentioned: How to build the Edison image from source: I hope this information helps you with your project! Best regards, Eliza |
|
|
|
jerry1978 发表于 2018-11-20 09:11 你好伊丽莎 谢谢您的回答。 我知道pwr-button-handler.c程序,在我的第一篇文章中我提到我禁用了它(“我已经禁用了pwr-button-handler.service [...]”)。 该程序不与PMIC本身通信,它只是处理按下按钮时触发的中断(例如,在WiFi客户端和AP模式之间切换)。 但是使用pwr-button-handler.c,当按下按钮7秒钟时,无法阻止PMIC切断电源。 要禁用此功能,必须更改PMIC寄存器。 我现在已经找到了如何更改PMIC寄存器(使用intel_scu_ipc.c中的函数),但我不知道要写入哪个寄存器以及哪些位。 这就是为什么我需要SNB9024的数据表或至少寄存器的数字和位来配置PMIC的电源按钮行为。 需要提醒的是,禁用电源切断是非常重要的,因为它不能正常关闭系统,因此文件系统可能会损坏。 那么请你能提供SNB9024的数据表(或者只是包含电源按钮寄存器描述的部分)吗? 先谢谢你。 以上来自于谷歌翻译 以下为原文 Hello Eliza Thank you for your answer. I know the pwr-button-handler.c program and in my first post I mentioned that I disabled it ("I have disabled the pwr-button-handler.service [...]"). This program does not talk to the PMIC itself, it just handles the interrupt which is fired when the button is pushed (e.g. to switch between WiFi client and AP mode). But with pwr-button-handler.c, you cannot prevent the PMIC to cut the power when the button is pressed for 7 seconds. To disable this, you have to change the PMIC registers. I have now found out how to change the PMIC registers (with the functions in intel_scu_ipc.c), but I don't know which register to write to and to which bits. That's why I need the datasheet of the SNB9024 or at least the figure of the register(s) and the bits to configure the power button behaviour of the PMIC. Just to remind, it is very important to disable the power cut-off because it doesn't shut down the system properly and thus the file system may be damaged. So please, can you kindly provide the datasheet of SNB9024 (or just the parts containing the description of the power button registers)? Thank you in advance. |
|
|
|
cd340823 发表于 2018-11-20 09:22 安迪·舍甫琴科(0andriy)正在研究这个问题并对其进行了部分逆向设计:https://edison.internet-share.com/wiki/PMIC 我相信他会很感激有人填写??? 提到的U-Boot(2018.09)和内核(Andy发布的4.18)可以与Yocto Sumo rootfs一起使用:GitHub - edison-fw / meta-intel-edison:这是构建的元知识管理器 ,试图保持最新,并提供.... 目前可以在此处找到英特尔Edison Image Builder的文档 以上来自于谷歌翻译 以下为原文 Andy Shevchenko (0andriy ) is working on this and has partially reverse engineered this: https://edison.internet-share.com/wiki/PMIC I am sure he would appreciate someone filling in the ??? The U-Boot (2018.09) mentioned and kernel (4.18 as published by Andy) can be built along with a Yocto Sumo rootfs using: GitHub - edison-fw/meta-intel-edison: Here is the meta-intel-edison that builds, tries to stay up to date and provides a… . Documentation for that can for the time being be found here Intel Edison Image Builder | |
|
|
|
jerry1978 发表于 2018-11-20 09:28 FerryT 为了正确,我不会对任何东西进行逆向工程,我只是重新使用英特尔发布的任何内容。 我正在清理或重写,但与现有PMIC知识相比,我没有公开任何新信息。 以上来自于谷歌翻译 以下为原文 FerryT To be correct, I'm not reverse engineering anything, I'm just re-using whatever had been published by Intel. I'm cleaning that up or rewriting, but I don't expose any new information in comparison to the existing knowledge about PMIC. |
|
|
|
nvwerwer 发表于 2018-11-20 09:46 对不起,不想引起混淆。 我的意思是说维基上的数据是从已发布的内核代码中提取的,而不是像X射线或信号探测那样的任何硬件逆向工程。 以上来自于谷歌翻译 以下为原文 Sorry, didn't want to cause confusion. I meant to say that the data on the wiki is extracted from the published kernel code, not any kind of hardware reverse engineering like x-ray or signal probing. |
|
|
|
你好Pai7u,我们一直在寻找感兴趣的文件,不幸的是它不可用。 该产品已停产,部分资源无法使用。对于由此带来的不便,我们深表歉意,请参阅以下链接中的爱迪生停产通知://communities.intel.com/docs/DOC-112093。谢谢 你,伊丽莎 以上来自于谷歌翻译 以下为原文 Hello Pai7u, We have been searching for the document of interest and unfortunately it is not available. The product has been discontinued and some of the resources are no longer available. We apologize for the inconvenience this may have caused, please refer the Edison Discontinuation Notice at the following link https://communities.intel.com/docs/DOC-112093. Thank you, Eliza |
|
|
|
cd340823 发表于 2018-11-20 10:08 你好伊丽莎 我收到了TI的答复。 如果您向我提供允许他们分享的“授权书”,他们会给我数据表。 有可能这样做吗? 谢谢 以上来自于谷歌翻译 以下为原文 Hello Eliza I received an answer from TI. They would give me the datasheet if you provide me a "letter of authorization" that you allow them to share it. Would it be possible to do that? Thanks |
|
|
|
只有小组成员才能发言,加入小组>>
474浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 16:21 , Processed in 1.508319 second(s), Total 102, Slave 85 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号