Mailinglist Archive: opensuse-buildservice (166 mails)

< Previous Next >
RE: [opensuse-buildservice] HELP: How to setup cross-build on private OBS 2.5.2 using QEMU chroot?
To be safe,
I still install packages below on both OBS server and OBS worker:
build 20140424-1.1
build-initvm-x86_64 20140424-1.1
qemu 2.0.0-236.1
qemu-arm 2.0.0-236.1
qemu-kvm 2.0.0-236.1
qemu-linux-user 2.0.0-234.3

The qemu packages should not be needed, if you use kvm or xen workers.

[Rick Liu]
In my old obs (2.3.1),
it doesn't use kvm or xen workers.
It uses plain chroot environment with copying QEMU static binaries from host
into chroot.
Is it possible to do the same when QEMU comes from project repository?


[ 0s] Building hello for project 'home:rickliu:trunk_mxc' repository
'Trunk_MxC_standard' arch 'armv7el' srcmd5
'113b5e223b7ed410d13a13aa2fa6449b'
[ 0s]
[ 0s] processing recipe
/local/ramdrive/obs/worker/root_1/.build-srcdir/hello.spec ...
[ 0s] running changelog2spec --target rpm --file
/local/ramdrive/obs/worker/root_1/.build-srcdir/hello.spec
[ 0s] init_buildsystem --configdir /var/run/obs/worker/1/build/configs --
cachedir /var/cache/build --clean --rpmlist
/local/ramdrive/obs/worker/root_1/.build.rpmlist
/local/ramdrive/obs/worker/root_1/.build-srcdir/hello.spec build
rpmlint-Factory ...
[ 0s] registering binfmt handlers for cross build
[ 0s] interpreter for 'aarch64' is -1
[ 0s] write: Invalid argument
[ 0s] /proc/sys/fs/binfmt_misc/register: write failed
[ 0s] /var/run/obs/worker/1/build/qemu-reg: line 7: write failed.
Content: :aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\
x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-binfmt:P

IIRC it should not abort here, but continue to register the other emulators.
Can you check if the registration did work?
ls /proc/sys/fs/binfmt_misc/arm*

[Rick Liu]
Which environment do you want check this " ls /proc/sys/fs/binfmt_misc/arm*"?
obs server, obs worker, or obs worker's chroot?

I'll check all of them for now:
obs server:
obs-server-005:/proc/sys/fs/binfmt_misc # ls -l /proc/sys/fs/binfmt_misc
--w------- 1 root root 0 May 22 10:52 register
-rw-r--r-- 1 root root 0 May 22 10:52 status

obs worker:
obs-worker-009:/proc/sys/fs/binfmt_misc # ls -l /proc/sys/fs/binfmt_misc/arm*
-rw-r--r-- 1 root root 0 May 21 13:44 /proc/sys/fs/binfmt_misc/arm
-rw-r--r-- 1 root root 0 May 21 13:44 /proc/sys/fs/binfmt_misc/armeb

obs worker armv7el chroot: (EMPTY)
obs-worker-009:/local/ramdrive/obs/worker/root_1/proc # ls -al
drwxr-xr-x 2 root root 4096 May 22 10:53 .
dr-xr-xr-x 24 root root 4096 May 22 10:54 ..
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >