Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage on a raspberry pi 1B with raspbian
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Fri Jun 30, 2023 7:09 pm    Post subject: Portage on a raspberry pi 1B with raspbian Reply with quote

I have tried to install portage on a raspberry pi 1B with raspbian 10.
I have followed this:
https://wiki.gentoo.org/wiki/Project:Portage/Fixing_broken_portage

I have tried with both portage 3.0.44(the one mention in the instructions) and portage 3.0.49(the latest one).
I get this error at the emerge --info step:
Code:
root@raspberrypi:/tmp/portage# bin/emerge --info
  File "bin/emerge", line 61
    sys.stderr.write(f"Permission denied: '{str(e)}'\n")
                                                      ^
SyntaxError: invalid syntax


Code:
# python3 --version
Python 3.7.3

Code:
# bash -version
GNU bash, version 5.0.3(1)-release (arm-unknown-linux-gnueabihf)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2077

PostPosted: Fri Jun 30, 2023 7:24 pm    Post subject: Reply with quote

How have you ended up with such an old set of tools to begin with if it's a new install? Or are you trying to install it from inside Raspbian using e.g. emerge --root...? There's various guides (using different methods) on the wiki for how to install Gentoo on a Raspberry Pi.

I can't reproduce this error with Python 3.7 on godbolt. What does python --version return? What's the shebang in bin/emerge?
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Fri Jun 30, 2023 7:31 pm    Post subject: Reply with quote

sam_ wrote:
How have you ended up with such an old set of tools to begin with if it's a new install? Or are you trying to install it from inside Raspbian

New tools don't work well on such old hardware.
I am trying to install portage from inside raspbian.
sam_ wrote:

using e.g. emerge --root...?

Every argument I pass to bin/emerge results in the same error.
sam_ wrote:

There's various guides (using different methods) on the wiki for how to install Gentoo on a Raspberry Pi.

I have tried to do that, but I've failed. I guess most oses aren't designed for this use case.
sam_ wrote:

I can't reproduce this error with Python 3.7 on godbolt. What does python --version return?

$ python --version
Python 2.7.16
sam_ wrote:

What's the shebang in bin/emerge?

Don't know what you mean by that.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2077

PostPosted: Fri Jun 30, 2023 8:08 pm    Post subject: Reply with quote

Excuse my brevity as writing on mobile.

I wrote the in-place guide on the wiki and have used it on rpi 1 a bunch of times, it should be ok. But the issue you're hitting seems to be that it's trying to run it with Python 2. You could try python3 bin/emerge but I'd really recommend the in-place install guide instead.

I mentioned --root not to try it now but to ask what your plan was for installing
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Fri Jun 30, 2023 8:18 pm    Post subject: Reply with quote

sam_ wrote:
Excuse my brevity as writing on mobile.

I wrote the in-place guide on the wiki and have used it on rpi 1 a bunch of times, it should be ok. But the issue you're hitting seems to be that it's trying to run it with Python 2. You could try python3 bin/emerge but I'd really recommend the in-place install guide instead.

I didn't try the in-place guide because:
Code:
Prerequisites

    Raspberry Pi 4B or 400 (should work with 3B/B+ too)

_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2077

PostPosted: Fri Jun 30, 2023 8:30 pm    Post subject: Reply with quote

ah, I think that's fake news. Please ignore that. When following the guide just use the right kernel name for 32bit, get armv6 stage3, and don't set the config.txt option for 64
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jul 01, 2023 9:46 am    Post subject: Reply with quote

stefan11111,

Its possible to install Gentoo on a PI (any Pi so far), without needing to chroot at all.

Partition the SD card. Set the bootabale flag on the boot partition.
Make filesystems.

Untar a suitable stage3 to the SD root.
Install suitable boot files to SD Boot
Put the kernel modules into the right directory in /lib/modules

Make some symlinks in /etc/runlevels/* so the services you want start.
Edit /etc/conf.d/<service> te support the above services

Add a root password hash to /etc/shadow
Code:
root:$6$xxPVR/Td5iP$/7Asdgq0ux2sgNkklnndcG4g3493kUYfrrdenBXjxBxEsoLneJpDAwOyX/kkpFB4pU5dlhHEyN0SK4eh/WpmO0::0:99999:7:::

The matching password is raspberry.

Boot the Pi to test.

The process is similar to Raspberry Pi 3 64 bit Install
You need an armv6 stage3 tarball.

You really don't want to build on the Pi 1.

Oh, the Pi 1 is notorious for trashing filesystems due to inadequate PSU.
A phone charger, which is only 4.7v despite what it says on the label, is normally a source of problems.
_________________
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
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sat Jul 01, 2023 6:03 pm    Post subject: Reply with quote

I will try to install gentoo on the raspberry pi.
When trying the replace apt with portage route, I got this error:
Code:
 * Error: circular dependencies:

(app-portage/elt-patches-20221210:0/0::gentoo, ebuild scheduled for merge) depends on
 (app-arch/xz-utils-5.4.3:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (app-portage/elt-patches-20221210:0/0::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

Also, What keywords should I add to make.conf and how many jobs in MAKEOPTS.
I have only 176 MB ram. I will go with 4GB swap.

Also, I am planning to only emerge things once on this thing, only update in case of severe vulnerabilities. Any special setup I should do for this?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sat Jul 01, 2023 6:26 pm    Post subject: Reply with quote

NeddySeagoon wrote:

You need an armv6 stage3 tarball.

And where do I find that?
NeddySeagoon wrote:

Oh, the Pi 1 is notorious for trashing filesystems due to inadequate PSU.
A phone charger, which is only 4.7v despite what it says on the label, is normally a source of problems.

And what would be suitable?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jul 01, 2023 6:32 pm    Post subject: Reply with quote

stefan11111,

Don't emerge on the Pi. Cross compile binpkgs and emerge the binaries on the Pi.

If you will not use a GUI, its possible to reduce the GPU RAM to 16M so that the rest is available for the arm CPU.

Where did you get a Pi1 with only 256M RAM fitted?
They were only made fer a few months, then the 512M Pi1 came out at the same price.

If you can read it the RAM size is contained on the top of the RAM chip, which is what you see looking at the CPU, you may find its a 512MB model with the wrong firmware.

The RAM is actually fitted on top of the CPU on the Pi 1.
_________________
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
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sat Jul 01, 2023 6:46 pm    Post subject: Reply with quote

NeddySeagoon wrote:
stefan11111,

Don't emerge on the Pi. Cross compile binpkgs and emerge the binaries on the Pi.

You mean not to use distcc?
NeddySeagoon wrote:

Where did you get a Pi1 with only 256M RAM fitted?
They were only made fer a few months, then the 512M Pi1 came out at the same price.

If you can read it the RAM size is contained on the top of the RAM chip, which is what you see looking at the CPU, you may find its a 512MB model with the wrong firmware.

The RAM is actually fitted on top of the CPU on the Pi 1.

I got the pi from my dad. He said he bought is as soon as he could find one.
Here are pictures of it. Maybe they tell you something:
https://github.com/stefan11111/pastebin/blob/main/IMG_20230701_213906.jpg
https://github.com/stefan11111/pastebin/blob/main/IMG_20230701_213925.jpg
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jul 01, 2023 7:43 pm    Post subject: Reply with quote

stefan11111,

That's a real 256MB Pi 1 :)
It has the same RAM chip as mine.
Your Pi 1 is is older than mine, as mounting holes were added after yours was made. My example has the mounting holes.


Don't use distcc. The Pi will still configure and link. Either use crossdev, or a QEMU chroot to build binaries.
You may even want to use QEMU to chroot into the Pis SD Card filesystem to emerge the binaries.
_________________
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
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sat Jul 01, 2023 8:06 pm    Post subject: Reply with quote

NeddySeagoon wrote:

Your Pi 1 is is older than mine

That really is something. :)

I picked this for crossdev. Is it good?
Code:
$ doas crossdev --target arm-none-eabi

I followed the guide and got dropped into this state after I booted.
I kept the original kernel.
https://github.com/stefan11111/pastebin/blob/main/IMG_20230701_225124.jpg
I will probably have to change the kernel at some point as I want to use a static /dev on it.

Some time ago, this came off it. The pi kept working.
https://github.com/stefan11111/pastebin/blob/main/IMG_20230701_230029.jpg
Should I be to concerned over it?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jul 01, 2023 8:57 pm    Post subject: Reply with quote

stefan11111,

arm-none-eabi is for cross compiling for the bare metal. That is. programs that will run with no operating system.

Look at the CHOST in the stage3 and use whatever that is for the tuple.
See the Raspberry Pi Installation page on the Wiki

Code:
crossdev -t armv6j-unknown-linux-gnueabihf
looks better as a Pi 1 is armv6j but check.

The part that fell off is a 220uF 16v electrolytic from the power supply. There is only one.
It was connected across the 5v input to reduce the ripple voltage on the 5v supply.
Most of the Pi works off 3.3v or less. Unfortunately, the 5v to 3.3v converter on the Pi 1is not very good, and needs most of that 1.7v 'headroom' to work properly,
You may find that you get filesystem corruption when the 5v supply goes low. It was a problem when the part was fitted.

Later revisions used a different power supply arrangement to address the issue.

If you don't get filesystem corruption, the missing part won't matter.
_________________
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
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sun Jul 02, 2023 7:19 am    Post subject: Reply with quote

NeddySeagoon wrote:

Code:
crossdev -t armv6j-unknown-linux-gnueabihf
looks better as a Pi 1 is armv6j but check.

Code:
 * error: gcc failed :(
 *
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-armv6j-unknown-linux-gnueabihf-info.log
 * /var/log/portage/cross-armv6j-unknown-linux-gnueabihf-gcc-stage2.log.xz
 * /var/tmp/portage/cross-armv6j-unknown-linux-gnueabihf/gcc*/temp/gcc-config.logs.tar.xz

These are the logs:
https://github.com/stefan11111/pastebin/blob/main/cross-armv6j-unknown-linux-gnueabihf-binutils.log
https://github.com/stefan11111/pastebin/blob/main/cross-armv6j-unknown-linux-gnueabihf-gcc-stage2.log.xz
https://github.com/stefan11111/pastebin/blob/main/gcc-config.logs.tar.xz

stefan11111 wrote:
I followed the guide and got dropped into this state after I booted.
I kept the original kernel.
https://github.com/stefan11111/pastebin/blob/main/IMG_20230701_225124.jpg

Any idea how to fix this?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jul 02, 2023 8:10 am    Post subject: Reply with quote

stefan11111,

Please use a pastebin service. Very few readers here will download random things from the internet.

What do you have in /boot/cmdline.txt and /boot/config.txt?

What is the output of ls -l /boot ?
_________________
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
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sun Jul 02, 2023 2:49 pm    Post subject: Reply with quote

NeddySeagoon wrote:
stefan11111,

Please use a pastebin service. Very few readers here will download random things from the internet.

What do you have in /boot/cmdline.txt and /boot/config.txt?

What is the output of ls -l /boot ?

The problem with pastebin services is that pastes expire.
Code:
$ ls boot
 bcm2708-rpi-b.dtb        bcm2710-rpi-3-b.dtb        bootcode.bin    fixup_cd.dat   kernel.img         start_db.elf
 bcm2708-rpi-b-plus.dtb   bcm2710-rpi-3-b-plus.dtb   cmdline.txt     fixup.dat      LICENCE.broadcom   start.elf
 bcm2708-rpi-b-rev1.dtb   bcm2710-rpi-cm3.dtb        config.txt      fixup_db.dat   overlays           start_x.elf
 bcm2708-rpi-cm.dtb       bcm2710-rpi-zero-2.dtb     COPYING.linux   fixup_x.dat    start4cd.elf      'System Volume Information'
 bcm2708-rpi-zero.dtb     bcm2710-rpi-zero-2-w.dtb   fixup4cd.dat    issue.txt      start4db.elf
 bcm2708-rpi-zero-w.dtb   bcm2711-rpi-400.dtb        fixup4.dat      kernel7.img    start4.elf
 bcm2709-rpi-2-b.dtb      bcm2711-rpi-4-b.dtb        fixup4db.dat    kernel7l.img   start4x.elf
 bcm2710-rpi-2-b.dtb      bcm2711-rpi-cm4.dtb        fixup4x.dat     kernel8.img    start_cd.elf

Code:
$ cat boot/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=6b540db7-03 rootfstype=ext4 fsck.repair=yes rootwait

I got the partuuid from here:
Code:
$ doas blkid
/dev/sdb1: UUID="213d31b7-bd4c-4f97-8b26-4abffb6fc142" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0002d2e4-01"
/dev/sde2: UUID="fceefbfb-f514-4840-af69-88292e65dd3a" TYPE="swap" PARTUUID="6b540db7-02"
/dev/sde3: UUID="0ec5108d-4a84-4efc-9e64-9b9cd0e18b2e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6b540db7-03"
/dev/sde1: UUID="D70C-A7EF" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="6b540db7-01"
/dev/sda2: UUID="37e7edfc-3cb8-4569-b90e-21e0bf464618" TYPE="swap" PARTUUID="e63fbdea-a449-7c48-8ce3-4198467d1522"
/dev/sda3: UUID="1614c2d1-be93-4b94-bea5-a3ac772ae4bf" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="bf4f2899-01af-f748-ba8d-72b44b1ed0eb"
/dev/sda1: UUID="8CC6-F48A" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="fde2a67c-b691-9c4c-a708-205860a771c9"

Code:
$ cat boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d

_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jul 02, 2023 3:12 pm    Post subject: Reply with quote

stefan11111,

Your image of the boot is very blurred but its not using
Code:
root=PARTUUID=6b540db7-03

Look at it about 5.092 seconds. Its waiting for a filesystem that will never be there, so it waits forever.
Its using <something>-02

There is a kernel option to embed the kernel command line and another to tell the kernel to ignore all other kernel command lines.
_________________
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
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sun Jul 02, 2023 4:22 pm    Post subject: Reply with quote

Adding root=/dev/mmcblk0p3 worked.
I tried emerging utelnetd(it's quite small).
I got this error:
https://github.com/stefan11111/pastebin/blob/main/IMG_20230702_190118.jpg
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jul 02, 2023 4:30 pm    Post subject: Reply with quote

stefan11111,

The fetch failed. Have a look at the end of dmesg.

From memory the Pi 1 has network problems.
There is a sysctl option to fix it.

Does it work if you wget the dstfiles before running emerge.?
You may not be able to do that either.
_________________
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
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2077

PostPosted: Sun Jul 02, 2023 4:51 pm    Post subject: Reply with quote

Your /var/db/repos/gentoo might be missing or you don't have a profile selected too, I've seen this kind of failure before then. Or, regrettably, you already started to hit SD card issues when yanking the power (hopefully not).
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Sun Jul 02, 2023 6:38 pm    Post subject: Reply with quote

sam_ wrote:
Your /var/db/repos/gentoo might be missing or you don't have a profile selected too, I've seen this kind of failure before then. Or, regrettably, you already started to hit SD card issues when yanking the power (hopefully not).

/var/db/repos/gentoo is there.
I have a profile selected.
fsck says the sd card is good.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
ShorTie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 101

PostPosted: Mon Jul 03, 2023 2:29 am    Post subject: Reply with quote

Since this is a fresh install I'd do
Code:
   emerge -vDUN --with-bdeps=y --backtrack=200 --autounmask-keep-masks=y @world
   perl-cleaner --all
   echo "-5" | etc-update
   env-update && source /etc/profile

They help fix things up for me.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jul 03, 2023 8:52 am    Post subject: Reply with quote

stefan11111,

Don't do
Code:
emerge -vDUN --with-bdeps=y --backtrack=200 --autounmask-keep-masks=y @world


You only ever need -U or -N. -N will rebuild lots of things without changing the installed binary code, so should be avoided unless you know you need it.
--with-bdeps=y is the default anyway, so its harmless.
--backtrack=200 tells portage to try very hard to solve the dependency graph. Try to avoid setting --backtrack on a Pi 1. Its slow enough already.
Besides, it will do nothing in this instance. Portage had solved the dependency graph and was trying to download the distfiles

Code:
perl-cleaner --all
will rebuild perl and all the perl bits and pieces you have installed.
That's not your problem either.

Code:
echo "-5" | etc-update
is dangerous too. You need to read the changes that etc-update offers and decide which ones you want.

On journaled filesystems fsck only checks the clean bit and does nothing if its set.
You need fsck -f to force a check on a 'clean' journaled filesystem.
_________________
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
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 937
Location: Romania

PostPosted: Mon Jul 03, 2023 2:24 pm    Post subject: Reply with quote

NeddySeagoon wrote:
stefan11111,

Don't do
Code:
emerge -vDUN --with-bdeps=y --backtrack=200 --autounmask-keep-masks=y @world


You only ever need -U or -N. -N will rebuild lots of things without changing the installed binary code, so should be avoided unless you know you need it.
--with-bdeps=y is the default anyway, so its harmless.
--backtrack=200 tells portage to try very hard to solve the dependency graph. Try to avoid setting --backtrack on a Pi 1. Its slow enough already.
Besides, it will do nothing in this instance. Portage had solved the dependency graph and was trying to download the distfiles

Code:
perl-cleaner --all
will rebuild perl and all the perl bits and pieces you have installed.
That's not your problem either.

Code:
echo "-5" | etc-update
is dangerous too. You need to read the changes that etc-update offers and decide which ones you want.

On journaled filesystems fsck only checks the clean bit and does nothing if its set.
You need fsck -f to force a check on a 'clean' journaled filesystem.

Doesn't -U prevent rebuilds when use flags are added, even those that were previously unconditionally enabled?

I ran fsck -f:
https://github.com/stefan11111/pastebin/blob/main/IMG_20230703_163003.jpg

It reported no corruption.
Can starting from scratch fix the problem? I've never had this pi corrupt filesystems.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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