UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
158 Views
Registered: ‎08-23-2018

Petalinux 2019.1+ [FIX] using a remote ssh session with x-11 forwarding

Problem:

Trying to configure a Petalinux project, eg. the kernel, using petalinux-config -c kernel will result in a new x-terminal being spawned; this is not an issue when doing the configurating locally on the build machine however trying to use a remote ssh session with x-11 forwarding (I use Moba X-Term on Windows 10 to connect to a Linux build machine for example) then the configuration fails when trying to create the x-terminal with an error similar to this:

do_menuconfig: Unable to spawn terminal tmux: Execution of '/opt/xilinx/petalinux/2019.1/components/yocto/source/aarch64/layers/core/scripts/oe-gnome-terminal-phonehome /tmp/tmp_745k_ct /<project-path>/build/tmp/work/zcu102_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+gitAUTOINC+9811303824-r0/temp/run.do_terminal.21159' failed with exit code 1:
Option "-t" is no longer supported in this version of gnome-terminal.
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Could not connect: Connection refused

Solution

You will have to edit the terminal.py script (for Petalinux on the A53 core in a ZYNQ ultrascale this would be in the aarch64 branch)
eg. <path-to-petalinux-install>/2019.1/components/yocto/source/aarch64/layers/core/meta/lib/oe/terminal.py

Edit the class Gnome(XTerminal): as follows:

class Gnome(XTerminal):
#command = 'gnome-terminal -t "{title}" -x {command}'
command = 'dbus-launch gnome-terminal -x {command}' # use dbus, -t no longer supported
priority = 2

def __init__(self, sh_cmd, title=None, env=None, d=None):
...

 

The scripting should be able to launch a new terminal now.

 

 - Richard