Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Bootable 64-bit RPi3/Pi4 Gentoo image (OpenRC/Xfce/VC4) Pt 2

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
349 posts
  • Page 3 of 14
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 14
  • Next
Author
Message
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Mon Sep 30, 2019 12:26 pm

Thank you Sakaki and Neddy. Ordering my Rpi4 2GB tomorrow, can't wait to play with this.
Top
Sakaki
Guru
Guru
User avatar
Posts: 409
Joined: Wed May 21, 2014 8:15 pm

  • Quote

Post by Sakaki » Sat Oct 05, 2019 2:16 am

I've added a new wiki page covering setup of a simple X11 desktop on the 'lite' image, here (includes screenshot).
Regards,

sakaki
Top
Sakaki
Guru
Guru
User avatar
Posts: 409
Joined: Wed May 21, 2014 8:15 pm

  • Quote

Post by Sakaki » Sun Oct 06, 2019 4:28 pm

Hello,

If you'd like to install and run precompiled Flatpak apps on your Gentoo RPi4 (or RPi3), please see my new wiki entry here.

Once set up as described therein, you can choose from a wide catalogue of prebuilt aarch64 and arm (32-bit) packages.

For example, screenshot of installing Midori.

And screenshot of running it.

Flatpak apps come with all dependencies bundled, don't require root priviliges to install or run, are isolated from potentially conflicting package versions in the main host OS, and provide a degree of user-configurable sandboxing.

Do consider however the security concerns that exist around this technology, before jumping in.
Regards,

sakaki
Top
Gavinmc42
n00b
n00b
Posts: 21
Joined: Mon Sep 23, 2019 10:57 am
Location: Brisbane

  • Quote

Post by Gavinmc42 » Mon Oct 14, 2019 2:30 am

prebuilt aarch64 and arm (32-bit) packages
Just noticed, "prebuilt 32bit apps". Will they just work on Gentoo64?
No Chroot needed?
Might solve my 32bti Laz/fpc/Ultibo issue at the moment.

While there may be security issues, apps that just run on any distribution just have to make it easier for users.
Don't get Pi's if you are scared of learning.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Oct 14, 2019 9:05 am

Gavinmc42,

Maybe. An arm64 CPU is not required to provide the 32 bit instruction set.
I only know one arm64 CPU like that and its not fitted to Raspberry Pis.

There is no multilb on arm64, so dynamically linking 32 bit code on arm64 is not possible.

arm64 CPUs that have the 32 bit instruction set can switch (on a core by core basis) between 64 bit and 32 bit modes.

Flatpacks are like 'containers' they are completely self contained. Rather lie a statically linked QEMU that lets you run an arm64 chroot on an amd64 system.

So yes, if your arm64 CPU has the arm32 instruction set, it should just work.

The security implications are horrendous. All those obsolete vulnerable libraries included for free with your flatpack.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Sakaki
Guru
Guru
User avatar
Posts: 409
Joined: Wed May 21, 2014 8:15 pm

  • Quote

Post by Sakaki » Mon Oct 14, 2019 1:26 pm

Gavinmc42,

yes, since (as Neddy notes) Flatpak's will bring a full [*] runtime set of necessary libraries with them, and the ARMv8 architecture allows a 64-bit kernel to support both 32 and 64-bit userlands, then Flatpaks marked as arm (32-bit) both show up in the catalogue (when you do remote-ls) and can be installed and run successfully on the gentoo-on-rpi-64bit image. It's not that dissimilar to chrooting into a 32-bit userland (which I discuss on the wiki here), just using some of the kernel containerization technology.

[*] most of the time. Some apps require things with a EULA (such as Oracle JDK/JRE) and these don't tend to get all their deps bundled. But for most regular apps, they will be.
Regards,

sakaki
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Thu Oct 17, 2019 10:10 pm

Sakaki wrote: (hint: if you only have WiFi, you can use the bundled nmtui tool to easily setup a (persistent) network connection from the command line.)
Sakaki, I am having issues with the nmtui tool on the lite image. When I select the SSID I want to connect to, it comes back with:

Could not activate connection: The access point /org/freedesktop/NetworkManager/AccessPoint/12 was not in the scan list.

Any thoughts? Thanks
Top
Sakaki
Guru
Guru
User avatar
Posts: 409
Joined: Wed May 21, 2014 8:15 pm

  • Quote

Post by Sakaki » Thu Oct 17, 2019 10:28 pm

n1ese,

I've just double-checked, and it works on various APs around here... so definitely not a universal bug. There are some reports of similar errors (on other distros) online e.g. here and here.
Have you tried restarting NetworkManager?

Code: Select all

demouser@pi64 ~ $ sudo rc-service NetworkManager restart
Is there any relevant information displayed in dmesg?
You could also try first deleting your desired SSID in nmtui (under the "Edit..." entry) and then connecting again.
Regards,

sakaki
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Thu Oct 17, 2019 10:38 pm

Sakaki wrote:You could also try first deleting your desired SSID in nmtui (under the "Edit..." entry) and then connecting again.
This worked. I manually added the SSID and password and it connected fine.
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Fri Oct 18, 2019 12:20 am

Ok Sakaki, I continue to be an idiot. When trying to configure locales to US I get:

Code: Select all

ganymede /home/n1ese # eselect locale set 4
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
Setting LANG to en_US ...
Applications such as emerge then break

Code: Select all

ganymede /home/n1ese # emerge --ask gpsd
setlocale: unsupported locale setting
setlocale: unsupported locale setting
What am I doing wrong?
Top
Sakaki
Guru
Guru
User avatar
Posts: 409
Joined: Wed May 21, 2014 8:15 pm

  • Quote

Post by Sakaki » Fri Oct 18, 2019 12:48 am

n1ese,

Have you added your desired locale monikers into /etc/locale.gen and generated them via locale-gen? See e.g. these notes.
Regards,

sakaki
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Fri Oct 18, 2019 1:04 am

Sakaki wrote:n1ese,

Have you added your desired locale monikers into /etc/locale.gen and generated them via locale-gen? See e.g. these notes.
Yes sir:

Code: Select all

ganymede /home/n1ese # locale-gen
 * Generating 3 locales (this might take a while) with 4 jobs
 *  (1/3) Generating en_US.ISO-8859-1 ...                                 [ ok ]
 *  (3/3) Generating C.UTF-8 ...                                          [ ok ]
 *  (2/3) Generating en_US.UTF-8 ...                                      [ ok ]
 * Generation complete
 * Adding locales to archive ...                                          [ ok ]
ganymede /home/n1ese # eselect locale set 4
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
Setting LANG to en_US ...
but I seemed to fix it by doing everything again and re-running env-update && source /etc/profile

so weird, sorry for the wasted bandwidth. Thanks
Top
Sakaki
Guru
Guru
User avatar
Posts: 409
Joined: Wed May 21, 2014 8:15 pm

  • Quote

Post by Sakaki » Sun Oct 27, 2019 1:28 am

Automated VL805 (USB) EEPROM / bootloader EEPROM updater now available for gentoo-on-rpi-64bit

All,

as you are no doubt aware, unlike its predecessor, the RPi4B contains a bootloader EEPROM (which replaces bootcode.bin) and also has an EEPROM region holding its VL805 USB chip's firmware. Several updates to both have been made available since launch, offering various bugfixes, additional features, improved power efficiency etc. (e.g., [1,2,3]), so it is well worth keeping them current.

On the Raspbian OS, the package rpi-eeprom may be used to automatically keep both of these on-board firmware components up-to-date, which is very convenient.

Well, I'm pleased to announce this automated update facility is now also available for Gentoo also! To get it, just run:

Code: Select all

demouser@pi64 ~ $ sudo emaint sync --repo genpi64
to refresh your repository metadata, then:

Code: Select all

demouser@pi64 ~ $ sudo emerge -v rpi4-eeprom-updater
to install the EEPROM update service (and current images [4]).

Once complete, reboot.

That's it! Now, each time you boot, your bootloader EEPROM and VL805 firmware EEPROM image versions will automatically be checked, by the rpi4-eeprom-updater package's startup service, against the current version images provided by the RP{F,T} (themselves pulled in via the dependency package dev-embedded/rpi4-eeprom-images). If either has changed, appropriate files will be written to your /boot partition (the script that does this is taken directly from the Raspbian rpi-eeprom package) such that on the next boot, a one-time recovery.bin bootloader will cause the image(s) to be (safely) reflashed. You can check the end of the file /var/log/rc.log after boot, to see if any updates are pending.

A weekly cron job on my build server checks the upstream rpi-eeprom package for updated debs, and, if any are found, automatically creates new counterpart ebuilds (dev-embedded/rpi4-eeprom-images and dev-embedded/rpi4-eeprom-updater), and pushes these to the genpi64 repo. That, in turn, means they will automatically get propagated to your machine via the usual weekly genup process (and then installed, on next boot, by the rpi4-eeprom-updater service as just described).

By default, only "critical" updates to the boot EEPROM and VL805 firmware are applied. If you would like (at your own risk) to apply even beta firmware as soon as it is available, edit the file /etc/default/rpi-eeprom-update and change:

Code: Select all

FIRMWARE_RELEASE_STATUS="critical"
to:

Code: Select all

FIRMWARE_RELEASE_STATUS="beta"
For avoidance of doubt, the updater may safely be used on the RPi3 (where it has no effect), on cards swapped between the RPi4 and RPi3, on 'full' and 'lite' images, and on gentoo64 images installed via PINN.

Any problems, please let me know!

Best, sakaki

[1] https://www.raspberrypi.org/forums/view ... 8&t=250990
[2] https://www.raspberrypi.org/forums/view ... 9&t=252501
[3] https://www.raspberrypi.org/forums/view ... 9&t=255001
[4] The EEPROM images may be found at /lib/firmware/raspberrypi/bootloader/...

Edited to remove kernel upgrade step (now unnecessary).
Regards,

sakaki
Top
orion777
Apprentice
Apprentice
Posts: 207
Joined: Wed Mar 15, 2017 11:05 am
Location: Riga, Latvia

  • Quote

Post by orion777 » Mon Oct 28, 2019 6:48 pm

Good evening!
Do we have any remote desktop servers, that can be accessed from windows machine? It is required very seldom, but whet the desktop is required, it is very impractical to have HDMI cable... (typical I use ssh session)
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Mon Oct 28, 2019 11:21 pm

orion777 wrote:Do we have any remote desktop servers, that can be accessed from windows machine? It is required very seldom, but whet the desktop is required, it is very impractical to have HDMI cable... (typical I use ssh session)
If I understand what you want : https://sourceforge.net/projects/xming/
It runs on Windows and connects to the remote linux machines' X server. There are a few ssh config changes to be made to enable X forwarding.
Top
Sakaki
Guru
Guru
User avatar
Posts: 409
Joined: Wed May 21, 2014 8:15 pm

  • Quote

Post by Sakaki » Tue Oct 29, 2019 8:16 am

orion777 wrote:Good evening!
Do we have any remote desktop servers, that can be accessed from windows machine? It is required very seldom, but whet the desktop is required, it is very impractical to have HDMI cable... (typical I use ssh session)
The current gentoo-on-rpi-64bit image ships with xrdp... you can use this to easily connect from a Windows box.
There is a note about this in the project's wiki: here (and, you no longer need to perform the emerge steps described in those instructions, since the necessary packages are bundled).
Regards,

sakaki
Top
orion777
Apprentice
Apprentice
Posts: 207
Joined: Wed Mar 15, 2017 11:05 am
Location: Riga, Latvia

  • Quote

Post by orion777 » Thu Oct 31, 2019 3:55 pm

Thank you!
The problem with xrdp, when connecting from Win7 machine, is that it is unable to accept connection to a machine with "wrong" certificate; whereas Win 8 and 10 can allow it.
So the solution for the Win7 is, as I understood, is to use security_layer=rdp in the /etc/xrdp/xrdp.ini
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Oct 31, 2019 6:05 pm

orion777,

You could even get a proper certificate from Lets Encrypt.
They are valid for 3 months at a time.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Oct 31, 2019 6:41 pm

Sakaki,

I always wondered why you used demouser for your default user.
I was reading it as de-mouser rather than demo-user until a few minutes ago. :)
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2402
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Fri Nov 01, 2019 8:45 am

Build a better mousetrap, and the world will beat a path to your door
R. W. Emerson
Greybeard
Top
BRX7
n00b
n00b
Posts: 1
Joined: Fri Sep 27, 2019 10:45 am

Qemu virt kvm

  • Quote

Post by BRX7 » Fri Nov 01, 2019 11:25 pm

Hello again.
I have a question, do current kernels have kvm enabled for qemu/virt ?
As per
https://github.com/sakaki-/gentoo-on-rp ... -under-KVM

Becuase i see this message on when i emerge qemu 4
* Unable to check your kernel for KVM support

And when i run a guest (win10 from the raspberry forums post)
qemu-system-aarch64: -enable-kvm: No machine specified, and there is no default
Use -machine help to list supported machines
scripts.sh: line 5: -M: command
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Nov 02, 2019 1:00 am

BRX7,

That

Code: Select all

* Unable to check your kernel for KVM support
means that the ebuild cannot find the kernel .config file.

If you have /dev/kvm you are good.

/proc/config.gz is provided by a loadable module. I forget its name.
Load that module and use zgrep on /proc/config.gz
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
orion777
Apprentice
Apprentice
Posts: 207
Joined: Wed Mar 15, 2017 11:05 am
Location: Riga, Latvia

  • Quote

Post by orion777 » Sat Nov 02, 2019 7:11 am

Here you can find how to create a default .config, etc https://github.com/sakaki-/gentoo-on-rp ... rossdev-PC
Top
orion777
Apprentice
Apprentice
Posts: 207
Joined: Wed Mar 15, 2017 11:05 am
Location: Riga, Latvia

  • Quote

Post by orion777 » Wed Nov 06, 2019 7:07 pm

Good evening!
Several weeks ago I was able to install the hard masket packets via emerge -> config changes... -> dispatch-conf
After the genup (yesterday) now I got the message (masked by: missing keyword), therefore I can't update the config in semi-automatic manneg.

The portage is usb_modeswitch
Top
Gavinmc42
n00b
n00b
Posts: 21
Joined: Mon Sep 23, 2019 10:57 am
Location: Brisbane

  • Quote

Post by Gavinmc42 » Thu Nov 07, 2019 4:53 am

Something seems to have happened.
Every/most things seems to be masked now.

Extra steps now needed to unmark emerge keywords or what ever it is called.
Don't get Pi's if you are scared of learning.
Top
Post Reply
  • Print view

349 posts
  • Page 3 of 14
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 14
  • Next

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy