View previous topic :: View next topic |
Author |
Message |
shaowei n00b
Joined: 01 Mar 2021 Posts: 2
|
Posted: Tue Mar 09, 2021 10:01 am Post subject: Is it possible to building a stage3 without a seed stage? |
|
|
Hi, guys!
I have a mips64el laptop and I installed a debian mips port into it.
Is it possible to build a gentoo stage3 by using the debian system without seed stage1 or stage2? (I can not find a usable mips64el gentoo stage1,2,3)
Any suggestions? Thanks a lot! |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31281 Location: here
|
Posted: Tue Mar 09, 2021 10:13 am Post subject: |
|
|
Moved from Portage & Programming to Gentoo on Alternative Architectures. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54586 Location: 56N 3W
|
Posted: Tue Mar 09, 2021 4:08 pm Post subject: |
|
|
shaowei,
Welcome to Gentoo.
The answer to your question is yes and no. You don't need to.
Given a gentoo install on a <random arch> install crossdev and make yourself a cross mips64el toolchain.
That will be Code: | crossdev -t mips64el-unknown-linux-gnu |
This will get you a /usr/mips64el-unknown-linux-gnu/ target root, which will become populated with gentoo.
Some things will cross emerge, others will not.
However with the aid of kernel support for misc binaries on the host and a suitable qemu-static-user installed in /usr/mips64el-unknown-linux-gnu you can chroot into /usr/mips64el-unknown-linux-gnu from <random arch>. Now, qemu-static-user emulates your mips64el CPU in software, so you run your growing mips64el on the host whatever that is.
You do need a complete toolchain before you can chroot and run emerge.
I've done it for aarch64 so I could run my Pi3 in 64 bit mode.
The initial cross compiling for aarch64 on the wiki, as is the build root.
If you need to do it on your laptop. it gets harder. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|