Hi,
I need to rebuild Tvheadend for my Vero 4K. I had a look at its OSMC build script and figured that
- I should compile it on the device itself (no cross-compilation, will use a
chroot
) - Need to run it as
root
- Need to pass it the platform string
vero346
However, when installing the dependencies for the aarch64-toolchain-osmc
toolchain, it chokes on setting up qemu-user-static
or binfmt-support
respectively:
Selecting previously unselected package aarch64-toolchain-osmc.
Preparing to unpack .../aarch64-toolchain-osmc_1.3.9_all.deb ...
Unpacking aarch64-toolchain-osmc (1.3.9) ...
Setting up qemu (1:3.1+dfsg-8+deb10u8) ...
Setting up qemu-user-static (1:3.1+dfsg-8+deb10u8) ...
update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument
update-binfmts: warning: unable to enable binary format qemu-alpha
update-binfmts: exiting due to previous errors
dpkg: error processing package qemu-user-static (--configure):
installed qemu-user-static package post-installation script subprocess returned error exit status 2
Setting up binfmt-support (2.2.0-2) ...
update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument
update-binfmts: warning: unable to enable binary format python2.7
update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument
update-binfmts: warning: unable to enable binary format python3.7
Created symlink /etc/systemd/system/multi-user.target.wants/binfmt-support.service → /lib/systemd/system/binfmt-support.service.
Job for binfmt-support.service failed because the control process exited with error code.
See "systemctl status binfmt-support.service" and "journalctl -xe" for details.
invoke-rc.d: initscript binfmt-support, action "start" failed.
● binfmt-support.service - Enable support for additional executable binary formats
Loaded: loaded (/lib/systemd/system/binfmt-support.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2021-04-17 09:35:47 CEST; 193ms ago
Docs: man:update-binfmts(8)
Process: 4041 ExecStart=/usr/sbin/update-binfmts --enable (code=exited, status=2)
Main PID: 4041 (code=exited, status=2)
Apr 17 09:35:47 vero systemd[1]: Starting Enable support for additional executable binary formats...
Apr 17 09:35:47 vero update-binfmts[4041]: update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument
Apr 17 09:35:47 vero update-binfmts[4041]: update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument
Apr 17 09:35:47 vero update-binfmts[4041]: update-binfmts: exiting due to previous errors
Apr 17 09:35:47 vero systemd[1]: binfmt-support.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 17 09:35:47 vero systemd[1]: binfmt-support.service: Failed with result 'exit-code'.
Apr 17 09:35:47 vero systemd[1]: Failed to start Enable support for additional executable binary formats.
dpkg: dependency problems prevent configuration of aarch64-toolchain-osmc:
aarch64-toolchain-osmc depends on qemu-user-static; however:
Package qemu-user-static is not configured yet.
Any idea what I’m doing wrong?
Not sure why (supposedly) closing a file descriptor is an issue. Regarding binfmt_misc
it only says it’s enabled:
# cat /proc/sys/fs/binfmt_misc/status
enabled
I’ll look at the post-installation script(s) next…
Cheers