Posted on 1 Comment

GPIO Headers Reference for AML-S905X-CC

GPIOs (General Purpose Input/Output) are single-bit pins capable of digital input or output typically used for controlling LEDs or signaling. There is a total of 35 GPIO pins operating at 3.3V logic level on Le Potato which is 7 more than what is found on the Raspberry Pi series of boards. GPIOs are half duplex which means they can only be in either input or output mode but not both simultaneously.

When setup for input, applying 3.3V or 0V to the pin will correspond to 1 or 0 respectively when read in software. When setup for output, the pins will be either 3.3V or 0V depending on whether it is set as 1 or 0 in software. GPIOs typically provide only a few milli-amps of current so they should only directly drive low power things like LEDs. They cannot drive power hungry things like DC motors, which need power transistors to deliver adequate current.

Some of the GPIO pins have secondary functionality for signaling SPDIF, I2S, I2C, SPI, SDIO, UART, PCM, clock-generation, and more. They still operate at the same 3.3V logic level but these pins are usually connected to internal specialized hardware that can generate precisely timed signals without using the CPU to bit bang. This frees up the CPU to do other things like running your operating system and software.

There are two interfaces in the Linux kernel for controlling and reading from GPIO pins. Since the interfaces are standardized, you do not need to use libraries to read from and write to GPIOs. We have put together a simple guide for utilizing these interfaces. As an addition, we also mapped out the functionality and software pin numbers on Le Potato for easy access.

Screenshot from 2018-05-21 11-48-00

On the picture at the top of the page, GPIOs on the Le Potato are highlighted in green. 5V pins are red, 3.3V pins are orange, ADC pins are blue. Other un-highlighted pins are ground with the exception of the pins on the top right header.

Posted on 3 Comments

Ubuntu 18.04 (Bionic Beaver) LTS for AML-S905X-CC (Le Potato) Preview Image 1 with Wayland

We are happy to announce our first preview image for Ubuntu 18.04 Bionic Beaver. It features the latest Linux tools and utilities along with Gnome 3 as the replacement for Unity. They back tracked on defaulting to Wayland from 17.10 due to maturity issues but we are excited to bring some GBM groundwork in the Linux kernel for you to play with Wayland.

We recommend testing new LTS releases to get a feel for the changes and upgrading only after its first point release since new software is often different, unstable, and bug ridden. For stability, stay with Ubuntu 16.04 which is on its fourth point release (denoted by 16.04.4) and on well on its way to a fifth point release.

This Bionic PI1 image release is for people to play with Wayland/Weston on top of Gnome 3’s Mutter window manager on Le Potato. This image takes around 5 minutes for first boot because it has to re-partition and create swap files so be patient and don’t interrupt it. When you get to the login screen and select the Libre Computer user, make sure to click the little settings icon (looks like a gear) and select “Ubuntu on Wayland”. From there, you can download es2gears_wayland (sudo apt-get install mesa-utils-extra) and glmark2-es2-wayland (sudo apt-get install glmark2-es2-wayland). Le Potato should be about 50% faster than the Raspberry Pi 3 Model B+ in glmark2. Please note that the 3D acceleration feature is neither stable or fully featured at this point and a lot of work remains. Having an open-source Mali driver like lima would help greatly. The hardware is OpenGL ES 2.0 only so needs something like gl4es shim for applications that rely on OpenGL.

The other big change in Bionic is the move away from /etc/network/interfaces and to netplan which renders configurations to other backends like interfaces and NetworkManager. We have included the appropriate yaml files for the headless and desktop images. Ubuntu also removed ifconfig so you have to use the ip command instead.

Major Changes:

  • Unity -> Gnome 3 (Mutter WM)
  • /etc/network/interfaces -> netplan
  • Linux Kernel 4.14.38 with GBM for Mali
  • Virtualization and container accounting improvements
  • Default to disable UHS and CVBS for compatibility

You can still use the lc_distro_transfer tool for flashing eMMC from MicroSD card just like with the Ubuntu 16.04 Preview Image 8. The image can be downloaded here.

Known Issues:

  • Top left USB port (OTG USB) conflicts with Mali driver and will cause all USB ports to stop working if you plug in a USB device into that port, blacklist the mali module before using the port
  • Mutter packages are held back from upgrading automatically due to out-of-tree patches
  • ARM64 Linux kernel are not part of Ubuntu ports repository, a separate repository needs to be set up in order to enable automatic kernel updates
  • No video for monitors and TVs with 1366×768 and some other odd resolutions

Other Project Notes:

Tritium boards will be mailed out next week for Kickstarter backers and we will begin the engineering effort for unifying board support in software so you can switch between ALL-H3-CC H5, AML-S905X-CC, and ROC-RK3328-CC with one command. Hopefully by the end of 2018, the fruits of our software efforts will offer a seemless experience on all of our boards.

Posted on 2 Comments

The Sub-1-Watt 64-bit Ubuntu Linux ARM Server

Today, we follow up the release of our Ubuntu desktop image with our headless server image for AML-S905X-CC. The headless server image is based on the latest Linux LTS 4.14 along with some of our customizations. It utilizes the same infrastructure we’ve created for our desktop image while consuming considerably less power.

  • Linux 4.14 LTS
  • u-boot 2017.11
  • Custom Partition Layout
    • 256MB FAT EFI Partition
    • BTRFS Partition
      • Copy-on-Write for greater reliability
      • Facebook’s zstd compression
      • @ root subvolume and @lc-ubuntu-16-headless release snapshot
      • Self expands on startup to full disk size
    • Auto generated Swap
      • 1-2GB in side located at end of disk
      • offload pages from zswap

In testing, power consumption is around 180mA with network, eMMC, and microSD card connected for a total consumption of 0.91W! Did we mention this thing has quad 64-bit ARM Cortex-A53 processors? Just to give you an idea, your “energy efficient” 13W LED light bulb uses the same power as 15 of these servers.

We performed no optimization or other funny business in our images to achieve these results. You can get a Le Potato yourself and compile a mainline kernel to verify the results. If you have one already, you can download the latest images here. If you are serious about minimizing power consumption, more saving can probably be extracted.

Posted on 8 Comments

AML-S905X-CC Mainline Linux Preview Image 8 with eMMC Support

It has been over three months since our last preview image 7 for the AML-S905X-CC Le Potato platform and there has been a lot of working going into mainline Linux and u-boot by our partner BayLibre. Preview image 8 brings all of the work together into a flash-able image for our end-users.

PI8 Core feature upgrades:

  • Upgraded to mainline u-boot 2017.11
    • No longer using Amlogic’s u-boot
    • eMMC support
    • Saving u-boot environment
    • cvbs enablement through UART via “setenv enable-cvbs 1; env save”
  • Upgraded to mainline Linux LTS 4.14.29
    • New DMT Display Modes support
      • 640×480@60Hz
      • 800×600@60Hz
      • 1024×768@60Hz
      • 1152×864@75Hz
      • 1280×1024@60Hz
      • 1600×1200@60Hz
      • 1920×1080@60Hz
    • Fixed top USB Port by Ethernet causing USB subsystem to hang
    • Utilize kernel and kernel module deb package install
    • Power optimizations
  • Additional image work
    • eMMC support via lc_distro_transfer utility
      • Reworked fstab mount descriptors
      • Reworked partition resize utility
    • Preliminary EFI support
    • Headless and XFCE Desktop snapshots in one image

Some known issues with this release and additional improvement work:

  • shutdown/suspend/wakeup
  • MicroSD card may hang on reboot command
  • package u-boot and board specific utilities and binaries into deb files
  • add repository to apt for board support deb files
  • display pipeline improvements and rework for additional resolutions
  • wayland support
  • Ubuntu 18.04 LTS
  • video codec acceleration support
  • overlay auto-loading in u-boot
  • eMMC performance improvements
  • EFI support improvements

eMMC Support

eMMC modules are solid-state flash devices created for embedded systems. They offer higher reliability and additional performance compared to MicroSD cards. They are purchased separately and attached to the eMMC connector on the bottom side of the board.

We currently have eMMC 5.x modules and eMMC 4.x modules. You can attach an eMMC 5.x module on a board that supports eMMC 5.x only. If you attach an eMMC 5.x module on a board with only eMMC 4.x support like the ALL-H3-CC, it will not work. The reverse is also true. The performance differences between the two module types are small to negligible.

lc_distro_transfer utility

This image includes the release state of our distro as snapshots on top of the BTRFS filesystem. We added a new script called lc_distro_transfer that utilizes core design features of our image to transfer system snapshots created during image building to eMMC and back to MicroSD card.

sudo lc_distro_transfer –help
USAGE: lc_distro_transfer VENDOR/MODEL DEVICE DEVICE_TYPE DISTRO [FIRMWARE_TYPE]

For example, you can flash the headless or desktop image from a MicroSD card to eMMC after booting up. After login and boot-up, simply run the following command to flash the headless image to eMMC:

sudo lc_distro_transfer libre-computer/aml-s905x-cc /dev/mmcblk0 emmc lc-ubuntu-16-headless

If you want to flash the desktop image to eMMC, run the following:

sudo lc_distro_transfer libre-computer/aml-s905x-cc /dev/mmcblk0 emmc lc-ubuntu-16-xfce

Once the image is flashed to eMMC, you can shutdown and remove the MicroSD card. The devices will then boot to eMMC. If you want to flash a blank MicroSD card from eMMC, you can run the following:

sudo lc_distro_transfer libre-computer/aml-s905x-cc /dev/mmcblk1 sd lc-ubuntu-16-xfce

Please note that you can only flash the image that you original flashed to the eMMC. You cannot flash the headless image back onto the MicroSD card if you originally flashed the xfce image onto the eMMC.

The image release can be downloaded here.

You can let us know your thoughts on issues for this image on the LoveRPi forum. Once Ubuntu 18.04 LTS is out, we will have a lot of additional work lined up such as Wayland and Mali 3D support.

Posted on Leave a comment

First Preview Image for ROC-RK3328-CC (Renegade)

We are happy to announce the first preview image for the ROC-RK3328-CC (Renegade) board that was released on Indiegogo courtesy of the Firefly team.

You can find the latest downloads for ROC-RK3328-CC on the product page’s Downloads section.

The first image is based on Rockchip’s Linux 4.4 LTS kernel running Ubuntu 16.04 LTS. It currently does not offer Mali 3D acceleration or hardware codec support.

Android will be coming within the next two weeks.

Once Ubuntu 18.04 is released, we will begin work on a repository for bootloaders and kernels housed in deb files so that bootstrapping images will be easy for all of our boards. Once that infrastructure is in place, non-preview images for our boards will be released. Updating bootloaders and kernels will be as simple as an apt-get.

Posted on 13 Comments

Retro Gaming on AML-S905X-CC with Lakka!

One of the most popular uses for single board computers is playing retro games. AML-S905X-CC now has a Lakka image (Thanks kszaq for the tip and the Lakka team for their great work!) If you don’t know what Lakka is, it is basically one of two popular RetroArch distros, the other being RetroPie. Lakka is built on top of LibreELEC and has a very friendly UI that lets you dive into retro gaming very quickly. Hopefully we get formal support soon but we are very excited to have this feature.

AML-S905X-CC is one of our fastest low cost and low power platforms. It should run emulators significantly faster than the Raspberry Pi 3. Please try it out and let us know your thoughts!

Posted on 4 Comments

AML-S905X-CC Mainline Linux Preview Image 7

After much ado, the AML-S905X-CC ethernet issue has finally been resolved. This images has the following fixes/features:

  • Swap partition generation (1GB-2GB in size determined by SD card size)
  • Fixed ethernet EEE causing link drop
  • Updated to Linux kernel 4.14.11
  • Overlay support in the Linux kernel
  • Zswap for larger memory foot-print applications

Issues still outstanding for official image release:

  • shutdown/suspend/wakeup
  • add kernel, u-boot, and board specific binaries into deb files
  • add repository to apt for board support deb files
  • display pipeline support
  • wayland support
  • codec acceleration support
  • overlay auto-loading in u-boot
  • boot device detection and selection
  • eMMC support

The image release can be downloaded here.

Posted on 2 Comments

Get your Kodi on! LibreELEC for AML-S905X-CC by kszaq and Image Preview Release 6

LibreELEC fork developer kszaq recently made images for AML-S905X-CC (Le Potato) based on LibreELEC 8.x. He hopes that his work will eventually be upstreamed to LibreELEC. This is wonderful news as it features hardware acceleration built around Linux kernel 3.14. This is a nice Christmas present for everybody and we greatly appreciate your work kszaq! You can now get Kodi media center on Linux running on our boards.

Community is a hard thing to get right and we are glad to have people contribute to the ecosystem. We are focused on proper upstream support for the technologies we use in hopes that the work will have a great impact on the open-source community and people building on top of it.

We hope to have Wayland and V4L2 support in mainline Linux with BayLibre’s assistance in 2018 so that we can run the latest and greatest like Ubuntu 18.04. Ubuntu Linux preview image 6 is available based on Linux 4.14.7 LTS.

Hope you all have a jolly holiday season and see you next year! We will be seeing what’s new at CES 2018. Hopefully we will see you there!

Posted on 2 Comments

Ubuntu Linux 16.04 LTS Preview Image 4 with GUI and Linux 4.14.3

Overview

After weeks of hard work, we are finally able to release preview image 4 based on Ubuntu 16.04 LTS with the latest mainline Linux 4.14.3 and u-boot with some out-of-tree patches. The u-boot is based on the latest 2017-11 release due to upstreaming work by Neil Armstrong from our partner BayLibre. The image is designed for >4GB SD cards at the moment. eMMC has not been tested (and definitely will not work). Support for eMMC will come on the next version.

Changes from Preview Release 3

  • Upgraded Linux kernel from 4.13.3 to 4.14.3
  • Switched from Amlogic’s u-boot to mainline u-boot 2017-11
  • Added automatic filesystem resize on boot to expand to full MicroSD card size
  • Added ssh host key regeneration on boot
  • Disabled CVBS in the device tree to reduce the occurance of HDMI resolution-unsupported/no-video
  • Utilize the latest zstd compression feature of BTRFS for faster read/write
  • Increase MicroSD card bus speed
  • Faster 2D performance
  • Added a bunch of WiFi and Bluetooth drivers so USB based dongles should all be supported

Outstanding/Known Bugs

  • SSH is enabled and there’s a default password for the libre user
  • OpenGL ES 2.0 is not enabled since performance of xf86-arm-soc hinders the GPU performance
  • There may be an issue with ethernet PHY
  • Kernel and other packages need to be deb’ed
  • Missing 4K support in the mainline kernel

Image Download Link

AML-S905X-CC Ubuntu Images

Posted on 14 Comments

AML-S905X-CC (Le Potato) Ubuntu Linux 16.04 LTS Preview Image 3

Our third Ubuntu 16.04 LTS preview image based on mainline Linux 4.13 can be found on the AML-S905X-CC product page. This release incorporates the following features:

You can download it and flash it to a 4GB+ MicroSD card via Win32DiskImager. If you run into any issues, please do not hessitate to let us know via our partner’s forum. There are some known issues that will be addressed before final images:

  • I2S is not functional
  • OpenGL ES 2.0 is bottlenecked by an unoptimized xf86-video-armsoc xorg driver
  • Monitor must support 576p since CVBS is enabled or you will get no video
  • Missing 4K support in the mainline kernel
  • Missing automatic filesystem resize
  • SSH host keys are not automatically regenerated
  • SSH is enabled and there’s a default password for the libre user
  • Kernel and other packages need to be deb’ed

We will re-spin the image to fix many issues once Linux 4.14 LTS is released. Android 7.1 running on MicroSD card will be released next week.