Skip to content

Abaco-Systems/jetson-tx2-sample-filesystems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Abaco stripe

Sample Filesystems (nVidia Tegra TX2)

These are some example TX2 sample file systems that can be used as an alternative to the tegra sample filesystem provided by nVidia. These filesystems are lean and more suited to Embedded Developments where you do not require a full desktop experiance. You can add in the components you need to build up your filesystem to meet your requirements using apt-get.

These have been tested against the latest L4T R28.1 (July 2017).

To flash these images follow the Quickstart Guide on the nVidia website and substitue these filesystems for the nVidia sample filesystem.

NOTE

Command line only filesystem includes some additional packages to get you going these include ethtool, isc-dhcp-client, nano, net-tools, pci-utils, ping, sudo, udev. Xfce4 Desktop Environment also contains these tools plus a minimal Desktop Environment.

All file systems come with one administrator user account
password : abaco
username : abaco

Due to the size of the images they are available as Releases. Please download Release R28_1 to get all the file systems ot down load them invividually by clicking on the release.

The ezyflash.sh script below will automatically download the images to your machine and flash your board.

Using ezyflash.sh

This script makes flashing these images a breeze. Connect you TX2 and put it into reset.

Run the script at root and select the release then the filesystem image you want to flash.

$ sudo bash
root $ ezyflash.sh

or

$ sudo bash -c "./ezyflash.sh"

Possible images are shown in the screenshots below:

Select Operation Select the operation. Script supports flashing and kernel build. If you build the kernel then this can be patched into the filesystem when you flash.

Select File System Select your filesystem.

The script will offer to run QEMU and open a chroot shell at this point (see below).

Finally the script will detect the target and offer to flash the image onto your TX2.

QEMU Emulator

This script will setup the QEMU emulator for aarch64. Once the file system is extracted and apply_binaries have been applied you can modify the file system using QEMU. The script will ask the user if you which to open a shell to perform additional steps.

It can be usefull to run apt-get install to add additional packages at this point.

Debootstrap

Systems created with Debootstrap.

An example script showing how you can get started with the Jetson TX2:

#!/bin/bash
apt-get install debootstrap
mkdir ./Linux_for_Tegra
export ARCH=arm64
PACKAGE=nano
RELEASE=xenial

debootstrap \
        --arch=$ARCH \
        --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg \
        --verbose \
        --foreign \
        --variant=minbase \
        --include=$PACKAGE \
        $RELEASE \
        ./Linux_for_Tegra/rootfs
cp /usr/bin/qemu-aarch64-static ./Linux_for_Tegra/rootfs/usr/bin
cd ./Linux_for_Tegra/rootfs
chroot . /bin/bash -c "/debootstrap/debootstrap --second-stage" 
# Open a QEMU shell to make any additional modifications. You can use apt-get at this point.
chroot . /bin/bash 
# When done create a filesystem archive
sudo tar -cvjSf Tegra_Linux_Sample-Root-Filesystem_${RELEASE}_${PACKAGE}_aarch64.tbz2 *
cd -

Additional packages can be specified in your file system if you add them to --include. The example above will include the text editor nano. Examples assumes a forign host i,e, Intel x86_64 Linux, tested on Ubuntu 16.04 LTS.

A word of warning you will need to configure your filesystem as this will not function without some basic setup and accont creation prior to flashing. The sample filesystems above have been pre-configured to come up working. There is a great article on the Debian website that will help you setup your filesystem here.

Xfce Desktop Debootstrap filesystem running Xfce4 Desktop Environment.

Lxde Desktop Debootstrap filesystem running Lxde Desktop Environment.

Ubuntu Base

Pre made minimal filesystems are also available from Ubuntu and are reffered to as Ubuntu Base.

Links

Abaco stripe