Thursday, February 22, 2018

Interim Ubuntu 17 04 ISO with mainline v4 12 rc4 kernel RTL8723BS Wifi BT firmware UCM audio files and 32 bit bootloader support

Posted by atiek on February 22, 2018

Interim Ubuntu 17 04 ISO with mainline v4 12 rc4 kernel RTL8723BS Wifi BT firmware UCM audio files and 32 bit bootloader support


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


Whilst you can respin an official ISO using my isorespin.sh script to get the latest Intel Atom functionality like HDMI audio, headphones/speaker support, RTL8723BS wifi and bluetooth support and make an ISO that can boot on the 32-bit bootloader that is typically found in Z3735F SOC based devices, as Ive had to build one for my own testing I thought Id share it.

The respin logfile shows how Ive build it:

Script /usr/local/bin/isorespin.sh called with -i ubuntu-17.04-desktop-amd64.iso -u -l rtl8723bs_4.12.0_amd64.deb -f linuxium-install-UCM-files.sh -f wrapper-linuxium-install-UCM-files.sh -c wrapper-linuxium-install-UCM-files.sh ...
Work directory /home/linuxium/v4.12-rc4 used ...
ISO /home/linuxium/v4.12-rc4/ubuntu-17.04-desktop-amd64.iso respun ...
Bootloader GRUB added ...
Kernel updated with mainline kernel version 4.12.0-041200rc4-generic ...
Local package /home/linuxium/v4.12-rc4/rtl8723bs_4.12.0_amd64.deb added ...
File /home/linuxium/v4.12-rc4/linuxium-install-UCM-files.sh added ...
File /home/linuxium/v4.12-rc4/wrapper-linuxium-install-UCM-files.sh added ...
Command run ...
# wrapper-linuxium-install-UCM-files.sh
./linuxium-install-UCM-files.sh: Extracting UCM files ...
./linuxium-install-UCM-files.sh: Installing UCM files ...
./linuxium-install-UCM-files.sh: Reloading UCM driver ...
./linuxium-install-UCM-files.sh: Installation of UCM finished 
Respun ISO created as linuxium-v4.12-rc4-ubuntu-17.04-desktop-amd64.iso in /home/linuxium/v4.12-rc4.


Ive used the Ubuntu 17.04 ISO ubuntu-17.04-desktop-amd64.iso and Ive updated the kernel with the v4.12-rc4 mainline build and added my wifi/bt firmware package rtl8723bs_4.12.0_amd64.deb and my UCM script linuxium-install-UCM-files.sh by running a wrapper-linuxium-install-UCM-files.sh script that simply contains:

#!/bin/bash

echo "127.0.1.1 LINUXIUMONE" > /etc/hosts
cd /usr/local/bin
./linuxium-install-UCM-files.sh
sed -i $d /etc/hosts
rm -f linuxium-install-UCM-files.sh wrapper-linuxium-install-UCM-files.sh

The respun ISO can be downloaded from linuxium-v4.12-rc4-ubuntu-17.04-desktop-amd64.iso and written to a USB using dd.

On booting if bluetooth fails to start automatically then it can be started manually with the command:

sudo systemctl start rtl8723bsbt.service

If installing the ISO then make sure you are connected to the internet for the installation to complete successfully otherwise you will get an error like "The grub-efi-ia32 package failed to install". If you encounter this error and dont want to reinstall 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 and also that the target Linux partition is first mounted on /target with the target boot partition mounted on /target/boot/efi before running.

Finally when discussing an issue please use pastebininit to post a URL to a copy of the output from dmesg (which is basically a log of kernel messages). To use the pastebinit command (see https://help.ubuntu.com/community/Pastebinit) first install the command by entering sudo apt install pastebinit and then to share the kernel messages log enter dmesg | pastebinit. This will paste a copy of the output from dmesg to Ubuntus Pastebin and provide an URL to access it. Remember to only post the URL in a comment below with a desciption of the issue and the name of the device being used.

If you find this useful then please donate using the following link http://goo.gl/nXWSGf as everything helps with development costs.

visit link download