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.

58 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
    3. There are some patches which will hit v4.13-rc1 in a couple of weeks time that look promising. I'll retest when the RC becomes available.

      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
    3. A respun iso would be great. There's a couple of people on the Beelink forum that are waiting for Linux support but are unable to get it to work. If you could make our devices work with Linux you make quite a bunch of us happy!

      Nevertheless I will also try to respin the iso myself, as to be able to do an update in the future myself. I have tried respinning the iso but I couldn't get it to boot. I was probably still doing something wrong with the other settings. I will try the "-b refind" option again!

      Delete
    4. For the Beelink AP42 you must respin with '-b rEFInd' or use the persistence '-s' option which includes the rEFInd boot manager by default as GRUB currently doesn't work.

      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
    6. i dont have grub I dont made dualboot with windows

      Delete
    7. If you installed the Ubuntu ISO you will have GRUB as it installs it as the boot loader. If you have installed another boot loader or boot manager then still try booting with 'i915.fastboot=1' as a kernel boot parameter.

      Delete
    8. I have instaled ubuntu into my device and i dont have grub like from live usb. I power device i have ubuntu logo loading screen and then i have login screen.

      Delete
    9. Power on the device and immediately press and hold down the left 'shift' key. If that doesn't work, try power on and immediately press and hold down the right 'shift' key.

      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
    4. Thanks for the feedback. I will now update to include the kernel boot parameters added using the '-g' option to '/etc/default/grub' in the next release (v7.1.2).

      Regarding the rotation, are you using a v4.12 kernel as this is the minimum required for rotation to work?

      Delete
    5. There is also a chance to have a parameter that removes matching argument from /etc/default/grub ?
      example something that remove "quiet" and "splash" from the grub arguments.. a sed search-replace with blank character based on passed string ?

      Regarding the rotation i need to get it fixed on "right".
      Don't need to rotate in based on accelerometer and nothing like tablet. It's only for the GPD Pocket (You own one right?)

      I'm respinning your rc6 iso already respinned with all the optionals.

      I've tried a lot of combination and options but nothing... still wrong rotation.

      I've tried so far:
      file in /etc/X11/Xsession.d
      script in /usr/local/sbin/adduser.local to add preconfigured monitors.xml file in .config user folder and lightdm .config folder
      file in /etc/lightdm/lightdm.conf.d/
      edit /etc/lightdm/lightdh.conf
      file in /usr/share/lightdm/lightdm.conf.d/
      preconfigured with X -configure xorg.conf file in /etc/X11/xorg.conf

      No way that it works... i just only want to rotate right/clockwise the display right from the start for all the X server.

      Delete
    6. Maybe I'll experiment with an option to add kernel boot parameters and an option to replace them (with nothing will delete them).

      I don't have GPD Pocket so I can't experiment to help find a solution.

      However maybe it is a case in fixing the rotation once installed? Or the solution I've seen which you appear to have followed (preconfigured monitors.xml file in .config) might require 'lightdm' to be restarted once the file is in place?

      Delete
    7. Thank you so much! The problem was in monitors.xml .
      There were too much options in configure tag. One for all the possible outputs i suppose, but all empty.
      Removing those empty display option made the monitors.xml file working correctly without the need of restarting lightdm!

      I also have the need to load two modules in initramfs. Executing this
      "update-initramfs -u -k all" inside a script executed with -c argument of your script give me warning about primary media define missing in fstab.

      Using that command inside the squash file system is useless or it's ok even if command complain with that warning?

      I've packed up everything in a repo if you mind to check it and tell me if it looks ok to you!

      https://github.com/stockmind/gpd-pocket-ubuntu-respin

      Delete
    8. In wrapper-gpd-fan-control.sh of my repo i used this to change default grub cmdline config:
      # update grub config
      echo "Update grub defult..."
      sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"/GRUB_CMDLINE_LINUX_DEFAULT=\"\"/" /etc/default/grub
      sed -i "s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"i915.fastboot=1 fbcon=rotate:1 intel_pstate=disable\"/" /etc/default/grub

      In the packed image the grub file is updated with my arguments.

      If i install ubuntu from that iso the grub generated doesn't have my custom arguments.
      Even /etc/default/grub file in the installed system is like original one without my arguments.

      When the installer configure grub for new installed system it ignore the /etc/default/grub and configure a new one?

      Delete
    9. I think you used a pre-release of v7.1.2 which I used for testing and only addressed the 'grub.cfg' file. The official latest release v7.1.2 now removes default kernel boot parameters both from the boot GRUB configuration file and the GRUB default file and adding new kernel boot parameters works similarly.

      Delete
    10. LOL. I'm only now just reading your comments and realise we've duplicated work on the GPD Pocket as I've posted something similar yesterday! Regarding the 'update-initramfs' warning I believe it is okay to ignore it.

      Looking briefly at your github work it looks good although the section under 'Post install' for 'GRUB' isn't needed if you are using the latest version of the script.

      Just out of interest have you tried the ISO I respun on my http://linuxiumcomau.blogspot.com.au/2017/06/ubuntu-on-gpd-pocket-using-isorespinsh.html post?

      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. 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
    3. I haven't uploaded a Lubuntu as that flexibility is provided by my 'isorespin.sh' script.

      For the audio stopping try editing '/etc/pulse/daemon.conf' and set 'realtime-scheduling = no' then restart the daemon with 'pulseaudio -k' and see if it helps.

      Delete