khumarahn / teres1-gentoo

Gentoo on Olimex Teres 1 DIY laptop
GNU General Public License v3.0
6 stars 1 forks source link

porting to archlinux [question] #1

Open albjeremias opened 6 years ago

albjeremias commented 6 years ago

Hi! I have no idea why you choose gentoo, knowning that it is so slow to compile all this stuff...

I would like to try out archlinuxarm on my teres-1.. but I have no idea where to start... In https://archlinuxarm.org/about/downloads there is a list with many different CPUs, teres-1 is not there... I'm downloading the "ARMv8 AArch64 Multi-platform"

oh cool found some tips on installing debian: https://wiki.debian.org/InstallingDebianOn/Olimex/Teres-I

Great work! :) thanks for making this image.. the torrent is downloading.. takes a while...

khumarahn commented 6 years ago

I wanted to use arch linux originally, but could not make it work with the old kernel. Glibc and other things needed to be recompiled. Then it seemed much more natural to work with gentoo.

Also, I know gentoo better than arch, and I really appreciate its flexibility in low level things like choosing compiler options, mixing package versions and patching. Compilation times are not a big issue for me: everything is compiled on an x86 computer with no hurry, and then installed as binaries.

Hopefully, the mainline kernel will support all major features of teres soon. (I do not use it yet only because of the suspend and sound issues.) Then using arch linux will be so much more attractive. I guess that installing arch linux will be straightforward. I'd start with downloading http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz and checking if it works in a chroot.

For the torrent: if the download speed is very low for whatever reason, use http://khu.dedyn.io/teres-gentoo-20180426.img.xz

albjeremias commented 6 years ago

oh cool! thanks, way faster!! awesome! ;) Can you explain me how you compile in a x86? You use a VM or directly with gcc? and how-to create the "packages" from gentoo, do I need a gentoo machine?

As for the mailine support: Do you mean kernel 4.18 ? https://wiki.debian.org/InstallingDebianOn/Olimex/Teres-I#device_tree because without backlight, it will be complicated! :)

khumarahn commented 6 years ago

I compile in a qemu user chroot. Still, compilation with qemu is rather slow, so I also use a distcc helper on the host machine. If you'll be setting this up, I can try to answer questions.

khumarahn commented 6 years ago

Binary packages with gentoo: this is really easy. You need, though, to have another gentoo machine. Or run gentoo in a chroot, regardless of what your host system is.

Then, building a binary package is a matter of running emerge with FEATURES="buildpkg". It creates a binary version of every compiled package, which can be installed on other machines.

The main restriction of gentoo's binary packages is that because there are so many configuration options, the binaries are very configuration specific, and would only work if the other machines have the same configuration. Which works for teres just fine.

For the mainline: I guess I meant 4.17 with some patches. But I did not really try it. I realize I don't have much time to tinker with it, so I am waiting for everybody else to complete the hard work so I can enjoy the result :-)

There is an image with the mainline kernel which you can get from the olimex forum. They say, everything except the sound and suspend works. Maybe, there are also less serious problems, like battery indication, I don't remember.