Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootable 64-bit RPi3 Gentoo image (OpenRC/Xfce/VC4) UPDATED
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 902
Location: KUUSANKOSKI, Finland

PostPosted: Wed Sep 06, 2017 5:27 pm    Post subject: Reply with quote

Has anyone gotten any Bluetooth headsets/speakers to work?
I tried using the bt applet that's on Sakakis image. I was unable to diagnose the problem since the error message only tells "unsupported protocol". I don't know if it means that I try to send invalid PCM or if I try to use wrong BT protocol or if santa isn't comming next x-mas. :( I think I got pairing working. They seem to connect.

But to be honest; bluetooth has always been pita to use in any platform. Especially bluetooth audio devices. *sigh*
_________________
..: Zucca :..
This space is not for rent.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 38855
Location: 56N 3W

PostPosted: Wed Sep 06, 2017 7:02 pm    Post subject: Reply with quote

Zucca,

"Work" would be stretching it but I have had audio out of bluetooth speakers using bluealsa (its not in the tree), since I don't use pulseaudio.
The bluetooth is < 1Mbit/sec.

Sound kept droppind out.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dr_wulsen
n00b
n00b


Joined: 21 Aug 2013
Posts: 66
Location: Beautiful Austria, Lake area in Upper Austria

PostPosted: Wed Sep 06, 2017 9:29 pm    Post subject: Reply with quote

@roylongbottom:

thanks for your guidance!
I'll try that out once back from vacation - but would there be a way to benchmark/check the crypto extensions (do they work under aarch 32 as they are supposed to)?)

I love to be a gentoo user, not only because it's a great system but mostly to the people like you all here in this thread :)
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 902
Location: KUUSANKOSKI, Finland

PostPosted: Wed Sep 06, 2017 9:31 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Zucca,

"Work" would be stretching it but I have had audio out of bluetooth speakers using bluealsa (its not in the tree), since I don't use pulseaudio.
The bluetooth is < 1Mbit/sec.

Sound kept droppind out.


I too want to avoid pulseaudio the overhead is too much for Pi. Especially because I plan to make my Pi battery powered eventually.

I found this: https://github.com/Arkq/bluez-alsa ... Is this the same software you tried, Neddy?
_________________
..: Zucca :..
This space is not for rent.
Back to top
View user's profile Send private message
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 94

PostPosted: Thu Sep 07, 2017 9:02 am    Post subject: Reply with quote

Zucca wrote:
I too want to avoid pulseaudio the overhead is too much for Pi. Especially because I plan to make my Pi battery powered eventually.
The image as shipped uses only ALSA, not pulseaudio (media-sound/pulseaudio is not even on the binhost, as yet). However, I've only used the BT for a mouse and keyboard so far. If anyone has a known good audio solution for BT headset/speakers, I'd be interested to know, so I can include it in a subsequent release.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 902
Location: KUUSANKOSKI, Finland

PostPosted: Thu Sep 07, 2017 9:41 am    Post subject: Reply with quote

Sakaki wrote:
The image as shipped uses only ALSA, not pulseaudio (media-sound/pulseaudio is not even on the binhost, as yet). However, I've only used the BT for a mouse and keyboard so far. If anyone has a known good audio solution for BT headset/speakers, I'd be interested to know, so I can include it in a subsequent release.
My experiences with seamless bluetooth+alsa have been non-existent. This is why I use pulseaudio on some of my setups.
However the software I tested gave some hopes. I need to do more RTFM. If the connection speed is low like Neddy said, it could be possible to stream lossy audio over bluetooth using aac instead of pcm(?).

Also about audio... I tried to play some videos I have, but by default it seems that support for opus codec is disabled (or rather left out) in your RPi3 image. Since it's quite widely used codec (and afaik even mp4 container format is going to support it) why not to have it enabled by default?
_________________
..: Zucca :..
This space is not for rent.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 38855
Location: 56N 3W

PostPosted: Thu Sep 07, 2017 10:27 am    Post subject: Reply with quote

Zucca,

Yes, thats it.
Code:
equery b bluealsa
 * Searching for bluealsa ...
media-sound/bluez-alsa-1.2.0

Do that bandwidth sums. 44.1k 16 bit sample per stereo channel. That's 1.4112 Mbit/sec.
The Pi bluetooth serial link is set to
Code:
# Bluetooth is attached to /dev/ttyAMA0 so attach it and
# load the firmware
/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -

# for sound we need bluealsa or pulseaudio
# pulseaudio reminds me of systemd - its not tested.
bluealsa &

That's only 0.9216 Mbit/sec.
Unless I'm missing something, CD audio doesn't fit on the Pis bluetooth.

I got my speakers paired and transmitted pretty horrible sound over the link, then lost interest when I did the bandwidth sums.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 902
Location: KUUSANKOSKI, Finland

PostPosted: Thu Sep 07, 2017 11:26 am    Post subject: Reply with quote

NeddySeagoon wrote:

That's only 0.9216 Mbit/sec.
Unless I'm missing something, CD audio doesn't fit on the Pis bluetooth.

I got my speakers paired and transmitted pretty horrible sound over the link, then lost interest when I did the bandwidth sums.
So basically transmitting lossy aac or getting a seperate bluetooth adapter are the choices if one wants audio over bluetooth...
_________________
..: Zucca :..
This space is not for rent.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 38855
Location: 56N 3W

PostPosted: Thu Sep 07, 2017 11:32 am    Post subject: Reply with quote

Zucca,

Or try the Pi serial link faster ... that would be my first thing.

I'm not sure if bluetooth audio devices support compression on the the bluetooth link.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 94

PostPosted: Mon Sep 18, 2017 9:43 am    Post subject: Reply with quote

Hello,

I've just posted a v1.1.3 bugfix release of my bootable 64-bit Gentoo image for the RPi3 on GitHub (here).

Existing users of the v1.1.{0,1,2} image can simply run genup (as root) to effect the upgrade (or wait for the weekly autoupdate to take care of this on your behalf); those looking to migrate from a v1.0.{0,1,2} image should follow the instructions here (the final genup step of which will now land you at v1.1.3, instead of v1.1.0).

A changelog from prior release image may be viewed here, but in summary:
  • Added the top-level packages media-tv/kodi-17.4_rc1 (a FOSS media-player / entertainment hub) and media-sound/clementine-1.3.1-r6 (a FOSS music player and library organizer);
  • Added dev-java/icedtea-3.5.1 (as the default system VM); app-office/libreoffice is now built with the java USE flag enabled (for Base);
  • Added x11-misc/twofing-0.1.2-r2, which provides two-finger gesture support (emulated right-click, scrolling, pinch zoom and rotate) when using the official 7" touchscreen. It is active by default (but has no effect on systems without a touchscreen attached);
  • Added app-accessibility/onboard-1.4.1, an onscreen keyboard, again primarily for touchscreen users;
  • Prevented NetworkManager from changing the hostname if one is offered to the machine via DHCP, as this was causing the .Xauthority file for the automatically logged-in session to become invalid in some cases;
  • Added a pseudo-ebuild xfce-extra/xfce4-mixer-4.99.0-r1, to allow seamless replacement of xfce-extra/xfce4-mixer, which has been masked, due to vulnerabilities (bug 628424). The new version installs media-sound/volumeicon instead;
  • Various minor ebuild tidy-ups;
  • All packages brought up-to-date against the Gentoo tree, as of 15 September 2017.

Upgrading users (who want them) will need to emerge kodi and clementine, as these are not pulled in by default (as always, the necessary packages are on the isshoni.org binhost, so this shouldn't take long).

The Pi-Top variant image has also been updated to v1.1.3.

As always, any problems feel free to contact me by email (sakaki@deciban.com), or post in this thread, for support.

That's probably going to about do it for new packages for now (the image having hit 1GiB compressed); when I get a chance the next push will be to PR the various changes from the image's custom profile.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
procount
n00b
n00b


Joined: 26 Sep 2017
Posts: 2

PostPosted: Tue Sep 26, 2017 1:14 pm    Post subject: Reply with quote

The latest version v1.1.3 of Sakaki's Gentoo64 image for the RPi3 and Gentoo64pt (for the PiTop) are now installable via the PINN multi-boot manager.

What is PINN?
PINN is a fork of the RaspberryPi NOOBS installer that includes some additional advanced features.
It allows easy installation of many different operating systems using a FAT32 formatted SD card, so it is easy to use for beginners coming from Windows, or more advanced users alike.
It can install several operating systems to the same SD card or USB drive and includes a boot manager to select which OS will be executed on boot.
Operating systems can be downloaded from the internet, or for offline use they can be installed from the SD card or a separate USB stick.

EDIT: For more details or queries related to PINN, please see my separate post here-> PINN multi-boot manager supports Gentoo64 on RPi3

Many thanks to Sakaki for her support in helping me convert Gentoo64 to the PINN environment.
Back to top
View user's profile Send private message
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 94

PostPosted: Sat Sep 30, 2017 12:04 pm    Post subject: Reply with quote

Interestingly, the Raspberry Pi 2 is now shipping with a 64-bit SoC, as of v1.2. From the RS Components product page:
Quote:
Raspberry Pi 2 Model B V1.2 SBC

The Raspberry Pi 2 Model B V1.2 is the updated version of Raspberry Pi 2 Model B but with a Pi 3 Broadcom BCM2837 Chip. The chip brings more processing power to create Internet of Things (IoT) projects. Learn about programming, computing or create innovative projects.

Features:
• BCM 2837 System on Chip (SoC) runs at 900 MHz
...

I have been informed by a user that the gentoo-on-rpi3-64bit image will boot on a v1.2 RPi2, if you first do:
Code:
# cp /boot/bcm2710-rpi-3-b.dtb /boot/bcm2709-rpi-2-b.dtb

I haven't verified this myself but if true then it should work for any other bootable Gentoo 64-bit system.

If anyone has a v1.2 RPi2 and can double-check this, please let me know so I can update the image and docs.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 38855
Location: 56N 3W

PostPosted: Fri Oct 06, 2017 11:43 am    Post subject: Reply with quote

Sakaki,

I owe you a <insert_refreshment>. For some time I have not been able to build and run a glibc newer than 24-r4 and lots of things require at least glibc-2.25 as it has some new symbols.
Symptoms include unable to reboot, unable to connect to signal handlers 3, 10 and 15 and crashing emerge when it validates the manifests.

I gave up and used your glibc-2.25-r5 from your binhost. That just worked. Thank you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 94

PostPosted: Fri Oct 06, 2017 7:03 pm    Post subject: Reply with quote

NeddySeagoon wrote:
I gave up and used your glibc-2.25-r5 from your binhost. That just worked. Thank you.

You're welcome, glad it was useful ^-^

PS a bit of a shot in the dark but your chroot issues reminded me of a PM I sent you back in January regarding a similar problem - here's the relevant snippet:

Quote:
BTW, didn't want to necro-post on this thread, but I experienced exactly the same problem you did with glibc after building using distcc (portage complaining about bad file descriptors, system refusing to boot, weird thing with an attempted rescue chroot continuously stoppng etc.).

In the end, I narrowed the problem down to /lib64/libc.so.6 (aka, libc-2.23.so) I found that if I only cross-emerged glibc on my PC it was fine; or if I only built locally on the Pi, it was also fine, but using distcc (with some component sources built on the Pi, some on the PC) it was corrupted. Not sure why, but I ended up blocking distcc and distcc-pump FEATURES for glibc via package.env, which did the trick. The issue happened both with v2.22 and 2.23. I have the same gcc version etc. on both PC and Pi. Odd.


Those settings are still active on the buildserver, so the glibc-2.25-r5 tbz2 you pulled was built with -distcc and -distcc-pump. If you are using distcc, perhaps that is what is causing the problem?
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 38855
Location: 56N 3W

PostPosted: Fri Oct 06, 2017 7:41 pm    Post subject: Reply with quote

Sakaki,

Thank you. I'll try that. I do indeed use distcc and distcc-pump and take care that I have identical gcc versions.

There is somethind odd, your tarball is quite a bit bigger than mine.
Code:
-rw-r--r-- 1 root root 12561502 Oct  1 14:01 glibc-2.25-r5.tbz2
-rw-r--r-- 1 roy  roy  13778457 Sep 14 11:50 glibc-2.25-r5.tbz2.1


I'll let it build overnight.

-- edit --

Code:
FEATURES="-distcc -distcc-pump" emerge -av =sys-libs/glibc-2.25-r7
produced a working glibc.
I'll need to set that up properly, or I'll forget.
Thank you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 94

PostPosted: Tue Oct 10, 2017 7:43 pm    Post subject: Reply with quote

For those interested in disabling the Intel Management Engine on their PC, I have just posted an addendum about this to my EFI Install Guide, here.

An RPi3 (running gentoo-on-rpi3-64bit) is used as the external BIOS flashing tool (photos and wiring pinouts are provided in the guide).

The tutorial makes use of the wiringpi ebuild (already in my rpi3 repo) and the me_cleaner and coreboot-utils ebuilds (which I've added to the sakaki-tools repo).

me_cleaner itself was written by Nicola Corna and may be reviewed on GitHub here.

The process works with most standard BIOSes; coreboot per se is not required (only some of its utilities).

Have fun and please don't brick your box ^-^
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 94

PostPosted: Sun Oct 15, 2017 3:36 pm    Post subject: Reply with quote

Please note that this Friday's arm64 autobuild (which included libreoffice-5.4.2.2 etc) will be the last until the first week of November, due to some planned updates to the supporting distcc build infrastruture.
The existing packages on isshoni.org will still be available as normal during this time, as will the gated rsync mirror (it's just that updates will be on hold).
Apologies for any inconvenience caused ><
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 38855
Location: 56N 3W

PostPosted: Sun Oct 15, 2017 5:10 pm    Post subject: Reply with quote

Sakaki,

Libreoffice now needs dev-perl/X11-Protocol which is not yet keyworded ~arm64.
My build has just finished.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum