GithubHelp home page GithubHelp logo

Comments (7)

github-actions avatar github-actions commented on May 27, 2024

Jira ticket: AR-1896

from build.

igorpecovnik avatar igorpecovnik commented on May 27, 2024

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.

rpardini avatar rpardini commented on May 27, 2024

this is again binfmt / qemu stuff which is host-dependent.

from build.

iysheng avatar iysheng commented on May 27, 2024

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

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.

iysheng avatar iysheng commented on May 27, 2024

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.

igorpecovnik avatar igorpecovnik commented on May 27, 2024

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.

iysheng avatar iysheng commented on May 27, 2024

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)

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.