Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Old stage3 tarballs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
akrmn24
n00b
n00b


Joined: 24 Nov 2024
Posts: 31

PostPosted: Mon Jan 27, 2025 9:21 pm    Post subject: Old stage3 tarballs Reply with quote

I'm looking for a historical archive of stage3 tarballs, in particular, the oldest available for ARM64/MUSL.

Thanks
Back to top
View user's profile Send private message
akrmn24
n00b
n00b


Joined: 24 Nov 2024
Posts: 31

PostPosted: Wed Jan 29, 2025 4:19 pm    Post subject: Reply with quote

Basically want to bootstrap my system from a smaller binary seed. I think the main options are TCC (I have trouble compling gmake with this on ARM64) or an older version of GCC. So far I have GCC 4.9 building in this tarball: https://gentoo.osuosl.org/experimental/arm/uclibc/stage3-armv7a_hardfp-uclibc-vanilla-20181008.tar.bz2

But if there's better ideas, you can let me know
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1518
Location: Richmond Hill, Canada

PostPosted: Wed Jan 29, 2025 4:33 pm    Post subject: Reply with quote

What is your vision of your smallest tarball(image) capability?

further use it to build a desktop? create a router? for IoT?

alpinelinux rootfs is very small does it not do what you want? Or just want to see how small you can build a rootfs?

Even smallest image need a definition of what its capability. Are you trying to build a smaller rootfs than alpnielinux?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jan 29, 2025 5:28 pm    Post subject: Reply with quote

akrmn24,

Make your own seed. For a one off,
Code:
emerge -av --root=/path_to/install/to <list_of_packages>

That's easiest when you build on the same host arch as the target. If that's not possible/desired, then start in a QEMU chroot and do the same thing.
The parent /etc/portage will apply.

If you need a repeatable build, try catalyst, which is what Gentoo uses to build stages and isos.
_________________
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
akrmn24
n00b
n00b


Joined: 24 Nov 2024
Posts: 31

PostPosted: Wed Jan 29, 2025 9:51 pm    Post subject: Reply with quote

By binary seed I mean the toolchain (compiler, binutils, libc) and busybox. Starting from this (and a bunch of source code) I want to build a modern system capable of running a modern browser and other things.

I think this does more or less what I want but for AMD64, not ARM64: https://github.com/ZilchOS/bootstrap-from-tcc

For amd64 I tried one of the recipes (gmake) and it worked, but for arm64 it gave many errors, which I can post in the ARM subforum later.

I think Alpine is a nice project but I never tried it so not sure if they have some scripts that can bootstrap as I want. I will look.
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 474

PostPosted: Wed Jan 29, 2025 10:30 pm    Post subject: Reply with quote

See https://github.com/fosslinux/live-bootstrap/
Officially, only x86 is supported, but you can pick ARM64 architecture.
Note that it bootstraps musl-libc instead of glibc, but it does bootstrap the world from just a machine code pre-processor.
There's also https://mid-kid.root.sx/git/mid-kid/bootstrap/src/branch/master/gentoo-2025 , which starts with live-boostrap x86 and then constructs amd64 gentoo out of it.

If you want to bootstrap openjdk or go, see https://gitlab.com/stikonas/gentoo-bootstrap , which you can enabled with eselect repository enable gentoo-bootstrap.

EDIT: Fixed the links.


Last edited by bstaletic on Thu Jan 30, 2025 6:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
akrmn24
n00b
n00b


Joined: 24 Nov 2024
Posts: 31

PostPosted: Thu Jan 30, 2025 10:27 am    Post subject: Reply with quote

Ya I've heard about live-bootrap before and now I'm looking into it again, but I just want to take some pieces from it, like the make-3.82 recipe they have in steps/. It doesn't seem to work for me on my ARM system. But also I don't understand what
Code:
catm
is. They have catm config.h ...

The first two tcc commands work, but the next one
Code:
tcc -c -I. -Iglob -DHAVE_INTTYPES_H -DHAVE_SA_RESTART -DHAVE_STDINT_H ar.c

gives an error because there is a missing config.h. If I copy config.h.in to config.h, then it gives another error:
Code:
make.h:436 error: invalid type.

If I try to use the configure script, it says it can't guess my system type since it uses AARCH64 and it's an old version of make. I tried putting arm-unknown-linux-musl for the --build parameter but it doesn't understand that. Tried also armv7a instead of arm. What else can I put?

BTW, your second link gives me a 404.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 30, 2025 4:11 pm    Post subject: Reply with quote

akrmn24,

There is a comma at the end of the link that is not a part of the link. Hence 404.
It's quite common here
_________________
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
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 474

PostPosted: Thu Jan 30, 2025 6:48 pm    Post subject: Reply with quote

akrmn24 wrote:
Ya I've heard about live-bootrap before and now I'm looking into it again, but I just want to take some pieces from it, like the make-3.82 recipe they have in steps/. It doesn't seem to work for me on my ARM system. But also I don't understand what
Code:
catm
is. They have catm config.h ...


catm concatenates files. It is built in the 7th step: https://github.com/fosslinux/live-bootstrap/blob/master/parts.rst#7catm

arkmn24 wrote:
BTW, your second link gives me a 404.


Damnit... I fixed the links.
Back to top
View user's profile Send private message
stikonas
n00b
n00b


Joined: 25 Mar 2012
Posts: 11

PostPosted: Sun Feb 02, 2025 1:38 am    Post subject: Reply with quote

Indeed catm just concatenates files.

It is written because:
1. We don't have cat from coreutils early in the bootstrap.
2. cat also needs more advanced features like output redirection, e.g. "cat file1 file2 > combined". Our early shells (and kernels) in live-bootstrap don't support that, so "catm combined file1 file2" works.

Coincidentally, "catm config.h" craetes an empty file. On normal system you could achieve that using "touch config.h" or "> config.h".

Live-bootstrap doesn't work on arm64 mainly because GNU mes does not yet support it.

amd64 is not supported because mescc from GNU mes is a bit buggy and probably miscompiles tcc a bit. The first version of tcc can be built in live-bootstrap and it can compile some files but not enough to rebuild itself (segfaults on some files). So until this is fixed we are stuck there.

riscv64 version actually can run quite far but not everything is pushed into live-bootstrap master. The main problem is that a patch that fixes riscv64 support in bootstrappable fork of tcc breaks x86, this needs fixing properly (or we could apply patch conditionally). After that I've manually tried riscv64 bootstrap and was able to reach GCC9.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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