Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sailfishos build problem: mic hangs
When building a sailfish os image 2.1.124 mic hangs. Consistently. After installing the packages and listing them the process just stops.
A ps auxf shows:
neil 28257 0.0 0.0 29556 3116 ? Ss 11:38 0:00 SCREEN
neil 28258 0.0 0.0 23512 5876 pts/2 Ss 11:38 0:00 \_ /bin/bash
root 28272 0.0 0.0 77968 4624 pts/2 S 11:38 0:00 \_ sudo SSH_AGENT_PID= SSH_AUTH_SOCK= /home/neil/mer/sdks/sdk/mer-sdk-chroot
root 28273 0.0 0.0 12736 3180 pts/2 S 11:38 0:00 \_ /bin/bash /home/neil/mer/sdks/sdk/mer-sdk-chroot
root 28319 0.0 0.0 6976 2704 pts/2 S 11:38 0:00 \_ /bin/su -p -s /bin/bash -l neil -- -c if [ -d "/home/neil" ]; then cd "/home/neil"; fi; SSH_AUTH_SOCK='' SSH_AGENT_PID= exec bash --init-file /mer-bash-setup -i
neil 28323 0.0 0.0 6984 3116 pts/2 S 11:38 0:00 \_ bash --init-file /mer-bash-setup -i
root 28359 0.0 0.0 3664 2888 pts/2 S+ 11:39 0:00 \_ sudo mic create fs --arch armv7hl --debug --tokenmap=ARCH:armv7hl,RELEASE:2.1.1.24,EXTRA_NAME:-beta1-wdh --record-pkgs=name,url --outdir=sfe-bacon-2.1.1.24-beta1-wdh --pack-to=sfe-bacon-2.1.1.24-beta1-wdh.tar.bz2 /home/neil/mer/android/droid/Jolla-@RELEASE@-bacon-@ARCH@.ks
root 28360 3.1 1.2 163456 96100 pts/2 S+ 11:39 1:01 \_ /usr/bin/python /usr/bin/mic create fs --arch armv7hl --debug --tokenmap=ARCH:armv7hl,RELEASE:2.1.1.24,EXTRA_NAME:-beta1-wdh --record-pkgs=name,url --outdir=sfe-bacon-2.1.1.24-beta1-wdh --pack-to=sfe-bacon-2.1.1.24-beta1-wdh.tar.bz2 /home/neil/mer/android/droid/Jolla-@RELEASE@-bacon-@ARCH@.ks
root 32531 0.0 0.0 81152 5004 pts/2 S+ 11:58 0:00 \_ /usr/bin/qemu-arm-static /bin/sh /var/tmp/rpm-tmp.2maqFK 0
root 32532 0.0 0.1 115588 11464 pts/2 S+ 11:58 0:00 \_ /usr/bin/qemu-arm-static /usr/bin/vault -G -a register --data=name=Gallery,translation=vault-ap-gallery,group=media,icon=icon-launcher-gallery,script=/usr/libexec/jolla-vault/units/vault-gallery
root 32533 0.0 0.0 0 0 pts/2 Z+ 11:58 0:00 \_ [mkdir] <defunct>
ctrl-c will abort the process.
The only thing I managed to do was determine the root of process '/usr/bin/qemu-arm-static /bin/sh' (ls -l /proc/32532/root)
and then perform the command in a chroot.
sudo chroot /home/neil/mer/sdks/sdk/var/tmp/mic/imgcreate-ATR56Z/install_root /usr/bin/qemu-arm-static /bin/sh /var/tmp/rpm-tmp.2maqFK 0
Somehow that works. Then killing the process (kill -6 32532) will allow the rest of mic to be done and the sfos image is built. And it boots.
sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R ssu lr
Enabled repositories (global):
- adaptation-community ... http://repo.merproject.org/obs/nemo:/devel:/hw:/oneplus:/bacon/sailfish_latest_armv7hl/
- adaptation-community-common ... http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_armv7hl/
- hotfixes ... https://releases.jolla.com/releases/2.1.1.24/hotfixes/armv7hl/
- jolla ... https://releases.jolla.com/releases/2.1.1.24/jolla/armv7hl/
- mer-tools ... https://releases.jolla.com/releases/2.1.1.24/mer-tools/builds/armv7hl/packages/
Enabled repositories (user):
- local-bacon-hal ... file:///home/neil/mer/android/droid/droid-local-repo/bacon
Disabled repositories (global, might be overridden by user config):
- apps ... https://releases.jolla.com/jolla-apps/2.1.1.24/armv7hl/
Disabled repositories (user):
- home ... https://download.jollamobile.com/home:/honeybadger/latest_armv7hl/
- sdk ... https://releases.jolla.com/releases/2.1.1.24/sdk/armv7hl/
uname -a
Linux kalamata 4.10.0-22-lowlatency #24-Ubuntu SMP PREEMPT Mon May 22 18:59:21 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.