Public bug reported:

Binary package hint: qemu

qemu 0.11 is supposed to have eabi support in qemu-arm. to easily use a
an armel chroot under x86 similar to the variant described in
https://wiki.ubuntu.com/ARM/BuildEABIChroot the following is necessary:

1) register qemu-arm(-static) with binfmt misc properly with update-binfmts 
(see below)
2) build a static version of qemu-arm so the binary can be copied into an arm 
chroot

it would be nice to have a configure call similar to:

./configure --prefix=/usr --target-list=arm-linux-user --static

in debian/rules that spits out a static version of qemu-arm, then have a
qemu-arm-static deb package with the postinst and prerm scripts below:

postinst needs:
    configure)
    if [ "$1" = configure ] && [ -x /usr/sbin/update-binfmts ]; then
        /usr/sbin/update-binfmts --import armel
    fi
    ;;

prerm needs:

    if [ "$1" = remove ] && [ -x /usr/sbin/update-binfmts ]; then
        /usr/sbin/update-binfmts --package qemu-arm-static \
          --remove arm /usr/bin/qemu-arm-static
    fi

the imported armel file which needs to be in /usr/share/binfmts/ should
have the following content:

package qemu-arm-static
interpreter /usr/bin/qemu-arm-static
flags: OC
offset 0
magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00
mask 
\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff

** Affects: qemu (Ubuntu)
     Importance: Wishlist
     Assignee: Dustin Kirkland (kirkland)
         Status: New

** Affects: qemu (Debian)
     Importance: Unknown
         Status: Unknown

** Changed in: qemu (Ubuntu)
   Importance: Undecided => Wishlist

** Changed in: qemu (Ubuntu)
     Assignee: (unassigned) => Dustin Kirkland (kirkland)

-- 
please build a static version of qemu-arm 0.11.x in a separate binary deb
https://bugs.launchpad.net/bugs/401782
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
universe-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to