All of lore.kernel.org
 help / color / mirror / Atom feed
* =?gb18030?B?u9i4tKO6ILvYuLSjuiBLVk0gU3VwcG9ydD8=?=
@ 2018-08-01  8:47 =?gb18030?B?eGl1emhp?=
  2018-08-01 13:43 ` 回复: 回复: KVM Support? Eddie James
  0 siblings, 1 reply; 7+ messages in thread
From: =?gb18030?B?eGl1emhp?= @ 2018-08-01  8:47 UTC (permalink / raw)
  To: =?gb18030?B?RWRkaWUgSmFtZXM=?=,
	=?gb18030?B?QWxleGFuZGVyIEEuIEZpbGlwcG92?=,
	=?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 8776 bytes --]

Hi Eddie,
  Now It works, but the vncviewer can not connect the BMC server successful.
When I use vncviewer connect to the BMC the error read:
"RFB protocol error: bad desktop size 0x1"
"RFB protocol error: unknow rect encoding 7"
The information on BMC are :
root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
frame buffer size: 3145728
19/07/2018 08:20:57 Listening for VNC connections on TCP port 5900
19/07/2018 08:20:57 Listening for VNC connections on TCP6 port 5900

19/07/2018 08:52:08 Got connection from client 192.168.120.58
19/07/2018 08:52:08   other clients:
19/07/2018 08:52:08 Normal socket connection
19/07/2018 08:52:08 Client Protocol Version 3.8
19/07/2018 08:52:08 Protocol version sent 3.8, using 3.8
19/07/2018 08:52:08 rfbProcessClientSecurityType: executing handler for type 1
19/07/2018 08:52:08 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000018)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000016)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000015)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000F)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC6)
19/07/2018 08:52:08 Enabling full-color cursor updates for client 192.168.120.58
19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 192.168.120.58
19/07/2018 08:52:08 Using ZRLE encoding for client 192.168.120.58
19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
19/07/2018 08:52:08   8 bpp, depth 6
19/07/2018 08:52:08   true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000018)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000016)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000015)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000F)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC6)
19/07/2018 08:52:08 Enabling full-color cursor updates for client 192.168.120.58
19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 192.168.120.58
19/07/2018 08:52:08 Switching from ZRLE to raw Encoding for client 192.168.120.58
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000018)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000016)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000015)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000F)
19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC6)
19/07/2018 08:52:08 Enabling full-color cursor updates for client 192.168.120.58
19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 192.168.120.58
19/07/2018 08:52:08 Switching from raw to ZRLE Encoding for client 192.168.120.58
19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
19/07/2018 08:52:08   32 bpp, depth 24, little endian
19/07/2018 08:52:08   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
[ 6928.751385] aspeed-video 1e700000.video: disabling comp ready irq, seq_ctrl[000500a8]
19/07/2018 08:52:09 rfbProcessClientNormalMessage: read: Connection reset by peer
19/07/2018 08:52:09 Client 192.168.120.58 gone
19/07/2018 08:52:09 Statistics             events    Transmit/ RawEquiv ( saved)
19/07/2018 08:52:09  FramebufferUpdate   :      3 |         0/        0 (  0.0%)
19/07/2018 08:52:09  tight               :      1 |     30991/  3145740 ( 99.0%)
19/07/2018 08:52:09  raw                 :      1 |     16396/    16396 (  0.0%)
19/07/2018 08:52:09  ZRLE                :      2 |        62/  3932160 (100.0%)
19/07/2018 08:52:09  RichCursor          :      3 |       429/      429 (  0.0%)
19/07/2018 08:52:09  TOTALS              :     10 |     47878/  7094725 ( 99.3%)
19/07/2018 08:52:09 Statistics             events    Received/ RawEquiv ( saved)
19/07/2018 08:52:09  FramebufferUpdate   :      4 |        40/       40 (  0.0%)
19/07/2018 08:52:09  SetPixelFormat      :      2 |        40/       40 (  0.0%)
19/07/2018 08:52:09  SetEncodings        :      3 |       168/      168 (  0.0%)
19/07/2018 08:52:09  TOTALS              :      9 |       248/      248 (  0.0%)

What wrong with it?
BTW, vncview download from https://www.realvnc.com/en/connect/download/viewer/linux/
I also got the same error using Tightvnc viewer 
Thanks,
xiuzhi 
Hi Eddie,
   My bmc is AST2400, I modified the aspeed-g4.dtsi(adding  gfx: display@1e6e6000  and  video: video@1e700000)
 and the aspeed-bmc-opp-xxx.dts (adding &video &vhub) . 
An error occured when I executed the following instructions:

root@zhaoxinc:~# create_usbhid.sh 
root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
[  125.586061] aspeed-video 1e700000.video: timed out on 1st mode detect
[  125.602732] aspeed-video 1e700000.video: Failed to start video engine
failed to open /dev/video0: 62 Timer expired
Need I modify drivers/media/platform/aspeed-video.c or any other files?
 
 Thanks ,
Xiuzhi



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@yadro.com>;
> *·¢ËÍʱ¼ä:* 2018Äê7ÔÂ25ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:56
> *ÊÕ¼þÈË:* "openbmc"<openbmc@lists.ozlabs.org>;"xiuzhi"<1450335857@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

[-- Attachment #2: Type: text/html, Size: 11468 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 回复: 回复: KVM Support?
  2018-08-01  8:47 =?gb18030?B?u9i4tKO6ILvYuLSjuiBLVk0gU3VwcG9ydD8=?= =?gb18030?B?eGl1emhp?=
@ 2018-08-01 13:43 ` Eddie James
  2018-08-10 11:14   ` =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogS1ZNIFN1cHBvcnQ/?= =?gb18030?B?eGl1emhp?=
  0 siblings, 1 reply; 7+ messages in thread
From: Eddie James @ 2018-08-01 13:43 UTC (permalink / raw)
  To: xiuzhi, Alexander A. Filippov, openbmc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030; format=flowed, Size: 10276 bytes --]

Hi,

There are some differences with the video engine between the AST2400 and 
AST2500 that I haven't addressed yet, so probably the driver is not 
working correctly on the AST2400 yet. Some registers have different bit 
mapping, and things like that. Sorry about that... thanks for trying it 
out! I'll look at the changes needed for AST2400 next.

Thanks,

Eddie


On 08/01/2018 03:47 AM, xiuzhi wrote:
> Hi Eddie,
> 0„2 Now It works, but the vncviewer can not connect the BMC server 
> successful.
> When I use vncviewer connect to the BMC the error read:
> "RFB protocol error: bad desktop size 0x1"
> "RFB protocol error: unknow rect encoding 7"
> The information on BMC are :
> root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
> frame buffer size: 3145728
> 19/07/2018 08:20:57 Listening for VNC connections on TCP port 5900
> 19/07/2018 08:20:57 Listening for VNC connections on TCP6 port 5900
>
> 19/07/2018 08:52:08 Got connection from client 192.168.120.58
> 19/07/2018 08:52:080„20„2 other clients:
> 19/07/2018 08:52:08 Normal socket connection
> 19/07/2018 08:52:08 Client Protocol Version 3.8
> 19/07/2018 08:52:08 Protocol version sent 3.8, using 3.8
> 19/07/2018 08:52:08 rfbProcessClientSecurityType: executing handler 
> for type 1
> 19/07/2018 08:52:08 rfbProcessClientSecurityType: returning 
> securityResult for client rfb version >= 3.8
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000018)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000016)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000015)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x0000000F)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0xFFFFFEC6)
> 19/07/2018 08:52:08 Enabling full-color cursor updates for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Using ZRLE encoding for client 192.168.120.58
> 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
> 19/07/2018 08:52:080„20„2 8 bpp, depth 6
> 19/07/2018 08:52:080„20„2 true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000018)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000016)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000015)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x0000000F)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0xFFFFFEC6)
> 19/07/2018 08:52:08 Enabling full-color cursor updates for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Switching from ZRLE to raw Encoding for client 
> 192.168.120.58
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000018)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000016)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000015)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x0000000F)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0xFFFFFEC6)
> 19/07/2018 08:52:08 Enabling full-color cursor updates for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Switching from raw to ZRLE Encoding for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
> 19/07/2018 08:52:080„20„2 32 bpp, depth 24, little endian
> 19/07/2018 08:52:080„20„2 true colour: max r 255 g 255 b 255, shift r 16 g 
> 8 b 0
> [ 6928.751385] aspeed-video 1e700000.video: disabling comp ready irq, 
> seq_ctrl[000500a8]
> 19/07/2018 08:52:09 rfbProcessClientNormalMessage: read: Connection 
> reset by peer
> 19/07/2018 08:52:09 Client 192.168.120.58 gone
> 19/07/2018 08:52:09 Statistics0„20„20„20„20„20„20„20„20„20„20„20„2 events0„20„20„2 Transmit/ 
> RawEquiv ( saved)
> 19/07/2018 08:52:090„2 FramebufferUpdate0„20„2 :0„20„20„20„20„2 3 | 0/0„20„20„20„20„20„20„2 0 (0„2 0.0%)
> 19/07/2018 08:52:090„2 tight0„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 1 |0„20„20„20„2 30991/ 3145740 
> ( 99.0%)
> 19/07/2018 08:52:090„2 raw0„20„20„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 1 |0„20„20„20„2 16396/ 16396 
> (0„2 0.0%)
> 19/07/2018 08:52:090„2 ZRLE0„20„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 2 |0„20„20„20„20„20„20„2 62/ 3932160 
> (100.0%)
> 19/07/2018 08:52:090„2 RichCursor0„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 3 | 429/0„20„20„20„20„2 429 (0„2 0.0%)
> 19/07/2018 08:52:090„2 TOTALS0„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„2 10 |0„20„20„20„2 47878/ 7094725 
> ( 99.3%)
> 19/07/2018 08:52:09 Statistics0„20„20„20„20„20„20„20„20„20„20„20„2 events0„20„20„2 Received/ 
> RawEquiv ( saved)
> 19/07/2018 08:52:090„2 FramebufferUpdate0„20„2 :0„20„20„20„20„2 4 | 40/0„20„20„20„20„20„2 40 (0„2 0.0%)
> 19/07/2018 08:52:090„2 SetPixelFormat0„20„20„20„20„2 :0„20„20„20„20„2 2 | 40/0„20„20„20„20„20„2 40 (0„2 0.0%)
> 19/07/2018 08:52:090„2 SetEncodings0„20„20„20„20„20„20„2 :0„20„20„20„20„2 3 | 168/0„20„20„20„20„2 168 (0„2 0.0%)
> 19/07/2018 08:52:090„2 TOTALS0„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 9 | 248/0„20„20„20„20„2 248 (0„2 0.0%)
>
> What wrong with it?
> BTW, vncview download from 
> https://www.realvnc.com/en/connect/download/viewer/linux/
> I also got the same error using Tightvnc viewer
> Thanks,
> xiuzhi
> Hi Eddie,
> 0„20„2 My bmc is AST2400, I modified the aspeed-g4.dtsi(adding gfx: 
> display@1e6e60000„2 and0„2 video: video@1e700000)
> 0„2and the aspeed-bmc-opp-xxx.dts (adding &video &vhub) .
> An error occured when I executed the following instructions:
>
> root@zhaoxinc:~# create_usbhid.sh
> root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
> [0„2 125.586061] aspeed-video 1e700000.video: timed out on 1st mode detect
> [0„2 125.602732] aspeed-video 1e700000.video: Failed to start video engine
> failed to open /dev/video0: 62 Timer expired
> Need I modify drivers/media/platform/aspeed-video.c or any other files?
>
> 0„2Thanks ,
> Xiuzhi
> On 07/31/2018 01:52 AM, xiuzhi wrote:
> > Hi Alexander ,Eddie,
> > 0„2 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 {
> 0„20„2 0„2 status = "okay";
> 0„20„2 0„2 memory-region = <&gfx_memory>;
> };
>
> And the virtual USB hub:
> &vhub {
> 0„20„2 0„2 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@yadro.com>;
> > *·¢ËÍʱ¼ä:* 2018Äê7ÔÂ25ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:56
> > *ÊÕ¼þÈË:* 
> "openbmc"<openbmc@lists.ozlabs.org>;"xiuzhi"<1450335857@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,
> > >
> > >
> > > 0„2 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:0„2 240 MiB
> > > WARNING: Caches not enabled
> > > Flash: 32 MiB
> > > *** Warning - bad CRC, using default environment
> > >
> > >
> > > In:0„2 0„2 serial
> > > Out: 0„2 serial
> > > Err: 0„2 serial
> > > Net: 0„2 aspeednic#0
> > > Error: aspeednic#0 address not set.
> > >
> > >
> > > Hit any key to stop autoboot:0„2 0
> > > ## Loading kernel from FIT Image at 20080000 ...
> > > Bad FIT kernel image format!
> > > ERROR: can't get kernel image!
> > > ast#
> > >
> > >
> > > I added0„2 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogS1ZNIFN1cHBvcnQ/?=
  2018-08-01 13:43 ` 回复: 回复: KVM Support? Eddie James
@ 2018-08-10 11:14   ` =?gb18030?B?eGl1emhp?=
  2018-08-10 15:00     ` 回复: 回复: 回复: KVM Support? Eddie James
  0 siblings, 1 reply; 7+ messages in thread
From: =?gb18030?B?eGl1emhp?= @ 2018-08-10 11:14 UTC (permalink / raw)
  To: =?gb18030?B?RWRkaWUgSmFtZXM=?=,
	=?gb18030?B?QWxleGFuZGVyIEEuIEZpbGlwcG92?=,
	=?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 10011 bytes --]

Hi Eddie,
   I tested the new update source of video-dev on AST2400 and AST2500. It works on AST2500.
 On AST2400£¬the vncviewer can connect vncserver  sucessful, but its window was blank,  not shown any information of the host screen . 
Would you like to give me some advice or instruments on how to    debug this issue? 
Hi,

There are some differences with the video engine between the AST2400 and 
AST2500 that I haven't addressed yet, so probably the driver is not 
working correctly on the AST2400 yet. Some registers have different bit 
mapping, and things like that. Sorry about that... thanks for trying it 
out! I'll look at the changes needed for AST2400 next.

Thanks,

Eddie


On 08/01/2018 03:47 AM, xiuzhi wrote:
> Hi Eddie,
>   Now It works, but the vncviewer can not connect the BMC server 
> successful.
> When I use vncviewer connect to the BMC the error read:
> "RFB protocol error: bad desktop size 0x1"
> "RFB protocol error: unknow rect encoding 7"
> The information on BMC are :
> root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
> frame buffer size: 3145728
> 19/07/2018 08:20:57 Listening for VNC connections on TCP port 5900
> 19/07/2018 08:20:57 Listening for VNC connections on TCP6 port 5900
>
> 19/07/2018 08:52:08 Got connection from client 192.168.120.58
> 19/07/2018 08:52:08   other clients:
> 19/07/2018 08:52:08 Normal socket connection
> 19/07/2018 08:52:08 Client Protocol Version 3.8
> 19/07/2018 08:52:08 Protocol version sent 3.8, using 3.8
> 19/07/2018 08:52:08 rfbProcessClientSecurityType: executing handler 
> for type 1
> 19/07/2018 08:52:08 rfbProcessClientSecurityType: returning 
> securityResult for client rfb version >= 3.8
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000018)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000016)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000015)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x0000000F)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0xFFFFFEC6)
> 19/07/2018 08:52:08 Enabling full-color cursor updates for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Using ZRLE encoding for client 192.168.120.58
> 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
> 19/07/2018 08:52:08   8 bpp, depth 6
> 19/07/2018 08:52:08   true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000018)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000016)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000015)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x0000000F)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0xFFFFFEC6)
> 19/07/2018 08:52:08 Enabling full-color cursor updates for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Switching from ZRLE to raw Encoding for client 
> 192.168.120.58
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000018)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000016)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x00000015)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0x0000000F)
> 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring 
> unsupported encoding type Enc(0xFFFFFEC6)
> 19/07/2018 08:52:08 Enabling full-color cursor updates for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Switching from raw to ZRLE Encoding for client 
> 192.168.120.58
> 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
> 19/07/2018 08:52:08   32 bpp, depth 24, little endian
> 19/07/2018 08:52:08   true colour: max r 255 g 255 b 255, shift r 16 g 
> 8 b 0
> [ 6928.751385] aspeed-video 1e700000.video: disabling comp ready irq, 
> seq_ctrl[000500a8]
> 19/07/2018 08:52:09 rfbProcessClientNormalMessage: read: Connection 
> reset by peer
> 19/07/2018 08:52:09 Client 192.168.120.58 gone
> 19/07/2018 08:52:09 Statistics             events    Transmit/ 
> RawEquiv ( saved)
> 19/07/2018 08:52:09  FramebufferUpdate   :      3 | 0/        0 (  0.0%)
> 19/07/2018 08:52:09  tight               :      1 |     30991/ 3145740 
> ( 99.0%)
> 19/07/2018 08:52:09  raw                 :      1 |     16396/ 16396 
> (  0.0%)
> 19/07/2018 08:52:09  ZRLE                :      2 |        62/ 3932160 
> (100.0%)
> 19/07/2018 08:52:09  RichCursor          :      3 | 429/      429 (  0.0%)
> 19/07/2018 08:52:09  TOTALS              :     10 |     47878/ 7094725 
> ( 99.3%)
> 19/07/2018 08:52:09 Statistics             events    Received/ 
> RawEquiv ( saved)
> 19/07/2018 08:52:09  FramebufferUpdate   :      4 | 40/       40 (  0.0%)
> 19/07/2018 08:52:09  SetPixelFormat      :      2 | 40/       40 (  0.0%)
> 19/07/2018 08:52:09  SetEncodings        :      3 | 168/      168 (  0.0%)
> 19/07/2018 08:52:09  TOTALS              :      9 | 248/      248 (  0.0%)
>
> What wrong with it?
> BTW, vncview download from 
> https://www.realvnc.com/en/connect/download/viewer/linux/
> I also got the same error using Tightvnc viewer
> Thanks,
> xiuzhi
> Hi Eddie,
>    My bmc is AST2400, I modified the aspeed-g4.dtsi(adding gfx: 
> display@1e6e6000  and  video: video@1e700000)
>  and the aspeed-bmc-opp-xxx.dts (adding &video &vhub) .
> An error occured when I executed the following instructions:
>
> root@zhaoxinc:~# create_usbhid.sh
> root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
> [  125.586061] aspeed-video 1e700000.video: timed out on 1st mode detect
> [  125.602732] aspeed-video 1e700000.video: Failed to start video engine
> failed to open /dev/video0: 62 Timer expired
> Need I modify drivers/media/platform/aspeed-video.c or any other files?
>
>  Thanks ,
> Xiuzhi
> 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@yadro.com>;
> > *·¢ËÍʱ¼ä:* 2018Äê7ÔÂ25ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:56
> > *ÊÕ¼þÈË:* 
> "openbmc"<openbmc@lists.ozlabs.org>;"xiuzhi"<1450335857@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

[-- Attachment #2: Type: text/html, Size: 13302 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 回复: 回复: 回复: KVM Support?
  2018-08-10 11:14   ` =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogS1ZNIFN1cHBvcnQ/?= =?gb18030?B?eGl1emhp?=
@ 2018-08-10 15:00     ` Eddie James
  2018-08-10 20:48       ` Eddie James
  0 siblings, 1 reply; 7+ messages in thread
From: Eddie James @ 2018-08-10 15:00 UTC (permalink / raw)
  To: xiuzhi, Alexander A. Filippov, openbmc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030; format=flowed, Size: 11339 bytes --]



On 08/10/2018 06:14 AM, xiuzhi wrote:
> Hi Eddie,
> 0„2 0„2I tested the new update source of video-dev on AST2400 and AST2500. 
> It works on AST2500.
> 0„2On AST2400£¬the vncviewer can connect vncserver0„2 sucessful, but its 
> window was blank,0„2 not shown any information of the host screen .
> Would you like to give me some advice or instruments on how to0„20„2 
> 0„2debug this issue?

Hi,

You could try enabling the debug tracing, if dynamic debug is enabled on 
your kernel. (CONFIG_DYNAMIC_DEBUG)

echo file aspeed-video.c +p > /sys/kernel/debug/dynamic_debug/control

That should print every register access, as well as some other info.

Thanks,
Eddie

> Hi,
>
> There are some differences with the video engine between the AST2400 and
> AST2500 that I haven't addressed yet, so probably the driver is not
> working correctly on the AST2400 yet. Some registers have different bit
> mapping, and things like that. Sorry about that... thanks for trying it
> out! I'll look at the changes needed for AST2400 next.
>
> Thanks,
>
> Eddie
>
>
> On 08/01/2018 03:47 AM, xiuzhi wrote:
> > Hi Eddie,
> > 0„2 Now It works, but the vncviewer can not connect the BMC server
> > successful.
> > When I use vncviewer connect to the BMC the error read:
> > "RFB protocol error: bad desktop size 0x1"
> > "RFB protocol error: unknow rect encoding 7"
> > The information on BMC are :
> > root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
> > frame buffer size: 3145728
> > 19/07/2018 08:20:57 Listening for VNC connections on TCP port 5900
> > 19/07/2018 08:20:57 Listening for VNC connections on TCP6 port 5900
> >
> > 19/07/2018 08:52:08 Got connection from client 192.168.120.58
> > 19/07/2018 08:52:080„20„2 other clients:
> > 19/07/2018 08:52:08 Normal socket connection
> > 19/07/2018 08:52:08 Client Protocol Version 3.8
> > 19/07/2018 08:52:08 Protocol version sent 3.8, using 3.8
> > 19/07/2018 08:52:08 rfbProcessClientSecurityType: executing handler
> > for type 1
> > 19/07/2018 08:52:08 rfbProcessClientSecurityType: returning
> > securityResult for client rfb version >= 3.8
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000018)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000016)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000015)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x0000000F)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0xFFFFFEC6)
> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 Using ZRLE encoding for client 192.168.120.58
> > 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
> > 19/07/2018 08:52:080„20„2 8 bpp, depth 6
> > 19/07/2018 08:52:080„20„2 true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000018)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000016)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000015)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x0000000F)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0xFFFFFEC6)
> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 Switching from ZRLE to raw Encoding for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000018)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000016)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x00000015)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0x0000000F)
> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
> > unsupported encoding type Enc(0xFFFFFEC6)
> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 Switching from raw to ZRLE Encoding for client
> > 192.168.120.58
> > 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
> > 19/07/2018 08:52:080„20„2 32 bpp, depth 24, little endian
> > 19/07/2018 08:52:080„20„2 true colour: max r 255 g 255 b 255, shift r 16 g
> > 8 b 0
> > [ 6928.751385] aspeed-video 1e700000.video: disabling comp ready irq,
> > seq_ctrl[000500a8]
> > 19/07/2018 08:52:09 rfbProcessClientNormalMessage: read: Connection
> > reset by peer
> > 19/07/2018 08:52:09 Client 192.168.120.58 gone
> > 19/07/2018 08:52:09 Statistics0„20„20„20„20„20„20„20„20„20„20„20„2 events Transmit/
> > RawEquiv ( saved)
> > 19/07/2018 08:52:090„2 FramebufferUpdate0„20„2 :0„20„20„20„20„2 3 | 0/0„20„20„20„20„20„20„2 0 (0„2 0.0%)
> > 19/07/2018 08:52:090„2 tight0„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 1 | 30991/ 3145740
> > ( 99.0%)
> > 19/07/2018 08:52:090„2 raw0„20„20„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 1 | 16396/ 16396
> > (0„2 0.0%)
> > 19/07/2018 08:52:090„2 ZRLE0„20„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 2 | 62/ 3932160
> > (100.0%)
> > 19/07/2018 08:52:090„2 RichCursor0„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 3 | 429/0„20„20„20„20„2 429 (0„2 
> 0.0%)
> > 19/07/2018 08:52:090„2 TOTALS0„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„2 10 | 47878/ 7094725
> > ( 99.3%)
> > 19/07/2018 08:52:09 Statistics0„20„20„20„20„20„20„20„20„20„20„20„2 events Received/
> > RawEquiv ( saved)
> > 19/07/2018 08:52:090„2 FramebufferUpdate0„20„2 :0„20„20„20„20„2 4 | 40/0„20„20„20„20„20„2 40 (0„2 
> 0.0%)
> > 19/07/2018 08:52:090„2 SetPixelFormat0„20„20„20„20„2 :0„20„20„20„20„2 2 | 40/0„20„20„20„20„20„2 40 (0„2 
> 0.0%)
> > 19/07/2018 08:52:090„2 SetEncodings0„20„20„20„20„20„20„2 :0„20„20„20„20„2 3 | 168/0„20„20„20„20„2 168 (0„2 
> 0.0%)
> > 19/07/2018 08:52:090„2 TOTALS0„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 9 | 248/0„20„20„20„20„2 248 (0„2 
> 0.0%)
> >
> > What wrong with it?
> > BTW, vncview download from
> > https://www.realvnc.com/en/connect/download/viewer/linux/
> > I also got the same error using Tightvnc viewer
> > Thanks,
> > xiuzhi
> > Hi Eddie,
> > 0„20„2 My bmc is AST2400, I modified the aspeed-g4.dtsi(adding gfx:
> > display@1e6e60000„2 and0„2 video: video@1e700000)
> > 0„2and the aspeed-bmc-opp-xxx.dts (adding &video &vhub) .
> > An error occured when I executed the following instructions:
> >
> > root@zhaoxinc:~# create_usbhid.sh
> > root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
> > [0„2 125.586061] aspeed-video 1e700000.video: timed out on 1st mode detect
> > [0„2 125.602732] aspeed-video 1e700000.video: Failed to start video engine
> > failed to open /dev/video0: 62 Timer expired
> > Need I modify drivers/media/platform/aspeed-video.c or any other files?
> >
> > 0„2Thanks ,
> > Xiuzhi
> > On 07/31/2018 01:52 AM, xiuzhi wrote:
> > > Hi Alexander ,Eddie,
> > > 0„2 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 {
> > 0„20„2 0„2 status = "okay";
> > 0„20„2 0„2 memory-region = <&gfx_memory>;
> > };
> >
> > And the virtual USB hub:
> > &vhub {
> > 0„20„2 0„2 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@yadro.com>;
> > > *·¢ËÍʱ¼ä:* 2018Äê7ÔÂ25ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:56
> > > *ÊÕ¼þÈË:*
> > "openbmc"<openbmc@lists.ozlabs.org>;"xiuzhi"<1450335857@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,
> > > >
> > > >
> > > > 0„2 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:0„2 240 MiB
> > > > WARNING: Caches not enabled
> > > > Flash: 32 MiB
> > > > *** Warning - bad CRC, using default environment
> > > >
> > > >
> > > > In:0„2 0„2 serial
> > > > Out: 0„2 serial
> > > > Err: 0„2 serial
> > > > Net: 0„2 aspeednic#0
> > > > Error: aspeednic#0 address not set.
> > > >
> > > >
> > > > Hit any key to stop autoboot:0„2 0
> > > > ## Loading kernel from FIT Image at 20080000 ...
> > > > Bad FIT kernel image format!
> > > > ERROR: can't get kernel image!
> > > > ast#
> > > >
> > > >
> > > > I added0„2 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 回复: 回复: 回复: KVM Support?
  2018-08-10 15:00     ` 回复: 回复: 回复: KVM Support? Eddie James
@ 2018-08-10 20:48       ` Eddie James
  2018-08-13  2:11         ` =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6IEtWTSBTdXBwb3J0Pw==?= =?gb18030?B?eGl1emhp?=
  0 siblings, 1 reply; 7+ messages in thread
From: Eddie James @ 2018-08-10 20:48 UTC (permalink / raw)
  To: xiuzhi, Alexander A. Filippov, openbmc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030; format=flowed, Size: 12012 bytes --]



On 08/10/2018 10:00 AM, Eddie James wrote:
>
>
> On 08/10/2018 06:14 AM, xiuzhi wrote:
>> Hi Eddie,
>> 0„2 0„2I tested the new update source of video-dev on AST2400 and 
>> AST2500. It works on AST2500.
>> 0„2On AST2400£¬the vncviewer can connect vncserver0„2 sucessful, but its 
>> window was blank,0„2 not shown any information of the host screen .
>> Would you like to give me some advice or instruments on how to 0„2debug 
>> this issue?

Hey, I also just pushed a new branch to my github with some 
simplifications to the driver... It no longer uses the auto mode and may 
work better on AST2400... I don't have any AST2400 to test on, but let 
me know if you have any luck:

https://github.com/eddiejames/linux/commits/video-dev2

Thanks,
Eddie

>
> Hi,
>
> You could try enabling the debug tracing, if dynamic debug is enabled 
> on your kernel. (CONFIG_DYNAMIC_DEBUG)
>
> echo file aspeed-video.c +p > /sys/kernel/debug/dynamic_debug/control
>
> That should print every register access, as well as some other info.
>
> Thanks,
> Eddie
>
>> Hi,
>>
>> There are some differences with the video engine between the AST2400 and
>> AST2500 that I haven't addressed yet, so probably the driver is not
>> working correctly on the AST2400 yet. Some registers have different bit
>> mapping, and things like that. Sorry about that... thanks for trying it
>> out! I'll look at the changes needed for AST2400 next.
>>
>> Thanks,
>>
>> Eddie
>>
>>
>> On 08/01/2018 03:47 AM, xiuzhi wrote:
>> > Hi Eddie,
>> > 0„2 Now It works, but the vncviewer can not connect the BMC server
>> > successful.
>> > When I use vncviewer connect to the BMC the error read:
>> > "RFB protocol error: bad desktop size 0x1"
>> > "RFB protocol error: unknow rect encoding 7"
>> > The information on BMC are :
>> > root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
>> > frame buffer size: 3145728
>> > 19/07/2018 08:20:57 Listening for VNC connections on TCP port 5900
>> > 19/07/2018 08:20:57 Listening for VNC connections on TCP6 port 5900
>> >
>> > 19/07/2018 08:52:08 Got connection from client 192.168.120.58
>> > 19/07/2018 08:52:080„20„2 other clients:
>> > 19/07/2018 08:52:08 Normal socket connection
>> > 19/07/2018 08:52:08 Client Protocol Version 3.8
>> > 19/07/2018 08:52:08 Protocol version sent 3.8, using 3.8
>> > 19/07/2018 08:52:08 rfbProcessClientSecurityType: executing handler
>> > for type 1
>> > 19/07/2018 08:52:08 rfbProcessClientSecurityType: returning
>> > securityResult for client rfb version >= 3.8
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000018)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000016)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000015)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x0000000F)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0xFFFFFEC6)
>> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Using ZRLE encoding for client 192.168.120.58
>> > 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
>> > 19/07/2018 08:52:080„20„2 8 bpp, depth 6
>> > 19/07/2018 08:52:080„20„2 true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000018)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000016)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000015)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x0000000F)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0xFFFFFEC6)
>> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Switching from ZRLE to raw Encoding for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000018)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000016)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000015)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x0000000F)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0xFFFFFEC6)
>> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Switching from raw to ZRLE Encoding for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
>> > 19/07/2018 08:52:080„20„2 32 bpp, depth 24, little endian
>> > 19/07/2018 08:52:080„20„2 true colour: max r 255 g 255 b 255, shift r 16 g
>> > 8 b 0
>> > [ 6928.751385] aspeed-video 1e700000.video: disabling comp ready irq,
>> > seq_ctrl[000500a8]
>> > 19/07/2018 08:52:09 rfbProcessClientNormalMessage: read: Connection
>> > reset by peer
>> > 19/07/2018 08:52:09 Client 192.168.120.58 gone
>> > 19/07/2018 08:52:09 Statistics0„20„20„20„20„20„20„20„20„20„20„20„2 events Transmit/
>> > RawEquiv ( saved)
>> > 19/07/2018 08:52:090„2 FramebufferUpdate0„20„2 :0„20„20„20„20„2 3 | 0/0„20„20„20„20„20„20„2 0 (0„2 
>> 0.0%)
>> > 19/07/2018 08:52:090„2 tight0„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 1 | 30991/ 3145740
>> > ( 99.0%)
>> > 19/07/2018 08:52:090„2 raw0„20„20„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 1 | 16396/ 16396
>> > (0„2 0.0%)
>> > 19/07/2018 08:52:090„2 ZRLE0„20„20„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 2 | 62/ 3932160
>> > (100.0%)
>> > 19/07/2018 08:52:090„2 RichCursor0„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 3 | 429/0„20„20„20„20„2 429 
>> (0„2 0.0%)
>> > 19/07/2018 08:52:090„2 TOTALS0„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„2 10 | 47878/ 7094725
>> > ( 99.3%)
>> > 19/07/2018 08:52:09 Statistics0„20„20„20„20„20„20„20„20„20„20„20„2 events Received/
>> > RawEquiv ( saved)
>> > 19/07/2018 08:52:090„2 FramebufferUpdate0„20„2 :0„20„20„20„20„2 4 | 40/0„20„20„20„20„20„2 40 (0„2 
>> 0.0%)
>> > 19/07/2018 08:52:090„2 SetPixelFormat0„20„20„20„20„2 :0„20„20„20„20„2 2 | 40/0„20„20„20„20„20„2 40 (0„2 
>> 0.0%)
>> > 19/07/2018 08:52:090„2 SetEncodings0„20„20„20„20„20„20„2 :0„20„20„20„20„2 3 | 168/0„20„20„20„20„2 168 
>> (0„2 0.0%)
>> > 19/07/2018 08:52:090„2 TOTALS0„20„20„20„20„20„20„20„20„20„20„20„20„2 :0„20„20„20„20„2 9 | 248/0„20„20„20„20„2 248 
>> (0„2 0.0%)
>> >
>> > What wrong with it?
>> > BTW, vncview download from
>> > https://www.realvnc.com/en/connect/download/viewer/linux/
>> > I also got the same error using Tightvnc viewer
>> > Thanks,
>> > xiuzhi
>> > Hi Eddie,
>> > 0„20„2 My bmc is AST2400, I modified the aspeed-g4.dtsi(adding gfx:
>> > display@1e6e60000„2 and0„2 video: video@1e700000)
>> > 0„2and the aspeed-bmc-opp-xxx.dts (adding &video &vhub) .
>> > An error occured when I executed the following instructions:
>> >
>> > root@zhaoxinc:~# create_usbhid.sh
>> > root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
>> > [0„2 125.586061] aspeed-video 1e700000.video: timed out on 1st mode 
>> detect
>> > [0„2 125.602732] aspeed-video 1e700000.video: Failed to start video 
>> engine
>> > failed to open /dev/video0: 62 Timer expired
>> > Need I modify drivers/media/platform/aspeed-video.c or any other 
>> files?
>> >
>> > 0„2Thanks ,
>> > Xiuzhi
>> > On 07/31/2018 01:52 AM, xiuzhi wrote:
>> > > Hi Alexander ,Eddie,
>> > > 0„2 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 {
>> > 0„20„2 0„2 status = "okay";
>> > 0„20„2 0„2 memory-region = <&gfx_memory>;
>> > };
>> >
>> > And the virtual USB hub:
>> > &vhub {
>> > 0„20„2 0„2 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@yadro.com>;
>> > > *·¢ËÍʱ¼ä:* 2018Äê7ÔÂ25ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:56
>> > > *ÊÕ¼þÈË:*
>> > "openbmc"<openbmc@lists.ozlabs.org>;"xiuzhi"<1450335857@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,
>> > > >
>> > > >
>> > > > 0„2 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:0„2 240 MiB
>> > > > WARNING: Caches not enabled
>> > > > Flash: 32 MiB
>> > > > *** Warning - bad CRC, using default environment
>> > > >
>> > > >
>> > > > In:0„2 0„2 serial
>> > > > Out: 0„2 serial
>> > > > Err: 0„2 serial
>> > > > Net: 0„2 aspeednic#0
>> > > > Error: aspeednic#0 address not set.
>> > > >
>> > > >
>> > > > Hit any key to stop autoboot:0„2 0
>> > > > ## Loading kernel from FIT Image at 20080000 ...
>> > > > Bad FIT kernel image format!
>> > > > ERROR: can't get kernel image!
>> > > > ast#
>> > > >
>> > > >
>> > > > I added0„2 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
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6IEtWTSBTdXBwb3J0Pw==?=
  2018-08-10 20:48       ` Eddie James
@ 2018-08-13  2:11         ` =?gb18030?B?eGl1emhp?=
  0 siblings, 0 replies; 7+ messages in thread
From: =?gb18030?B?eGl1emhp?= @ 2018-08-13  2:11 UTC (permalink / raw)
  To: =?gb18030?B?RWRkaWUgSmFtZXM=?=,
	=?gb18030?B?QWxleGFuZGVyIEEuIEZpbGlwcG92?=,
	=?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 11634 bytes --]

Hi Eddie,
   Very good work! 
  The video-dev2 works on AST2400 now, I will do more test.
Thanks,
Xiuzhi
On 08/10/2018 10:00 AM, Eddie James wrote:
>
>
> On 08/10/2018 06:14 AM, xiuzhi wrote:
>> Hi Eddie,
>>    I tested the new update source of video-dev on AST2400 and 
>> AST2500. It works on AST2500.
>>  On AST2400£¬the vncviewer can connect vncserver  sucessful, but its 
>> window was blank,  not shown any information of the host screen .
>> Would you like to give me some advice or instruments on how to  debug 
>> this issue?

Hey, I also just pushed a new branch to my github with some 
simplifications to the driver... It no longer uses the auto mode and may 
work better on AST2400... I don't have any AST2400 to test on, but let 
me know if you have any luck:

https://github.com/eddiejames/linux/commits/video-dev2

Thanks,
Eddie

>
> Hi,
>
> You could try enabling the debug tracing, if dynamic debug is enabled 
> on your kernel. (CONFIG_DYNAMIC_DEBUG)
>
> echo file aspeed-video.c +p > /sys/kernel/debug/dynamic_debug/control
>
> That should print every register access, as well as some other info.
>
> Thanks,
> Eddie
>
>> Hi,
>>
>> There are some differences with the video engine between the AST2400 and
>> AST2500 that I haven't addressed yet, so probably the driver is not
>> working correctly on the AST2400 yet. Some registers have different bit
>> mapping, and things like that. Sorry about that... thanks for trying it
>> out! I'll look at the changes needed for AST2400 next.
>>
>> Thanks,
>>
>> Eddie
>>
>>
>> On 08/01/2018 03:47 AM, xiuzhi wrote:
>> > Hi Eddie,
>> >   Now It works, but the vncviewer can not connect the BMC server
>> > successful.
>> > When I use vncviewer connect to the BMC the error read:
>> > "RFB protocol error: bad desktop size 0x1"
>> > "RFB protocol error: unknow rect encoding 7"
>> > The information on BMC are :
>> > root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
>> > frame buffer size: 3145728
>> > 19/07/2018 08:20:57 Listening for VNC connections on TCP port 5900
>> > 19/07/2018 08:20:57 Listening for VNC connections on TCP6 port 5900
>> >
>> > 19/07/2018 08:52:08 Got connection from client 192.168.120.58
>> > 19/07/2018 08:52:08   other clients:
>> > 19/07/2018 08:52:08 Normal socket connection
>> > 19/07/2018 08:52:08 Client Protocol Version 3.8
>> > 19/07/2018 08:52:08 Protocol version sent 3.8, using 3.8
>> > 19/07/2018 08:52:08 rfbProcessClientSecurityType: executing handler
>> > for type 1
>> > 19/07/2018 08:52:08 rfbProcessClientSecurityType: returning
>> > securityResult for client rfb version >= 3.8
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000018)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000016)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000015)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x0000000F)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0xFFFFFEC6)
>> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Using ZRLE encoding for client 192.168.120.58
>> > 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
>> > 19/07/2018 08:52:08   8 bpp, depth 6
>> > 19/07/2018 08:52:08   true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000018)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000016)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000015)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x0000000F)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0xFFFFFEC6)
>> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Switching from ZRLE to raw Encoding for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000018)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000016)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x00000015)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0x0000000F)
>> > 19/07/2018 08:52:08 rfbProcessClientNormalMessage: ignoring
>> > unsupported encoding type Enc(0xFFFFFEC6)
>> > 19/07/2018 08:52:08 Enabling full-color cursor updates for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Enabling NewFBSize protocol extension for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Switching from raw to ZRLE Encoding for client
>> > 192.168.120.58
>> > 19/07/2018 08:52:08 Pixel format for client 192.168.120.58:
>> > 19/07/2018 08:52:08   32 bpp, depth 24, little endian
>> > 19/07/2018 08:52:08   true colour: max r 255 g 255 b 255, shift r 16 g
>> > 8 b 0
>> > [ 6928.751385] aspeed-video 1e700000.video: disabling comp ready irq,
>> > seq_ctrl[000500a8]
>> > 19/07/2018 08:52:09 rfbProcessClientNormalMessage: read: Connection
>> > reset by peer
>> > 19/07/2018 08:52:09 Client 192.168.120.58 gone
>> > 19/07/2018 08:52:09 Statistics             events Transmit/
>> > RawEquiv ( saved)
>> > 19/07/2018 08:52:09  FramebufferUpdate   :      3 | 0/        0 (  
>> 0.0%)
>> > 19/07/2018 08:52:09  tight               :      1 | 30991/ 3145740
>> > ( 99.0%)
>> > 19/07/2018 08:52:09  raw                 :      1 | 16396/ 16396
>> > (  0.0%)
>> > 19/07/2018 08:52:09  ZRLE                :      2 | 62/ 3932160
>> > (100.0%)
>> > 19/07/2018 08:52:09  RichCursor          :      3 | 429/      429 
>> (  0.0%)
>> > 19/07/2018 08:52:09  TOTALS              :     10 | 47878/ 7094725
>> > ( 99.3%)
>> > 19/07/2018 08:52:09 Statistics             events Received/
>> > RawEquiv ( saved)
>> > 19/07/2018 08:52:09  FramebufferUpdate   :      4 | 40/       40 (  
>> 0.0%)
>> > 19/07/2018 08:52:09  SetPixelFormat      :      2 | 40/       40 (  
>> 0.0%)
>> > 19/07/2018 08:52:09  SetEncodings        :      3 | 168/      168 
>> (  0.0%)
>> > 19/07/2018 08:52:09  TOTALS              :      9 | 248/      248 
>> (  0.0%)
>> >
>> > What wrong with it?
>> > BTW, vncview download from
>> > https://www.realvnc.com/en/connect/download/viewer/linux/
>> > I also got the same error using Tightvnc viewer
>> > Thanks,
>> > xiuzhi
>> > Hi Eddie,
>> >    My bmc is AST2400, I modified the aspeed-g4.dtsi(adding gfx:
>> > display@1e6e6000  and  video: video@1e700000)
>> >  and the aspeed-bmc-opp-xxx.dts (adding &video &vhub) .
>> > An error occured when I executed the following instructions:
>> >
>> > root@zhaoxinc:~# create_usbhid.sh
>> > root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
>> > [  125.586061] aspeed-video 1e700000.video: timed out on 1st mode 
>> detect
>> > [  125.602732] aspeed-video 1e700000.video: Failed to start video 
>> engine
>> > failed to open /dev/video0: 62 Timer expired
>> > Need I modify drivers/media/platform/aspeed-video.c or any other 
>> files?
>> >
>> >  Thanks ,
>> > Xiuzhi
>> > 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@yadro.com>;
>> > > *·¢ËÍʱ¼ä:* 2018Äê7ÔÂ25ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:56
>> > > *ÊÕ¼þÈË:*
>> > "openbmc"<openbmc@lists.ozlabs.org>;"xiuzhi"<1450335857@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
>

[-- Attachment #2: Type: text/html, Size: 16635 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* =?gb18030?B?u9i4tKO6ILvYuLSjuiBLVk0gU3VwcG9ydD8=?=
  2018-07-31 14:35     ` 回复: KVM Support? Eddie James
@ 2018-08-01  6:58       ` =?gb18030?B?eGl1emhp?=
  0 siblings, 0 replies; 7+ messages in thread
From: =?gb18030?B?eGl1emhp?= @ 2018-08-01  6:58 UTC (permalink / raw)
  To: =?gb18030?B?RWRkaWUgSmFtZXM=?=,
	=?gb18030?B?QWxleGFuZGVyIEEuIEZpbGlwcG92?=,
	=?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 3821 bytes --]

Hi Eddie,
   My bmc is AST2400, I modified the aspeed-g4.dtsi(adding  gfx: display@1e6e6000  and  video: video@1e700000)
 and the aspeed-bmc-opp-xxx.dts (adding &video &vhub) . 
An error occured when I executed the following instructions:

root@zhaoxinc:~# create_usbhid.sh 
root@zhaoxinc:~# obmc-ikvm -v /dev/video0 -i /dev/hidg0
[  125.586061] aspeed-video 1e700000.video: timed out on 1st mode detect
[  125.602732] aspeed-video 1e700000.video: Failed to start video engine
failed to open /dev/video0: 62 Timer expired
Need I modify drivers/media/platform/aspeed-video.c or any other files?
 
 Thanks ,
Xiuzhi



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@yadro.com>;
> *·¢ËÍʱ¼ä:* 2018Äê7ÔÂ25ÈÕ(ÐÇÆÚÈý) ÏÂÎç4:56
> *ÊÕ¼þÈË:* "openbmc"<openbmc@lists.ozlabs.org>;"xiuzhi"<1450335857@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

[-- Attachment #2: Type: text/html, Size: 4932 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-13  2:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01  8:47 =?gb18030?B?u9i4tKO6ILvYuLSjuiBLVk0gU3VwcG9ydD8=?= =?gb18030?B?eGl1emhp?=
2018-08-01 13:43 ` 回复: 回复: KVM Support? Eddie James
2018-08-10 11:14   ` =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogS1ZNIFN1cHBvcnQ/?= =?gb18030?B?eGl1emhp?=
2018-08-10 15:00     ` 回复: 回复: 回复: KVM Support? Eddie James
2018-08-10 20:48       ` Eddie James
2018-08-13  2:11         ` =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6IEtWTSBTdXBwb3J0Pw==?= =?gb18030?B?eGl1emhp?=
  -- strict thread matches above, loose matches on Subject: below --
2018-07-25  7:48 KVM Support? xiuzhi
2018-07-25  8:56 ` Alexander A. Filippov
2018-07-31  6:52   ` =?gb18030?B?u9i4tKO6IEtWTSBTdXBwb3J0Pw==?= =?gb18030?B?eGl1emhp?=
2018-07-31 14:35     ` 回复: KVM Support? Eddie James
2018-08-01  6:58       ` =?gb18030?B?u9i4tKO6ILvYuLSjuiBLVk0gU3VwcG9ydD8=?= =?gb18030?B?eGl1emhp?=

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.