Re: 回复: KVM Support?

Eddie James eajames at linux.vnet.ibm.com
Wed Aug 1 00:35:00 AEST 2018



On 07/31/2018 01:52 AM, xiuzhi wrote:
> Hi Alexander ,Eddie,
>   I merged the source from 
> https://gerrit.openbmc-project.xyz/#/c/openbmc/openbmc/+/11500/,and 
> kernel branch video-dev.
> How to test the video kvm feature by phosphor-webui or command line?

Hi,

You need to make sure the video device is enabled in your device-tree 
for the machine you use... My kernel patch enabled it for our AST2500 
witherspoon system. If you're using AST2500 as well, then you just need 
something like:

&video {
     status = "okay";
     memory-region = <&gfx_memory>;
};

And the virtual USB hub:
&vhub {
     status = "okay";
};

If you're not using AST2500, you'll need more changes to device-tree.

Then on the BMC command line:
create_usbhid.sh
obmc-ikvm -v /dev/video0 -i /dev/hidg0
And connect with any VNC client to port 0 of your BMC IP.

Thanks,
Eddie

> Best,
> xiuzhi
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Alexander A. Filippov"<a.filippov at yadro.com>;
> *发送时间:* 2018年7月25日(星期三) 下午4:56
> *收件人:* "openbmc"<openbmc at lists.ozlabs.org>;"xiuzhi"<1450335857 at qq.com>;
> *主题:* Re: KVM Support?
>
> Hello everybody,
>
> Could you check the size of 
> `build/tmp/deploy/image/<platformname>/fitImage-openbmc-phosphor-initramfs-*.bin`?
> If it exceeds 4456448 (0x440000) bytes, this is the problem described 
> at https://github.com/openbmc/openbmc/issues/3314
>
>
> In this case you should modify flash partitions layout or trying to 
> decrease kernel size.
>
> --
> Alexander
>
> On Wed, Jul 25, 2018 at 03:48:04PM +0800, xiuzhi wrote:
> > Hi Eddie,
> >
> >
> >   I read your KVM Support email on mailinglist.
> >
> >
> > I am going to port the BMC kvm to ast2400 . The u-boot can not load 
> kernel ,the error message read:
> >
> >
> > ""U-Boot 2016.07 (Jul 23 2018 - 11:11:50 +0000)
> >
> >
> > DRAM:  240 MiB
> > WARNING: Caches not enabled
> > Flash: 32 MiB
> > *** Warning - bad CRC, using default environment
> >
> >
> > In:    serial
> > Out:   serial
> > Err:   serial
> > Net:   aspeednic#0
> > Error: aspeednic#0 address not set.
> >
> >
> > Hit any key to stop autoboot:  0
> > ## Loading kernel from FIT Image at 20080000 ...
> > Bad FIT kernel image format!
> > ERROR: can't get kernel image!
> > ast#
> >
> >
> > I added  config options to defconfig of ast2400 as follows:
> >
> >
> > CONFIG_MEDIA_SUPPORT=y
> > CONFIG_MEDIA_CAMERA_SUPPORT=y
> > CONFIG_MEDIA_SUPPORT=y
> > CONFIG_MEDIA_CAMERA_SUPPORT=y
> > # CONFIG_MEDIA_ANALOG_TV_SUPPORT is not set
> > # CONFIG_MEDIA_DIGITAL_TV_SUPPORT is not set
> > # CONFIG_MEDIA_RADIO_SUPPORT is not set
> > # CONFIG_MEDIA_SDR_SUPPORT is not set
> > # CONFIG_MEDIA_CEC_SUPPORT is not set
> > # CONFIG_MEDIA_CONTROLLER is not set
> > CONFIG_RATIONAL=y
> > CONFIG_VIDEO_DEV=y
> > CONFIG_VIDEO_V4L2=y
> > CONFIG_V4L_PLATFORM_DRIVERS=y
> > CONFIG_VIDEO_ASPEED=y
> > CONFIG_MEDIA_SUBDRV_AUTOSELECT=y
> >
> >
> > Need I modify the aspeed-bmc-opp-palmetto.dts and aspeed-g4.dtsi?
> >
> >
> > Can you give me the file list need to modify?
> >
> >
> > Thanks,
> >
> >
> > xiuzhi



More information about the openbmc mailing list