GithubHelp home page GithubHelp logo

kth5 / archpower Goto Github PK

View Code? Open in Web Editor NEW
70.0 9.0 5.0 199.55 MB

Unofficial Archlinux port to powerpc64le, powerpc64, powerpc and riscv64

Home Page: https://archlinuxpower.org

Shell 93.57% Roff 0.22% Python 0.33% D 0.01% Makefile 0.05% C 0.35% C++ 5.05% CMake 0.16% Perl 0.10% CSS 0.03% JavaScript 0.01% M4 0.01% HCL 0.01% Vim Script 0.03% Just 0.08%
linux pkgbuilds archlinux ppc64le power9 ppc riscv64 openpower ppc64

archpower's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archpower's Issues

[POWER8] Flags mismatch error on boot.

While booting on my IBM Power S822 Server it gets stuck on a Flags mismatch error.
I do know for a fact that PPC64LE works since Fedora and Debian booted.

Loading Linux linux ...
Loading initial ramdisk ...
OF stdout device is: /vdevice/vty@30000000
Preparing to boot Linux version 6.5.3-arch1-1 (linux@archpower) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP Fri, 15 Sep 2023 09:16:52 +0000
Detected machine type: 0000000000000101
command line: BOOT_IMAGE=/arch/boot/ppc64le/vmlinuz-linux --- quiet archisobasedir=arch archisolabel=ARCH_202309
Max number of cores passed to firmware: 256 (NR_CPUS = 2048)
Calling ibm,client-architecture-support... done
memory layout at init:
  memory_limit : 0000000000000000 (16 MB aligned)
  alloc_bottom : 000000000f6d0000
  alloc_top    : 0000000020000000
  alloc_top_hi : 0000000020000000
  rmo_top      : 0000000020000000
  ram_top      : 0000000020000000
instantiating rtas at 0x000000001eca0000... done
prom_hold_cpus: skipped
copying OF device tree...
Building dt strings...
Building dt structure...
Device tree strings 0x000000000f6e0000 -> 0x000000000f6e1913
Device tree struct  0x000000000f6f0000 -> 0x000000000f700000
[    0.951964] vas: API is supported only with radix page tables
[    1.544812] genirq: Flags mismatch irq 16. 00000001 (hvc_console) vs. 00000001 (hvsi)
[    1.544834] hvc_open: request_irq failed with rc -16.
[    1.544860] Warning: unable to open an initial console.
[   32.098341] genirq: Flags mismatch irq 16. 00000001 (hvc_console) vs. 00000001 (hvsi)
[   32.098361] hvc_open: request_irq failed with rc -16.
[   62.601599] genirq: Flags mismatch irq 16. 00000001 (hvc_console) vs. 00000001 (hvsi)
[   62.601613] hvc_open: request_irq failed with rc -16.
[   93.104875] genirq: Flags mismatch irq 16. 00000001 (hvc_console) vs. 00000001 (hvsi)```

Repo doesn't have ppc64 big endian kernel

At least as far as I can tell. It also isn't in https://repo.archlinuxpower.org/base/powerpc64/

root@archiso ~ # pacstrap -K /mnt base linux linux-firmware base-devel neovim
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 base-any is up to date
 base is up to date
error: target not found: linux
error: target not found: neovim
==> ERROR: Failed to install packages to new root

Acceleration No Go/Systems Hanging

I know you said you recently enabled acceleration, but now when I install a fresh copy of Arch using the xf86-ati-video driver, it causes either the system to hang or colors to glitch, similar to KDE when acceleration is enabled, which I understand is due to KDE. However, it's also happening with LXDE and XFCE (not KDE). SDDM is no longer usable, and if I install Mesa and/or mesa-amber (tried both as I know RV350 GPUs are moving to Amber at some point), it just causes it to load to a black screen. As of now, the way I was installing Arch before for the last year no longer works. I've verified both Radeon 9200 and 9700/9600. Powerbook G4 1.67 and Mac Mini G4. I may be doing something wrong, so if I am, feel free to call me out on it. also not using testing and everything is installed from stable base.

Kde-application - KDE-Applications - telepathy -kde Faiulre and konsole

Konsole: In KDE, both konsole and pull down konsole launch but when you enter text, it disappears after the first few words typed and and if does manage to take the command it does not print out any text…it usually causes the freezing before this but, if it does take it without freezing the systems text will disappear all together and eventually cause the system to crash. This is a confirmed issue that not only I’m having but two other friends that are this port as well…confirmed on not only there systems but also on the three of mine as well …both iBook G4 and PowerBook G4, both with clean installs, and PowerMac G5. Plasma-desktop meta packages install fine, but kde-applications , kde-networking, and telepathy-kde are broken on PowerPC32. I've confirmed this by installing the Plasma desktop and then kde-applications—errors saying too many dependency issues and does not allow the install to proceed on any of the three bundles of packages. The only successful set to install on clean system was the plasma-desktop bundle. Everything else has dependency issues, preventing further installation.

On top of that, I want to personally say thank you for everything you do. I was literally just talking about this project on the Arch Discord. Arch really should give this project more recognition and provide these as unofficial ports on their site, similar to how Debian does for ports. There's no reason that all this work should be shoved to the side. I don't know if you've seen Debian Sid lately on PowerPC, but it's an absolute broken package hot mess. Being able to install something and actually have the packages install is fantastic. I'm trying to find a good office suite to compile because LibreOffice isn't available. Any ideas, and I'm all ears. Appreciate you guys! When I get paid next Friday, I plan on chipping in some money. By the way, I have a last-generation PowerBook G4; it actually works really really well with KDE with the xf86-video-at driver. I know your mini has the Radeon 9200 in it but mine uses 9700 I know you said it was broken, but I've actually had decent performance with an SSD! Hoping the rest eventually will work. If there’s anything I can do contribute outside of me donating on Friday I am here for you guys as a Guinea pig.

We need a wiki

Two important things need to be in the wiki:

1- Install guide, similar to the vanilla Arch install guide, but with added steps for ppc and ppc64le devices, especially with GRUB and such.
2- How to contribute to ArchPOWER: we'll include the two methods we use: your docker method, and my devtools method, so that other people can contribute to the project easily.

yaboot iso and install instructions

I've found that yaboot is generally more reliable than GRUB on ppc, so I think it's important to give the user a choice between yaboot or GRUB in the installation page for New World machines. I would do this myself, but there's no way to PR a wiki change and this repo doesn't have wiki editing enabled.

qemu with kvm failing on glibc2.33 (and temporary fix)

qemu-system-ppc64 -M pseries,accel=kvm currently fails due to a suspected glibc 2.33 bug.
Downgrading the kernel to Linux 5.4 LTS fixes this issue temporarily.
There is a PKGBUILD for linux-lts54 in this git repository, or optionally wait for it to be in the base repo and install it.

Follow this issue for updates regarding this bug.

Additional resources:

https://bugzilla.redhat.com/show_bug.cgi?id=1941652
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1920784

Repo SSL Invalid

Not sure if that is a proper descriptor, but when I try to install ArchPOWER I am met with this error...

error: failed retrieving file 'base-any.db' from repo.archlinuxpower.org : SSL certificate problem: certificate is not yet valid
error: failed to synchronize all databases (download library error)
==> ERROR: Failed to install packages to new root

... and it prohibits me to progress further in the install process.

I've tried repopulating the keyring as well, but this didn't work.

iMac G3 keyboard not detected

I was trying to install Arch Power on my iMac G3 and up until it doesn't recognize the disk by label my keyboard is working, but once I get to the rootfs command line my keyboard is no longer detected.

PPC32

Hey just noticed no iso for current release…for the PowerPC32 side. Has that port been dropped and your only focusing on 64/LE going forward? Thanks for all you do :)

Xserve G5 - Linux Kernel - Windfarm_rm31 missing

Hello,

the windfarm_rm31 module is missing in the actual linux-kernel package.

now my xserve g5 is a big jet ;)

on the installation cd i had no problems, the module load exists and load without problem.

community and extra repo, what to do?

Hey!

i missing many of the community and extra packages for my new shiny arch-xserve g5! so what can i do? a guide or packaging rules would be nice 👍

or can i serve a buildbot? i have many g4/g5 cpu-native resources.

greets!

Create proper website

Out of sheer laziness aka wanting to focus on the distro itself, I have never gotten around to fixing up a proper website that may actually get indexed by any search engine.

Features:

  • chronological news
  • package index
  • installer links
  • etc

(preferably not based on Wordpress)

Xfwm/hanging

Hey, so I just closed the prior ticket; it's not due to Mesa, it's actually due to xfwm4. When installed, it loads the CPU to 100%. It works fine on the initial login after a clean install, but after it creates its configuration files in your home directory, the next login causes the system to hang. I've verified this issue on both a clean install with qemu, iMac G5, and PowerBook G4. The workaround for now is to uninstall xfwm and install Openbox along with xcompmgr to handle the transparency and effects. I haven't had time to debug xfwm, but I'm using everything from stable. So, I have mesa-amber for Radeon 9700 and xf86-video-ati for normal 2D stuff. This also affects SDDM, making it non-usable. It loads with no graphics glitching, but typing in your password takes half an hour because it freezes/lags when typing in login credentials for any user. I have not tried forcing it down with an environment variable to make it use 2D only, but I'll take a peek at it in the next few days. Also I compiled claws mail, trinity desktop and sealion browser developed off of palemoon and palemoon compiles as well. Wasnt sure if you wanted me to provide the binary's to add to the repo…I would strongly recommend replacing kde with trinity desktop…its maintained kde for older systems and it was an easy compile and flys on ppc…might be easier rather then packaging kde6 as its much smaller and less cumbersome….Cheers, mate. Thanks for everything you do!

[powerp64le] Mozilla builds hanging indefinitely

  • Thunderbird 78

    • rust compiling webrender never finishes. (>72Hrs on POWER9)
  • Firefox 88.0.1

    • strange hanging GCC processes not advancing or causing any CPU (>72Hrs on POWER9)

domakepkg and makechrootpkg make no difference.

Kernel Panic on G5 with ppc64 kernel

I'm helping someone install Arch POWER on their G5. Everything went relatively smoothly until their first boot, when the kernel panicked.

Here's an image of the panic:
panic

It looks like it's failed to open the initial console for some reason, and the init quits. If this is in fact an issue with the linux-ppc64 kernel, it has to be in the latest version, because the iso booted fine, and it uses the previous version of the kernel.
I attempted to reproduce this in QEMU, but I couldn't even get the iso to boot on ppc64 (neither hard drive nor CD show up in /dev, even after running udevadm trigger).

iMac G3 keyboard does not work after installation

I understand this issue has already been discussed in issue #52, but the symptoms are a bit different.

The keyboard works just fine from the install CD, but after booting an installed copy of Arch POWER from the hard drive, the keyboard is completely nonfunctional. Not even the caps lock light turns on when the key is pressed.

I have already tried (unsuccessfully) to figure out where the issue may be, but I cannot SSH into the system to view the kernel log, as dhcpcd does not seem to be started before the login prompt.

The iMac G3 in question is the Summer 2000 model with a 450 MHz G3, in case this information is needed.

Merge RISC-V resources with existing Arch Linux RISC-V effort

There is already an effort to port Arch Linux to RISC-V, headed by Felix Yan (felixonmars). The main goal is to make riscv64 an officially supported architecture in Arch Linux, and that's more attainable than with other architectures since we have TUs like felixonmars working on things.
I noticed that this project is also attempting to port Arch to riscv64, so I just wanted to inform you about the existing effort as to not waste resources.
More info is available on the unofficial website and Matrix room.

How to help?

I've recently gotten a Talos II workstation and using the arch powerpc64le port and I would like to help.

In using I've build quite a few packages. How can I help getting these into the repository? Many of the packages just work, others need very minor tuning.

Perhaps a CONTRIBUTING.md file might be a good first step? Or is there and upstream archlinux document we could use?

Specific details I'd want to see documented:

  • guidelines for the PKGBUILD adjustments
  • which packages to include ? (just base from arch upstream? or also AUR?)
  • one PR per package, multiple packages? logical sets?
  • when to ask upstream for changes? (like outdated config.guess/config.sub files)

systemd built against the wrong version of glibc

Since the last ISO release, systemd has been updated in your repositories to require glibc 2.38 (see attached) but glibc hasn't been updated to support this version of systemd. This results in an unbootable system.

Edit: It's worth noting that the correct glibc version is in the testing repository. Enabling that repository and installing ArchPOWER works fine. Was the systemd version accidentally pushed to main instead of testing?

IMG_0705

[Installer] Empty /etc/resolv.conf file in ISO

I don't know if this is the right place, but the ISOs don't seem to have a DNS resolver, you could add openDNS or Google's DNS to the file using
nameserver x.x.x.x

I was having issues connecting to the internet in QEMU/KVM and this fixed it.

On a separate note, it seems the ISOs can't be booted directly on my POWER9 system, it just doesn't want to mount the root filesystem for some reason, so I am using QEMU/KVM to install Arch and then figure out what's wrong.

libvirt does not build (6.5.0-3)

After building in a clean chroot, libvirt fails in the package phase

make[1]: Leaving directory '/build/libvirt/src/build'
mv: cannot stat '/build/libvirt/pkg/libvirt/usr/lib/libvirt/storage-backend/libvirt_storage_backend_rbd.so': No such file or directory
==> ERROR: A failure occurred in package_libvirt().
Aborting...

Consider packaging mesa-amber

Many older powerpc devices will not be supported by the drivers available in plain mesa

From some very limited testing on an iBook G4:

  • Once i was able to tame xorg enough to get the system bootable to GUI, i found it was using llvmpipe.
  • Compiling mesa-amber from the ABS is possible but :
    • Obviously quite slow.
    • I ended up removing all but my specific needed driver (r200), as compiling for the lot brings in bunch of dependencies i dont need/want.
    • Compiled without LTO as it would presumably have probably taken millenia and all but locked up the laptop when I tried with it enabled.
    • glxgears looks 'funky', but did run (maybe im missing some endianess patches?). inxi reports direct rendering is working.

PowerBook G4 - Installation works fine, but boots to "Unable to open an initial console" followed by a kernel panic

The computer I am using is a PowerBook G4 12 inch from 2005. Here are the specs: https://everymac.com/systems/apple/powerbook_g4/specs/powerbook_g4_1.5_12.html

This does not happen off the CD, just the internal HDD. At the same stage on the CD I get a bunch of nouveau messages. What am I doing wrong?

What I've tried:
Installing xf86-video-nouveau drivers (using pacman -S, nothing else)

Image of my issue:
PXL_20220221_144224000

Broken KDE-Networking KDE-Applications

It appears that the Plasma Meta set installs correctly, but there seems to be an issue with the KDE-networking and KDE-applications dependencies. They appear to be either broken or conflicting with each other, preventing both installations with and without testing enabled. Additionally, User-Manager is also broken.

devtools issues (makechrootpkg fails)

makechrootpkg (part of the devtools package) fails because it tries to use "setarch powerpc64le"
It only recognizes the short format "setarch ppc64le"
One way to solve this is to change /usr/bin/arch-nspawn to call setarch with the correct naming.
Another more hacky way is to force it to use the "-s" option, which does not use setarch while building, this would break cross compilation though.

For reference:

makechrootpkg -T -r $CHROOT -- -si --skippgpcheck
==> Synchronizing chroot copy [/opt/archchroot/root] -> [shiningace-660519]...done
==> Making package: libvirt 1:6.5.0-3 (Fri Dec 4 15:52:13 2020)
==> Retrieving sources...
-> Found libvirt-6.5.0.tar.xz
-> Found libvirt-6.5.0.tar.xz.asc
-> Found CVE-2020-14339.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
libvirt-6.5.0.tar.xz ... Passed
libvirt-6.5.0.tar.xz.asc ... Skipped
CVE-2020-14339.patch ... Passed
setarch: powerpc64le: Unrecognized architecture
==> Removing chroot copy [/opt/archchroot/shiningace-660519]...done
==> ERROR: Build failed

KDE Alternative And Email

Hey, thanks for the continued work. It might be worth just dropping KDE Plasma and instead building the Trinity Desktop located here. I have it compiled, and because it's based on KDE 3.5, it's so much lighter and makes way more sense than supporting KDE Plasma... that's so much work for you. The desktop is actively maintained and so far has been as simple as compiling for me, no issues at all. The other thing was email and browsing. I noticed there are not a lot of email clients. A lightweight email client I found was Claws Mail located here, easy to build and extremely lightweight for older hardware. And last but not least is Wicknix maintained SeaLion Web browser. This has the same base as ArcticFox but built off a new backend called XUL which is derived from palemoon, which includes more modern APIs than ArcticFox and is even lighter in my testing and capable of far for compatability modern sites. Wicknix has been developing PowerPC software alongside Cameron, who up until recently was maintaining TenFourFox for PPC. Same build requirements as ArcticFox. I have it compiling, and I've actually changed over to it because ArcticFox is aging and it is located here. Hope this doesnt come off as making or requesting you do more work…primarily submitting this because I know the pains of compiling and maintaining…I was just trying to find solutions that will make it easier and more efficient to maintain. Anyways like I said you should look into trinity instead of building kde 6…its the best solution for a kde person wanting to use it on older hardware and its got the caveat of being built on a mature kde 3.5 backend which means lean and mean and not having to deal with weekly releases of kde 6 causing you having to worry about compatibility as new versions are released of kde 6… and the beautiful thing is everything is in the AUR….cheers!!!

LXDE/LXQT

Would it be possible to package LXDE? It's extremely fast on old hardware and truly fantastic. It might be a good option for legacy machines. I was averaging around 92MB of RAM usage on Debian, and it has a small footprint. Oh, and I was going to ask, is ATI still broken? I'm going to test KDE6 tonight! Thank you for all your help!

password installer-iso?

I booted up the latest installer iso but i needed a root password? i try many variations..

knetattach files exist in the plasma-desktop package

Looks like knetattach, a KDE plasma package, has files inside plasma-desktop so you get an error when trying to install knetattach.

error: failed to commit transaction (conflicting files)
knetattach: /usr/bin/knetattach exists in filesystem (owned by plasma-desktop)
knetattach: /usr/share/applications/org.kde.knetattach.desktop exists in filesystem (owned by plasma-desktop)

Access To Remote PowerPC

Hey had no way to contact you so I apologize in advance for posting this as an issue when it’s not, but I wanted to offer my Powermac G5, iMac G5 iSight and PowerBook G4 if you need systems to remote into for development/compiling purposes. Just let me know if you need anything! I don’t know programming but I’d like contribute in some way if you need.

32bit PowerPC support

Shouldn't be too hard to rebuild packages to support his. Work on the installer is needed though to ensure archlive can generate a working one.

Think about how to automate builds when updating ppc64le.

PowerMac G5 support

Any plans to have a powerpc64 port? I have a powermac g5 and I would be willing to test and help

Additional steps for booting using grub on ppc

How to use Grub for booting:

  • create a bootstrap partition with at least 4MiB size (better 12MiB to be safe, default 800KiB is too small, even ATA diskspace is cheap)
    image

  • install as normal (assumed to /mnt)

$ pacstrap /mnt/ base linux grub hfsutils
  • format bootstrap partition (/dev/sda2) from target (no hfsutils on iso yet)
$ arch-chroot /mnt
$$ hformat /dev/sda2
$ ^D
  • mount bootstrap partition (assumed /dev/sda2) to /boot/grub on the target rootfs and configure/install
$ mkdir /mnt/boot/grub
$ mount /dev/sda2 /mnt/boot/grub
# bootstrap partition should always get mounted to /boot/grub so grub hooks may work properly
$ genfstab -U /mnt > /mnt/etc/fstab
$ arch-chroot /mnt
$$ grub-mkconfig -o /boot/grub/grub.cfg
# this one will fail if bootstrap is too small (depends on Grub mods included with core.elf)
$$ grub-install 

This method will execute on KVM but will fail at setting the OF variable boot-device properly. No fix known at this time.

Originally posted by @kth5 in #5 (comment)

Additional steps needed to fix the issue where OF doesn't recognize grub:

$ hmount /dev/sda2
$ hattrib -t tbxi -c UNIX :System:Library:CoreServices:BootX
$ hattrib -b :System:Library:CoreServices
$ humount

With this I think we have a complete method of installing Arch on both ppc Macs and OpenPOWER systems.
I think we need a small wiki to make these steps more friendly, I'll open another issue and I'll work on that.

[Installer] ISO cannot boot from USB thumb drive

For some reason it can't mount the labelled filesystem in order to get the squash file when the ISO has been dd'ed to a USB flash drive. It does although work fine from a USB CD-ROM drive albeit the timeout for the labelled volume to show is a tad short.

[ppc32] pacman cannot find mesa package

hi!

pacman cannot find the mesa package

mesa in package database = 21.2.4-1
mesa on package repo = 21.2.5-1

ive tried pacman -syyu, to be sure the database is uptodate. it is my fault? or is the database in the repo older than the packages?

greets :)

[powerpc32] pgp keys outdated/missing

hello!

the pgp keys are outdated or missing in the lastest powerpc32 image. my dirty workaround is to set SigLevel = Never in /etc/pacman.conf

greets

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.