View previous topic :: View next topic |
Author |
Message |
anyNiXwilldo Apprentice
Joined: 20 Feb 2004 Posts: 176 Location: US
|
Posted: Wed May 15, 2013 5:32 pm Post subject: Compile on AMD for Atom bin install? |
|
|
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 |
|
|
schorsch_76 Guru
Joined: 19 Jun 2012 Posts: 450
|
Posted: Wed May 15, 2013 5:48 pm Post subject: |
|
|
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 |
|
|
anyNiXwilldo Apprentice
Joined: 20 Feb 2004 Posts: 176 Location: US
|
Posted: Thu May 16, 2013 11:50 pm Post subject: |
|
|
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 |
|
|
Vorlon Apprentice
Joined: 16 May 2003 Posts: 246 Location: West Grove, PA
|
|
Back to top |
|
|
anyNiXwilldo Apprentice
Joined: 20 Feb 2004 Posts: 176 Location: US
|
Posted: Fri May 17, 2013 3:27 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|