View previous topic :: View next topic |
Author |
Message |
akrmn24 n00b

Joined: 24 Nov 2024 Posts: 31
|
Posted: Mon Jan 27, 2025 9:21 pm Post subject: Old stage3 tarballs |
|
|
I'm looking for a historical archive of stage3 tarballs, in particular, the oldest available for ARM64/MUSL.
Thanks |
|
Back to top |
|
 |
akrmn24 n00b

Joined: 24 Nov 2024 Posts: 31
|
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1519 Location: Richmond Hill, Canada
|
Posted: Wed Jan 29, 2025 4:33 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 54942 Location: 56N 3W
|
Posted: Wed Jan 29, 2025 5:28 pm Post subject: |
|
|
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 |
|
 |
akrmn24 n00b

Joined: 24 Nov 2024 Posts: 31
|
Posted: Wed Jan 29, 2025 9:51 pm Post subject: |
|
|
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 |
|
 |
bstaletic Guru

Joined: 05 Apr 2014 Posts: 474
|
|
Back to top |
|
 |
akrmn24 n00b

Joined: 24 Nov 2024 Posts: 31
|
Posted: Thu Jan 30, 2025 10:27 am Post subject: |
|
|
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 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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 54942 Location: 56N 3W
|
Posted: Thu Jan 30, 2025 4:11 pm Post subject: |
|
|
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 |
|
 |
bstaletic Guru

Joined: 05 Apr 2014 Posts: 474
|
Posted: Thu Jan 30, 2025 6:48 pm Post subject: |
|
|
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 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 |
|
 |
stikonas n00b

Joined: 25 Mar 2012 Posts: 11
|
Posted: Sun Feb 02, 2025 1:38 am Post subject: |
|
|
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 |
|
 |
|