We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

error at /proc/sys/fs/binfmt_misc/register for 8.5 Building the Image with MIC

asked 2017-11-07 07:42:29 +0200

ThE_MarD gravatar image

Heyyo, so I've gotten as far in the "SailfishOS-HardwareAdaptationDevelopmentKit-2.0.1.pdf" to "8.5 Building the Image with MIC" but I can't get past this error

IOError: [Errno 2] No such file or directory: '/proc/sys/fs/binfmt_misc/register'

here's what my terminal log looks like

themard@ubuntu:~$ sfossdk
Mounting system directories...
Mounting /srv/mer/targets as /srv/mer/targets
Mounting / as /parentroot
Mounting home directory: /home/themard
Entering chroot as themard
Last login: Tue Nov  7 04:45:53 UTC 2017 on pts/1
bash: brew: command not found
bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
Env setup for x2
bash: /etc/bash_completion.d/createrepo.bash: line 90: syntax error in conditional expression: unexpected token `('
bash: /etc/bash_completion.d/createrepo.bash: line 91: syntax error near `@(='
bash: /etc/bash_completion.d/createrepo.bash: line 91: `                    ${COMP_WORDS[i-1]} != @(=|--mdtype) ]]; then'
PlatformSDK themard@ubuntu:~$ sudo zypper in android-tools createrepo zip
Loading repository data...
Reading installed packages...
'zip' is already installed.
No update candidate for 'zip-3.0-1.1.19.i486'. The highest available version is already installed.
'android-tools' is already installed.
No update candidate for 'android-tools-4.2.2_git20130218-15.24.1.i486'. The highest available version is already installed.
'createrepo' is already installed.
No update candidate for 'createrepo-0.9.9-1.1.1.i486'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.

PlatformSDK themard@ubuntu:~$ cd $ANDROID_ROOT 
PlatformSDK themard@ubuntu:~/hadk$ rpm/dhd/helpers/build_packages.sh --configs
* Building rpm/droid-config-x2.spec 
* Building successful, adding packages to repo 
Repository 'adaptation-community-common' is up to date.
Repository 'hotfixes' is up to date.
Repository 'jolla' is up to date.
Retrieving repository 'local-x2-hal' metadata ............................[done]
Building repository 'local-x2-hal' cache .................................[done]
Repository 'mer-tools' is up to date.
All repositories have been refreshed.
* Building of droid-configs finished successfully 
PlatformSDK themard@ubuntu:~/hadk$ RELEASE=2.1.2.3
PlatformSDK themard@ubuntu:~/hadk$ EXTRA_NAME=-themard
PlatformSDK themard@ubuntu:~/hadk$ hybris/droid-configs/droid-configs-device/helpers/process_patterns.sh
checking for /home/themard/hadk/droid-local-repo/x2/droid-configs/*-patterns*.rpm...
./usr/share/package-groups/jolla-configuration-x2.xml
./usr/share/package-groups/jolla-hw-adaptation-x2.xml
./usr/share/package-groups/sailfish-porter-tools.xml
9 blocks
Wrote: /home/themard/hadk/droid-local-repo/x2/repodata/patterns.xml.gz
           type = patterns
       location = repodata/f2af32d775866aa41c06ce65456aefa3a21e41493ceb2bcc58397bf474f78697-patterns.xml.gz
       checksum = f2af32d775866aa41c06ce65456aefa3a21e41493ceb2bcc58397bf474f78697
      timestamp = 1510030418.21
  open-checksum = 163ed9574977ab9517aeb1fb7314545cf698cd83c9b7cee661b5b5f47cfa1bf6
Wrote: /home/themard/hadk/droid-local-repo/x2/repodata/repomd.xml
Exception AttributeError: "'NoneType' object has no attribute 'px_proxy_factory_free'" in <bound method ProxyFactory.__del__ of <libproxy.ProxyFactory object at 0xf534a66c>> ignored
PlatformSDK themard@ubuntu:~/hadk$ sudo mic create fs --arch=$PORT_ARCH \
> --tokenmap=ARCH:$PORT_ARCH,RELEASE:$RELEASE,EXTRA_NAME:$EXTRA_NAME \
> --record-pkgs=name,url \
> --outdir=sfe-$DEVICE-$RELEASE$EXTRA_NAME \
> --pack-to=sfe-$DEVICE-$RELEASE$EXTRA_NAME.tar.bz2 \
> $ANDROID_ROOT/Jolla-@RELEASE@-$DEVICE-@ARCH@.ks
mic 0.14 (Mer 0.2011 Mer)
Info: Substitute macro variable @RELEASE@ with 2.1.2.3
Info: Substitute macro variable @EXTRA_NAME@ with -themard
Info: Substitute macro variable @ARCH@ with armv7hl
Info: Retrieving repo metadata:
Info: Retrieving repomd.xml.key ... DONE
Traceback (most recent call last):
  File "/usr/bin/mic", line 217, in <module>
    sys.exit(mic.main())
  File "/usr/lib/python2.7/site-packages/mic/utils/cmdln.py", line 257, in main
    return self.cmd(args)
  File "/usr/lib/python2.7/site-packages/mic/utils/cmdln.py", line 280, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python2.7/site-packages/mic/utils/cmdln.py", line 412, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python2.7/site-packages/mic/utils/cmdln.py", line 1084, in _dispatch_cmd
    return handler(argv)
  File "/usr/bin/mic", line 86, in do_create
    cr.main(argv[1:])
  File "/usr/lib/python2.7/site-packages/mic/creator.py", line 266, in main
    return self.cmd(args)
  File "/usr/lib/python2.7/site-packages/mic/utils/cmdln.py", line 280, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python2.7/site-packages/mic/utils/cmdln.py", line 412, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python2.7/site-packages/mic/utils/cmdln.py", line 1100, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/mic/plugins/imager/fs_plugin.py", line 61, in do_create
    creator.mount(None, creatoropts["cachedir"])
  File "/usr/lib/python2.7/site-packages/mic/imager/baseimager.py", line 720, in mount
    self.target_arch)
  File "/usr/lib/python2.7/site-packages/mic/utils/misc.py", line 887, in setup_qemu_emulator
    fd = open(binfmt_register, "w")
IOError: [Errno 2] No such file or directory: '/proc/sys/fs/binfmt_misc/register'

any ideas as to what I'm missing or doing wrong? :( Any help is appreciated

Here's my repositories that I'm working with in case I missed something https://github.com/ThEMarD?tab=repositories

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-11-08 08:27:29 +0200

ThE_MarD gravatar image

Heyyo, heh it seems everytime I have an error I post it here on together.jolla.com and then I solve it! :P

turns out my python install was messed up and missing dependencies somehow which was giving grief to binfmt-support (trying out Ubuntu 17.10 ftw? lol)

here's what my terminal looked like when I solved it :)

themard@ubuntu:~$ sudo apt-get install binfmt-support
[sudo] password for themard: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
binfmt-support is already the newest version (2.1.8-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cinnamon : Depends: python:any
 createrepo : Depends: python:any (>= 2.7.1-0ubuntu2)
 nemo-data : Depends: python:any (>= 2.7.5-5~)
 python-bs4 : Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7.5-5~)
 python-cairo : Depends: python:any (< 2.8)
                Depends: python:any (>= 2.7.5-5~)
 python-chardet : Depends: python:any (< 2.8)
                  Depends: python:any (>= 2.7.5-5~)
 python-dbus : Depends: python:any (< 2.8)
               Depends: python:any (>= 2.7.5-5~)
 python-deltarpm : Depends: python:any (>= 2.6.6-7~)
 python-gi : Depends: python:any (< 2.8)
             Depends: python:any (>= 2.7.5-5~)
 python-gi-cairo : Depends: python:any (< 2.8)
                   Depends: python:any (>= 2.7~)
 python-html5lib : Depends: python:any (< 2.8)
                   Depends: python:any (>= 2.7.5-5~)
 python-libxml2 : Depends: python:any (< 2.8)
                  Depends: python:any (>= 2.7.5-5~)
 python-lxml : Depends: python:any (< 2.8)
               Depends: python:any (>= 2.7.5-5~)
 python-lzma : Depends: python:any (>= 2.7.5-5~)
 python-olefile : Depends: python:any (< 2.8)
                  Depends: python:any (>= 2.7.5-5~)
 python-pam : Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7~)
 python-pexpect : Depends: python:any (< 2.8)
                  Depends: python:any (>= 2.7.5-5~)
 python-pil : Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7.5-5~)
 python-pkg-resources : Depends: python:any (< 2.8)
                        Depends: python:any (>= 2.7.5-5~)
 python-ptyprocess : Depends: python:any (< 2.8)
                     Depends: python:any (>= 2.7.5-5~)
 python-pycurl : Depends: python:any (< 2.8)
                 Depends: python:any (>= 2.7.5-5~)
 python-pyinotify : Depends: python:any (< 2.8)
                    Depends: python:any (>= 2.7.5-5~)
 python-rpm : Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7.5-5~)
 python-setuptools : Depends: python:any (< 2.8)
                     Depends: python:any (>= 2.7.5-5~)
 python-six : Depends: python:any (< 2.8)
              Depends: python:any (>= 2.7.5-5~)
 python-urlgrabber : Depends: python:any (< 2.8)
                     Depends: python:any (>= 2.7.5-5~)
 python-webencodings : Depends: python:any (< 2.8)
                       Depends: python:any (>= 2.7.5-5~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
themard@ubuntu:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  python
Suggested packages:
  python-doc python-tk
The following packages will be upgraded:
  python
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/140 kB of archives.
After this operation, 121 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 204763 files and directories currently installed.)
Preparing to unpack .../python_2.7.14-2ubuntu1_amd64.deb ...
Unpacking python (2.7.14-2ubuntu1) over (2.7.14-1) ...
dpkg: warning: unable to delete old directory '/usr/local/share': Directory not empty
dpkg: warning: unable to delete old directory '/usr/local/lib/python2.7': Directory not empty
dpkg: warning: unable to delete old directory '/usr/local/lib': Directory not empty
dpkg: warning: unable to delete old directory '/usr/local': Directory not empty
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up python (2.7.14-2ubuntu1) ...

Since this is meow one of the main links that pops up on a Google search I hope this helps anyone else with this error

time to pass 8.5 Building the Image with MIC :D

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2017-11-07 07:42:29 +0200

Seen: 410 times

Last updated: Nov 08 '17