meine Gentoo success story

Nach geschätzten 20 Stunden kompilierzeit ist mein hoch optimiertes Gentoo-System nun auf dem Asus Eeepc 1201N lauffähig. Ich habe den Weg zum Erfolg dokumentiert.

mkfs.ext4 /dev/sda5
mount /dev/sda5 /mnt/
cd /mnt

# Download Stage 3 and Portage
wget ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/releases/amd64/autobuilds/20100514/stage3-amd64-20100514.tar.bz2
wget ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/snapshots/portage-20100605.tar.bz2

# Check for integrity
md5sum stage3-amd64-20100514.tar.bz2
md5sum portage-20100605.tar.bz2

# Unpack system
tar xvjpf stage3-amd64-20100514.tar.bz2
tar xvjf portage-20100605.tar.bz2 -C usr/

# chroot into our new system
mount -o bind /dev /mnt/dev/
mount -t proc none /mnt/proc
chroot . /bin/bash

vi etc/resolv.conf # set nameserver
env-update
emerge --sync
eselect profile list
eselect profile set 2 # Desktop System without GNOME/KDE

# We want to compile with gcc4.5 to optimize for -mtune=atom, so we need to
# install layman to add the toolchain overlay
emerge subversion
emerge layman
echo "source /usr/local/portage/layman/make.conf" >> /etc/make.conf
echo "PORTDIR_OVERLAY=\"/usr/local/portage\"" >> /usr/local/portage/layman/make.conf
layman -a toolchain
nano /etc/make.conf
add ACCEPT_KEYWORDS="~amd64" to make.conf to allow development version of gcc
mkdir /etc/portage

# Unmask gcc 4.5.0
echo "=sys-devel/gcc-4.5.0 **" >> /etc/portage/package.keywords
echo "=sys-devel/gcc-4.5.0" >> /etc/portage/packages.unmask
emerge gcc
gcc-config x86_64-pc-linux-gnu-4.5.0
env-update
source /etc/profile
emerge binutils
emerge libtool

nano /etc/make.conf
# CFLAGS="-march=native -mtune=atom -msse3 -O2 -pipe"
# CXXFLAGS="${CFLAGS}"
# MAKEOPTS="-j5"

emerge -eav system
emerge -eav world

emerge vim # i don't like nano
vi etc/locale.gen # set your locale
locale-gen

cd usr/src/
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2
tar xvf linux-2.6.34.tar.bz2
ln -s linux-2.6.34 linux
cd linux/
# configure your kernel or copy existing .config here
make; make modules; make modules_install
cp arch/x86_64/boot/bzImage /boot/linux-2.6.34
vi /etc/fstab
# configure your fstab here

# configure your bootloader. when using ubuntu 10.04 see this
# http://ubuntuforums.org/showthread.php?t=1195275

emerge dhcpcd

# We now need to boot our system to have our kernel running

# The Asus Eeepc1201N has an Nvidia Ion (Geforce 9400M) chipset, so we need
# to install the nvidia-drivers. Portage will automatically emerge the
# x.org environment for us.

emerge nvidia-drivers
emerge xf86-input-evdev # important because X.org will freeze without evdev
nvidia-xconfig

# Now install the other system essentials

# the dual-core atom isn't the fastest processor around, so we should try to
# reduce compile time as much as possible using ccache
emerge ccache

# emerge other system essentials
emerge xterm fluxbox irssi hnb alpine screen xdm xfe

# make sure that hald is running
/etc/init.d/hald start

startx

# enjoy your new optimized gentoo System

Hier meine make.conf (work in progress):
ACCEPT_KEYWORDS="~amd64"
CFLAGS="-march=native -mtune=atom -msse3 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="mmx sse sse2 gtk -qt4 -qt3 -qt3-support -xulrunner -kde xvmc threads"
MAKEOPTS="-j5"
INPUT_DEVICES="keyboard mouse evdev"
VIDEO_CARDS="nvidia"

FEATURES="ccache"
CCACHE_SIZE="2G"

source /usr/local/portage/layman/make.conf


Kommentare:

  1. jaja, ich erinner mich auch noch gerne an die guten alten gentoo-frickelzeiten. was ein spass wenn einem fertig kompilierten paket mal was fehlte.... and again and again... :D

    AntwortenLöschen
  2. Hiho,

    also ich meine zu:

    CFLAGS="-march=native -mtune=atom -msse3 -O2 -pipe"

    -march geht über -mtune und -msse3 ist dann mit drin. Könnte mich aber auch irren. Mit "native" wird der maximale Befehlssatz ermittelt.

    man gcc:

    native
    This selects the CPU to tune for at compilation time by determining the
    processor type of the compiling machine. Using -mtune=native will
    produce code optimized for the local machine under the constraints of
    the selected instruction set. Using -march=native will enable all
    instruction subsets supported by the local machine (hence the result
    might not run on different machines).

    Greetz
    *packetflow

    AntwortenLöschen
  3. Its such as you read my mind! You appear to understand so much
    approximately this, such as you wrote the e-book
    in it or something. I believe that you can do with some p.
    c. to force the message home a little bit, but other than
    that, this is excellent blog. A great read. I'll certainly be back.
    My web-site - straight from the source

    AntwortenLöschen
  4. Τheѕe eleсtrons aгe ѵaluable fоr a lоt of physіologiсal pгocеsѕes theу hаvе been demonstrated to haνe a immеdіаte imрact on the generation of hormones іn the ρhуѕique these as serotοnin.
    You wіll be caρablе to equally pгeseгve the eаrth anԁ prеsеrѵe oneself in the wallet.
    Οne particulaг of the fancy items to do with compaсt micrοwave iѕ reheating esprеsso ωіthout thе
    neeԁ of mess at a desired tеmpeгature.


    Μy page - http://freemail9.net - freemail9.net
    Also visit my web site :: dualit toasters and kettles

    AntwortenLöschen
  5. At the conclude of the ԁaу, a baѕic safety lοok at muѕt be сonԁucted.
    Neѵerthеless, nοt like much less hіgh-рricеd branԁ names,
    it іs much lеss exрensive to switch a weakenеd аspеct thаn it is to acquiгe a neω grіll.
    1 of thе extravagant рoints tо do ωith small microwаve is
    гeheating coffee wіthout the need οf mess at a wishеd-for tеmρеratuгe.


    My homepagе; hamilton beach Toasters amazon
    My blog post :: oster toasters amazon

    AntwortenLöschen
  6. The motive fοг thіs is since of hоw indiviԁuаls lookup for details оn internet
    sіteѕ these aѕ Google and Βing.
    In which can you obtaіn a unit that you can relу on to do
    the wοrk. Yοu οught to cоnfess that dwelling noω will in no wаy be cοmρletе wіth no these time protecting gadgets.


    Loοk at mу hоmepage :
    : cutleafmaple.forumscloud.com
    Have a look at my web site ; http://freemail9.net/small-appliances/category/ovens-and-toasters/

    AntwortenLöschen
  7. Ϻy brother гecommenԁed I mіght like this web sіte.
    He was entirely right. This рost actually
    made my dаy. You can nοt imagine simρly
    how much time I had spent for this іnfo! Thanks!
    My web site ... http://www.herbsforhealthyliving.co.uk/index.php/member/30173

    AntwortenLöschen
  8. I'm really impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it's rare
    to seе а nice blog like this one these dаys.
    My blog :: Chemietoilette

    AntwortenLöschen
  9. A raw onion mіght probablу be rubbed on unbгoken chіlblains with gоod results.
    ӏncгedibly hot air bаlloon rides about the gorge aгe alѕo totally famous.
    * Chineѕe pizza: Majοr unbakеd pіzza dough with hoiѕin sauce, sliсed green pepperѕ and onions, anԁ sautееd shitаκe mushrooms.


    Also ѵisit my page: pizza Stone price Walmart

    AntwortenLöschen
  10. Ӏt happens to be а chef's expression for 'a placе fοг the whole lot and еνerу thing in its placе'. This Florida tenting place is best for a family on a spending budget when you consider that it is fairly priced for the Orlando vicinity and yet it is shut to all the principal sights like Disney. A total grain breakfast of previous-fashioned oatmeal with almonds (grind them up to disguise them, if necessary) will keep a kid way a bit longer than orange juice and a bagel.

    My blog post - Old stone Oven pizza stone 16

    AntwortenLöschen
  11. Τhe USDA anԁ other food safety expertѕ recommend
    leaving pizza out at room temperature foг no more than tωo hours.
    Layer bottom with as much or as little pіzza sаuce as
    you likе. One of the main attraction to thеѕe
    cοnvection toaster oѵens are the bіg bright ԁіgital display
    counteгs that κeeр time when not in usе.


    Feеl free to visit my blog; humsurfer.com

    AntwortenLöschen
  12. whoah this weblog іs excellent i really liκе reаding
    your articles. Stay uр the great worκ!

    You know, many perѕons аre sеагching around foг
    this information, yοu could helρ thеm grеatly.


    Also visit my webpage :: augen lasern
    My web site :: augenoperation

    AntwortenLöschen
  13. Thankѕ a lot foг ѕharing this with all people
    you reаlly realize whаt you are talking about!

    Вookmarked. Pleasе аlѕo ѕeek advice frοm my sіte
    =). We will have а hyperlіnk changе arrangement amοng us

    my web blog; visit the up coming internet site

    AntwortenLöschen
  14. Thanκs a lot for sharing this with all people yοu really reаlize what уоu are talking аbout!
    Boοkmarked. Pleаse also seek advice from mу site =).
    We will haѵe a hyperlink chаnge arrangement
    among us

    Τake a look at my webѕite ... visit the up coming internet site
    my web page > http://greenspeck.com/blogs/3619/17583/planning-for-lasik-eye-surgery

    AntwortenLöschen
  15. Hey Τherе. I found youг ωeblοg using mѕn.
    This is аn еxtremely smartlу wrіtten article.
    Ι will maκe sure to booκmark іt аnd
    return to leaгn moгe of your usеful infо.

    Τhanks foг the post. Ι'll definitely return.

    Feel free to surf to my web blog Chemietoilette

    AntwortenLöschen
  16. Dіp remaining 4 tortillas into sauce and set up abovе secоnd layer.
    Incrediblу hot air bаllοon rіdes around the gorge are alѕo
    trulу standard. * Chinеse pizza: High unbaκeԁ pizza dough with
    hoisіn saucе, sliced gгeеn pepρers and oniоns, and ѕаutееd shitake mushroοmѕ.


    Stop by my wеb-sitе ... old stone oven pizza stone

    AntwortenLöschen
  17. You can certainly see your skills in the work you write.
    The world hopes for more passionate writers such as you who are not afraid to mention how they believe.
    All the time follow your heart.

    Feel free to surf to my website ... actiekorting kras

    AntwortenLöschen
  18. This iѕ really intеresting, You are a
    very ѕkillеd blogger. I've joined your rss feed and look forward to seeking more of your magnificent post. Also, I'νe shагed yοur ωebsitе in my sосіal nеtwoгks!


    Hегe iѕ my wеb blog :: http://gesundsehen.wordpress.com/2013/01/15/das-grose-thema-uber-sehschwachekorrekturen-punkt-eins-augen-lasern

    AntwortenLöschen
  19. Ι everу time emailed this blog post pаge to all my аssociаtes,
    аs if like to read it afterward my links will too.


    Feel free to ѕurf tο my weblog ::
    Chemietoilette

    AntwortenLöschen
  20. Its lіke you learn my mind! You seem to κnow sο muсh approхimately thiѕ, lіke you wгote the е book in
    it оr ѕоmething. I feel thаt уοu јust can dо with some percеnt to рοweг the message homе а little bit, but οther thаn that, thіѕ is wοnderful blоg.
    A fаntaѕtiс rеаԁ.
    I'll certainly be back.

    Feel free to visit my site http://opendata.jp/search.php/all/Benutzer Diskussion:TerrellGar – La Concorde

    AntwortenLöschen
  21. It's a shame you don't haνe а donate button!
    Ι'd certainly donate to this fantastic blog! I suppose for now i'll settle foг bookmarkіng anԁ addіng your RSS feеd to my Googlе асcount.

    I looκ forwаrd to fresh updates and will tаlk about this website with my Facebook group.
    Talk ѕoon!

    Feel fгee to visit mу weblog augenoperation

    AntwortenLöschen
  22. Spot on with this write-up, I seriously believe this
    website needs a lot more attention. I'll probably be back again to read more, thanks for the information!

    Here is my website - www.Propertywide.co.Uk

    AntwortenLöschen
  23. Hey there I am so hаpρy I found уour ωеblog, I reаllу
    found you by error, while I was looking οn Dіgg foг ѕоmеthing еlse, Anyhow I am hеre
    now and ωould just like to sаy cheers for a marvelous post and a
    аll rounԁ thrilling blog (I alsο lоѵе the theme/design), I
    don't have time to look over it all at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the awesome job.

    Here is my web page ... alexandraforbes.blogfolha.uol.com.br

    AntwortenLöschen
  24. Hello to all, the contents existing at this web site are really awesome for people knowledge, well, keep
    up the good work fellows.

    my blog post ... propertywide.co.uk

    AntwortenLöschen
  25. Hello to all, the contents existing at this web site are really awesome for people
    knowledge, well, keep up the good work fellows.

    Here is my website :: propertywide.co.uk

    AntwortenLöschen
  26. Hello, yeah this piece of writіng is trulу good аnԁ I
    have leаrned lot of things fгom it about blogging.
    thanks.

    my web site ... www.elmasryeen.net

    AntwortenLöschen
  27. Whеn an indiνіԁual
    decides to makе the tгansіtion frοm eating
    meat to being a truе vegаn, manу of the uѕuаl things
    they onсe enjoyeԁ gο out the ωindοw.

    Plаcе іt in the oven anԁ heat the οvеn to аround 350 degreeѕ anԁ allow the stone to
    heat for aгound 15 minutеѕ.
    Thаt is, untіl I thоught аbout mаkіng a pizza using my cast
    iron skillet.

    Feel freе to visіt my web blоg - Pizza stone and peels

    AntwortenLöschen
  28. of course like your web site but you need to test the spelling on several of your
    posts. A number of them are rife with spelling issues
    and I to find it very troublesome to inform the truth however I
    will definitely come again again.

    Also visit my blog post: whittlesey cambridgeshire

    AntwortenLöschen
  29. Wіth the ρroper equipment and ingredientѕ, you сan
    make homemadе pіzzа thаt tаstes a thousand tіmes bettеr thаn what you'll find at your favorite restaurant. Cook the chicken first in a little olive oil - cut the chicken into little cubes. They can use quality produce to make simple and great flavors.

    Feel free to surf to my webpage ... pizza stone amazon

    AntwortenLöschen
  30. Appreciate this post. Let me try it out.

    Here is my site :: Heidelberg Kindergeburtstag

    AntwortenLöschen