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

dont work for 512 RAM Rpi Model B #3

Open
cirrusUK opened this issue Oct 27, 2021 · 9 comments
Open

dont work for 512 RAM Rpi Model B #3

cirrusUK opened this issue Oct 27, 2021 · 9 comments

Comments

@cirrusUK
Copy link

cirrusUK commented Oct 27, 2021

sadly when i reach the install i get
Unknown architecture: armv6h
the pi runs archlinux-arm, i installed debootstrap-git from aur.
any tips appreciated.

Unknown architecture: armv6h
Something went wrong with the installation, run this to clean up your system:
rm -rf /var/lib/machines/iandeb
rm /etc/systemd/nspawn/iandeb.nspawn
Traceback (most recent call last):
File "/home/cirrus/build/nspawn2go.py", line 300, in
raise e
File "/home/cirrus/build/nspawn2go.py", line 214, in
subprocess.run(
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'debootstrap --variant minbase --include=dbus,systemd,sudo,tigervnc-standalone-server,dbus-x11,icewm,xterm --cache-dir /root/.cache/b9_provision_nspawn_deb stable iandeb http://deb.debian.org/debian/' returned non-zero exit status 1.

@boronine
Copy link
Owner

My guess is that Arch is reporting the system architecture in a way that debootstrap doesn't understand. What is your exact Raspberry Pi model? I'll try emulating it in QEMU.

@cirrusUK
Copy link
Author

Thanks for the prompt response, this is my olde pi model, i appreciate your help.

@boronine
Copy link
Owner

From the link

Model: Raspberry Pi Model B 512MB RAM
Chip: Broadcom BCM2835
Processor: ARM1176JZF-S 700 MHz
https://en.wikipedia.org/wiki/ARM11

boronine added a commit that referenced this issue Oct 27, 2021
@boronine
Copy link
Owner

Installing Arch on ARM QEMU is too time consuming, I'm not willing to go through with it. For reference, this seems to be the instructions: https://archlinuxarm.org/platforms/armv6/raspberry-pi

I believe in Debian-land this architecture is called armel. So perhaps this issue can be worked around by passing the architecture to debootstrap explicitly via the --arch parameter.

Can you try running this version of the script? This is just a testing branch. If it works, I will add a parameter to the script to override the architecture.

wget https://raw.githubusercontent.com/boronine/nspawn2go/wip-armel/nspawn2go.py

@boronine
Copy link
Owner

@cirrusUK ^

@cirrusUK
Copy link
Author

thanks bro, got few steps forward, only thing falling over now is
E: cache directory should be specified with an absolute path

i will troubleshoot some more when i get back, gtg out an errand, thx again

@boronine
Copy link
Owner

Thanks for testing!

The error E: cache directory should be specified with an absolute path is probably because your XDG_CACHE_HOME is set to a non-absolute path. I removed this variable in the master version so you can try again.

I also added support for VMARCH environment variable. You should be able to use the master version of the script like so:

wget https://raw.githubusercontent.com/boronine/nspawn2go/master/nspawn2go.py
sudo su
VMARCH=armel python3 nspawn2go.py

@cirrusUK
Copy link
Author

cirrusUK commented Oct 28, 2021

Here is the Output from the modified .py
regards and again thx for taking the time.

@boronine
Copy link
Owner

Are you sure you ran the latest code and included the VMARCH=armel environment variable? Based on your output it looks like either the script is not up-to-date or it's not picking up VMARCH.

Could you try again? Note also that if you don't delete the old script before downloading the new one, wget will append a suffix to the new one.

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

No branches or pull requests

2 participants