Wednesday, 5 October 2016

Running Ubuntu on Intel Bay Trail and Cherry Trail Devices

UpdateThis work is superseded by my 'isorespin.sh' script which can respin an official ISO suitable for use on Intel Atom devices.

Intel Atom based mini PCs currently use Bay Trail and Cherry Trail SOCs. Whilst they perform satisfactorily under Windows attempts to use Linux based operating systems have resulted in the loss of HDMI audio, wifi and bluetooth. I've attempted to address this with a series of Ubuntu ISOs and kernel patches.
Official Ubuntu releases are provided as ISO images which are single files that represent an entire CD/DVD of software. An ISO image can be written to a USB to create a 'live' USB drive that containing a full operating system that can be booted or used as installation media. Ubuntu has recognized flavours with the difference being the set of packages included within the release:

  • Ubuntu uses Unity (a graphical shell for the GNOME desktop environment)
  • Lubuntu uses LXDE (the Lightweight X11 Desktop Environment)
  • Xubuntu uses the Xfce desktop environment
  • Kubuntu uses KDE's Plasma desktop environment
  • Ubuntu GNOME uses the GNOME desktop environment
  • Ubuntu MATE uses the MATE desktop environment

Ubuntu is well suited to mini PCs as the flavours provide the option of running a fast but lightweight operating system that can take advantage of the lesser hardware specifications.

By combining recent patches and source code and porting them with Ubuntu kernel source I've created ISO images that fully support HDMI audio, wifi and bluetooth on Intel Compute Sticks. They will work on other Atom Bay Trail and Cherry Trail with varying success in part due to the functionality provided by the device's BIOS which typically affects the success of bluetooth and assuming the device has either Realtek 8723BS or other officially support wifi including Intel.  I've also included the latest patches that try to reduce the random freezes that have been known to occur.

Because the ISOs include a patched kernel to provide the missing functionality it means no automatic Ubuntu kernel updates although other application packages will update as normal. Consequently I've also developed a manual patching process where a script can be downloaded and then executed to update the kernel to match the latest releases.

I've also configured the ISOs to both run and install using either a 32-bit or 64-bit bootloader to provide the ability to easily dual-boot without needing to modify the BIOS.

Each ISO can be written to a USB using either 'Rufus' in Windows or 'dd' in Linux. The USB can then be used to boot from after powering-on the device. For installation to the device's internal storage simply run the installer and follow the on-screen instructions.

Some cautionary advice: The initial menu screen takes slightly longer to appear than with the official ISOs. Depending on the speed of the USB drive used it can be anything from fifteen to forty-five seconds before anything appears on the screen. After installing with a 32-bit bootloader booting sometimes results just in a blank/coloured (e.g. purple) screen. To prevent this and to ensure a successful boot it is best boot through the BIOS menu followed by selecting the Ubuntu option. If dual booting with Windows I recommend installing/re-installing 64-bit Windows to circumvent this issue if your device supports it.

Previous Update: Whilst two ISO sets of various Ubuntu flavours for both 16.04.1 and 16.10 releases are provided, I recommend first trying one of the 16.10 ISOs as these are the most recent and incorporate the latest kernel, patch sets and fixes based on previous releases and feedback. In particular, the Yakkety 16.10 ISO kernels support micro SD cards (although with some limitations), includes a patch for I2C bus, has improved RTL8723BS wifi and bluetooth support and most recently I've included support for full disk encryption on Lubuntu and fixed the home directory encryption for all flavours. /Previous Update


Ubuntu 16.04.1 LTS


To try an ISO download it from one of the links below (in red) and write it to a USB using either 'Rufus' in Windows or 'dd' in Linux.

Ubuntu (superseded)
Ubuntu comes with everything. All the essential applications, like an office suite, browsers, email and media apps come pre-installed and thousands more games and applications are available in the Ubuntu Software Centre.


Lubuntu (superseded)
Lubuntu is a fast, energy saving and lightweight variant of Ubuntu using LXDE. It is popular with PC and laptop users running on low-spec hardware.


Xubuntu (superseded)
Xubuntu is an elegant and easy to use operating system. Xubuntu comes with Xfce, which is a stable, light and configurable desktop environment.


Kubuntu (superseded)
Kubuntu offers the KDE Plasma Workspace experience, a good-looking system for home and office use.


Ubuntu GNOME (superseded)
Ubuntu GNOME uses GNOME Shell along with a plethora of applications from the GNOME Desktop Environment.


Ubuntu MATE (superseded)
Ubuntu MATE expresses the simplicity of a classic desktop environment. MATE is the continuation of the GNOME 2 desktop which was Ubuntu's default desktop.



Alternatively you can just download a kernel and upgrade your existing installation. Note that the disadvantage of this approach is that you will need to find and install the wifi firmware files in order to get wifi working on a Bay Trail device.

To upgrade your kernel first download the shell script for the kernel version you require and after making it executable (enter 'chmod 755 <script>') you can install it as 'root' (by entering 'sudo <script>'). Once the script has finished executing the device will need to be rebooted to use the updated (patched) kernel.

4.4.0-31.50

4.4.0-38.57

4.4.0-42.62

4.4.0-45.66

4.4.0-53.74 (update: current latest Xenial kernel - superseded)

Previous Update: Thanks to a comment from Камлаю однако (sae762) a solution to the Cherry Trail device I2C bus kernel error is now known. However when I included it as a patch in the latest build of the v4.4 kernel (4.4.0-42.62) I subsequently discovered that some Cherry Trail devices failed to boot due to new errors being encountered. As a result I have excluded my patch from the v4.4 kernels and recommend Cherry Trail device owners to either install my Yakkety 16.10 ISO with kernel updates or try upgrading to the latest Yakkety kernel (v4.8.0-26.28) using the script below. As a result the ISO kernels will not be recompile with this patch although I am still planning on re-spinning the ISOs to include other fixes I have been working on.

Starting from the 4.4.0-42.62 kernel the source now includes an earlier patch 'Reduce Baytrail eMMC/SD/SDIO hangs' which previously was available in the v4.6 and later kernels which people still said hung. This will not be back-ported to the ISOs.

I have also created a new update script 4.4.0-45.66 containing the latest Xenial kernel build which has been released to address the 'Dirty COW bug' or CVE-2016-5195 (see http://dirtycow.ninja or http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-5195.html) which is a privilege escalation vulnerability involving a race condition in handling copy-on-write breakage of private read-only memory mappings. /Previous Update

Latest Update: I have created a new update script 4.4.0-53.74 containing the latest Xenial kernel build. As noted above this does not include the Cherry Trail I2C bus kernel solution which can be found in the latest Yakkety and Zesty builds below. /Latest Update

One issue that has been reported with Linux kernel versions newer than 3.16 on Bay Trail processors is a random freeze where the whole system hangs. Unfortunately no complete fix currently exists however if you encounter freezes an accepted workaround is to limit the processor (CPU) to a certain power state, or 'C-state', if such freezes are encountered.

Open a terminal session and enter the following command (on a single line):
sudo sed -i 's/\(GRUB_CMDLINE_LINUX=\)""/\1"intel_idle.max_cstate=1"/' /etc/default/grub
To implement the change enter:
sudo update-grub
and then reboot the system by entering:
sudo reboot
The above change only needs to be made once, typically following installation to eMMC storage.


Ubuntu 16.10


To try an ISO download it from one of the links below (in red) and write it to a USB using either 'Rufus' in Windows or 'dd' in Linux.

Ubuntu (superseded)
Ubuntu comes with everything. All the essential applications, like an office suite, browsers, email and media apps come pre-installed and thousands more games and applications are available in the Ubuntu Software Centre.


Lubuntu (superseded)
Lubuntu is a fast, energy saving and lightweight variant of Ubuntu using LXDE. It is popular with PC and laptop users running on low-spec hardware.


Xubuntu (superseded)
Xubuntu is an elegant and easy to use operating system. Xubuntu comes with Xfce, which is a stable, light and configurable desktop environment.


Kubuntu (superseded)
Kubuntu offers the KDE Plasma Workspace experience, a good-looking system for home and office use.


Ubuntu GNOME (superseded)
Ubuntu GNOME uses GNOME Shell along with a plethora of applications from the GNOME Desktop Environment.


Ubuntu MATE (superseded)
Ubuntu MATE expresses the simplicity of a classic desktop environment. MATE is the continuation of the GNOME 2 desktop which was Ubuntu's default desktop.



Alternatively you can just download a kernel and upgrade your existing installation. Note that the disadvantage of this approach is that you will need to find and install the wifi firmware files in order to get wifi working on a Bay Trail device.

To upgrade your kernel first download the shell script for the kernel version you require and after making it executable (enter 'chmod 755 <script>') you can install it as 'root' (by entering 'sudo <script>'). Once the script has finished executing the device will need to be rebooted to use the updated (patched) kernel.

4.8.0-22.24

4.8.0-26.28

4.8.0-30.32 (update: current latest Yakkety kernel - superseded)

Previous Update: Thanks to a comment from Камлаю однако (sae762) a solution to the Cherry Trail device I2C bus kernel error is now known and I have included it as a patch starting with the 4.8.0-22.24 build of the v4.8 kernel. This kernel already includes the 'Reduce Baytrail eMMC/SD/SDIO hangs' patch mentioned above. however all the ISOs will need to be re-spun as they contain an unpatched 4.8.0-22.24 built of the v4.8 kernel.

I have also created a new update script 4.8.0-26.28 containing the latest Yakkety kernel build which has been released to address the 'Dirty COW bug' or CVE-2016-5195 (see http://dirtycow.ninja or http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-5195.html) which is a privilege escalation vulnerability involving a race condition in handling copy-on-write breakage of private read-only memory mappings.

I have also re-spun the ISOs and the above links now point to the updated ISOs. These ISOs include the 4.8.0-22.24 build of the v4.8 kernel patched with the solution to the Cherry Trail device I2C bus kernel error. I've also included support for full disk encryption on Lubuntu and fixed the home directory encryption for all the Ubuntu flavours. I recommend that after installation the kernel update script (4.4.0-45.66) should be applied to upgrade to the latest kernel. /Previous Update

The Yakkety kernels brings SD card support to Cherry Trail devices although Sandisk card support is not complete and can fail completely. The random freeze issue is still present so if you encounter freezes use the workaround above to limit the processor (CPU) to a certain power state, or 'C-state'. Some devices hang on reboot or halting without powering off. The exact cause for this has not been identified. If bluetooth fails to initialize then toggling the device's power and rebooting has been found to work. Any other functionality issues should be re-checked using the equivalent official ISO as they maybe existing bugs or deficiencies.

Latest Update: I have created a new update script 4.8.0-30.32 containing the latest Yakkety kernel build which includes the Cherry Trail I2C bus kernel solution.

I've also built the first fully patched Zesty kernel update script 4.9.0-8.9 which may be of interested:

4.9.0-8.9 (update: current latest Zesty kernel - superseded)

This can be tested with either 16.04 or 16.10 as the official 17.04 release will not be available until April next year.

Finally to get audio running on a Mini PC with a headphone jack using the RT5640 codec (for example Tronsmart Ara) simply:

  1. Open the URL https://github.com/plbossart/UCM in a browser
  2. Click the green coloured 'Clone or Download' button on the right and download as a 'zip' file
  3. In a terminal window go to the download directory and enter 'unzip UCM-master.zip'
  4. Install by entering 'sudo cp -rf UCM-master/bytcr-rt5640 /usr/share/alsa/ucm'

Then reboot, plug in your headphones and select sound using 'Sound Settings' and choose 'Headphones playback'.  /Latest Update


Ubuntu 17.04 Alpha

Breaking News:

Pierre-Louis Bossart has been rewriting the HDMI audio patches with the intent to replace them entirely with a new HDMI LPE audio driver which enables support for HDMI LPE audio mode on Bay Trail and Cherry Trail devices when an HDaudio controller is not detected.

Once the driver has been approved upstream by the GFX team it will hopefully be mainlined possibly as early as 4.11.

Latest Update: I have been pointed to a set patches that better address the Cherry Trail PUNIT semaphore issue. They are from the Linux I2C development team and are currently ready for review. Consequently I've updated my 4.9 kernel and they are now included in both my kernel update script and 17.04 Alpha 131219 ISOs. /Latest Update

In order to ensure the success of this work I would like to provide feedback on any issues encountered through the early adoption of the driver. So I've decided to build my 4.9 kernels using this driver and provide kernel upgrade scripts to allow anyone to test on their own devices. I've also respun a recent daily Ubuntu Alpha build ISO so that the kernel and driver can be tested independently of whatever is currently installed.

4.9.0-11.12 (patched Zesty 4.9 kernel with including new HDMI LPE audio driver - superseded)

Ubuntu 17.04 Alpha 131216 (Daily Build) ISO (superseded)
Ubuntu comes with everything. All the essential applications, like an office suite, browsers, email and media apps come pre-installed and thousands more games and applications are available in the Ubuntu Software Centre.


In order to build up a list of what devices work with the new driver and document any issues identified please add a comment below detailing your experiences.

Reporting Issues

The best way to help when making a comment is to include the name of your device and a copy of the output from 'dmesg' (which is basically a log of kernel messages). The easiest way to share the log is by using the 'pastebinit' command (see https://help.ubuntu.com/community/Pastebinit). After installing the command by entering 'sudo apt install pastebinit' you can share the kernel messages log by entering 'dmesg | pastebinit'. This will paste a copy of the output from 'dmesg' to Ubuntu's Pastebin and provide an URL to access it.

So when reporting an issue please include:


/Breaking News



Ubuntu 16.10 Beta 2 (superseded)


The Beta 2 images and earlier are superseded by the final images above. The following section remains as an archive only.

The Ubuntu team has just announced the final beta release of Ubuntu 16.10 Desktop, Server, and Cloud products. Codenamed "Yakkety Yak" 16.10 the beta release also includes images for the Kubuntu, Lubuntu, Ubuntu GNOME, Ubuntu Kylin, Ubuntu MATE, and Ubuntu Studio flavours.

So I've created an Ubuntu 16.10 Beta 2 ISO suitable for Intel Atom devices. It can be downloaded from here and used as LiveUSB or it can be installed. Similarly I've created a Lubuntu 16.10 Beta 2 ISO here together with Yakkety kernel upgrade scripts:

4.8.0-14.15

4.8.0-17.19 (current latest Yakkety kernel)

The Yakkety kernel brings SD card support to Cherry Trail devices although Sandisk card support is not complete and can fail completely.

If installing the Lubuntu 16.10 Beta 2 ISO on the original Ubuntu Intel Compute Stick (STCK1A8LFC) you will loose the initial F10 boot option. The NVRAM entry the system creates doesn't match the installation as with the v4.8 kernel and ZRAM the storage device becomes /dev/mmcblk1. You can still manually boot by going through the EFI shell (once enabled in BIOS) and you can fix by deleting and then recreating the correct boot entry using 'efibootmgr'. So if you didn't understand this paragraph don't install it on the STCK1A8LFC and wait for me to find either a simpler solution or provide some additional instructions.

Acknowledgements:  Canonical Ltd. (Ubuntu), Pierre-Louis Bossart (HDMI audio), Linuxium (v4.8 HDMI audio), Daniel Bilik (C-state), Bastien Nocera (WiFi) and Larry Finger (Bluetooth).

Source code: GitHub (Linuxium).

312 comments:

«Oldest   ‹Older   201 – 312 of 312
Linuxium said...

I'd prefer if you use my kernel upgrade script to install the kernel.

Linuxium said...

Many thanks. I'll look into this.

Linuxium said...

I 'read' it in an email conversation I had with Pierre-Louis Bossart. Github is your friend.

Unknown said...

I would use it but for some reason last time I tried your patch it did not make HDMI sound work. So, I decided to go my own .config. As I wrote, the thing was in SUPPORT_HDMI=y which is not turned on by default.

Caitlyn Martin said...

Conexant released the cx2072x codec (see: http://mailman.alsa-project.org/pipermail/alsa-devel/2016-December/115899.html and http://mailman.alsa-project.org/pipermail/alsa-devel/2016-December/115900.html) and there is now a patch on github based on an earlier (preliminary) version of the code: https://github.com/openlab-aux/vuizvui/blob/master/modules/hardware/t100ha/sound.patch

Once again, thank you for your hard work. I think, once I have sound working, you'll be getting a contribution from me to continue your work. I can't afford a lot but clearly I need to send something.

Linuxium said...

SUPPORT_HDMI=y is set in config.flavour.linuxium which is used to build my kernels. Can you try my 4.9.0-11.12 kernel and confirm if HDMI audio works? Better still try my 17.04 Alpha 131216 ISO to check if audio, wifi and bt work.

Linuxium said...

Thanks. I will take a look at this.

Linuxium said...

Update: This page refers to earlier work and my latest ISOs and kernel upgrade scripts can be downloaded from https://goo.gl/6tNY4Z. See recent posts for latest updates.

sanjeev said...

Hi All, I am using linuxium 14.04 with nomodeset boot parameter for my intel z3735f baytrail tablet. When my tablet boots, the display is always in portrait mode. I need to rotate it to landscape mode. I tried to rotate the screen with xrandr but didn't work. Is there any way to fix it, I am struggling with this issue. Any help will be appreciated.

Unknown said...

Thanks for the tip.

I installed ubuntu16.10 and upgraded to 4.9.0-11-linuxium on Tronsmart Ara X5.

After install the RT5640 UCM, now I can get sound out of headphone jack. Very awesome.

Thanks for your works.

One more thing, how can I find and get bluetooth firmware to install to this Tronsmart mini PC.

Unknown said...

Hail and Well Met, Linuxium and fellow fans!

I just loaded your Ubuntu Zesty kernel (4.9.0-11-linuxium #12+IntelAtom SMP Tue Dec 20 17:17:20 AEDT 2016 x86_64 x86_64 x86_64 GNU/Linux) onto a Toshiba Satellite c55 laptop running the Bay Trail/Atom CPU. For the first time ever, I have headphone support under Linux/POSIX! I commend you on your fine work!

Just a short note to let you know that it isn't just tablets you're helping out here!

And a happy and blessed holiday to you all!

:-)

Victor said...

great! The sound works now.

I have a different problem though - very frequent system lockups. Only forced reboot gets me out.

wojoti said...

I've found that probably on kernel 3.4 there was this driver and also that this device is working well on android. maybe you can somehow pull out drivers from android kernel and get it working on yours?
also,I've found something here: https://gitlab.com/SergK/icn85xx/tree/master and http://everest-semi.com/pdf/ES8316%20PB.pdf
please,check it out

Iurie Malai said...
This comment has been removed by the author.
Iurie Malai said...
This comment has been removed by the author.
Unknown said...

Hi,

Installing ubuntu-16.10-desktop-linuxium and Ubuntu 17.04 Alpha on Wintel Z8300 pro cx-w8 stops with this error:

i8042: Can't read CTR while initializing i8042

However installing ubuntu-16.04.1-desktop-linuxium went good and got sound through HDMI.

this is the URL to dmesg on Pastebin

http://pastebin.com/4N2hufxc

Anonymous said...

I did an standard installation of Ubuntu 16.04 in Meegopad T02 and HP Stream 7.

After patching with your kernel 4.9 and installing Wifi, Bluetooth and audio files (UCM) everything is working.

Thank you very much Ian :-)

Unknown said...

Hello, I have Umax VisionBook 10wi PRO with intel x5 8350, 2GB RAM and 32GB SSD.
I try all kernels from this page, on my tablet don't correctly boot.
Booting ISO from https://galliumos.org/, but there is not OK for me.
I try kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/2017-01-07/, boot is OK, but where I try compile anything, segmentation fail.
I use BTRFS and testing many distros on separate subvolumes (GalliumOS,Ubuntu,Gentoo)
Sorry, my English is poor.

Solid Snake said...

Hi Ian, is it possible to have fedora core 25 iso patched by you ?
And of course the porting of your script about kernel update on the same distro ?
I usually use this distro to teaching a course about "linux beginners".
Thanks for your time & answer, Nicola.

Solid Snake said...

Here I am Ian, with my dmesg:
http://pastebin.com/a5p3n0C1
The netbook is "jumper ezbook2 new model":
jumper.com.cn/en/products.php?id=49&bid=10
All is fine using ubuntu 17.04 170101 except the audio.
:-(
Thanks for your time and suggests,
Nicola

Linuxium said...


The purpose of these posts is to help those who either don't have the time, resources, knowledge or inclination to compile binaries. As such they are not intended as guides or howtos on building binaries.

Unknown said...

Thats is strange. A people`s need is obvious.

Linuxium said...

I have set the scope of this blog based on what I can commit to in terms of maintaining the content and responding to comments. I welcome comments regarding my work however I reserve the right to moderate comments to ensure they are constructive and relevant.

Henri Koivuneva said...

Hi! Great stuff, thank you! Over at Android-x86 forums we're trying to get these devices to work too, but can't use this script as the Android kernel requires them to be applied separately and we can't use the regular Linux kernel with it. Do you have the patches and other fixes available in .patch files that I could apply while building 4.4, 4.8 and 4.10 kernels? I guess they need to be separate instead of in one big patch. I'll investigate the good-sounding scripts you've made and see if I can use their contents to get them to Android-x86!

Do you know if they will be mainlined for 4.10, 4.11 or 4.12 or even later?

Anthony said...

I successfully got my Yuntab T2 tablet booting up with the Ubuntu 16.10 image and 4.8.0-32 kernel but my touchscreen isn't working at all. I can't seem to find it listed via xinput either. My dmesg can be found at http://paste.ubuntu.com/23830515/. Is there anything I can try to get this working?

Annabel said...

Hi and thanks for the great work.

I have purchased this:

http://www.ebuyer.com/698859-hannspree-pc-on-a-stick-snnpdi1b


My plan is (was?) to dd one of your images to a microSD card, boot from the microSD card and use a wireless keyboard and mouse through the single USB port to install the OS to the eMMC. Remove the microSD and then boot from the eMMC

I have a bunch of VPS's so I am no stranger to the CLI, but I wondered which image / installation methodology you'd suggest I use? 16.04 stands out purely because LTS, but I am most interested in compatibility and stability (as I assume most people are).

Use case is primarily Kodi media centre accessing my NAS over wifi. However i need to quit to desktop and have a fully fledged browser sometimes too.


Thanks, and keep up the great work :)

Unknown said...
This comment has been removed by a blog administrator.
Unknown said...

https://github.com/blmvxer/Baytrail-Linux-Tools/tree/master

Unknown said...

I have installed both 16.10 and 17.04 alpha on my nextbook 10 inch tablet with a keyboard

16.10
wifi worked out of the box\
audio did not work even after installing the RT5640 ZIP files.
rotation was messed up initially but i adjusted it.

17.04
audio worked out of the box!
wifi works
havent tested out bluetooth.
same fix for rotation (go to displays and did a clockwise rotate)

The main pending item to fix would be the battery status.

many thanks again for this effort.

Unknown said...

Hi - Is bluetooth working in Ubuntu 16.10 from Linuxium? I am on 16.04 with his latest 4.4 kernel (4.4.0-53.74) but I dont see any wifi/bluetooth devices with lshw/lsubs/lspci....

Unknown said...

Please elaborate on how you did that....pleaseeee :)

Urko M. said...

Ok, I'm back for some debugging, and with 4.80-32 kernel I get this error that could explain why I have no sound:
had: snd_intelhad_open: HDMI cable plugged-out
A quick Google brings up people with the problem using LibreElec.

Urko M. said...

I was able to get it to work by following the UCM instructions in the post, but I copied all the subfolders, not just the folder mentioned in the instructions.
How can I check which one is being used? dmesg and syslog don't give any hints that I can see.
Thanks.

Unknown said...

Hi,

I've updated my 16.04 system with the latest 4.9.0-11-linuxium kernel.
I'm missing support for the Broadcom 43341 device (see cut from dmesg below) - how do I add that?
I've been searching around and from the firmware git it should be supported...


[ 4192.294162] brcmfmac: brcmf_fw_map_chip_to_name: Unknown chipid 43341 [2]
[ 4193.322962] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 4194.335143] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 4194.365841] brcmfmac: brcmf_ops_sdio_probe: F2 error, probe failed -19...


/Thanks

Unknown said...

I guess this fix is missing?
https://github.com/torvalds/linux/commit/dc630dc5c753ccba97ce174f9c2894f802f9bd93

Anonymous said...

Install Ubuntu 16.04 LTS

- Disable secure boot
- Copy bootia32.efi bit to pendrive created with Rufus
- Install with a working internet connection

Note: In HP Stream 7 the touchscreen and battery indicator work out of the box.

Avoid Hanging after boot

Include intel_idle.max_cstate=1 in /etc/default/grub

sudo sed -i 's/\(GRUB_CMDLINE_LINUX=\)""/\1"ipv6.disable=1 intel_idle.max_cstate=1"/' /etc/default/grub

sudo update-grub

Include in /etc/rc.local

echo on > /sys/class/mmc_host/mmc0/device/power/control
echo on > /sys/class/mmc_host/mmc1/device/power/control
echo on > /sys/class/mmc_host/mmc2/device/power/control

Screen rotation in HP Stream 7

xrandr -o right
xinput set-prop 'Goodix Capacitive TouchScreen' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1

Install modified Linuxium Kernel to support Bluetooth, Audio, etc.

sudo ./linuxium-install-zesty-kernel-4.9.0-11-linuxium.sh

Install Bluetooth

sudo apt-get update
sudo apt-get install git
git clone https://github.com/lwfinger/rtl8723bs_bt
cd rtl8723bs_bt
make
sudo make install
sudo ~/rtl8723bs_bt/start_bt.sh

Startup

Include in /etc/rc.local

/home/YOUR HOME/rtl8723bs_bt/rtk_hciattach -n -s 115200 /dev/ttyS4 rtk_h5 > /home/YOUR HOME/rtl8723bs_bt/hciattach.txt 2>&1 &

Wifi

git clone https://github.com/hadess/rtl8723bs.git
cd rtl8723bs

--- Edit the /YOUR HOME/rtl8723bs/os_dep/sdio_intf.c file, choose 0xB723 (Meego Pad T02) or 0x0523 (HP Stream 7)

cd ..
make
sudo make install
sudo depmod -a
sudo modprobe r8723bs

Audio

git clone https://github.com/plbossart/UCM.git
cd UCM
cd bytcr-rt5640
sudo cp -rf ../bytcr-rt5640 /usr/share/alsa/ucm
sudo alsa force-reload

Anonymous said...

I'm sorry Ian, I didn't know the scope of your blog.

I built your kernel 4.9 in Ubuntu 32bits (generic and lowlatency flavour), it works almost perfect and it use less memory.

I think Ubuntu Kernel 4.9 introduce a bug in touchscreen Goodix driver, because sometimes the touch is less responsive. On Screen keyboard repeat keys, etc. It's not your fault, because I installed the kernel from Ubuntu and it do the same.

Thank you very much :-)

Linuxium said...

Does it work with 17.04?

Linuxium said...

You should be okay with 16.04.1 with your device or 16.04.2 which I am working on as a forward path. I would boot/install through a LiveUSB using a USB hub initially as I don't know how good the Hanspree BIOS is.

Linuxium said...

As it contained an email address.

Linuxium said...

I'm looking at the battery issue even though I don't have a tablet/PC to test on!

Linuxium said...

Device? BT may not work due too dodgy BIOS typically found on cheap clone devices.

Linuxium said...

The patch is not in my released kernels but is in my development version which I am currently working on.

Unknown said...

It's the Broadcom 43341, so I guess the fix below is needed...

Anonymous said...

I'd also like to know the status of the HP Envy Note 8 running 16.04 or 16.10 as of Jan 25th 2017.

Anthony said...
This comment has been removed by the author.
Anthony said...

I got something slightly different with 17.04. Touchscreen still doesn't work but I now have an item "HID 1017:1006" in my xinput which wasn't there with 16.10 nor 16.04.

xinput: http://paste.ubuntu.com/23871762
dmesg: http://paste.ubuntu.com/23871748

Anonymous said...

I had this too on a Surface Pro Ubuntu MATE 17.04 which has had it share of wifi troubles after leaving 16.04. I fixed mine using WICD for the wireless but kept the default wired connections programs. Might worth a try? https://help.ubuntu.com/community/WICD

Unknown said...

That sounds great! When is the ETA? :)

Tom Stevens said...

Thank you for zesty-desktop-alpha-131216-linuxium.iso. I installed it yesterday and it works on ASUS T100TAF-BING. The overall status is similar though not identical to those outlined for the Debian installation notes listed here: https://wiki.debian.org/InstallingDebianOn/Asus/T100TA.
I did get the Wifi working. This is done by adding "bcrm" folder containing brcmfmac43340-sdio.bin & brcmfmac43340-sdio.txt in /lib/firmware

The main issues I would like to find help with are:
/!\ Close Lid Freezes
/!\ Screen backlight (always at full brightness)
/!\ Touchpad has no scrolling.
/!\ Screen rotation
/!\ Camera
/!\ Hibernation



http://paste.ubuntu.com/23890062/


Tom Stevens said...
This comment has been removed by the author.
Anonymous said...

I'm attempting to install Ubuntu Gnome 16.10 on an HP Steam 7, but I would really need at 32bit version. I have your 64bit version installed, and everything works. I just don't understand what I would need to do to a standard 32bit ISO to get it to work the same. Thanks in advance.

Linuxium said...

See my latest post (Breaking news: Bleeding edge Ubuntu 4.10.0-5.7 kernel with 17.04 pseudo Alpha 2 ISO - http://linuxiumcomau.blogspot.com.au/2017/01/bleeding-edge-ubuntu-4100-57-kernel.html).

Linuxium said...

Wifi now works automatically with my latest ISO: Ubuntu 17.04 pseudo Alpha 2.

Linuxium said...

Most Linux distros are dropping 32-bit desktop releases so perhaps you should revist why you need a 32-bit version?

Tom Stevens said...

Very nice. I look forward to continued progress.

Anonymous said...

My only reasoning is that it only has 1GB of Ram. The 64but versions get me by, but I was just wondering if it was possible.

Unknown said...

Hello! would you share the step by step process to how you install this in your ideapad 100s 11IBY!? I have the same laptop, and im scared to try the tutorial.. I might brick it.

camper-tenis y tecnología viajando en camper said...

i have Lenovo ideapad 100s-11iby and i am try see youtube or videos mp4 and is not posible, wifi yes with zesty-lubuntu-desktop-alpha-2-linuxium, can you help me please, thank you. with 4.9.0-8.9 i see video in youtube without sound i have installed the RT5640 ALSA Use Case Manager (UCM) files

Sugata bhar said...

I have an Intel Atom Z3735G(iball Slide i701 tablet). I want to load ubuntu in usb.

I actually installed the 17.04 alpha linuxium build in my 64GB usb in a my samsung laptop and when I plugged into iball i701 it went till ubuntu splash(after fsck /dev/sdaX from initramfs) but probably have wrong UUIDs

I was not able to load the installation usb in iball neither the boot repair cd.
Even recovery mode I could access and pressed grub bootloader update button

Even I went till root@sbhar# prompt.

How to proceed further?

Unknown said...

Hello Ian,
Is it possible to install your ubuntu build to a tablet with atom Moorefield processor?

Unknown said...

@ShadowK What file did you take persistent out of to get it to work?

camper-tenis y tecnología viajando en camper said...

i have lenovo 100s 11iby with Atom Z3735F and i have not sound with linuxium , can you tell me please ,help

Unknown said...

Hi ! Why every links are dead ?
I'm trying to install linux on my Iwork 10 ultimate (chinese tablet with cherry trail processeur). Work fine but no wifi and touchscreen is inverted.
Need a solution. :(

Tim Gray said...

I am having trouble getting your iso's to load on a Intel Compute Stick the 1gig/8gig ubuntu model. I used Rufus, selected DD and the image and when I press F10 to choose the USB stick I see Lubuntu start and then it suddenly loads the built in UBUNTU. How can I force it to stop loading the built in Ubuntu and finish loading from the USB?

Linuxium said...

The links are dead as they have been superseded by my latest ISOs. Look at my most recent posts for new ISOs that may help you.

Linuxium said...

I've not experienced this. As the BIOS can be set with a 64-bit bootloader I suggest you try an official ISO using Rufus and see if that works. If so, I'd then recommend respining the official ISO with the current mainline kernel (see my latest post) and additionally running the wifi scripts.

CosmoTopper said...

Does anyone know if virtual box a) runs reasonably well on the 4GB mini under Windows? b) eliminates some or all of the HW compatibility problems you're working so hard to manage? (Thank you for your great service addressing this critical need !;)

Unknown said...

Hi thanks for all the work you have done on this!

my question is pretty straight forward - when I boot your ISO's they eventually get me to a 'recovery 14.04' screen and I cannot seem to load or run 'live' the images.

here is a snippet of the pertanant info:
BIOS Information
Vendor: Intel Corp.
Version: FCBYT10H.86A.0035.2017.0120.1829
System Information
Manufacturer: Intel Corporation
Product Name: STCK1A8LFC
Version: H79550-100
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

dmesg - has no errors

Disk /dev/mmcblk0: 7650 MB, 7650410496 bytes
255 heads, 63 sectors/track, 930 cylinders, total 14942208 sectors

these are the ISO's I have tried - it has happened on all of them even the 'official' lubuntu one



-rw-rw-r--. 1 kent kent 989855744 Apr 13 22:16 lubuntu-16.04.2-desktop-linuxium.iso
-rw-rw-r--. 1 kent kent 1026555904 Apr 16 17:17 lubuntu-17.04-beta1-desktop-linuxium.iso
-rw-rw-r--. 1 kent kent 1413529600 Apr 16 17:26 xubuntu-17.04-beta1-desktop-linuxium.iso
-rw-rw-r--. 1 kent kent 1367670784 Apr 16 17:27 xubuntu-16.04.2-desktop-linuxium.iso
-rw-rw-r--. 1 kent kent 921256 Apr 16 22:06 xorriso-1.3.6-1.el7.rf.x86_64.rpm
-rw-rw-r--. 1 kent kent 956301312 Apr 16 22:34 lubuntu-17.04-desktop-amd64.iso


the splash screen will start (IE Lubuntu ....) however I know something is weird when unitiy shows up on the screen

sometimes it will give me the option to restore sometimes it is all wonky and won't let me click anything

OF NOTE: FCBYT10H.86A.0035.2017.0120.1829 is the BIOS I am running

I have 'dd'd' my mmcblk0 to a 8G thumbdrive - so I have that in my back pocket for a restore (I think)

the command on my CentOS box I have been using to make the usb stick is dd if=your.iso of=/dev/sdb bs=4M

also I have done a apt full-upgrade (I don't know if that means that it will take me to 16 or not) and that did seem to work however the lsb_release still shows as above.

I feel like I am missing something critical ..... some peice of info that you will need to tell me what I am doing wrong.

OH the BIOs is set to Linux (ubuntu 14 blah blah blah)

TIA
/kent

Unknown said...

Hi Ian,

suposidly this is the thread I posted on yesterday - today I tried to boot 16.04 linuxium xubuntu and saved off the dmesg.....

to save some reading:
[ 13.236617] WARNING: CPU: 3 PID: 192 at /usr/src/development/linuxium/ubuntu/kernel/Ubuntu-lts-4.10.0-10.12~16.04.2/Ubuntu-lts-4.10.0-10.12~16.04.2.patched/kernel/workqueue.c:2419 check_flush_dependency+0x12d/0x150
[ 13.241275] workqueue: PF_MEMALLOC task 192(mmcqd/1) is flushing !WQ_MEM_RECLAIM events:pm_qos_work_fn
[ 13.241276] Modules linked in: aufs nls_iso8859_1 dm_mirror dm_region_hash dm_log uas usb_storage hid_logitech_hidpp hid_logitech_dj usbhid mmc_block i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm fjes video i2c_hid hid sdhci_acpi sdhci lz4 lz4_compress
[ 13.255843] CPU: 3 PID: 192 Comm: mmcqd/1 Not tainted 4.10.0-10-linuxium #12~16.04.2+IntelAtom

https://drive.google.com/file/d/0BxAeoeeDc7EnZUFGTC1EU211S1U/view?usp=sharing

Linuxium said...

I've never seen this issue before but some else reported something similar.

I would start by reformating your eMMC and removing all entries from NVRAM. Then respin an ISO using my latest script from http://linuxiumcomau.blogspot.com.au/2017/04/creating-personalized-ubuntu-mint-and.html with persistence so you can record any errors through screenshots and cut'n'paste if the same issue arises during the install.

Hopefully with a clean disk and nothing set up in NVRAM the installation will go smoothly.

thazlett said...

Have the download links expired or something? The red bits of text do not appear to be a hyperlinks.

Linuxium said...

This is an old post that has been superseded by my later work as stated at the top of the post.

Unknown said...

I try to find the download for Intel Compute Stick. It seems like the links have all been superceded. Where is the downloadable file ?

Linuxium said...

Use my 'isorespin.sh' script from the most recent post and respin a standard Ubuntu desktop amd64 ISO (e.g. 16.04.2 or 17.04) and select the option to upgrade the kernel. Write the resultant ISO to USB and boot from it. If you need the RTL8723BS driver for wifi etc (depending on which model Intel Compute Stick you have) then as it was included in the v4.11 kernel take a look at http://linuxiumcomau.blogspot.com.au/2017/05/mainline-kernel-v412-rc2-now-with.html to see what options you have.

Unknown said...

Wow what a great job - nearly worked for me, but failed with:
"the grub-efi-ia32 package failed to install into /target/. Without the GRUB boot loader the installed system will not boot".
isorespin-5.01 on lubuntu-17.04-desktop-amd64.ido.
Computer is Ideapad 100S-11IBY atom cpu.
Must be an easy solution?
David Dartnall darts@dialix.com.au

Linuxium said...

You get the GRUB error because you were not connected to the internet and it cannot look for the package in its repositories as it cannot find the package locally. Simply installing whilst connected to the internet will fix this issue.

But now you have the error if you really don't want to reinstall (which is the best solution giving you a proper clean installation) then you can try my 'linuxium-install-bootloader.sh' script which will install the required 32-bit GRUB packages.

It still requires an internet connection so first boot from the LiveUSB and download it from https://goo.gl/dpyLHL.

First check for any mounted partitions and unmount them. Enter 'df -h' and look for any entries that start with '/dev/mmcblkXpY' and unmount them with 'sudo umount /dev/mmcblkXpY' where X is the block number for the internal eMMC (normally 1) and Y is the partition number which obviously varies for each partition.

Now make a note of the partition number that Ubuntu was installed on. It may be obvious from the previous 'df' and 'umount' commands otherwise run the command 'sudo blkid' and it should be the partition whose type is 'ext4'. Also make a note of the boot partition number which has type 'vfat' and is probably 1.

Then as the Ubuntu partition must first be mounted on '/target' and the boot partition mounted on '/target/boot/efi' enter the command 'sudo mkdir /target' followed by 'sudo mount /dev/mmcblkXpY /target' where X is the block number for the internal eMMC (e.g. 1) and Y is the installed Ubuntu partition. Follow this with 'sudo mount /dev/mmcblkXpY /target/boot/efi' which mounts the boot partition and where both X and Y are likely to be 1 but use the values based in the earlier discovery check.

Now run the script by entering './linuxium-install-bootloader.sh' and you'll see lots of messages flash by including those reporting issues/errors on uninstalling packages or about not finding partitions like /dev/mmcblk1boot1 or /dev/mmcblk1rpmb. It should end however with a message saying it is complete and now reboot which is what to do next and hopefully everything will have worked.

Anonymous said...
This comment has been removed by a blog administrator.
Linuxium said...

Comments with advertising links are not allowed.

Unknown said...

Hello Linuxium,

Firstly, thanks for your great work ! But why isn't possible to download your ISO on this page please (superseded links) ?

Linuxium said...

As it says at the top of the post: This work is superseded by my 'isorespin.sh' script which can respin an official ISO suitable for use on Intel Atom devices.

Unknown said...

Please provide a download link of at least lubuntu iso for baytrail. I don't have a Linux machine to prepare the iso using the bash script you have provided. It will be a great help.

A million Thanks In Advance!

Linuxium said...

You can run the script on Windows in a VM ... see 'Running the script on Windows' in the documentation (https://linuxiumcomau.blogspot.com.au/2017/06/customizing-ubuntu-isos-documentation.html).

Unknown said...

i can`n download any, can`t open none of the links, why?

Linuxium said...

As it says at the top: This work is superseded by my 'isorespin.sh' script which can respin an official ISO suitable for use on Intel Atom devices. Take a look at 'https://linuxiumcomau.blogspot.com.au/2017/06/customizing-ubuntu-isos-documentation.html'.

Unknown said...

no consigo que el script funcione en mi ordenador, intente con varios linux y nada funciona, alguien me podria dar el enlace para alguna de las ISO originales que creo @Linuxium

Unknown said...

I can not get the script to work on my computer, try several linux and nothing works, someone could give me the link to some of the original ISOs that I create @Linuxium

Linuxium said...

The original ISOs should not be used in light of the Meltdown/Spectre vulnerabilities and Intel SPI driver ('Lenovo') BIOS issues.

Instead you should use either official ISOs or respin an official ISO using my 'isorespin.sh' script.

I've posted comprehensive documentation on how to use the script (see 'http://linuxiumcomau.blogspot.com.au/2017/06/customizing-ubuntu-isos-documentation.html') and you can also post issues (see 'Reporting issues' in the documentation) and I'll try and help where possible.

Unknown said...
This comment has been removed by a blog administrator.
Unknown said...

Linuxium .. I know I am bit late to discover your research may I get access to the files.. because whenever I open you Google drive Link it says to request access and wait., You will get notified about access through email.. it's been 2 months you have not granted me access to download those files

Unknown said...

Can you provide me download links for atom based device .. with updated kernel and my device is like mini laptop with keyboard and touch pad ... I cannot find links over here

Linuxium said...

@Unknown: As it says at the top these ISOs are superseded by my 'isorespin.sh' script which can respin an official ISO suitable for use on Intel Atom, Apollo and Gemini Lake devices. Take a look at 'https://linuxiumcomau.blogspot.com.au/2017/06/customizing-ubuntu-isos-documentation.html'.

Linuxium said...

@Barry 3: Have a look at my latest post with example ISOs here: http://linuxiumcomau.blogspot.com.au/2018/04/fourth-look-at-ubuntu-1804-lts-bionic.html

Tom Stevens said...

Yes, it's a good thing the oder edition is no longer available. It wasn't able to manage the battery. In my case having the device on consumed more power than it was being fed when plugged in. I kept the screen as dim as possible, but eventually my battery couldn't provide enough juice to turn on the device. It's now completely dead.
(BTW, I take full responsibility for experimenting on my device)

Linuxium said...

A rather sad anecdote.

editor said...

But to my knowledge, there doesn't seem to be a way to do this. I've looked around on forums and the most anyone talks about movie maker windows where you can find messages the user hasn't read. How then can the default app and third-party (Handcent for example) display the same texts? They don't keep their own database because Handcent will display all texts upon fresh install, At least to me.

Unknown said...

I've got an Insignia NS-P08W7100-C that i am trying to install Ubuntu 180.4 on. how can i get the touchscreen to work?

It uses a KMDF HID Minidriver for Touch I2C Device for the touchscreen.

Linuxium said...

There are some touchpad patches coming soon upstream so hopefully it won't be too long before it is fixed in mainline kernel.

Linuxium said...

I don't understand what this issue is. What does "there doesn't seem to be a way to do this" refer to?

Unknown said...

isoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisopleaseisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoisoiso

Linuxium said...

What's the magic word?

SpeedMonkey said...

any chance images for the intel compute sticks are still available? or do native linux distributions work fine these days? Asking as i'm in line to win an auction to grab one of these (1st gen 1GB/8GB Ubuntu). Hoping to install something a little more friendly on the hardware.

Linuxium said...

You might have to respin the latest Ubuntu ISO with a newer kernel to get BT working.

Unknown said...

Your work is a pure wonder ! Thanks a lot !

EuReKa-LoS said...

Sorry for the long delay this error was caused by defective OTB wire

EuReKa-LoS said...

Sorry for the long delay, i haven't the tablet during long time.
Now he's back and this issue was caused by defective OTB cable :3

NSTECH said...

Thanks did help me

EuReKa-LoS said...

I try with following iso:
linuxium-atom-ubuntu-19.04-desktop-amd64
linuxium-atom-ubuntu-18.04.2-desktop-amd64

And everytime i need to change boot comand in grub in "nomodeset" to had display working.

I've post on ubuntu fr forum without any fix and it's very strange because every tablet seem to work fine :/

Linuxium said...

The only suggestion I have is to try the latest kernel from https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D abd see if it helps.

Ulises said...

Man, i wan to download it, but i can realize that, all links are broken. Can someone help me please?

Linuxium said...

Use one of the ISOs posted in https://linuxiumcomau.blogspot.com/search/label/ISOs depending on your CPU.

Egzoset said...

Thank you although it's late. Your bootia32.efi contribution is my actual key to 64 bits alternate OS exploration on a Cherry Trail x5-Z8300, some "Atom" transformer-laptop which Linuxium-Atom finally revalorized without any further involvement than to use the familiar GrUB2 menu... But if i may submit 1 suggestion, it's to consider some sort of miniature text-only KExec-based utility capable of enabling my internal u-SD reader, as it doesn't currently exist until the OS defined it: e.g. a challenging chicken 'n egg dilemma but not impossible to solve IMO. In any case i got most pleased that you continued your project this far, as i can now enjoy XUbuntu in "Live" mode, even perform an installation to that u-SB drive of a 128 GB max capacity... Well, at least there's plenty of renewed hope that this tablet can become a lot more useful than it is now. 5 years is a long time for consumer products as that, congratulations for making Linuxium so green! Good day, have fun!!

«Oldest ‹Older   201 – 312 of 312   Newer› Newest»

Post a Comment

All comments now moderated so that spam can be deleted.