You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2022/02/18 12:06:55 UTC

[incubator-nuttx] 01/02: boards: Add missing options to sim:vncserver

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 928b90b48dbda4e3970d13915c47d17b4a1df5fc
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Fri Feb 18 16:22:41 2022 +0800

    boards: Add missing options to sim:vncserver
    
    Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
 boards/sim/sim/sim/README.txt                  | 6 ++++++
 boards/sim/sim/sim/configs/vncserver/defconfig | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/boards/sim/sim/sim/README.txt b/boards/sim/sim/sim/README.txt
index f329536..2982a64 100644
--- a/boards/sim/sim/sim/README.txt
+++ b/boards/sim/sim/sim/README.txt
@@ -1367,6 +1367,12 @@ ustream
   Note that the binfs file system is mounted at /bin when the system starts
   up.
 
+vncserver
+
+  This a simple vnc server test configuration, Remmina is tested and recommended since
+  there are some compatibility issues. By defualt SIM will be blocked at startup to
+  wait client connection, if a client connected, then the fb example will launch. 
+
 vpnkit
 
   This is a configuration with VPNKit support.  See NETWORK-VPNKIT.txt.
diff --git a/boards/sim/sim/sim/configs/vncserver/defconfig b/boards/sim/sim/sim/configs/vncserver/defconfig
index 0615f7d..14c8fe5 100644
--- a/boards/sim/sim/sim/configs/vncserver/defconfig
+++ b/boards/sim/sim/sim/configs/vncserver/defconfig
@@ -11,6 +11,7 @@ CONFIG_ARCH_BOARD="sim"
 CONFIG_ARCH_BOARD_SIM=y
 CONFIG_ARCH_CHIP="sim"
 CONFIG_ARCH_SIM=y
+CONFIG_BOARD_LATE_INITIALIZE=y
 CONFIG_DEBUG_SYMBOLS=y
 CONFIG_DRIVERS_VIDEO=y
 CONFIG_EXAMPLES_FB=y
@@ -19,10 +20,14 @@ CONFIG_NET=y
 CONFIG_NET_ICMP_NO_STACK=y
 CONFIG_NET_TCP_NO_STACK=y
 CONFIG_NET_UDP_NO_STACK=y
-CONFIG_NET_USRSOCK=y
 CONFIG_NET_USRSOCK_OTHER=y
 CONFIG_NET_USRSOCK_TCP=y
 CONFIG_NET_USRSOCK_UDP=y
+CONFIG_SIM_NETUSRSOCK=y
 CONFIG_SIM_VNCSERVER=y
 CONFIG_VIDEO_FB=y
 CONFIG_VNCSERVER=y
+CONFIG_VNCSERVER_COLORFMT_RGB32=y
+CONFIG_VNCSERVER_INBUFFER_SIZE=120
+CONFIG_VNCSERVER_SCREENHEIGHT=320
+CONFIG_VNCSERVER_UPDATE_BUFSIZE=204800