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:54 UTC

[incubator-nuttx] branch master updated (27d75e7 -> da25883)

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

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


    from 27d75e7  drivers/ioexpander: minor initialize and styling fixes
     new 928b90b  boards: Add missing options to sim:vncserver
     new da25883  arch/sim: Fix usrsock build break on macOS

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/sim/src/sim/up_usrsock.c                  | 1 +
 boards/sim/sim/sim/README.txt                  | 6 ++++++
 boards/sim/sim/sim/configs/vncserver/defconfig | 7 ++++++-
 3 files changed, 13 insertions(+), 1 deletion(-)

[incubator-nuttx] 02/02: arch/sim: Fix usrsock build break on macOS

Posted by ac...@apache.org.
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 da25883c6410bb5494a31a8e6eee2d2e5dda1c07
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Fri Feb 18 18:03:07 2022 +0800

    arch/sim: Fix usrsock build break on macOS
    
    Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
 arch/sim/src/sim/up_usrsock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sim/src/sim/up_usrsock.c b/arch/sim/src/sim/up_usrsock.c
index d493e8f..0d4121b 100644
--- a/arch/sim/src/sim/up_usrsock.c
+++ b/arch/sim/src/sim/up_usrsock.c
@@ -399,6 +399,7 @@ static const usrsock_handler_t g_usrsock_handler[] =
  * Public Functions
  ****************************************************************************/
 
+__attribute__ ((visibility("default")))
 int usrsock_event_callback(int16_t usockid, uint16_t events)
 {
   return usrsock_send_event(&g_usrsock, usockid, events);

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

Posted by ac...@apache.org.
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