Comments (7)
Jira ticket: AR-1896
from build.
Riscv64 support is overall not yet in the best shape but using unsupported build host is just asking for troubles. I am not familiar with how Solus is different from Debian / Ubuntu so its difficult to say, but I was not able to reproduce on officially supported Jammy build host:
./compile.sh build BOARD=licheepi-4a BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=jammy SHARE_LOG=yes
https://paste.next.armbian.com/rilutepeta
As I don't have hardware nor time to check, I don't know if resulted image boots.
More things are missing too:
--> (3) COMMAND: update-binfmts --enable qemu-arm bash: line 1: update-binfmts: command not found
from build.
this is again binfmt / qemu stuff which is host-dependent.
from build.
Riscv64 support is overall not yet in the best shape but using unsupported build host is just asking for troubles. I am not familiar with how Solus is different from Debian / Ubuntu so its difficult to say, but I was not able to reproduce on officially supported Jammy build host:
./compile.sh build BOARD=licheepi-4a BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=jammy SHARE_LOG=yes
https://paste.next.armbian.com/rilutepetaAs I don't have hardware nor time to check, I don't know if resulted image boots.
More things are missing too:
--> (3) COMMAND: update-binfmts --enable qemu-arm bash: line 1: update-binfmts: command not found
Thanks for your patient reply. I missed install package binfmt-support. After I installed binfmt-support package, now there have update-binfmts now.
from build.
this is again binfmt / qemu stuff which is host-dependent.
yeah, and after I install binfmt-support from source , now I can do command with update-binfmts. But when I try do command with update-binfmts --enable qemu-arm
I get these errors:
▸ sudo update-binfmts --enable qemu-riscv64
[sudo] password for yangyongsheng:
update-binfmts: warning: qemu-riscv64not in database of installed binary formats.
update-binfmts: exiting due to previous errors
After I google this, then I do command with sudo update-binfmts --install qemu-riscv64 /bin/qemu-riscv64 --magic '\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00'
to register qemu-riscv64
support. Then After I do command sudo update-binfmts --enable qemu-riscv64
, something terrible happened as:
the host OS is broken, I must repower the laptop. is there anything wrong? thanks in advance.
from build.
is there anything wrong?
Nothing is wrong with our builds tools apparently. As it works for us and in CI. We can't reproduce, we don't have resources to work on task that is officially rejected - supporting "all" Linux distributions as a build host. There are many many real support problems elsewhere ...
This can not be recognized as an issue.
I hope you accept this with understanding.
from build.
is there anything wrong?
Nothing is wrong with our builds tools apparently. As it works for us and in CI. We can't reproduce, we don't have resources to work on task that is officially rejected - supporting "all" Linux distributions as a build host. There are many many real support problems elsewhere ...
This can not be recognized as an issue.
I hope you accept this with understanding.
Yeah, After I solve the problems with binfmt-support package, now I can build the image under Solus, but not checked 😅 .
What I do just rebuild qemu with -static flag refer to https://gitlab.archlinux.org/archlinux/packaging/packages/qemu. Then I move qemu-riscv64/arm/aarch64-static to /usr/bin directory and use commands with:
sudo update-binfmts --install qemu-riscv64 /usr/bin/qemu-riscv64-static --magic '\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
sudo update-binfmts --install qemu-aarch64 /usr/bin/qemu-aarch64-static --magic '\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
sudo update-binfmts --install qemu-arm /usr/bin/qemu-arm-static --magic '\x7f\x45\x4c\x46\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'
to registe these arch releate interpreter。Besides I get these magic and mask form package https://packages.debian.org/sid/qemu-user-static,a file named binfmt-install
list these magic and mask. Then I use command below test success.
▸ sudo chroot . /bin/echo "abc"
[sudo] password for yangyongsheng:
abc
┏─╼ [yangyongsheng]╾╼ [14:13:06]╾╼ [0]
┗─╼ [~/LearnProjects/licheepi_4a/jammy_root]
▸ file bin/echo
bin/echo: ELF 64-bit LSB pie executable, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-riscv64-lp64d.so.1, BuildID[sha1]=3919109b52e98cf5ae25f271fc73679bc96466c8, for GNU/Linux 4.15.0, stripped
Final I rebuild licheepi 4a img, and It's success with log https://paste.next.armbian.com/esunirisuh
and these images as :
from build.
Related Issues (20)
- KDE build seems to be missing features, HOT 7
- main docker image still uses p80.pool.sks-keyservers.net, which is down HOT 3
- Building a system using main and for current/bullseyse/KDE generates a "ghost" user in image HOT 16
- Installing Armbian on Tigre 2 TV Box with Amlogic S905X (NAND) HOT 2
- Unable to build Armbian for Orange Pi 5 HOT 3
- The image is built with the kernel from previous builds. HOT 9
- NetworkManager in Ubuntu add powersave config for WiFi HOT 3
- /home directory unexpectedly cleared by build script HOT 4
- Discussion on PR decisions? HOT 1
- rock64 compile error HOT 7
- armbian latest offical for radxa zero, the /boot/dtb/amlogic/overlay/meson-g12a-radxa-zero-spi-spidev.dtbo can't work at all !!! HOT 4
- Armbian boot partition unreadable on Windows machines due to weird partition type HOT 3
- Automatically generated kernel-patch fails to apply HOT 8
- chroot: failed to run command ‘/bin/bash’: No such file or directory... HOT 8
- Sources configuration not found tried /home/ ... /build/config/sources/families/.conf HOT 2
- khadas-vim2 (s912) wont boot after current kernel updated to 6.1.66, hangs at mounting /boot HOT 6
- ERROR in function prepare_host HOT 15
- Add ASUS Tinker Edge R board. HOT 4
- rk322x-box Compile Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.