Ubuntu

From UpWiki
Revision as of 16:20, 12 July 2017 by Nick.lunghi (talk | contribs) (Created page with "=UP= The ubilinux team provides a <tt>linux-upboard</tt> kernel flavour from the [https://launchpad.net/~ubilinux/+archive/ubuntu/up ubilinux/up Launchpad <abbr t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

UP

The ubilinux team provides a linux-upboard kernel flavour from the ubilinux/up Launchpad PPA. These kernels enable UP board features not yet directly supported by Ubuntu.

Currently 4.4 kernel packages are available for the 14.04.x (Trusty Tahr) LTS release and for the 16.04.x (Xenial Xerus) LTS release.

Installation

Ubuntu 14.04.5 LTS (Trusty Tahr)

  • Install the latest Trusty desktop-amd64 release
  • From a terminal, add the UP board PPA:
    sudo add-apt-repository ppa:ubilinux/up
  • Update the package database:
    sudo apt update
  • Install the upboard kernel package
    sudo apt install linux-upboard-lts-xenial

Ubuntu 16.04.1 LTS (Xenial Xerus)

  • Install the latest Xenial desktop-amd64 release
  • From a terminal, add the UP board PPA:
    sudo add-apt-repository ppa:ubilinux/up
  • Update the package database:
    sudo apt update
  • Install the upboard kernel:
    sudo apt install linux-upboard

Testing

After installation and reboot, you can enter the bootloader menu by hitting Esc once or holding Shift during the GRUB phase (the Ubuntu purple screen). Enter the Advanced options for Ubuntu menu, and pick the latest -upboard kernel.

To verify that you're running the UP board kernel, run this command:

$ uname -r
4.4.0-2-upboard

If the kernel flavour shown is -upboard, you can now use the board features!

After this point, the kernel can be upgraded through any of the regular update methods for Ubuntu (apt-get upgrade, Software Center...)

Setting as default kernel

The previous steps allow you to install and test the kernel packages, but don't change the default kernel on boot. Once you're confident that it works well on your system, you can select it in one of two ways:

Option 1: removing all -generic kernels (recommended)

The easy and upgrade-proof way to use the -upboard kernel as default is to remove all unused -generic kernels (as well as any other flavour you have previously installed, such as -lowlatency):

sudo apt-get autoremove --purge 'linux-.*generic'

This will allow GRUB to always select the latest kernel with UP board support after an upgrade.

Option 2: enabling the GRUB default entry

Note: when following this route, care should be taken after a kernel upgrade to avoid either (a) GRUB still booting the older version of the kernel, or (b) GRUB switching to a different kernel flavour with a more recent version number.

If you wish to keep other kernel flavours yet make -upboard the default kernel, you will need to:

  • Enable GRUB to save default entries:
    Run sudoedit /etc/default/grub, set GRUB_DEFAULT=saved and save the file.
  • Update the GRUB configuration:
    sudo update-grub
  • Select the default kernel:
    sudo grub-set-default 'Ubuntu, with Linux 4.4.0-2-upboard'

After a reboot, your board will boot to the selected kernel version automatically.

UP^2

For now the only supported distribution on the UP^2 is Ubilinux

Ubuntu support is planned for future releases of the kernel driver package.

Guides