Giter VIP home page Giter VIP logo

Comments (8)

RobertCNelson avatar RobertCNelson commented on September 8, 2024

Hi @orgua sorry, at one time we did have a dependency check, but debootstrap is actually common on non-debian systems, so it was decided to not try to do every combination..

now days i'm having too much fun on other arch's, i don't think i'll actually finish the 22.04/jammy (ARMHF) bits..

from omap-image-builder.

orgua avatar orgua commented on September 8, 2024

Ok, so no official jammy. But I still fail to run the default script for Ubuntu 20.4.5 following the readme.

It always fails in the chroot.sh line 287

>> sudo chroot ./ignore/tmp.xyz debootstrap/debootstrap --second-stag
e
chroot: failed to run command ‘debootstrap/debootstrap’: Exec format error

I tried several distros in WSL as host:

  • debian 11.6
  • ubuntu 20.4
  • ubuntu 22.4

By reading through the web (looking for fixes for the error-message) I got to collect several packages for pre-install:

  • m4
  • debootstrap
  • debootstick
  • qemu-system-arm (+ many dependencies)
  • git
  • sbuild (just a guess)
  • qemubuilder (+ many dependencies)
  • qemu-user-static
  • crossbuild-essential-armhf
  • coreutils
  • sbuild-qemu
  • qemu-utils
  • pbuilder
  • cdebootstrap
  • zstd
  • schroot
  • tree

The error is still present. Could you please hint me a possible solution? The build-server is clearly producing images :)

from omap-image-builder.

RobertCNelson avatar RobertCNelson commented on September 8, 2024

are you running in WSL (1) or WSL (2) mode, WSL 2 provides a better linux internal vm..

ps, sorry i haven't tried this script personally on wsl.. running the debootstrap step should be the easiest for wsl to do, afterwards i'd fully expect it to barf on the bind mount and chroot into the qemu-arch enviromrment for final install.

from omap-image-builder.

orgua avatar orgua commented on September 8, 2024

Yes it was indeed WSL1, but after updating to WSL 2 it still fails :)
But using a VM did the trick - the script ran almost through ('tree' was not installed). Thanks so much for your work!

One more question if I may:

Now that there is an riscv64-ubuntu23.04 on the image-server and the rcn-ee apt repo also has jammy-support -> Would it be feasible to compile a working BB Black image by just adapting the focal-config?

from omap-image-builder.

RobertCNelson avatar RobertCNelson commented on September 8, 2024

yeah, i think that would work,

just
copy the focal one directly rcn-ee.net-console-ubuntu-focal-v5.10-ti-armhf, and then tweak the new stuff defined in rcn-ee.net-console-ubuntu-2304-riscv64

the biggest issue, these might now all be built yet for jammy..

https://github.com/RobertCNelson/omap-image-builder/blob/master/configs/rcn-ee.net-console-ubuntu-2304-riscv64.conf#L131-L143

from omap-image-builder.

orgua avatar orgua commented on September 8, 2024

awesome spidersenses! Thats exactly where its failing. some of these packages you pointed out are in the repo, but most of them aren't.

Hit:1 http://ports.ubuntu.com jammy InRelease
Hit:2 http://repos.rcn-ee.com/ubuntu jammy InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package bb-beagle-config
E: Unable to locate package bb-beagle-version
E: Unable to locate package bb-cape-overlays
E: Unable to locate package bb-usb-gadgets
E: Unable to locate package generic-sys-mods
E: Unable to locate package gt
E: Unable to locate package libusbgx
Log: umount: [/home/service/omap-image-builder/ignore/tmp.tGPfyN1lqQ/dev/pts]

Some fallback to focal would suffice. I did an ubuntu-upgrade once - it took forever on the BB - but the new software-versions brought a significant and much needed speed improvement for us.

BTW: is that line a possible bug? I tried adding it to jammy, but there are only debian-source in it.

from omap-image-builder.

RobertCNelson avatar RobertCNelson commented on September 8, 2024

Oh that line is only for arm64/riscv64 debian.beagleboard.org is not a full mirror of rcn-ee.net (the armhf has a large history, no reason to mirror that when we enabled the BeagleV project and then the TI bbai64 project)...

Regards,

from omap-image-builder.

orgua avatar orgua commented on September 8, 2024

main issue resolved as it was WSL-related

from omap-image-builder.

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.