Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo and smartphones - something really difficult
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
popetto
n00b
n00b


Joined: 13 Aug 2019
Posts: 27
Location: Italy

PostPosted: Mon May 11, 2020 9:45 pm    Post subject: Gentoo and smartphones - something really difficult Reply with quote

Hi all, as you see I'm everything but an expert of Gentoo and I would like to try to install a full working OS (gentoo) on an android smartphone. I dream of doing a fresh gentoo installation where I create everything, making everything (or most of it) working. I know it is quite impossible to do, especially if you are a beginner as me. So, my question is: is there some sites where I can learn everything or, at least, the basics of how to do such a thing? I want to learn and to become able to do what I mentioned above so I'm asking you to send me the documentation you know.
I want to contribute to the development of Gentoo on the least tested architectures but, right now, I lack of knowledge.
Thank you for your help!! :D
_________________
There are two types of user: the one who reads guides and the one who writes them. For now, I'm the one who reads :(
Back to top
View user's profile Send private message
ununu
n00b
n00b


Joined: 19 Apr 2020
Posts: 31

PostPosted: Tue May 12, 2020 9:59 am    Post subject: dream no more Reply with quote

popetto wrote:
So, my question is: is there some sites where I can learn everything or, at least, the basics of how to do such a thing?



A₦DROID WITHOUT ROOT

The black box Termux way, it's a terminal for android with full fledge linux support that by itself can be sort of a distro as it has its own packaging system.

https://wiki.termux.com/wiki/Main_Page

Which also allows full distro installations.

https://wiki.termux.com/wiki/PRoot

On the Gentoo side there's a prefix project to install into android.

"Prefix" mean installing Gentoo in any other system as chroot, even m$$$, o$$x, bsd, etc.

Introduction to prefix:
https://wiki.gentoo.org/wiki/Project:Prefix

Gentoo prefix on android:

https://wiki.gentoo.org/wiki/Project:Android

"One click" install requires androind ROOT:

https://wiki.gentoo.org/wiki/Project:Android/tarball

By hand:

https://wiki.gentoo.org/wiki/Project:Android/build

Gentoo stage on android without root:

https://sourceforge.net/projects/gentooandroid/

This guy seems to be up to date with his gentoo install as its activity is recent.

From F-DROID you can get an alternative terminal:

https://f-droid.org/en/packages/com.termoneplus/

If I were you in order not to get frustrated I'd try some other distros before to get the feeling of how's linux on android.

For Gentoo you gonna need to make various adjustments as well, in make.conf due to smartphones disk/ram constrains, although the newer ones with 10 cores and 8GB of ram could make a smooth experience.

With some patience it's doable, I was able to compile gcc wit pgo and lto USE flags.

Also a recommend a rooted android so you can have more flexibility and even install other kernels with extra features.

I hope this helps.

By the way, in which phone are you attempting this feat? Just curious about the specs.
Back to top
View user's profile Send private message
popetto
n00b
n00b


Joined: 13 Aug 2019
Posts: 27
Location: Italy

PostPosted: Tue May 12, 2020 10:25 am    Post subject: Reply with quote

ununu wrote:
By the way, in which phone are you attempting this feat? Just curious about the specs.

I'd like to try this on a Samsung... a Note 4. I've got also Note 8. But, before trying everything, I want to learn more in order to understand every problem that already exists and the ones I'll find if I try to do such a difficult thing. Thank you!
_________________
There are two types of user: the one who reads guides and the one who writes them. For now, I'm the one who reads :(
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2390
Location: Germany

PostPosted: Wed May 13, 2020 10:38 pm    Post subject: Reply with quote

popetto wrote:
ununu wrote:
By the way, in which phone are you attempting this feat? Just curious about the specs.

I'd like to try this on a Samsung... a Note 4. I've got also Note 8. But, before trying everything, I want to learn more in order to understand every problem that already exists and the ones I'll find if I try to do such a difficult thing. Thank you!


Gentoo on a Smartphone sounds good but... an Smartphone is highly optimized. About Power Savings, and drivers for different Components. And about using the Camera.

I think the big five companies use ai optimized Image Capture Programs to scavenge Information from Pictures indirectly and create better results.

Its like to build a Car from the Stretch competing with a Formula one racing car, do not expect to much.

Free Android Version or Custom ROM Version, download the Binary Blobs of the proprietary Drivers from the phone (because of Copy Right) to add them to the source code. Because a Phone is mostly not a Personal Computer with its Components and you will not have the same luxury of using drivers from the hardware manufacture. The issue here is, this drivers will most likely only work with old Linux Kernels. So you could not load the camera or gps sensors driver for a modern Linux Kernel.

However there is a minimal (in my cases) possibility that your hardware have free and open source drivers.

Try to use lineagesos, there is a google summer of code 2020 (see the Gentoo blog) for a better building process, for lineageos inspired by portage. Not sure if i repeat it right. I am looking forward to it but did not spent much time on it.

If you like a Linux on your phone, try to aim for this and choose the Hardware after. Good is Librem 5 by purism but its a first step and not cheap. There are other Phones like pinephone or the Fairphone, which try to archive this goals or some goals for this kind of hobby.

Its like with Gaming, if you want to play you need a Windows or Console. If you want to look at this Issue, Software working branch or Machine, you have to have a second expendable hardware. And much time!

Its often Useful to see/understand/inspect how others (like Android, Iphone...) do this/their job.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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