wiki:run-x86-arm
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige ÜberarbeitungNächste ÜberarbeitungBeide Seiten, nächste Überarbeitung | ||
wiki:run-x86-arm [2020/11/15 21:50] – [run-x86-arm] pulsar | wiki:run-x86-arm [2023/02/26 20:46] – [run x86_64 auf ARM] pulsar | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ===== run-x86-arm | + | ====== run x86_64 auf ARM ====== |
Auf einer ARM CPU basierenden Computer wie z.B. den Raspberry Pi möchte ich x86_64Bit Anwendungen ausführen. Dafür benötigt man zunächst einen Raspberry Pi ab der Version 3, denn hier ist sicher ein 64 Bit CPU verbaut. Ausserdem wird ein 64 Bit OS benötigt. Suse hatte schon recht früh 64Bit für ARM angeboten nun gibt es das auch vom Raspberry Pi OS. | Auf einer ARM CPU basierenden Computer wie z.B. den Raspberry Pi möchte ich x86_64Bit Anwendungen ausführen. Dafür benötigt man zunächst einen Raspberry Pi ab der Version 3, denn hier ist sicher ein 64 Bit CPU verbaut. Ausserdem wird ein 64 Bit OS benötigt. Suse hatte schon recht früh 64Bit für ARM angeboten nun gibt es das auch vom Raspberry Pi OS. | ||
- | * https:// | + | Mit '' |
- | * https://www.novaspirit.com/2019/ | + | |
+ | |||
+ | Die neuen Pakete '' | ||
+ | |||
+ | sudo apt install schroot qemu qemu-user qemu-user-static binfmt-support debootstrap binutils | ||
+ | |||
+ | Eine Datei für eine neue '' | ||
+ | |||
+ | sudo nano /etc/schroot/ | ||
+ | |||
+ | Mit dem Inhalt: | ||
< | < | ||
- | sudo mount -t sysfs sys Dokumente/amd64/sys/ | + | [bullseye-amd64] |
+ | description=chroot-bullseye-amd64 | ||
+ | aliases=kryptowallets | ||
+ | directory=/home/ | ||
+ | users=root, | ||
+ | type=directory | ||
+ | profile=desktop | ||
+ | personality=linux | ||
+ | preserve-environment=false | ||
+ | </code> | ||
- | sudo mount -t sysfs sys Dokumente/ | + | Zunächst einmal den Ordner anlegen wo die schroot-Umgebung innewohnt: |
- | sudo mount -t proc proc Dokumente/ | + | |
- | sudo mount --bind /dev Dokumente/ | + | |
- | sudo mount --bind /dev/pts Dokumente/ | + | |
- | sudo mount --bind /dev/shm Dokumente/ | + | |
+ | mkdir ~/ | ||
- | sudo cp / | + | Den schroot Dienst neu-starten: |
+ | systemctl restart schroot | ||
- | sudo chroot Dokumente/stretch-amd64/ /debootstrap/debootstrap --second-stage | + | Dann probieren einzuloggen, |
- | I: Installing core packages... | + | |
- | I: Unpacking required packages... | + | schroot -c kryptowallets |
- | I: Unpacking libacl1: | + | |
- | I: Unpacking libattr1: | + | |
- | I: Unpacking libaudit-common... | + | Mit '' |
- | I: Unpacking libaudit1:amd64... | + | |
- | I: Unpacking base-files... | + | sudo debootstrap --foreign |
- | I: Unpacking base-passwd... | + | |
- | I: Unpacking bash... | + | |
- | ... | + | Separating the two stages is only needed if you are bootstrapping a distribution for a foreign architecture (CrossDebootstrap). See the description of the '' |
+ | |||
+ | The first stage downloads the needed | ||
+ | |||
+ | If you're not building an install for a foreign architecture, | ||
+ | |||
+ | |||
+ | Den Kommando zunächst **nicht** ausführen: | ||
+ | |||
+ | sudo chroot ./ | ||
+ | |||
+ | Dann evtl. noch den Dienst '' | ||
+ | |||
+ | systemctl restart binfmt-support.service | ||
+ | |||
+ | |||
+ | Ab nun kann man den '' | ||
+ | |||
+ | sudo schroot | ||
+ | |||
+ | oder als normaler Nutzer: | ||
+ | |||
+ | schroot | ||
+ | |||
+ | |||
+ | ==== Bei Fehlern ==== | ||
+ | |||
+ | Hinweis: Es kann vorkommen, dass die '' | ||
+ | frei zu bekommen, könnten folgende Befehle hilfreich sein... | ||
+ | |||
+ | Zeigt alle Sessions an die noch laufen. | ||
+ | |||
+ | sudo schroot -l --all-sessions | ||
+ | |||
+ | Beendet normalerweise alle Sessions | ||
+ | |||
+ | sudo schroot -e --all-sessions | ||
+ | |||
+ | |||
+ | |||
+ | ==== Alternativ ==== | ||
+ | |||
+ | < | ||
+ | sudo raspi-config # enable OpenGL driver | ||
+ | sudo apt install -y debootstrap schroot | ||
+ | cat << EOF | sudo tee / | ||
+ | [pi64] | ||
+ | description=VC4 arm64 testing | ||
+ | type=directory | ||
+ | directory=/ | ||
+ | users=pi | ||
+ | root-groups=root | ||
+ | profile=desktop | ||
+ | personality=linux | ||
+ | preserve-environment=true | ||
+ | EOF | ||
+ | sudo debootstrap --arch arm64 stable / | ||
+ | sudo schroot -c pi64 -- apt install -y mesa-utils minetest sudo | ||
+ | |||
+ | schroot -c pi64 | ||
</ | </ | ||
+ | |||
+ | | ||
+ | First you need to run the command below: | ||
+ | |||
+ | sudo apt install -y raspbian-nspawn-64 | ||
+ | |||
+ | You'll be prompted to enable 64-bit. Select Yes, hit Enter and reboot the system. Then you should be good to go and run: | ||
+ | |||
wiki/run-x86-arm.txt · Zuletzt geändert: 2023/03/25 11:11 von pulsar