Ask Your Question

rfkrocktk's profile - activity

2016-05-10 22:40:06 -0500 answered a question Changing YUM/DNF basearch on Raspberry Pi image?

Based on the input above in the comments, I did a sed replace of $basearch with armhfp and it worked.

2016-05-03 22:43:16 -0500 received badge  Student (source)
2016-05-03 19:40:31 -0500 commented question Changing YUM/DNF basearch on Raspberry Pi image?

Will do. I'm pretty sure that they're equivalent as that name is present in the image download name.

2016-05-03 01:06:47 -0500 asked a question Changing YUM/DNF basearch on Raspberry Pi image?

I've followed the installation instructions for Fedora on a Raspberry Pi 2. I downloaded the MATE Desktop image here and verified it with its signature available here, and then copied it over onto my SD card.

I then setup a chroot environment using a static build of QEMU ARM, and was able to successfully chroot into the image. I can execute any ARM binary and connect to the network.

However, I cannot install any packages inside the chroot due to this strange error from dnf:

# dnf update
Error: Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=arm': Cannot prepare internal mirrorlist: file "repomd.xml" was not found in metalink

If I look at the metalink returned from that URL, there is only an armhfp repository.

As I'm assuming that this is a misconfiguration, is there a way for me to change the basearch variable defined by YUM to be armhfp rather than arm? Is there something else I need to do, something I'm missing?

uname -m reports the architecture:

# uname -m
armv7l

and file tells me about the compiled files:

# file /bin/bash
/bin/bash: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=04f0998ecd3bfaea23bab0223f7ce1f602296085, stripped

I originally posted this at unix.stackexchange.com before discovering that there was a dedicated place to ask this.