回复: 回复: There is no kcs device in the /dev directory

周 远清 zhouyuanqing8 at outlook.com
Fri Jun 19 11:37:31 AEST 2020


Hi,

      Thank you for your help, i can see the ipmi-kcs3 and ipmi-kcs4 devices after the modification.

Thanks
harley

________________________________
发件人: Konstantin Klubnichkin <kitsok at yandex-team.ru>
发送时间: 2020年6月18日 15:28
收件人: 周 远清 <zhouyuanqing8 at outlook.com>; 郁雷 <yulei.sh at bytedance.com>
抄送: uperic at 163.com <uperic at 163.com>; openbmc <openbmc at lists.ozlabs.org>
主题: Re: 回复: There is no kcs device in the /dev directory

Hello!

It should be like this:

&kcs3 {
kcs_addr = <0xCA2>;
status = "okay";
};

&kcs4 {
kcs_addr = <0xCA4>;
status = "okay";
};


Please check the addresses, your's may be different.

Thank you!
18.06.2020, 10:03, "周 远清" <zhouyuanqing8 at outlook.com>:
Error reported during kernel startup,Can you help to check where the configuration is wrong?

[    1.075901] ipmi-bt-host 1e789140.ibt: Using IRQ 33

[    1.076547] ast-kcs-bmc 1e789000.lpc-bmc:kcs1<mailto:1e789000.lpc-bmc:kcs1>@0: no valid 'kcs_addr' configured

[    1.076743] ast-kcs-bmc 1e789000.lpc-bmc:kcs2<mailto:1e789000.lpc-bmc:kcs2>@0: no valid 'kcs_addr' configured

[    1.076922] ast-kcs-bmc 1e789000.lpc-bmc:kcs3<mailto:1e789000.lpc-bmc:kcs3>@0: no valid 'kcs_addr' configured

[    1.077102] ast-kcs-bmc 1e789080.lpc-host:kcs4<mailto:1e789080.lpc-host:kcs4>@0: no valid 'kcs_addr' configured

[    1.083020] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled


The configure in aspeed_gt.dts:
 lpc_bmc: lpc-bmc<mailto:lpc-bmc>@0 {
                                        compatible = "aspeed,ast2500-lpc-bmc", "simple-mfd", "syscon";
                                        reg = <0x0 0x80>;
                                        reg-io-width = <4>;

                                        #address-cells = <1>;
                                        #size-cells = <1>;
                                        ranges = <0x0 0x0 0x80>;

                                        kcs1: kcs1<mailto:kcs1>@0 {
                                                compatible = "aspeed,ast2500-kcs-bmc";
                                                interrupts = <8>;
                                                kcs_chan = <1>;
                                                status = "disabled";
                                        };
                                        kcs2: kcs2<mailto:kcs2>@0 {
                                                compatible = "aspeed,ast2500-kcs-bmc";
                                                interrupts = <8>;
                                                kcs_chan = <2>;
                                                status = "disabled";
                                        };
                                        kcs3: kcs3<mailto:kcs3>@0 {
                                                compatible = "aspeed,ast2500-kcs-bmc";
                                                interrupts = <8>;
                                                kcs_chan = <3>;
                                                status = "disabled";
                                        };
                                };


The configure in aspeed-bmc-opp-star.dts:
&kcs1 {
        status = "okay";
};

&kcs2 {
        status = "okay";
};

&kcs3 {
        status = "okay";
};

&kcs4 {
        status = "okay";
};

&ibt {
        status = "okay";
};

________________________________
发件人: 郁雷 <yulei.sh at bytedance.com<mailto:yulei.sh at bytedance.com>>
发送时间: 2020年6月18日 13:25
收件人: 周 远清 <zhouyuanqing8 at outlook.com<mailto:zhouyuanqing8 at outlook.com>>
抄送: openbmc <openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>>; uperic at 163.com<mailto:uperic at 163.com> <uperic at 163.com<mailto:uperic at 163.com>>
主题: Re: There is no kcs device in the /dev directory

On Thu, Jun 18, 2020 at 12:51 PM 周 远清 <zhouyuanqing8 at outlook.com<mailto:zhouyuanqing8 at outlook.com>> wrote:
>
> Hi everyone,
>
>     There is no kcs device in the /dev directory,I used the following command to find it in the root directory, and I did not find ipmi-kcs device, please help guide, thank you.

Probably you could check the device tree to see if the kcs is enabled or not.

>
> 1.find / -name *kcs*
>
> 2.Below is my kernel configuration
> CONFIG_SERIAL_MCTRL_GPIO=y
> # CONFIG_SERIAL_DEV_BUS is not set
> # CONFIG_TTY_PRINTK is not set
> # CONFIG_HVC_DCC is not set
> CONFIG_IPMI_HANDLER=y
> # CONFIG_IPMI_PANIC_EVENT is not set
> # CONFIG_IPMI_DEVICE_INTERFACE is not set
> # CONFIG_IPMI_SI is not set
> # CONFIG_IPMI_SSIF is not set
> # CONFIG_IPMI_WATCHDOG is not set
> # CONFIG_IPMI_POWEROFF is not set
> CONFIG_IPMI_KCS_BMC=y
> CONFIG_ASPEED_KCS_IPMI_BMC=y
> CONFIG_ASPEED_BT_IPMI_BMC=y
> CONFIG_HW_RANDOM=y
> CONFIG_HW_RANDOM_TIMERIOMEM=y
> # CONFIG_RAW_DRIVER is not set
> # CONFIG_TCG_TPM is not set
> # CONFIG_XILLYBUS is not set
> # end of Character devices
>
> Thanks
> Harley


--
Best regards,
Konstantin Klubnichkin,
lead firmware engineer,
server hardware R&D group,
Yandex Moscow office.
tel: +7-903-510-33-33

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200619/23abe15e/attachment-0001.htm>


More information about the openbmc mailing list