RaspberryPi-Fedora-Remix-17 Test image 5


9 posts
by Bad Wolf » Tue Aug 21, 2012 10:59 pm
A quick heads up for Fedora fans.
The latest updated test image for the f17 Raspberry pi has been released.

http://scotland.proximity.on.ca/raspberrypi/test-releases/rpfr17/latest/
To a person with a hammer, everything looks like a nail.
Posts: 66
Joined: Wed Jan 25, 2012 11:18 pm
by mpanetta » Wed Aug 22, 2012 12:12 am
Where do I get the repo definitions listed in the image creation script? I would like to be able to create my own images. I am aware that this is not intended for novices, but I am very familiar with RPM, YUM and creating my own packages, so I promise I won't be a big bother. :)

The repo definitions I am interested in are for these repos:

fedorasfp, rpfr, and fedorasfp-updates

Thanks,
Mike
Posts: 2
Joined: Sat Aug 11, 2012 10:10 pm
by mpanetta » Wed Aug 22, 2012 1:26 am
Ahh crap... So I rigged up some repo configs based on the ones on the f17 image and it isn't letting me cross-build the image. It keeps trying to pull x86_64 packages despite the fact I forced the architecture in the .repo file. Can you look at my .repo files below and tell me if I made any mistakes?

Code: Select all
#fedorasfp.repo
[fedorasfp]
name=Fedora 17 - arm
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/arm/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-17&arch=arm
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm

[fedorasfp-debuginfo]
name=Fedora 17 - arm - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/arm/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-17&arch=arm
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm

[fedorasfp-source]
name=Fedora 17 - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/source/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-17&arch=arm
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm


Code: Select all
#rpfr.repo
[rasp-pi]
name=rasp-pi 17 - arm
baseurl=http://scotland.proximity.on.ca/~agreene/raspberrypi/raspberrypi-fedora-remix/17/packages/arm/os/
#name=Fedora 17 - arm
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/arm/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-17&arch=arm
enabled=0
metadata_expire=7d
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-remix-17

[rasp-pi-debuginfo]
baseurl=http://scotland.proximity.on.ca/~agreene/raspberrypi/raspberrypi-fedora-remix/17/packages/arm/debug/
name=rasp-pi-debuginfo 17 - arm
failovermethod=priority
##baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/arm/os/
##mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-17&arch=arm
enabled=0
metadata_expire=7d
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-remix-17

[rasp-pi-source]
baseurl=http://scotland.proximity.on.ca/~agreene/raspberrypi/raspberrypi-fedora-remix/17/packages/source/
name=rasp-pi-source 17 - arm
failovermethod=priority
###baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/17/Everything/arm/os/
###mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-17&arch=arm
enabled=0
metadata_expire=7d
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-remix-17


Code: Select all
#fedorasfp-updates.repo
[fedorasfp-updates]
name=Fedora 17 - arm - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/17/arm/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f17&arch=arm
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm

[fedorasfp-updates-debuginfo]
name=Fedora 17 - arm - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/17/arm/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f17&arch=arm
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-arm

[fedorasfp-updates-source]
name=Fedora 17 - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/17/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f17&arch=arm
enabled=0
gpgcheck=1


I also changed the script to use rasp-pi instead of rpfr for the rpfr repo, since that is what it was named in the file.

I am not quite sure why it keeps insisting on pulling the x86_64 arch packages for the base packages (such as rpm, bash, etc...) despite the fact that I hard coded the arch to arm in the repo files...

I can't use setarch, because arm and x86_64 are not compatible (obviously) so I am not sure what to do there...

Eventually my goal would be to have a fully workable cross-build system on my laptop that will let me build not only RPM's for the raspberry pi, but also install images. I have already cross-built the kernel, and had no issues with it (so far).

Any pointers on how I can get what I want set up would be greatly appreciated!

Thanks,
Mike
Posts: 2
Joined: Sat Aug 11, 2012 10:10 pm
by ozymandias » Wed Aug 29, 2012 12:29 pm
Bad Wolf -- great name!

I have played with your image a bit, and ran into an issue where sshd would not start. Digging around, this was because a) the sshd user did not exit. Creating this user resolved that issue. b) The keys in /etc/ssh/ssh_host_?sa_key had group read permission.

Fixing those two issues, and everything appears to be running like a champ.

I am currently working on getting the edimax drivers for the micro WIFI dongle working, and will send you either a copy of my steps, or a working module if you want to include that in the fedora image.

Thanks for all your work!
Posts: 2
Joined: Wed Aug 29, 2012 12:23 pm
by Bad Wolf » Thu Aug 30, 2012 8:39 pm
Sorry Guys intended to get back to you earlier but work has a bad habit of getting in the way!

Mike.
I cannot help but think it is a futile exercise, with no benefits, I see no added value to using a custom cross-build system, as the ARM packages have already been compiled natively on ARM platforms. Any problem that may arise on your system will forever bear the mark of doubt, as you will not really know if this is something broken in the design or something you broke.

For those interested here are quick instructions to install Fedora/ARM cross toolchain .if your computer has i386 or x86_64 architecture. After installation, you are able to cross compile your source code for ARM architecture in your i386 or x86_64 computer. These are the commands you should run:

# cd /etc/yum.repos.d/
# wget http://ftp.linux.org.uk/pub/linux/arm/f ... cross.repo
# yum install armv5tel-redhat-linux-gnueabi-gcc

This will install everything necessary to run the C compiler and cross-build ARM libraries and binaries that are entirely binary compatible with the native Fedora/ARM libraries and binaries.



Ozymandias
Don’t thank me, the thanks belong to Chris Tyler and his Seneca team who do the amazing work to make Fedora run on the Raspberry Pi.
I only post the links so that forum users aware of the work they are doing, and have an easy way to try out the latest image for themselves

By all means post a “How to..” for edimax drivers. and one on how to set up sshd I am sure they will also be of interest to other users who want to play / experiment with the images.who knows it could even lead to this section becoming more of a mini Fedora Community
To a person with a hammer, everything looks like a nail.
Posts: 66
Joined: Wed Jan 25, 2012 11:18 pm
by manunc » Fri Aug 31, 2012 12:27 pm
I am looking to compile sources code for the rpi arch (armv6?) with fedora remix distro or fedora core in my laptop.
What are the step to follow to compile source code on rpi ?
I saw that I can install dedicated gcc for my laptop, but I am not expert in the different architecture.
I mean is it different than compile in a standard distro ?
Do I have to modify some export variable ?

What is the difference between hardfloat and softfloat ?

Thanks by advance
Posts: 14
Joined: Sun Aug 19, 2012 4:02 am
by JozkoMrkvicka » Mon Sep 03, 2012 5:14 pm
Hi,

i would be glad in someone can post the repo files which created the test image so you can make your own image.

Jozko
Posts: 1
Joined: Mon Sep 03, 2012 5:11 pm
by ozymandias » Tue Sep 04, 2012 2:56 pm
Bad Wolf,

What's the best way to hook up with those guys? I would be interested in working with them, and assisting if at all possible.

Ozy
Posts: 2
Joined: Wed Aug 29, 2012 12:23 pm
by Anvil » Thu Nov 01, 2012 4:16 pm
Hello

There's a small bug in the inlined scripts. The $? are not what you expect. You should either add a \ in front the $, either apply this patch :
Code: Select all
--- rpfrcompose17-xfce.orig   2012-11-01 17:09:44.593971745 +0100
+++ rpfrcompose17-xfce   2012-11-01 17:10:17.204584925 +0100
@@ -173,10 +173,10 @@
 # Re-install to fixup users
 
 cp /etc/resolv.conf ${fsdir}/etc/resolv.conf
-cat << EOF >${fsdir}/tmp/reinstall
+cat << 'EOF' >${fsdir}/tmp/reinstall
 #!/bin/bash
 echo "Reinstalling within chroot."
-yum reinstall -y \$(rpm -qa --qf "%{name}\n"|egrep -v "^setup$")
+yum reinstall -y $(rpm -qa --qf "%{name}\n"|egrep -v "^setup$")
 yum clean all
 find / -name '*.rpmsave' -o -name '*.rpmnew' -delete
 echo "Finished reinstalling within chroot. Exit status: $?"
@@ -214,12 +214,12 @@
 
 # Agreene's suggestions for optimazation on Boot
 
-cat << EOF > ${fsdir}/tmp/optimize-systemd
+cat << 'EOF' > ${fsdir}/tmp/optimize-systemd
 #!/bin/bash
 echo "Optimizing systemd within chroot."
 for i in fedora-storage-init-late.service fedora-storage-init.service plymouth-halt.service plymouth-kexec.service plymouth-poweroff.service plymouth-quit.service plymouth-quit-wait.service plymouth-read-write.service plymouth-reboot.service plymouth-start.service mdmonitor.service mdmonitor-takeover.service auditd.service avahi-daemon.service avahi-daemon.socket bluetooth.target dev-hugepages.mount dev-mqueue.mount fedora-configure.service fedora-loadmodules.service fedora-readonly.service ip6tables.service sys-kernel-config.mount sys-kernel-debug.mount systemd-readahead-collect.service systemd-readahead-done.service systemd-readahead-done.timer systemd-readahead-replay.service
 
-        do systemctl mask \$i
+        do systemctl mask $i
         done
 
 # Missing symlink for sendmail.pid



Single-quoting the label of the inlined-doc makes the whole inline doc like single-quoted. Sounds easier to write the shell the code if you do that.
Posts: 1
Joined: Thu Nov 01, 2012 4:03 pm