Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile on AMD for Atom bin install?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
anyNiXwilldo
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 176
Location: US

PostPosted: Wed May 15, 2013 5:32 pm    Post subject: Compile on AMD for Atom bin install? Reply with quote

I have an atom netbook on which I would like to install Gentoo. However, I have ZERO interest in compiling on a dual-core atom. Would it be possible to compile for the atom on an AMD quad-core, and then install the atom binaries on the netbook? I know I can build generic binaries on the AMD quad-core to install on the atom, but what about USE flags like 3dnow, which atom doesn't support? I don't care to rebuild my AMD quad-core install without USE flags like 3dnow, but I do have the space to set up a chroot on the quad-core and compile all the apps for atom, without actually installing them on the quad-core, if necessary. I am not sure how to proceed for these different options though, or which of my options would be best.
_________________
Of course you can have my root password. I'm on Hardened!
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Wed May 15, 2013 5:48 pm    Post subject: Reply with quote

I solved a similar thing on that way:

Install VirtualBox on my big workstation. Give it maximum amount of memory the maschine can handle. If guest is 32 Bit 4G is enough

Install gentoo there like regular but use in make.conf
FEATURES="buildpkg"
MAKEOPTS="-j12"

mount /var/tmp/portage on a tmpfs like 3G. It speed up compiling. Not really necesarry.

The kernel needs to be configured that it can support the build machine and the target machine. lspci -k is your friend. Build all packages you will need with the use flags you need on the target maschine. Use regular CFLAGS. No fancy optimization. if all is done, make a fsarchiver image or any other image from the build machine. Deploy it on the target machine. Make it bootable.

Deploy a http server maybe on your VBox. This server needs to be reachable from the target machine. Expose all of /usr/portage/packages on the http server.

Change the make.conf on the target to
FEATURES="getbinpkg"
PORTAGE_BINHOST="http://myserver/packages-atom"

Now a emerge something should get that from the http server.

If you build new packages push them to the http server and then fetch them with emerge on the target.

Bye
schorsch
Back to top
View user's profile Send private message
anyNiXwilldo
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 176
Location: US

PostPosted: Thu May 16, 2013 11:50 pm    Post subject: Reply with quote

I just started the build. I did something very similar to your suggestion, but without the use of a virtual machine.

I cloned my system via a binary install on a 15GB partition. I then set the '--buildpkgonly' feature in make.conf, which builds, but does not install, packages. i tweaked make.conf to build for atom and changed the video card to intel. Both use the same sound card, so it wasn't necessary to change that. I also downloaded linux-libre-3.9.2 source, patched it with the ck-patches, configured it for the netbook, then built the kernel, but did not install it. This way, any compiled packages that have to check /usr/src/linux, should find what is needed. Once all was set, I did emerge empty tree to rebuild everything with -march=atom.

This will be a KDE only system with 712 packages total. Once it's finished. I'll install Gentoo from a Trisquel Mini iso already written to a USB drive and move the packages, kernel source tree and /etc settings on the second flash drive.
_________________
Of course you can have my root password. I'm on Hardened!
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 229
Location: West Grove, PA

PostPosted: Fri May 17, 2013 1:48 pm    Post subject: Reply with quote

I know you said you didn't want to compile Gentoo on the atom, but it's actually not that bad a process (it took me a week).

Here's a blog of how I did it. http://blog.nerdworld.org/blog/2012/08/gentoofuntoo-on-an-eee-pc-netbook.html
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
anyNiXwilldo
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 176
Location: US

PostPosted: Fri May 17, 2013 3:27 pm    Post subject: Reply with quote

I stumbled across your website yesterday and read that entire post. But no, I am not interested in compiling on the atom, particularly for a KDE only system. I can build it in 5 hours on my desktop, or at least I can if I can overcome the build dependencies. And even then, I may not keep Gentoo on the netbook. I'll have to try it and see. I am mostly looking to get mp4s playing like videos instead of slide shows. The binary distros I am interested in aren't doing that so well on the intel video chip, and I am guessing it's because the mesa versions in those distributions are too old. I also much prefer Gentoo's abilitity to control dependency chains.
_________________
Of course you can have my root password. I'm on Hardened!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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