Jetson/TX2 Ubuntu Base

From eLinux.org
< Jetson
Revision as of 04:39, 17 July 2017 by Ross-abaco (talk | contribs) (Desktop)
Jump to: navigation, search

Ubuntu Base is a minimal rootfs for use in the creation of custom images for specific needs. This file system can be substituted for the Tegra sample file system provided by nVidia.

Installing Ubuntu Base requires a good knowledge of linux as it does not come with any user accounts. These need to be added to the filesystem to allow you to login.

Installation considerations

  • Add the user accounts
  • Add users to sudo group to allow admin access
  • Install additional packages (best done using QEMU prior to flashing)
    • Recommend installing the following with QEMU (chroot to rootfs) apt-get install sudo nano vim net-tools ping isc-dhcp-client ethtool .
    • If installing PCIe hardware on your platform then you might want to add apt-get install udev hwinfo pciutils

To install and run the QEMU for ARM for your rootfs:

sudo apt-get -qqy install qemu-user-static
cp /usr/bin/qemu-aarch64-static <rootfs>/usr/bin/.
chroot <rootfs> /bin/bash

Desktop

There are a large number of windows managers available for Linux. For a light weight desktop manager for an embedded application you might want to consider Xfce Desktop Environment or Lxde Desktop Environment.

Before you start please edit /etc/apt/sources.list and uncomment line:

# deb http://ports/ubuntu.com/ubuntu-ports xenial universe

After installing Xorg you will need to correct the link to libglx.so to run OpenGL applications:

sudo rm /usr/lib/xorg/modules/extensions/libglx.so
sudo ln -s /usr/lib/aarch64-linux-gnu/tegra/libglx.so 

Xfce

The XFCE4 desktop (with no nVidia Jetpack installed) is 970Mb when installed under Ubuntu Base.

To install Xfce you will need to run apt-get install --no-install-recommends xorg xfce4 this will give you a minimal desktop experience.

Xfce4 Desktop running CUDA