Ubuntu arm magic

Source: Internet
Author: User
Not long ago, I compiled a busybox on the arm platform. I'm curious about what kind of error information would happen if I ran the arm program on x86? Therefore, the arm busybox is run directly on my amdcpu. The magic thing is that the arm's busybox is actually running. Why? Install a qemu-arm-static package. After installing this package, you can directly run the arm program. This package registers binfmt support in the kernel and supports

Not long ago, I compiled a busybox on the arm platform. I'm curious about what kind of error information would happen if I ran the arm program on x86? So I run the arm busybox directly on my amd cpu. The magic thing is that the arm's busybox is actually running.

Why?

Install a qemu-arm-static package. After installing this package, you can directly run the arm program. This package registers binfmt support in the kernel and can run armel binary files on the x86 platform.

Static qemu-arm binary that enables to use arm chroots

The static version of teh qemu-arm binary registers automatically
The binfmt-support setup in the kernel, enabling the execution of armel
Binaries on x86 hosts. The package also has des a script to generate armel
Chroots.

/.
/Usr
/Usr/bin
/Usr/bin/qemu-arm-static
/Usr/bin/build-arm-chroot
/Usr/share
/Usr/share/binfmts
/Usr/share/binfmts/arm
/Usr/share/doc
/Usr/share/doc/qemu-arm-static
/Usr/share/doc/qemu-arm-static/copyright
/Usr/share/doc/qemu-arm-static/changelog.Debian.gz
/Etc
/Etc/sysctl. d
/Etc/sysctl. d/qemu-arm-static.sysctl.conf

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.