Wednesday, 14 June 2017

Interim Ubuntu 17.04 ISO with mainline v4.12-rc5 kernel, RTL8723BS Wifi/BT firmware, UCM audio files and full 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.

Latest 'linuxium-v4.12-rc5-ubuntu-17.04-desktop-amd64.iso' kernel respun using v6.03.1 of 'isorespin.sh' with log file of:

Script '/usr/local/bin/isorespin.sh' called with '-i /home/linuxium/isorespin/ubuntu-17.04-desktop-amd64.iso -u -l "/home/linuxium/isorespin/rtl8723bs_4.12.0_amd64.deb" -f "/home/linuxium/isorespin/linuxium-install-UCM-files.sh" -f "/home/linuxium/isorespin/wrapper-linuxium-install-UCM-files.sh" -c "wrapper-linuxium-install-UCM-files.sh"' ...
Work directory '/home/linuxium/isorespin' used ...
ISO '/home/linuxium/isorespin/ubuntu-17.04-desktop-amd64.iso' respun ...
Bootloader 'GRUB' added ...
Kernel updated with mainline kernel version '4.12.0-041200rc5-generic' ...
Local package '/home/linuxium/isorespin/rtl8723bs_4.12.0_amd64.deb' added ...
File '/home/linuxium/isorespin/linuxium-install-UCM-files.sh' added ...
File '/home/linuxium/isorespin/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-rc5-ubuntu-17.04-desktop-amd64.iso' in '/home/linuxium/isorespin'.

which specifically supports an installation on 32-bit devices when not connected to the internet.

I've used the Ubuntu 17.04 ISO 'ubuntu-17.04-desktop-amd64.iso' and I've updated the kernel with the 'v4.12-rc5 mainline build' and added my wifi/bt firmware package 'rtl8723bs_4.12.0_amd64.deb' and my UCM script 'linuxium-install-UCM-files.sh' which was installed by running the 'wrapper-linuxium-install-UCM-files.sh'.

The respun ISO can be downloaded from 'linuxium-v4.12-rc5-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

See my earlier posts for further details about the scripts and how to use them or wait for my new documentation which will be posted soon.

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

44 comments:

  1. cant wait for new documentation to be release
    budgie builds a must :) for 1gig ram :)

    ReplyDelete
    Replies
    1. Posted! Please see 'http://linuxiumcomau.blogspot.com.au/2017/06/customizing-ubuntu-isos-documentation.html'.

      Delete
  2. T100HA here using a broadcom BCM43341B0 (or so I think) and a chtrt5645. I mention those because I therefore need the broadcom and UCM scripts to get my system up and running, no matter the iso used. More importantly, it is the *payload* stored on those scripts, not the stuff they download, that are the key elements.

    Having said that, I am still using the original linuxium iso I started with from March because that one does start Bluetooth. All the iso's I have run from a USB stick as a live image will not run Bluetooth even when I run the broadcom script. Wireless comes up immediately upon running the broadcom script, but not Bluetooth.

    My question is, is there a difference between running as a live image and running as tru disk image for Bluetooth? Is a reboot necessary for it to take hold? Just curious.

    ReplyDelete
    Replies
    1. Can you post a 'dmesg' immediately taken after booting and trying to restart bluetooth with 'systemctl' and I'll take a look?

      Delete
  3. Works fine on my Chuwi LapBook wifi and bluetooth, but not the audio. The audio only works through bluetooth :(
    Thanks for your great work!

    ReplyDelete
  4. I have used your customised ISO to run Linux on Miniz Neo Z284-4 and it is working quite well including audio over HDMI. The only issue is that it never resumes after being suspended. Do you have any pointers to what I should be looking for say in log files etc to resolve this issue ?

    Thanks for your work.

    ReplyDelete
    Replies
    1. How are you suspending the device so I can test exactly the same way?

      Delete
    2. I use :-
      sudo systemctl suspend

      from a remote ssh shell.

      The Minix is connected to a TV.

      Delete
  5. Unfortunately all your recent custom isos don't boot on 64-bit loader.
    How can I disable your "full 32-bit bootloader support" application while running 'isorespin.sh'?
    Thanks

    ReplyDelete
    Replies
    1. That is interesting as they boot on my test devices. Are you respinning your own ISOs and if so what command do you use or are you downloading the ISO from the above link? Either way, what device are you using so I can investigate further?

      Delete
    2. Sorry, recent check has shown it's my device issue.

      Delete
  6. Unfortunately I have not been able to boot any of the recent respun ISO's you posted. I thought the new boot manager and the >4.10 kernel would do the trick for me. Am I wrong to assume that these image should be working on an Intel N4200 device (Beelink AP42, to be specific)?

    ReplyDelete
    Replies
    1. I had to use dd on another Ubuntu box to get it to boot. UNetbootin did not work as it had in the past for some reason:
      dd if=/tmp/linuxium-v4.12-rc5-ubuntu-17.04-desktop-amd64.iso of=/dev/sdb bs=1MB

      Delete
    2. @Laurens: You need to respin the ISO yourself with the '-b' option of 'refind' to boot on an Beelink AP42. Maybe after v4.12 comes out I'll respin one and up load it if it helps?

      Delete
  7. Great Jobs,

    Mint LMDE iso with cinnamon in the tube ?
    We need an update tutorial to resin iso

    Best regards

    ReplyDelete
    Replies
    1. I'm in the process of writing a complete tutorial.

      Delete
  8. Hi there, i know it is a little bit offtopic but wondering how is it possible to deal with package update (apt-get update/upgrade). Can't even think of leaving not up to date machine .... because of security holes. Anyway, realy great work !

    ReplyDelete
    Replies
    1. Both 'apt-get update' and 'apt-get upgrade' work so I'm not sure I follow you question. Can you clarify with more detail?

      Delete
  9. Hi,

    I've installed linuxium-v4.12-rc5-ubuntu-17.04-desktop-amd64.iso in Asus T100HA but after installing it and rebooting, the system does not start at all, stopping at a unknown point (no key works for viewing any error).

    Thanks in advance

    ReplyDelete
    Replies
    1. Check that the NVRAM is not out of sync by booting from a LiveUSB and removing the Ubuntu entries using 'efibootmgr' and recreate just one for your installation.

      Delete
    2. Checked, and now I have another error, after starting, it appears the logo of ubuntu and the four points of "loading". Now it stops at the first point...

      Asus T100HA

      Thanks!

      Delete
    3. Cycle the power including physically disconnecting it then repeat the NVRAM deletions/recreation using 'efibootmgr', recycle power again and then try booting.

      Delete
  10. Thank you for making us possible. The installation of a system that does not.
    Some compagny doesn't want "linux" on
    there products. Best regards and good
    work for tutorial.

    ReplyDelete
  11. Hello

    On my tablet I have problem with bluetooth.
    Processor Intel Atom Z3735G
    WiFi Realtek RTL8723BS . Realtek 8723BS Bluetooth Driver
    Sound - Card-1 Intel HDMI/DP LPE Audio driver: HdmiLpeAudio Card-2 bytcr-RT5640
    WiFi and sound working. I tired start bluetooth manually “sudo systemctl start rtl8723bsbt.service”, without result.
    In device bluetooth adapters not found.

    sudo systemctl enable rtl8723bsbt.service
    [sudo] hasło użytkownika sn:
    Failed to enable unit: File /etc/systemd/system/multi-user.target.wants/rtl8723bsbt.service already exists.
    sn@sn-laptop:~$

    My log file: http://wklej.org/id/3204244/
    Sorry for my language, my English isn’t good.
    Thanks for help.

    ReplyDelete
    Replies
    1. The command is 'sudo systemctl start rtl8723bsbt.service' or 'sudo systemctl restart rtl8723bsbt.service' depending on its status (which can be found by entering 'sudo systemctl status rtl8723bsbt.service').

      Delete
    2. Ok, I will check after my work :)
      Thanks

      Delete
    3. Still not working:
      rtl8723bsbt.service - RTL8723BS Bluetooth daemon
      Loaded: loaded (/lib/systemd/system/rtl8723bsbt.service; disabled; vendor preset: enabled)
      Active: failed (Result: exit-code) since Mon 2017-06-19 21:17:17 CEST; 1min 25s ago
      Process: 2899 ExecStart=/usr/sbin/rtk_hciattach -n -s 115200 ttyS4 rtk_h5 (code=exited, status=1/FAILURE)
      Process: 2897 ExecStartPre=/bin/bash -c grep -qm 1 r8723bs /proc/modules (code=exited, status=0/SUCCESS)
      Main PID: 2899 (code=exited, status=1/FAILURE)

      cze 19 21:17:16 sn-laptop rtk_hciattach[2899]: Realtek Bluetooth :3-wire sync pattern resend : 35, len: 8
      cze 19 21:17:16 sn-laptop rtk_hciattach[2899]: Realtek Bluetooth :3-wire sync pattern resend : 36, len: 8
      cze 19 21:17:16 sn-laptop rtk_hciattach[2899]: Realtek Bluetooth :3-wire sync pattern resend : 37, len: 8
      cze 19 21:17:17 sn-laptop rtk_hciattach[2899]: Realtek Bluetooth :3-wire sync pattern resend : 38, len: 8
      cze 19 21:17:17 sn-laptop rtk_hciattach[2899]: Realtek Bluetooth :3-wire sync pattern resend : 39, len: 8
      cze 19 21:17:17 sn-laptop rtk_hciattach[2899]: Realtek Bluetooth :3-wire sync pattern resend : 40, len: 8
      cze 19 21:17:17 sn-laptop rtk_hciattach[2899]: Realtek Bluetooth ERROR: H5 sync timed out
      cze 19 21:17:17 sn-laptop systemd[1]: rtl8723bsbt.service: Main process exited, code=exited, status=1/FAILURE
      cze 19 21:17:17 sn-laptop systemd[1]: rtl8723bsbt.service: Unit entered failed state.
      cze 19 21:17:17 sn-laptop systemd[1]: rtl8723bsbt.service: Failed with result 'exit-code'.

      Delete
    4. I do not have an immediate solution. On some devices bluetooth doesn't work and I think it is related to how the ACPI tables from the BIOS are parsed.

      Delete
  12. Helo! After instaling Ubuntu my screen after login goes black and randomly showing desktop, or back to login page. Any help?

    ReplyDelete
    Replies
    1. What device? Do you mean it boots and then the display manager randomly crashes?

      Delete
    2. http://www.devicespecifications.com/en/model-camera/80dd30de

      On live evrythings is ok, but when I boot from device after login i have black screen but device is still runing.

      Delete
    3. Please see the 'NVRAM sync issues' section of my documentation post 'http://linuxiumcomau.blogspot.com.au/2017/06/customizing-ubuntu-isos-documentation.html'.

      Delete
    4. NVRAM sync issues not working still black screen.
      Here are drivers for my device http://downloadfiles.goclever.com/Tablet/Drivers/Insignia_800_Win_3G.zip

      Delete
    5. When you first boot and see the GRUB menu (if you don't see the GRUB menu press and hold the left 'shift' key immediately after power-on) move the cursor down to highlight the option you normally boot and then edit this option by pressing 'e' and add 'i915.fastboot=1' as a kernel boot parameter and then press 'F10' to boot.

      Delete
  13. Tried your iso on my GPD Pocket and works great! I've discovered your work some weeks ago trying to make an Asus T200TA useful again (i'm writing from that right now with this iso installed) and it's awesome!

    On GPD pocket after xrandr rotate display is ok but touch is sort of upside down. I've found that this might work:
    xinput set-prop "" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1

    I'm wondering how can i update the grub config inside the iso to add commands like:
    GRUB_CMDLINE_LINUX="fbcon=rotate:1" to get the virtual terminal rotated right from the start in the live iso using your respin script.

    I need to use the new parameters of the script?

    ReplyDelete
    Replies
    1. Sounds like a CR! I'll look at building in that functionality and release a new version of the script.

      Delete
    2. I've uploaded a new version (v7.1.1). You can add kernel boot parameters using the new '-g' option e.g. 'isorespin.sh -i ubuntu-17.04-desktop-amd64.iso -g fbcon=rotate:1'. Would you like to test and comment?

      Delete
    3. Thank you! Works pretty good, even if grub itself doesn't rotate, the virtual terminal is correctly rotated.

      I still have issue getting lightdm/unity/display rotated right from the start.
      Can't figure out a way that rotate screen on loading correctly.

      I tried putting a file in /etc/X11/Xsession.d/ with something like "xrandr -o right" or "xrandr --output DSI-1 --rotate right". It's like it gets ignored.
      (I also put xrandr --output DSI-1 --scale 0.6x0.6 and the touchscreen rotation command that both work so i'm sure that the file gets executed!)

      Tried even to put conf ([Seat:*] display start script etc... etc..) as docs say in /etc/lightdm/lightdm.conf.d or /usr/share/lightdm/lightdm.conf.d but still display not rotated.

      Don't know what to do!

      Delete
  14. downloaded the 'linuxium-v4.12-rc5-ubuntu-17.04-desktop-amd64.iso' and burned to a USB and loaded that build on a a Minix box, works amazingly well (dedicated Kodi streaming device) thanks for the work.

    Couple Questions:
    In an earlier post you had mentioned a "lite" version and then redirected us to your more recent posts to download. I haven't seen an updated lite version posted recently?

    Also, the audio stops working (via HDMI) occasionally. I am looking for the specific Minix audio drivers for Ubuntu and if I find them I may post them.

    ReplyDelete
    Replies
    1. What was the original post about the 'lite' version so I can remind myself?

      Also what are the 'specific Minix audio drivers for Ubuntu' you refer to? Can you post a link describing them or with more information?

      Delete
    2. This comment has been removed by the author.

      Delete
    3. Sorry it was Lubuntu 17.04 (the lightweight version published back in Feb) I haven't seen it updated like the full Ubuntu version (unless I just missed it?)

      I wasn't referring to a specific driver set, based on the comments and threads in here I assumed there may be updated drivers? I haven't found any as yet...

      Delete