X11 Forwarding on the Duo

This is a repost of my other post on the Milk-V forums.

Getting X11 to (not) run on the Duo

In another bout of what can only be described as insanity I thought to myself “wouldn’t it be fun to try X11 forwarding on the duo?”

So far my attempts have been relatively unsuccessful, but here are my steps so far in case you want to try it at home:

Add X11-related packages

Add the following lines to build/boards/cv180x/cv1800b_milkv_duo_sd/cv1800b_milkv_duo_sd_defconfig:

# Stuff for X11 + VNC
BR2_PACKAGE_XAPP_TWM=y
BR2_PACKAGE_XAPP_XCALC=y
BR2_PACKAGE_XAPP_XCLOCK=y
BR2_PACKAGE_XAPP_XEYES=y
BR2_PACKAGE_XAPP_XINIT=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XORG=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_XTERM=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_USE_WCHAR=y
BR2_PACKAGE_OPENSSH=y
BR2_PACKAGE_X11VNC=y
BR2_PACKAGE_PCMANFM=y

Add polling support to the kernel

This didn’t really seem to make a difference but maybe it’ll help you?

Add the following lines to build/boards/cv180x/cv1800b_milkv_duo_sd/cv1800b_milkv_duo_sd_defconfig:

CONFIG_POLL=y
CONFIG_EPOLL=y

For now, all I get is an error that says failed to allocate poll structure when trying to run xinit, which using strace still reveals that polling support isn’t in the kernel, despite the fact is actually is.

If anyone has any insights as to why it’s not working, please let me know.

1 Like