(ARCHIVED) Ubuntu Xenial Image (BSP Kernel)
#1
I also built a mimimal Ubuntu image combined with the the BSP Kernel and my image building gear. Similar to the Arch Image **this image is intended for developers. If you are looking for accelerated 2D/3D or video decoding use Android** and do not bother with trying this image.

What you get:

- HDMI at 1080P
- HDMI analog audio (alsa, pulseaudio)
- Ethernet (including 1000M)
- USB
- Wifi
- Ubuntu Ubuntu 16.04 (Xenial Xerus) aarch64
- BSP Linux Kernel 3.10.65+ (see http://forum.pine64.org/showthread.php?tid=293)
- BSP U-Boot (see http://forum.pine64.org/showthread.php?tid=99)
- Support for all Pine64 models (512MB, 1GB, 2GB) with auto detection so Ethernet works with the same image on all models

It works good enough so it can be used as headless server, as compile platform for aarch64 or as virtualization host. You can even install a desktop environment if you wish.

These images require a 4GB medium (3700 MiB rootfs). Extend the partition with `sudo /usr/local/sbin/resize_rootfs`.

Download (for instructions see README.txt)

Starting with Kernel 3.10.101 it is possible to lower HDMI resolution from 1080p to 720p. See http://forum.pine64.org/showthread.php?tid=980 for instructions.

History:

**20160228-2**
- Initial publish release
- Known issue: console-setup.service fails to start
- Firefox is very unstable

**20160306-1**
- Updated U-Boot and device tree to 20160306-1
- Updated Kernel to 3.10.65-2-pine64-longsleep-39-1
- Ethernet MAC address is now persistent (added to uEnv.txt on first boot)
- Added system service to reenable CPU cores
- Added helper Pine64 platform scripts to /usr/local/sbin
- Serial getty no longer waits on rc.local service
- Linux Kernel firmware and headers are now installed

**20160320-1**
- Added support for Pine64 512MB model (auto detected)
- Updated U-Boot and device trees to 20160319-1 (2014.07-3-pine64-longsleep)
- Updated Kernel to 3.10.65-3-pine64-longsleep-2
- Wireless tools are now installed by default (iw, rfkill, wpasupplicant)

**20160403-1**
- Updated Kernel to 3.10.65-4-pine64-longsleep-16 (fixing Pine64+ 2GB model Ethernet crash)

**20160424-1**
- Updated U-Boot and device trees to 20160423-1 (v2014.07-4-pine64-longsleep)
- Updated to Kernel 3.10.65-7-pine64-longsleep-28
- Initrd updated to support root= Kernel parameter and wait for rootfs delay (thanks to j0zzy)
- Ubuntu rootfs updated to 16.04 Xenial Xerus final release
- Platform scripts were updated to latest
- Mackeeper service was updated (thanks to sWski)
- UART2, UART3 and UART4 are now enabled (thanks to Martin Ayotte)

**20160507-1**
- Updated to Kernel 3.10.101-0-pine64-longsleep-39
- Alsa-utils are now installed by default, including sane mixer settings
- It is now possible to change the HDMI resolution via uEnv.txt (sunxi-disp-tool installed by default)
- Default hostname is now "pine64"
- Locale en_US.UTF-8 is now pre-generated

**20160716-1**
- Updated to Kernel 3.10.102-2-pine64-longsleep-66

**20161217-1**
- Updated to Kernel 3.10.104-2-pine64-longsleep-113
- Backports repository no longer enabled by default

**20161218-1**
- Ubuntu 16.04.1 base rootfs without proposed repository (was nightly before)
- Proposed repository no longer enabled by default


Released images are signed with a detached GPG signature (.asc) signed by my personal key 0x090EF0DB. Get the key and verify that the download is intact and unmodified.
Code:
gpg --keyserver keyserver.ubuntu.com --recv-keys 090EF0DB
gpg --with-fingerprint xenial-pine64-*.xz.asc

Let me know what you think.
#2
Wow, looks crunchy.  Smile If I'd have my PINE64 already at hands would start testing it immediately.
What are the next steps now? Compiling applications (ssh client and server will be the one of the first I suppose)?
Is it possible to control the RP2 and Euler buses pins somehow already now or some tools needs to be compiled first?


BR,
Peter
#3
(02-28-2016, 03:48 PM)peterz Wrote: Compiling applications (ssh client and server will be the one of the first I suppose)?
Is it possible to control the RP2 and Euler buses pins somehow already now or some tools needs to be compiled first?

Well you have the full Ubuntu ports repository - so it is usually not required to compile things like SSH.

I have not tried GPIO, I2C or SPI yet.
#4
Works like a charm so far.
Things to do after you dd image to your sd card:
1. resize the second partition (rootfs) to span the card
2. resize the file system to span the partition
3. add the universe repository in /etc/apt/sources.list
4. sudo apt-get update
5. sudo apt-get upgrade
6. sudo apt-get install xubuntu-desktop
7. wait for 2.6gb
8. reboot in the graphical environment
9. Win. Thanks Longsleep Wink
#5
(02-29-2016, 10:06 AM)janjwerner Wrote: 1. resize the second partition (rootfs) to span the card
2. resize the file system to span the partition

I have a script for that https://github.com/longsleep/build-pine6..._rootfs.sh - run with sudo on your Pine.
#6
This is great, thanks. A couple of questions:

1. What's the lightest weight desktop environment you would recommend? Preferably something that doesn't use up a lot of RAM since I opted for the 1GB version and I will be doing a bit of development work.

2. Any chance to set this up with kernel 4.x?
#7
You might also want to change /lib/systemd/system/serial-getty@.service to start the getty earlier:

After=dev-%i.device systemd-user-sessions.service # plymouth-quit-wait.service
# After=rc-local.service

Otherwise, systemd waits for the network startup to time out before starting up the getty (5 minutes).
#8
(02-29-2016, 06:37 PM)shockr Wrote: This is great, thanks. A couple of questions:

1. What's the lightest weight desktop environment you would recommend? Preferably something that doesn't use up a lot of RAM since I opted for the 1GB version and I will be doing a bit of development work.

2. Any chance to set this up with kernel 4.x?

1. Xfce4 works OK (Xubuntu)

2. Not really. Mainline kernel is lacking features and the BSP is missing source for libdram and libhdmi.

(02-29-2016, 10:15 PM)patrickhwood Wrote: You might also want to change /lib/systemd/system/serial-getty@.service to start the getty earlier:

After=dev-%i.device systemd-user-sessions.service # plymouth-quit-wait.service
# After=rc-local.service

Otherwise, systemd waits for the network startup to time out before starting up the getty (5 minutes).

Good suggestion - will be changed in the next release.
#9
Hi there,

I wonder if with this xenial image I will be able to install all packages from the repos (using apt-get) and also be able to keep the OS up to date running atp-get upgrade.

Thank you.
#10
(03-07-2016, 09:58 AM)mane Wrote: I wonder if with this xenial image I will be able to install all packages from the repos (using apt-get) and also be able to keep the OS up to date running atp-get upgrade.

Sure, you can install and upgrade everything what is in the Ubuntu ports repository for arm64 (http://ports.ubuntu.com/).

I do not provide packaging for Kernel, initrd and boot - so those cannot be upgraded through packaging.

I built a new Ubuntu Xenial image incorporating the latest changes to U-Boot and Kernel. It also adds the platform scripts i use, does automatically keep the Ethernet MAC address in uEnv.txt and re-enables CPU cores automatically if they got disabled by thermal throttling / overheating.

Get 20160306-1 from https://www.stdin.xyz/downloads/people/l...es/ubuntu/

As always, for a list of changes and full details see the first post in this thread.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubuntu server 20.04 request phi0x 2 6,110 12-30-2020, 08:02 PM
Last Post: phi0x
  Xenial Minimal Image (PINE A64(+)) 0.6.2-77 pineadmin 4 22,549 08-30-2020, 10:35 AM
Last Post: jrronimo
  Kickstarter P64 with LCD, working image? MostHated 1 4,973 01-04-2020, 10:32 AM
Last Post: igorp
  USB Wireless Drivers with Longsleep Linux Kernel jacobscarter 15 27,687 03-06-2019, 02:26 PM
Last Post: tllim
  Allwinner A64 RTC bug fix on bionic image? tkaivola 1 5,316 02-01-2019, 05:09 AM
Last Post: tllim
  SPI on ubuntu IlyaM 4 10,162 07-16-2018, 03:00 AM
Last Post: kingflab
  Ubuntu password not working joemassimino 4 9,583 05-18-2018, 03:33 PM
Last Post: Luke
  How can I get a wireless dongle working on Xenial Desktop latest build Rocklobster 1 4,387 04-16-2018, 03:09 PM
Last Post: Rocklobster
  After flashing Ubuntu- how to get graphical desktop Partymack711 6 12,009 02-01-2018, 09:45 AM
Last Post: Partymack711
  PPTP doesnt work with ubuntu escovedo 2 9,681 08-23-2017, 09:28 AM
Last Post: gilbertotcc

Forum Jump:


Users browsing this thread: 31 Guest(s)