Code Monkey home page Code Monkey logo

Comments (9)

chenxxpro avatar chenxxpro commented on May 26, 2024 4

I think the correct answer will be ...
Install in the HOST the qemu user package:
apt-get install qemu-user-static

Because even solving that,
if you are cross-debootstrapping, it will fail in second bootstrap stage...

You are RIGHT, it works for me:

  • HostOS: Ubuntu 18.04
  • BOARD: OrangePi 3

Try reinstall qemu-user-static

sudo apt purge qemu-user-static
sudo apt install qemu-user-static

from orangepi_build.

tuxd3v avatar tuxd3v commented on May 26, 2024 3

I think the correct answer will be ...
Install in the HOST the qemu user package:
apt-get install qemu-user-static

Because even solving that,
if you are cross-debootstrapping, it will fail in second bootstrap stage...

from orangepi_build.

cronnosli avatar cronnosli commented on May 26, 2024 2

You can try

apt-get install qemu-utils qemu-efi-aarch64 qemu-system-arm

It works for me.

from orangepi_build.

EvilOlaf avatar EvilOlaf commented on May 26, 2024

Retry with Ubuntu 16.04 x64 as OS

from orangepi_build.

qxj avatar qxj commented on May 26, 2024

I tried with ubuntu 16.04 x64, the same error.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"

from orangepi_build.

qxj avatar qxj commented on May 26, 2024

It looks like the do_chroot function contains bugs in the script 00_rootfs_build.sh. qemu-aarch64-static is missing!

The correct do_chroot should be this:

do_chroot() {
    cmd="$@"
    chroot "$DEST" qemu-aarch64-static /usr/bin/mount -t proc proc /proc || true
    chroot "$DEST" qemu-aarch64-static /usr/bin/mount -t sysfs sys /sys || true
    chroot "$DEST" qemu-aarch64-static $cmd
    chroot "$DEST" qemu-aarch64-static /usr/bin/umount /sys
    chroot "$DEST" qemu-aarch64-static /usr/bin/umount /proc
}

And I submit a PR here https://github.com/orangepi-xunlong/OrangePiH5_scripts/pull/2

from orangepi_build.

actsasflinn avatar actsasflinn commented on May 26, 2024

This seems to resolve with #5 (comment)

from orangepi_build.

celebum avatar celebum commented on May 26, 2024

sudo mount -i -o remount,exec,dev /home/jqian/works

from orangepi_build.

makito013 avatar makito013 commented on May 26, 2024

You can try

apt-get install qemu-utils qemu-efi-aarch64 qemu-system-arm

It works for me.

THANKS

from orangepi_build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.