User avatar
Gavinmc42
Posts: 1867
Joined: Wed Aug 28, 2013 3:31 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Sun Apr 22, 2018 6:06 am

Yippee, ARM's Compute Library compiled, now I just have to figure out what it is/does ;)
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 1867
Joined: Wed Aug 28, 2013 3:31 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Sun Apr 22, 2018 7:30 am

Getting ambitious, will Tensorflow compile on Gentoo?
http://zhiyisun.github.io/2017/02/15/Ru ... tform.html
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
sakaki
Posts: 52
Joined: Sun Jul 16, 2017 1:11 pm

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Sat Apr 28, 2018 6:16 pm

Hi,

dev-lang/rust-1.25.0 and dev-util/cargo-0.26.0 are now on the binhost, as is dev-lang/go-1.10.1 ^-^

www-client/firefox-59.0.2 has just built, will be released once I've had a chance to test it

Incidentally, I wrote up a short tutorial on how to build rust (see this post) - another way to escape the RPi3's 1GB limit ^-^

best, sakaki

User avatar
sakaki
Posts: 52
Joined: Sun Jul 16, 2017 1:11 pm

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Sun Apr 29, 2018 3:21 pm

RPi3 B+ Ethernet Issues (RPi3 B users unaffected) and Workaround

gentoo-on-rpi3-64bit users,

Currently, there appear to be two issues with the RPi3 B+'s LAN7515 chip which can significantly affect performance (and which will need fixes in the customized lan78xx driver, most likely). As far as I can tell, these affect both 64 and 32-bit users, all distros.

The first issue occurs when connecting your RPi3 B+ to an Ethernet switch that does not have flow control turned on (as is the case in many datacentres, for example). RPF engineer comment (quotes below all from this thread on the forums):
jamesh wrote:
Thu Apr 05, 2018 1:46 pm
Reports so far.

Been hitting the ethernet with a stick for the last few days, that stick being iperf3. I have been testing the onboard, and two different USB->GigE dongles.

The main conclusion we have come to - if your switch does NOT have flow control turned on, you will suffer a large drop in performance. This is due to the Pi being unable to service incoming data at gig speeds, and therefore a lot of retries are required for dropped frames.

[...]

Finally, we are talking to Microchip to see what can be done to improve performance. It's their chip and their driver. However, we are still investigating.

The second issue concerns bad Ethernet performance once a certain amount of data (around 2GB?) has been transferred. RPF engineer comment:
jamesh wrote:
Wed Apr 18, 2018 10:34 am
ErgatesthiAnt wrote:
Wed Apr 18, 2018 10:27 am
I have a suspicion I'm also having related network troubles on my 3B+. If I copy more than a few GB via SMB, the 3B+ network becomes unreliable and stops being able to copy files. Extremely frustrating. I did set flow control to on in my Netgear switch, and that meant that failures took longer to occur and copy speeds were a little higher (~18MB/s), but the same problem still occurs.

For now I've gone back to my 3B. Should I be returning my 3B+?
We have had a number of reports on large transfers dying when using Samba . I think its unrelated to the issue in this thread, but it is being looked in to.
I have personally experienced this (I think), where a large rsync backup of my RPi3 B+ build server choked (repeatedly) about half way (several GB) through, connected over a local LAN (I have never had any issues running the same rsync script on an RPi3 B).

Temporary Workaround

If you are using your RPi3 B+ to provide production services over Ethernet, I recommend using ethtool to reduce the advertised performance to 100Mbit (that of the old RPi3B's adaptor) pro tem. This workaround seems to prevent the problems occurring.

NB: If you only use your RPi3 B+'s Ethernet for light access (e.g. ssh), or use your RPi3 B+'s WiFi networking primarily, or use an RPi3 B, you need take no action at this stage.

To do so, open a terminal on your gentoo-on-rpi3-64bit RPi3 B+ system, and issue:

Code: Select all

demouser@pi64 ~ $ sudo emaint sync --repo rpi3
demouser@pi64 ~ $ sudo emerge -v sys-apps/ethtool
demouser@pi64 ~ $ sudo mousepad /etc/local.d/slow-down-eth0.start &>/dev/null&
The mousepad editor should open, onto the (new) file /etc/local.d/slow-down-eth0.start. Copy the following into that file:

Code: Select all

#!/bin/bash

# slow down eth0 to 100Mbit until properly fixed
# see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=208512

>&2 echo "WARNING: setting eth0 to 100Mbit max"
ethtool -s eth0 speed 100 duplex full autoneg on
Save the file, and exit mousepad. Then issue:

Code: Select all

demouser@pi64 ~ $ sudo chmod -v ugo+x /etc/local.d/slow-down-eth0.start
to make the script runnable at (each) boot time.

Finally, run the script now, so it will take effect immediately (no need to reboot):

Code: Select all

demouser@pi64 ~ $ sudo /etc/local.d/slow-down-eth0.start
WARNING: setting eth0 to 100Mbit max
You can check the change has been taken up, with:

Code: Select all

demouser@pi64 ~ $ sudo ethtool eth0 | grep "Advertised link modes:"
	Advertised link modes:  100baseT/Full 

When a fix to the kernel driver (covering both the above issues) is released, I'll post again here, at which point you can simply delete the /etc/local.d/slow-down-eth0.start file, if you are using it.

Apologies for the inconvenience ><

sakaki

cjan
Posts: 544
Joined: Sun May 06, 2012 12:00 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Sun Apr 29, 2018 9:45 pm

which version kernel using current?

User avatar
sakaki
Posts: 52
Joined: Sun Jul 16, 2017 1:11 pm

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Sun Apr 29, 2018 10:43 pm

cjan wrote:
Sun Apr 29, 2018 9:45 pm
which version kernel using current?
Yes. Fixes for some other lan78xx stuff have already been committed, but afaik changes addressing the above two issues have not yet landed in tree.

Best, sakaki

User avatar
Gavinmc42
Posts: 1867
Joined: Wed Aug 28, 2013 3:31 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Mon Apr 30, 2018 12:10 am

Thanks Sakaki,

That might explain a few things, I was doing some really big stuff and had a crash.
Mind you, it was deliberate stress testing ;)
I will try with 100Mbs setting.
Sounds like WiFi may be better till fixes come down.
Might try 5GHz band now the I have Pi's that can do that.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

cjan
Posts: 544
Joined: Sun May 06, 2012 12:00 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Mon Apr 30, 2018 12:41 am

sakaki wrote:
Sun Apr 29, 2018 10:43 pm
cjan wrote:
Sun Apr 29, 2018 9:45 pm
which version kernel using current?
Yes. Fixes for some other lan78xx stuff have already been committed, but afaik changes addressing the above two issues have not yet landed in tree.

Best, sakaki
yep, saw kernel >= .35 fixed lan78xx issues.
wait, i did not have Pi3 or Pi3+.

User avatar
Gavinmc42
Posts: 1867
Joined: Wed Aug 28, 2013 3:31 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Sun May 13, 2018 8:43 am

Sakaki, have you been watching the Pi3B+ lockup posts?
viewtopic.php?f=28&t=208821&start=275

What are the cpu, gpu, sdram settings?
How to find them and change them in Gentoo64?
I want to try changing the sdram to 500MHz on my locking combo Pi3B+ /SDcard.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
sakaki
Posts: 52
Joined: Sun Jul 16, 2017 1:11 pm

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Mon May 14, 2018 7:50 pm

Gavinmc42 wrote:
Sun May 13, 2018 8:43 am
Sakaki, have you been watching the Pi3B+ lockup posts?
viewtopic.php?f=28&t=208821&start=275

What are the cpu, gpu, sdram settings?
How to find them and change them in Gentoo64?
I want to try changing the sdram to 500MHz on my locking combo Pi3B+ /SDcard.
I have looked at this, it's interesting, still not quite sure what the 'official' recommended settings are right now for optimal RPi3B+ stability yet. Once this settles down I will update the relevant package for the Gentoo image.

In any case, the file you need to edit is /boot/config.txt; do this as root (sudo mousepad /boot/config.txt &>dev/null& or similar).

You can add an RPi3B+ specific stanza to the end, and then put in any desired settings there, for example add:

Code: Select all

[pi3+]
sdram_freq=500
[all]
Leave the rest of the file as-is. Save and exit mousepad, and reboot.

Made in this way, your change should only activate when the image is booted on an RPi3B+; if you boot it on an RPi3B, anything between the [pi3+] and [all] filters will be ignored.

procount
Posts: 1053
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Mon May 14, 2018 8:19 pm

"should" is the right word. See viewtopic.php?f=63&t=211841&p=1309721#p1309721 .
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
Gavinmc42
Posts: 1867
Joined: Wed Aug 28, 2013 3:31 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Tue May 15, 2018 12:30 am

Yep 3B+ still a moving target, some people might think it is minor upgrade.
It is not, it is the biggest upgrade RPT have done.

Thanks to both of you.
Clues to setting clocks, I did not know there was a 3B+ config option.

Sakaki, no vcgencmd in Gentoo64?
Trying to figure out how to find what values are default as set by start.elf?

Default GPIO can be found here, not sure where default clocks are found
https://github.com/raspberrypi/firmware ... ster/extra
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
sakaki
Posts: 52
Joined: Sun Jul 16, 2017 1:11 pm

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Tue May 15, 2018 1:04 pm

Gavinmc42 wrote:
Tue May 15, 2018 12:30 am
Sakaki, no vcgencmd in Gentoo64?
Trying to figure out how to find what values are default as set by start.elf?
It is available, but not in the current shipped image. To get it do:

Code: Select all

pi64 ~ # emaint sync --repo rpi3
pi64 ~ # emerge -av media-libs/raspberrypi-userland
Package available on the binhost, so shouldn't take long to emerge.
You can then run vcgencmd and friends. For example, on my 3B+ (which seems to run fine with the 'stock' memory clocking):

Code: Select all

pi64 ~ # vcgencmd get_config int
arm_64bit=1
arm_control=512
arm_freq=1400
audio_pwm_mode=514
config_hdmi_boost=5
core_freq=400
desired_osc_freq=0x33e140
desired_osc_freq_boost=0x3c45b0
disable_commandline_tags=2
disable_l2cache=1
display_hdmi_rotate=-1
display_lcd_rotate=-1
force_eeprom_read=1
force_pwm_open=1
framebuffer_depth=16
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=300
hdmi_force_cec_address=65535
init_uart_clock=0x2dc6c00
lcd_framerate=60
mask_gpu_interrupt0=1024
mask_gpu_interrupt1=0x10000
over_voltage_avs=0x155cc
over_voltage_avs_boost=0x2f4d6
over_voltage_sdram_p=2
pause_burst_frames=1
program_serial_random=1
sdram_freq=500
sdram_schmoo=0x2000020
hth, sakaki

User avatar
Gavinmc42
Posts: 1867
Joined: Wed Aug 28, 2013 3:31 am

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPI3B+)

Wed May 16, 2018 8:40 am

Thanks Sakaki,
I think default is 500MHz as I had a lock at that when I changed config.txt settings.
Seems to be running longer now at 450MHz.

Lost track of which one of my 2 3B+'s was better than the other.
So more testing to do, locks up just sitting there doing nothing.

A quick google says DDR2 are only 266-400MHz so perhaps this is why?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Gentoo”

Who is online

Users browsing this forum: No registered users and 1 guest