View previous topic :: View next topic |
Author |
Message |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Mon Jul 03, 2023 2:57 pm Post subject: |
|
|
stefan11111,
Starting from scratch won't fix anything. You will only have the opportunity to make different mistakes.
Run Code: | emerge -fp utelnetd | it will output a lust of files that need to be fetched.
I would expect to fail as it will try to do the fetch, which is what failed before.
Can you wget the files output by emerge -fp?
If so, put them in distfiles. That will make emerge happy so Code: | emerge -av utelnetd | should try to build.
That will narrow the problem scope.
-N rebuilds every package where the USE flags have changed, even if there is no change to the binary installed.
e.g. a package gets USE=(-foo) added.
-U is a subset of -N, Its clever enough not to rebuild when USE=(-foo) is added.
If you use -N, -U is included. -U avoids lots of useless rebuilds. That's a very good thing an a 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 |
|
![](templates/gentoo/images/spacer.gif) |
stefan11111 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 29 Jan 2023 Posts: 951 Location: Romania
|
Posted: Mon Jul 03, 2023 3:20 pm Post subject: |
|
|
What keywords should I use?
With amd, ~amd and * utelnetd was masked.
I added ** and it worked.
I built utelnetd outside of portage and it works, but if I open something in nano a lot of '6c' spam:
Code: | # cat ttt*
6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c
|
Code: | # emerge -fp utelnetd
These are the packages that would be fetched, in order:
Calculating dependencies... done!
Dependency resolution took 56.08 s.
Exception in callback AsynchronousTask._exit_listener_cb(<bound method...t 0xb4a0a988>>)
handle: <Handle AsynchronousTask._exit_listener_cb(<bound method...t 0xb4a0a988>>)>
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3.11/site-packages/_emerge/AsynchronousTask.py", line 209, in _exit_listener_cb
listener(self)
File "/usr/lib/python3.11/site-packages/_emerge/EbuildBuild.py", line 119, in _start_with_metadata
self._prefetch_exit(prefetcher)
File "/usr/lib/python3.11/site-packages/_emerge/EbuildBuild.py", line 156, in _prefetch_exit
retval = fetcher.execute()
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/_emerge/EbuildFetchonly.py", line 23, in execute
rval = portage.doebuild(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 1328, in doebuild
success = fetch(
^^^^^^
File "/usr/lib/python3.11/site-packages/portage/package/ebuild/fetch.py", line 1562, in fetch
loc = loc()
^^^^^
File "/usr/lib/python3.11/site-packages/portage/package/ebuild/fetch.py", line 737, in get_mirror_url
path = mirror_conf.get_best_supported_layout(filename=filename).get_path(filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/portage/package/ebuild/fetch.py", line 658, in get_best_supported_layout
for val in self.structure:
TypeError: 'NoneType' object is not iterable
Terminated |
_________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Mon Jul 03, 2023 7:43 pm Post subject: |
|
|
stefan11111,
/var/db/repos/gentoo/net-misc/utelnetd/utelnetd-0.1.11-r3.ebuild says
Code: | KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86" |
so its not keyworded on arm.
You should use Code: | <net-misc/utelnetd-9999 ** | since you really want to exclude live ebuilds by accident.
That's your fetch error again. I need to blow the dust off one of my Pi 1's (I found another) and try to repeat the error here.
What is the full name of the stage3 file you installed with? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stefan11111 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 29 Jan 2023 Posts: 951 Location: Romania
|
Posted: Mon Jul 03, 2023 9:03 pm Post subject: |
|
|
NeddySeagoon wrote: | stefan11111,
/var/db/repos/gentoo/net-misc/utelnetd/utelnetd-0.1.11-r3.ebuild says
Code: | KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86" |
so its not keyworded on arm.
You should use Code: | <net-misc/utelnetd-9999 ** | since you really want to exclude live ebuilds by accident.
That's your fetch error again. I need to blow the dust off one of my Pi 1's (I found another) and try to repeat the error here.
What is the full name of the stage3 file you installed with? |
Code: | stage3-armv6j_hardfp-openrc-20230624T034658Z.tar.xz |
I managed to build utelnetd via portage by copying the distfiles from my desktop. _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Tue Jul 04, 2023 7:31 am Post subject: |
|
|
stefan11111,
That's progress and it confirms the the problem is with fetching distfiles.
There is no point in reinstalling to try to fix that. :)
What does show, a pastebin would be good? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stefan11111 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 29 Jan 2023 Posts: 951 Location: Romania
|
Posted: Tue Jul 04, 2023 7:43 am Post subject: |
|
|
NeddySeagoon wrote: | stefan11111,
That's progress and it confirms the the problem is with fetching distfiles.
There is no point in reinstalling to try to fix that.
What does show, a pastebin would be good? |
Here:
https://pastebin.com/szCan7Pz _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Tue Jul 04, 2023 9:18 am Post subject: |
|
|
stefan11111,
Code: | KiB Mem: 180696 total, 29840 free |
You have the default 64M RAM allocated to the GPU. That can be reduced to 16M, making another 48M available to the CPU.
You may want on use 16M for building an6 64M for running a GUI.
is an old Pi Foundation kernel. Its harmless though.
Code: | ACCEPT_KEYWORDS="amd64 arm" |
Don't do that. Things that are and64 only will give you problems.
For individual package not keyworded on arm, use /etc/portage/package.accept_keywords/
At least you won't be taken by surprise by build or runtime failures.
Leave Code: | GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/" | unset, so you get the default.
Comment it out. I thought http:// was dead now, mirrors are all https://
If that still does not fix your fetch problem, try Code: | GENTOO_MIRRORS="" emerge ... |
to force fetching from the SRC_URI. (Not using the Gentoo mirror system at all)
Bypassing the mirror system is OK once in a while for testing but its considered poor netiquette.
Code: | USE="acl arm bzip2 cli crypt dri fortran gdbm iconv ipv6 ncurses nls nptl openmp pam pcre readline seccomp
split-usr ssl test-rust unicode xattr zlib" |
No GUI for you then ... yet :)
Its all "mostly harmless" but I have my suspicions about that GENTOO_MIRRORS= setting. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stefan11111 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 29 Jan 2023 Posts: 951 Location: Romania
|
Posted: Tue Jul 04, 2023 3:21 pm Post subject: |
|
|
NeddySeagoon wrote: | stefan11111,
Code: | KiB Mem: 180696 total, 29840 free |
You have the default 64M RAM allocated to the GPU. That can be reduced to 16M, making another 48M available to the CPU.
You may want on use 16M for building an6 64M for running a GUI.
|
And how do you reduce the gpu ram?
I plan to run it as a headless server.
NeddySeagoon wrote: |
is an old Pi Foundation kernel. Its harmless though.
Code: | ACCEPT_KEYWORDS="amd64 arm" |
Don't do that. Things that are and64 only will give you problems.
For individual package not keyworded on arm, use /etc/portage/package.accept_keywords/
At least you won't be taken by surprise by build or runtime failures.
|
Reflex from my amd64 desktop.
NeddySeagoon wrote: |
Leave Code: | GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/" | unset, so you get the default.
Comment it out. I thought http:// was dead now, mirrors are all https://
If that still does not fix your fetch problem, try Code: | GENTOO_MIRRORS="" emerge ... |
to force fetching from the SRC_URI. (Not using the Gentoo mirror system at all)
|
I copied the mirrors from my desktop. They are that way from when I first installed gentoo.
NeddySeagoon wrote: |
Bypassing the mirror system is OK once in a while for testing but its considered poor netiquette.
|
I managed to get myself rate-limited on an irc server while debugging. It would be a pain to have that happen here.
NeddySeagoon wrote: |
Code: | USE="acl arm bzip2 cli crypt dri fortran gdbm iconv ipv6 ncurses nls nptl openmp pam pcre readline seccomp
split-usr ssl test-rust unicode xattr zlib" |
No GUI for you then ... yet
Its all "mostly harmless" but I have my suspicions about that GENTOO_MIRRORS= setting. |
Should I turn my pi1 into a build server for my desktop ![Smile :)](images/smiles/icon_smile.gif) _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
stefan11111 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 29 Jan 2023 Posts: 951 Location: Romania
|
Posted: Tue Jul 04, 2023 7:53 pm Post subject: |
|
|
Just emerged sys-kernel/gentoo-sources.
Will this kernel work on the pi? _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
pingtoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 10 Sep 2021 Posts: 1492 Location: Richmond Hill, Canada
|
Posted: Tue Jul 04, 2023 7:56 pm Post subject: |
|
|
It would be better to use sys-kernel/raspberrypi-sources |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Tue Jul 04, 2023 7:57 pm Post subject: |
|
|
stefan11111,
The GPU/CPU memory split is controlled by a knob in config.txt
Try and reboot.
It is left as an exercise for the reader to find the complete list of config.txt settings on the Pi website. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Tue Jul 04, 2023 8:03 pm Post subject: |
|
|
stefan11111,
Use the foundation sources from git. That's what sys-kernel/raspberrypi-sources is anyway but it may be out of date.
Don't use HEAD. the latest .y version is the one that the foundation distributes as a binary.
It will be 5.15.y or 6.1.y whatever the current LTS kernel with Pi patches is.
gentoo-sources should work on a Pi4 but not older. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Phoenix591 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 17 Sep 2007 Posts: 495
|
Posted: Wed Jul 05, 2023 1:26 pm Post subject: |
|
|
yeah, grab their kernel from git ( https://github.com/raspberrypi/linux ), they usually get new upstream lts versions merged within a few days. They also do have branches up for nonlts kernel branches, but they're a bit slower with those iirc ( I havn't been used them in a while ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stefan11111 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 29 Jan 2023 Posts: 951 Location: Romania
|
Posted: Fri Jul 07, 2023 7:39 am Post subject: |
|
|
I built the kernel from sys-kernel/raspberrypi-sources.
https://pastebin.com/TCpnDDfD
Now how do I get it to build my kernel?
Code: | # ls
COPYING.linux
LICENCE.broadcom
'System Volume Information'
System.map-5.15.84_p20230106-raspberrypi
bcm2708-rpi-b-plus.dtb
bcm2708-rpi-b-rev1.dtb
bcm2708-rpi-b.dtb
bcm2708-rpi-cm.dtb
bcm2708-rpi-zero-w.dtb
bcm2708-rpi-zero.dtb
bcm2709-rpi-2-b.dtb
bcm2710-rpi-2-b.dtb
bcm2710-rpi-3-b-plus.dtb
bcm2710-rpi-3-b.dtb
bcm2710-rpi-cm3.dtb
bcm2710-rpi-zero-2-w.dtb
bcm2710-rpi-zero-2.dtb
bcm2711-rpi-4-b.dtb
bcm2711-rpi-400.dtb
bcm2711-rpi-cm4.dtb
bootcode.bin
cmdline.txt
config-5.15.84_p20230106-raspberrypi
config.txt
fixup.dat
fixup4.dat
fixup4cd.dat
fixup4db.dat
fixup4x.dat
fixup_cd.dat
fixup_db.dat
fixup_x.dat
issue.txt
kernel.img
kernel7.img
kernel7l.img
kernel8.img
overlays
start.elf
start4.elf
start4cd.elf
start4db.elf
start4x.elf
start_cd.elf
start_db.elf
start_x.elf
vmlinuz-5.15.84_p20230106-raspberrypi |
_________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54848 Location: 56N 3W
|
Posted: Fri Jul 07, 2023 3:47 pm Post subject: |
|
|
stefan11111,
You put the right options in config.txt.
The pi 1 boots kernel.img by default but the controls for that are in config.txt
Your kernel is vmlinuz-5.15.84_p20230106-raspberrypi
Be warned that Pi kernel- are in three pieces, not the two you are used to from x86.
You have the kernel binary, its modules, that you already know and love and the matching device tree binary, probably bcm2708-rpi-b.dtb for you.
Its built with the kernel. It does not change often but your new one may xe different to the one you have already.
The dtb describes the hardware to the kernel, so its important. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|