Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build custom image #14

Open
orgua opened this issue Sep 27, 2022 · 4 comments
Open

build custom image #14

orgua opened this issue Sep 27, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@orgua
Copy link
Owner

orgua commented Sep 27, 2022

current state:

new approach:

  • build your own, add latest ubuntu 22.04 (jammy) with python 3.10, if possible include shepherd
  • the rcn-ee apt repo already has jammy-support (newest, last checked on 2023-03-10)
  • a manually updated ubuntu on bbone works fine
@orgua
Copy link
Owner Author

orgua commented Sep 27, 2022

script fails on WSL with ubuntu 20.04:

I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting util-linux...
I: Extracting zlib1g...
I: Extracting libgcc1...
Log: Size of: [/home/hans/omap-image-builder/ignore/tmp.DAkTcYjvnc]: 320M
Log: /bin/bash -e "${OIB_DIR}/scripts/chroot.sh"
sudo cp -v /usr/bin/qemu-arm-static "/home/hans/omap-image-builder/ignore/tmp.DAkTcYjvnc/usr/bin/"
'/usr/bin/qemu-arm-static' -> '/home/hans/omap-image-builder/ignore/tmp.DAkTcYjvnc/usr/bin/qemu-arm-static'
Log: Running: debootstrap second-stage in [/home/hans/omap-image-builder/ignore/tmp.DAkTcYjvnc]
Log: [sudo chroot /home/hans/omap-image-builder/ignore/tmp.DAkTcYjvnc debootstrap/debootstrap --second-stage]
chroot: failed to run command ‘debootstrap/debootstrap’: Exec format error
Log: umount: [/home/hans/omap-image-builder/ignore/tmp.DAkTcYjvnc/run]

also, prereqs are - via apt:

  • m4
  • debootstrap
  • debootstick
  • qemu-system-arm (+ many dependencies)
  • chrootuid ?? probably not

For debian 11.6 more prereqs were installed (mostly reading through threads in the web):

  • bash-completion (convenience)
  • git
  • sbuild (just a guess)
  • also add buildroot-reqs
  • qemubuilder (+ many dependencies)
  • [qemu-arm-static] (not avail)
  • qemu-user-static
  • crossbuild-essential-armhf
  • coreutils
  • sbuild-qemu
  • qemu-utils
  • pbuilder
  • cdebootstrap
  • zstd
  • [precise-backports] (ubuntu?)
  • schroot
  • tree

try to build ubuntu, following the readme

>> ./RootStock-NG.sh -c rcn-ee.net-console-ubuntu-focal-v5.10-ti-armhf
- init
- retrieve & validate many packages
- still fails at same error as above

each execution will add a subfolder in ./ignore/

sudo du -hc --max-depth=1 ./

bootstrap-config broken?
/usr/share/debootstrap/scripts/focal
nano /usr/share/debootstrap/scripts/gutsy

@orgua
Copy link
Owner Author

orgua commented Oct 26, 2022

there seems to come no update to ubuntu 22.04. but at least it was updated to 20.04.05 recently

@orgua orgua added the enhancement New feature or request label Dec 8, 2022
@orgua
Copy link
Owner Author

orgua commented Mar 10, 2023

alternate method, try buildroot, semi-official beagle or alternatively here.

Reqs for buildroot

  • try in debian 11.6

@orgua
Copy link
Owner Author

orgua commented Mar 10, 2023

WSL1 might be the problem on W10, so check current status

PS> wsl --list --verbose
  NAME            STATE           VERSION
* Ubuntu-22.04    Stopped         1
  Debian          Stopped         1
  Ubuntu          Stopped         1

Update internals

PS> wsl --update
PS> wsl --set-default-version 2

change nothing at first, maybe only for new distros? So force one distro to V2

PS> wsl --set-version Debian 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion in progress, this may take a few minutes.
The operation completed successfully.

PS> wsl --list --verbose
  NAME            STATE           VERSION
* Ubuntu-22.04    Stopped         1
  Debian          Stopped         2
  Ubuntu          Stopped         1

update seems instantly!

@ubuntu :~$ uname -a
Linux Host 4.4.0-19041-Microsoft #2311-Microsoft Tue Nov 08 17:09:00 PST 2022 x86_64 x86_64 x86_64 GNU/Linux

@debian :~$ uname -a
Linux Hoellenmaschine2020 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 GNU/Linux

Omap builder still fails though :(
but a Linux-VM is getting past the critical point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant