RazortoothRTC / raspizero-archlinux-base

Useful base images and guides around archlinux arm + the raspi zero and zero W
0 stars 0 forks source link

Document Raspi Zero W Setup for Arch Linux ARM #1

Closed truedat101 closed 3 years ago

truedat101 commented 4 years ago

Use this issue to document the Raspi Zero W set up with Arch Linux ARM

existere commented 4 years ago

Installed VirtualBox on macOS and Debian on VirtualBox VM. Created partitions on SC card for Arch Linux install. Downloaded Arch Linux and moved boot files to partition. Connected RPi but no signal, black screen. Downloading Arch Linux again to reformat sd card to try again.

existere commented 4 years ago

Arch Linux will not boot into RPi, no power lights activated. Not sure what the source of the problem is, but I will try installing NOOBS next to make sure I have a working PRi.

truedat101 commented 4 years ago

can you create the SD card from os x?

On Mon, Sep 14, 2020, 2:09 PM Robin Aguilar <notifications@github.com wrote:

Installed VirtualBox on macOS and Debian on VirtualBox VM. Created partitions on SC card for Arch Linux install. Downloaded Arch Linux and moved boot files to partition. Connected RPi but no signal, black screen. Downloading Arch Linux again to reformat sd card to try again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RazortoothRTC/raspizero-archlinux-base/issues/1#issuecomment-692315634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPVSRVJFE26YWJRBLH52LSF2A7VANCNFSM4RFFTXHA .

existere commented 4 years ago

I can try that. I was using virtualbox so that I could use Debian but it probably just complicated the process unnecessarily. However, the SD card seems properly formatted when reading it from the last step of the install in Debian before attempting to boot into the RPi.

truedat101 commented 4 years ago

a bad SD card won't boot. you will end up with the colors on the bootloader screen .

On Mon, Sep 14, 2020, 3:26 PM Robin Aguilar <notifications@github.com wrote:

Arch Linux will not boot into RPi, no power lights activated. Not sure what the source of the problem is, but I will try installing NOOBS next to make sure I have a working PRi.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RazortoothRTC/raspizero-archlinux-base/issues/1#issuecomment-692346369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPVSX4SH37G6B3XTHXWCTSF2KDFANCNFSM4RFFTXHA .

existere commented 4 years ago

I'm not getting any colors or indicator lights. I assume the SD is the issue.

existere commented 4 years ago

The instructions on the arch linux site are for linux, which is also why I chose to use debian with vm. I'll need to find a set of instructions for mac.

existere commented 4 years ago

https://raspberrypi.stackexchange.com/questions/24118/install-arch-linux-from-osx

truedat101 commented 4 years ago

so the question is which arch Linux distro did you start with?

On Mon, Sep 14, 2020, 3:37 PM Robin Aguilar <notifications@github.com wrote:

https://raspberrypi.stackexchange.com/questions/24118/install-arch-linux-from-osx

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RazortoothRTC/raspizero-archlinux-base/issues/1#issuecomment-692350258, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPVSVPBUWTAFKFLOVYDWDSF2LLJANCNFSM4RFFTXHA .

existere commented 4 years ago

The ARM latest version, which I got from their website: https://archlinuxarm.org/platforms/armv6/raspberry-pi

truedat101 commented 4 years ago

Ok, I guess start with noobs.

But we need to revisit the card building for arch.

truedat101 commented 4 years ago

In my experience, the problems with the boot / sdcard are typically an error in the set up. Since it isn't automated, you have to do a perfect input through all the steps. What I suggest is to verify the card after you create it in gparted (post a picture of the card layout ) .

existere commented 4 years ago

Screen Shot 2020-09-15 at 11 32 51 AM

I rewrote the image to the sd card. For some reason the file system on the first partition is saying it is fat16 even though I followed the command for fat32.

existere commented 4 years ago

I just connected the rpi again and now I have ACT light on but the screen is still blank with no arch boot.

truedat101 commented 4 years ago

I think try noobs to just make sure this thing is working at all, and if you have a second card use that. One thing:

you must sync after you untar the root and boot partitions onto the card because data may still be written for up to 5 minutes.

And unmounting the card it is critical that you unmount / eject the sdcard via the OS so all resources are freed cleanly. Still, let's make sure this thing boots into something first.

On Tue, Sep 15, 2020 at 9:46 AM Robin Aguilar notifications@github.com wrote:

I just connected the rpi again and now I have ACT light on but the screen is still blank with no arch boot.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RazortoothRTC/raspizero-archlinux-base/issues/1#issuecomment-692838590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPVSWXFZC7JHSYY5DSGCTSF6LAHANCNFSM4RFFTXHA .

existere commented 4 years ago

Ok, I made sure to sync after the untar and after the boot and made sure to unmount correctly and now it's booting into arch!

existere commented 4 years ago

arch booted wifi enabled pacman initialized installing desktop

existere commented 4 years ago

Installation broke at desktop manager install (sddm). Looking for another option as I believe that option is no longer compatible with rpi.

existere commented 4 years ago

Rebooted, now stuck on Load/Save RF Kill Switch Status. Not sure how to get past this.

truedat101 commented 4 years ago

Can you post a screenshot of the problem?

existere commented 4 years ago

Finally figured out that the rpi reboot stops there normally and you have to use alt+f2 to toggle to arch. Working on getting the desktop set up, arch is up and running.

truedat101 commented 4 years ago

Great. If you don't mind to document any additional steps in to set up the Desktop, and any particular issues you ran into.

I advise the most minimal Desktop Set up as the 1 core is not a strong work horse.

https://github.com/RazortoothRTC/raspizero-archlinux-base/wiki/ArchLinux-ARM-Raspi0-W-Desktop-Setup-Guide

existere commented 4 years ago

When I was attempting to set it up earlier I ran into some issues trying to start the GUI following this guide:

https://www.instructables.com/id/Arch-Linux-on-Raspberry-Pi/ and https://www.zybuluo.com/yangxuan/note/344907

It would not start when I ran sudo systemctl start sddm and I'm getting Could not resolve host: mirror.archlinuxarm.org when attempting to download some packages. Also I couldn't get Packer to work although it is installed.

I'm reading about a recent change in Arch with something called systemD that relies on a specific configuration of DNS and NTP to access the packages necessary for the desktop. Curious if you've heard of anything like this. Tomorrow afternoon I will try and find some more information on it and try to reinstall everything for another go.

From a comment on the first guide:

"...you will notice that the DNS is not working hmmm why? it is because systemd does not care about /etc/resolv.conf it has hardcoded DNS servers such as 1.1.1.1 which is some DNS server from australia... anyway still the DNS servers are online so they should work so what is going on? What is going on is that DNS sec is enabled by default and it relies on computer time but your time is way off thanks to systemd and NTP is not installed."

Related post: https://www.reddit.com/r/linuxquestions/comments/cf6my0/raspberry_pi_3_with_archlinuxarm_cant_update/

truedat101 commented 3 years ago

More or less basic desktop set up is done and documented: https://github.com/RazortoothRTC/raspizero-archlinux-base/wiki/ArchLinux-ARM-Raspi0-W-Desktop-Setup-Guide