clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:00 am

sciurius wrote:And the explanation is ... (drumroll) ...
Don't know! LOL. I need to come back to this later today. Work needs to take priority for the moment.

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:04 am

All else being the same, the only factor left is the power supply. After switching to a different power supply:

Code: Select all

Pystone(1.1) time for 50000 passes = 4.73956
This machine benchmarks at 10549.5 pystones/second
Apparently if a power supply is not powerful enough the processor refuses to step up to higher frequencies, even though it will perform flawless in every other aspect.

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:06 am

sciurius wrote:Apparently if a power supply is not powerful enough the processor refuses to step up to higher frequencies, even though it will perform flawless in every other aspect.
Well, that's an explanation! ;)

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:11 am

It does, however, not explain why Raspbian gets the higher pystones with the same power supply that apparently is not enough for Fedora.

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:15 am

sciurius wrote:It does, however, not explain why Raspbian gets the higher pystones with the same power supply that apparently is not enough for Fedora.
I'd guess that it down to different version of firmware. (ie. the binary only components. eg. bootcode.bin/start*). The power management (ie. don't let it exceed 600MHz if not enough voltage) is going to reside on the VideoCore side of things.

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:17 am

Indeed :(

With the new power supply, Raspbian (not overclocked):

Code: Select all

Pystone(1.1) time for 50000 passes = 3.63
This machine benchmarks at 13774.1 pystones/second

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:26 am

Can you give it a try on your hardware, with the standard raspbian (e.g. via NOOBS)?
If you get the same results it may be time to file an issue at Fedora.

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 11:49 am

sciurius wrote:Can you give it a try on your hardware, with the standard raspbian (e.g. via NOOBS)?
If you get the same results it may be time to file an issue at Fedora.
Trust me, the last thing we need to do, is to be pointing out things like this to Fedora. This is an unofficial remix, produced by me, rather than an official Fedora release......

1. The RPi specific things, (kernel/firmware/vc userland), I am building/packaging, not them.
2. Getting into any discussion with Fedora where closed source code is doing anything other than bare-metal hardware initialisation, (ie. allowing the hardware to boot), is a discussion we really don't want to be having! ;)

I will investigate further, but probably not until Sunday.

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 1:31 pm

Ok. Findings so far.

1. Fedora seems to achieve about 60-70% of the performance of (some? most? all?) other distros.

This was tested using the pystone benchmark version 1.1 on the following configurations (pystones/second numbers between parens):

* Raspberry Pi model B, 512MB, distro's: Pidora 18, Pidora 20 (2614) versus Raspbian (4105).
* BananaPI, distro's: Fedora 20 (3939) versus Lubuntu (14359) .
* Raspberry Pi2 model B, 1GB, distro's Fedora 21 REMIX (9437) versus Raspbian (13774).
For each model, the distro's were tested on the same physical unit.

2. The quality of the power supply affects the performance (maximum clock speed?) of the RPi2. This is a firmware property (issue?) that equally affects all tested distro's (Fedora 21 REMIX (9437 -> 6179), Raspbian (13774 -> 9124). The fall in performance closely matches a 900MHz -> 600MHz step down.

juppiter89
Posts: 91
Joined: Fri Jan 04, 2013 10:50 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 3:32 pm

Hi. Can you try another benchmark please, for example sysbench? Maybe it's a Python trouble.
With 1100-550-450 (arm-core-ram) overclock, I got:

Code: Select all

Pystone(1.1) time for 50000 passes = 4.49375
This machine benchmarks at 11126.6 pystones/second
Last edited by juppiter89 on Fri Mar 20, 2015 3:44 pm, edited 1 time in total.

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Fri Mar 20, 2015 3:41 pm

juppiter89 wrote:Hi. Can you try another benchmark please, for example sysbench? Maybe it's some Python trouble.
Feel free to ignore me, but I'd rather we didn't do this right now. I need to investigate (starting with pystone) and make sure we are comparing apples to apples and not oranges. Which means looking at a variety of things.... python versions, kernel configs, whether SELINUX is enabled on one distribution but not another, etc. etc. This needs to be done semi-scientifically rather than guesswork. I won't have time to start looking at it before Sunday.

deighty8
Posts: 4
Joined: Sat Mar 14, 2015 3:40 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sat Mar 21, 2015 6:07 pm

clivem wrote:
deighty8 wrote: Hi... I was installed the Fedora 21 with Berryboot that's success. But i have problem when try to play music not have sound. Is I have wrong to install and how to play music . Sorry i new in raspberry. I'm used PI2.
Sorry, but you will have to get support from Berryboot. This thread is about the standalone F21 remix images. I have no idea if Berryboot is using one of these images or something they have created.

Hi Clivem,. I try to install without berryboot and the hdmi still not function the sound. Have i must configure in config.txt or another else? hdmi_drive=2 i was setting in config.txt. Please kindly help

Thanks

ajmichael
Posts: 2
Joined: Sun Mar 22, 2015 8:57 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sun Mar 22, 2015 9:16 am

A big thanks to clivem for the Remix - I'd been playing with Pidora but F21 was just what I needed.

wwwpanda
Posts: 3
Joined: Sun Mar 22, 2015 9:53 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sun Mar 22, 2015 10:03 am

Hi,

Sorry I am new. After first boot, I tried to resize the root partition to fit my 32GB microsd card using fdisk:

Code: Select all

fdisk /dev/mmcblk0
d  (delete the 3rd partition which is root partition)
3
n
p
<enter> to accept default for starting block
<enter> to accept default for ending block
w
I tried partprobe but it told me to reboot. So I "sync;reboot", and planning to do resize2fs after reboot. .. .and However I got this:

Code: Select all

PANIC: VFS: Unable to mount root fs on unknown-block(179,3)

Entering kdb (current =oxb5c980000, pid 1) on processor 2 due to Keyboard Entry
[2]kdb> _
Any hints I can solve, or what is the proper way to do resize partition ?

Thanks.

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sun Mar 22, 2015 4:33 pm

Interesting... this is what I get:

Code: Select all

# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.3G  1.1G  208M  84% /
# fdisk /dev/mmcblk0
d
3
n
p
3
<ret>
<ret>
w
q
# partprobe
# resize2fs /dev/mmcblk0p3
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/mmcblk0p3 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/mmcblk0p3 is now 1775616 (4k) blocks long.
# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.7G  1.1G  5.6G  16% /
Note that partprobe doesn't say anything.

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sun Mar 22, 2015 4:37 pm

Guys,

Sorry but I'm not in front of a Pi running the image, and won't be until tomorrow, to even start answering these questions. Sorry.

wwwpanda
Posts: 3
Joined: Sun Mar 22, 2015 9:53 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Mon Mar 23, 2015 8:35 am

Hi,

I do some research on my microsd card resize problem, some say the error is due to bad microsd card. But mine is a brand new Toshiba 32GB microSDHC. In anycase, today I try with another new sandisk 32GB microSDHC (Sandisk Ultra microSDHC UHS-I), same result, no luck.

I also tried do all the xz / fdisk / partprobe / resize2fs commands in another notebook running CentOS 7, I got similar problems:

Code: Select all

xz -cd Pi2B-Fedora-LXDE-armhp-21-5-20150301-1-sda.raw.xz | dd of=/dev/mmcblk0 bs=10M
fdisk /dev/mmcblk0
d
3
n
3
p
<enter>
<enter>
w
partprobe
(no output)
e2fsck -f /dev/mmcblk0p3
...
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad  magic number in super-block while trying to open /dev/mmcblk0p3
...
resize2fs /dev/mmcblk0p3
...
resize2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p3
Couldn't find valid filesystem superblock.

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Mon Mar 23, 2015 11:17 am

After you use fdisk to delete the 3'rd partition and recreate it, I'd like to see the output of "fdisk -l". Does the 3rd partition start on same block/sector as it did originally?

Code: Select all

$ fdisk -l Pi2B-Fedora-LXDE-armhfp-21-5-20150301-1-sda.raw

Disk Pi2B-Fedora-LXDE-armhfp-21-5-20150301-1-sda.raw: 7 GiB, 7467958272 bytes, 14585856 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4e8d8832

Device Boot   Start      End  Sectors   Size Id Type
raw1           2048  1001471   999424   488M  c W95 FAT32 (LBA)
raw2        1001472  2001953  1000482 488.5M 83 Linux
raw3        2001954 14585855 12583902     6G 83 Linux
So after recreate 3rd partition with fdisk, is it still starting on sector 2001954?

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Mon Mar 23, 2015 11:28 am

deighty8 wrote: Hi Clivem,. I try to install without berryboot and the hdmi still not function the sound. Have i must configure in config.txt or another else? hdmi_drive=2 i was setting in config.txt. Please kindly help
Right, before I say anything else, I have to admit that everything I'm doing is headless.... I'm not even using the hdmi port for video, let alone audio.

If "hdmi_drive=2" isn't having the desired effect, try "amixer -c0 cset numid=3 2" from cmd line. That should force audio output to be routed via hdmi, rather than headphone port.

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Mon Mar 23, 2015 7:32 pm

ZRAM was mentioned earlier in the thread and I enabled the modules in the kernel builds. (Which BTW, are now enabled in the default configs.)

I've pushed a fedorazram package to the repo for anyone interested in using it. (Rather than having to come up with your own scripts config for it.)

To install....

Code: Select all

sudo sc-cleanInstall fedorazram
You can configure the % of memory that will be used as zram swap by editing /etc/sysconfig/zram.
Default is 33%.

To enable (on subsequent reboots).....

Code: Select all

sudo systemctl enable zram-swap
To start the service now without rebooting....

Code: Select all

sudo systemctl start zram-swap

wwwpanda
Posts: 3
Joined: Sun Mar 22, 2015 9:53 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Tue Mar 24, 2015 7:39 am

clivem wrote:
So after recreate 3rd partition with fdisk, is it still starting on sector 2001954?
Ha! You guess right, turn out, the fdisk default starting sector is not the original one! I just dumbly accept the default which causes all the troubles. :oops:

Thanks! Fedora 21 now runs great in my pi2. :mrgreen:

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Thu Mar 26, 2015 7:24 am

Thanks for including NAT in the kernel. This makes it possible to use the F21 REMIX for OpenVPN services.
(Standard Pidora does not include NAT)

sciurius
Posts: 26
Joined: Sun Sep 23, 2012 7:34 pm

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sun Mar 29, 2015 3:32 pm

clivem: Any progress on the performance issues?

clivem
Posts: 79
Joined: Sun Aug 03, 2014 11:18 am

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sun Mar 29, 2015 4:03 pm

sciurius wrote:clivem: Any progress on the performance issues?
Yes, but not that I'm willing to share publicly for the moment. It's ongoing....

MeanderingLaser
Posts: 18
Joined: Tue Mar 31, 2015 10:28 pm
Contact: Website

Re: Fedora 21 REMIX for Raspbery Pi 2B

Sat Apr 04, 2015 2:09 am

This is so sweet! Thanks for the image, clivem. I've been playing around with fedora KDE on my homemade tablet and really loving it :)

P.S. Sorry if I broke up the serious talk..

Return to “Pidora / Fedora”