Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it possible to building a stage3 without a seed stage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
shaowei
n00b
n00b


Joined: 01 Mar 2021
Posts: 2

PostPosted: Tue Mar 09, 2021 10:01 am    Post subject: Is it possible to building a stage3 without a seed stage? Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Tue Mar 09, 2021 10:13 am    Post subject: Reply with quote

Moved from Portage & Programming to Gentoo on Alternative Architectures.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Mar 09, 2021 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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