LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 07-01-2011, 11:41 AM   #1
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Rep: Reputation: Disabled
Post Installing Gentoo - Need help and guidance


As promised in my very first post I'm now going to give Gentoo another shot.

The hardware platform in question is pretty straight forward.
It's an Asus Eee PC 1015PEM with 2 gigs of RAM, an Intel atom N550, Danish keyboard layout and so on and so forth. I'm quite sure about all the parts, but I'm sure you can help me out when it comes to that.

All in all, as long as I can get the wireless to work, I'm happy, though I'd also like USB tethering with my HTC Legend to work.

I'm going to do the install via SSH, for easy sharing of data. As far as I know, it shouldn't course trouble, but please let me know if I'm mistaken.

If everything goes to plan, you should be able to see my progress here, though it may not work. If it don't, I'll find another way.

Anyway, I usually do okay up until I have to mess around with the use flags and kernel configuration, so you probably won't hear a lot from me to start with.

But now to the essentials.
I'm going to run pure 64 bit, no multilib profile, no swap partition and, unless you give me a good reason, no boot partition. It's simpler that way I think.

So basically, the partitioning scheme will simply be one large ext4 partition.

After that, if nothing goes wrong, which it may, as I've never tried this particular approach before, the CFLAGS are of interest.

-march=atom -O2 -pipe -fomit-frame-pointer

Seem like a good start, but please advice. Remember, I'm trying to achieve perfection here

Then there's the makeopts, which usually do little more than to confuse me. I usually just set it to the recommended number of cores + 1, but I really have no idea what the argumentation is for this. In my mind it should either be 2 or 4, number of cores or threads, so if you have anything interesting to say on this subject, please do let me know.

Then it's time to configure the USE variables and the kernel.

The USE variables... Well, they're confusing. Up until now I've basically let them be as is, but for a hyper minimalistic and optimised system, I'd really like a lot of help on that part, I just don't know where to start.

And when it comes to the kernel configuration... HELP!
Basically I'm out of my league here. Some things seem to make sense, but most don't.

And this is basically as far as I've ever gotten with this computer, cause after that, when trying to emerge the essentials, everything just seem to fail for no apparent reason.

Lastly I'll just describe the goal in it's entirety.
Installing a Gentoo base on my Asus Eee PC 1015PEM, imagining that is has got an SSD, as it eventually will (no, I'm not going to turn journalling off just yet)

I don't care about the blutooth and webcam, but wireless, sound and such basic stuff should work.

After that I'll throw in FluxBox and then I'm Basically done.

Later on, I should also be able to run a basic local webserver. PHP apache and mysql, but for now that is not important.

Guess that's it for now, though I've probably forgotten something important.


See you all later
 
Old 07-01-2011, 12:19 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Zacariaz View Post

After that, if nothing goes wrong, which it may, as I've never tried this particular approach before, the CFLAGS are of interest.

-march=atom -O2 -pipe -fomit-frame-pointer

Seem like a good start, but please advice. Remember, I'm trying to achieve perfection here
Sometimes -march=native will yield a better result.

You can check what this would result in with:

Code:
gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p'
Quote:
Originally Posted by Zacariaz View Post
Then there's the makeopts, which usually do little more than to confuse me. I usually just set it to the recommended number of cores + 1, but I really have no idea what the argumentation is for this. In my mind it should either be 2 or 4, number of cores or threads, so if you have anything interesting to say on this subject, please do let me know.
number of cores + 1
This is safe.
Quote:
Originally Posted by Zacariaz View Post
Then it's time to configure the USE variables and the kernel.

The USE variables... Well, they're confusing. Up until now I've basically let them be as is, but for a hyper minimalistic and optimised system, I'd really like a lot of help on that part, I just don't know where to start.
This is a good reference:

http://www.linuxquestions.org/questi...1/#post4393042
Quote:
Originally Posted by Zacariaz View Post
And when it comes to the kernel configuration... HELP!
Basically I'm out of my league here. Some things seem to make sense, but most don't.
kernel-seeds.org is a great reference when picking configuration options. Specifically:

http://kernel-seeds.org/working.html

Takes you through getting information about your system via (among other things

Quote:
Take the results of lspci -n and paste them at the following site: http://kmuto.jp/debian/hcl/.

and this thread if you want to ask pappy himself any questions about kernel config's

Pappy's Kernel Seeds Part III

http://forums.gentoo.org/viewtopic-t-829476.html


If you have any more questions, feel free to ask away.
 
1 members found this post helpful.
Old 07-01-2011, 12:24 PM   #3
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks a lot for that reply. Really contain some goodies and the timing is perfect. I was just done extracting portage

Anyway, regarding the -march=native, the rather cryptic command you supplied yielded no result at all, not even an error. What does that mean?

edit:
and here is the result of the lspci -n, via the site. That's just so cool
Quote:
8086a010 Yes Intel Corporation N10 Family DMI Bridge intel-agp
8086a011 Yes Intel Corporation N10 Family Integrated Graphics Controller i915 v2.6.32-
8086a012 Intel Corporation N10 Family Integrated Graphics Controller
808627d8 Yes Intel Corporation N10/ICH 7 Family High Definition Audio Controller snd-hda-intel
808627d0 Intel Corporation N10/ICH 7 Family PCI Express Port 1
808627d2 Intel Corporation N10/ICH 7 Family PCI Express Port 2
808627d6 Intel Corporation N10/ICH 7 Family PCI Express Port 4
808627c8 Intel Corporation N10/ICH 7 Family USB UHCI Controller #1
808627c9 Intel Corporation N10/ICH 7 Family USB UHCI Controller #2
808627ca Intel Corporation N10/ICH 7 Family USB UHCI Controller #3
808627cb Intel Corporation N10/ICH 7 Family USB UHCI Controller #4
808627cc Intel Corporation N10/ICH 7 Family USB2 EHCI Controller
80862448 Yes Intel Corporation 82801 Mobile PCI Bridge i810_rng
808627bc Yes Intel Corporation NM10 Family LPC Controller iTCO_wdt v2.6.38-
808627c1 Yes Intel Corporation N10/ICH7 Family SATA AHCI Controller ahci v2.6.25-
19691062 Yes Atheros Communications AR8132 Fast Ethernet atl1c v2.6.29-
14e44727 Yes Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller brcmsmac v2.6.38-

Last edited by Zacariaz; 07-01-2011 at 12:36 PM.
 
Old 07-01-2011, 12:38 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Zacariaz View Post
Thanks a lot for that reply. Really contain some goodies and the timing is perfect. I was just done extracting portage

Anyway, regarding the -march=native, the rather cryptic command you supplied yielded no result at all, not even an error. What does that mean?
I don't know why you get no output. Maybe you don't have gcc emerged yet.

Here is the output on my machine:

Code:
lxde@asus-gentoo ~ $ gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p'
-D_FORTIFY_SOURCE=2 -march=amdfam10 -mcx16 -msahf -mpopcnt -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10
That is weird about your output.


See my attachment for how mine was formatted.
Attached Thumbnails
Click image for larger version

Name:	Debian_HCL.png
Views:	19
Size:	152.8 KB
ID:	7442  

Last edited by andrewthomas; 07-01-2011 at 01:01 PM. Reason: Added HCL attachment
 
Old 07-01-2011, 12:52 PM   #5
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
apparently I don't have gcc in the minimal image I use, but how the heck am I supposed to compile anything without it? Suddenly it's not that odd that I haven't been able to emerge anything on my previous attempts.

Do I really need to use the livedvd? If so, I've go at problem, as I can't get it to work from an USB key.
 
Old 07-01-2011, 01:00 PM   #6
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Here's the CPU info, just in case it's of any use:
Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N550 @ 1.50GHz
stepping : 10
cpu MHz : 1499.786
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm dts
bogomips : 2999.57
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N550 @ 1.50GHz
stepping : 10
cpu MHz : 1499.786
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm dts
bogomips : 2999.68
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N550 @ 1.50GHz
stepping : 10
cpu MHz : 1499.786
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm dts
bogomips : 2999.63
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N550 @ 1.50GHz
stepping : 10
cpu MHz : 1499.786
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm dts
bogomips : 2999.69
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 48 bits virtual
power management:
 
Old 07-01-2011, 01:13 PM   #7
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Zacariaz View Post
apparently I don't have gcc in the minimal image I use, but how the heck am I supposed to compile anything without it? Suddenly it's not that odd that I haven't been able to emerge anything on my previous attempts.

Do I really need to use the livedvd? If so, I've go at problem, as I can't get it to work from an USB key.
I have never used a LiveDVD to install Gentoo before.

I have installed from another Linux partition and a straight handbook installation using a Gentoo installation CD.

How exactly are you installing?
 
Old 07-01-2011, 01:22 PM   #8
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
I have never used a LiveDVD to install Gentoo before.

I have installed from another Linux partition and a straight handbook installation using a Gentoo installation CD.

How exactly are you installing?
I'm using the minimal install cd from USB. Nothing too it really.

As far as I've gathered so far, there may be a problem with the $PATH, but my head really hurt right now. I thought if I could at least locate gcc, I could worry about that later, yet still get the information I need. Well, I need a break. Just in case it of any use, here's the path:
/usr/local/sbin:
/usr/local/bin:
/usr/sbin:
/usr/bin:
/sbin:
/bin:
/opt/bin:
/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5

Thanks for the help so far. I'll return later.

edit:
Could it have something to do with the path being correct only when chrooted? That would sort of make sense.

Last edited by Zacariaz; 07-01-2011 at 01:28 PM.
 
Old 07-01-2011, 01:30 PM   #9
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Zacariaz View Post
I'm using the minimal install cd from USB. Nothing too it really.

As far as I've gathered so far, there may be a problem with the $PATH, but my head really hurt right now. I thought if I could at least locate gcc, I could worry about that later, yet still get the information I need. Well, I need a break. Just in case it of any use, here's the path:
/usr/local/sbin:
/usr/local/bin:
/usr/sbin:
/usr/bin:
/sbin:
/bin:
/opt/bin:
/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5

Thanks for the help so far. I'll return later.

edit:
Could it have something to do with the path being correct only when chrooted? That would sort of make sense.

Just make sure that you follow the handbook.

http://www.gentoo.org/doc/en/handboo...book-amd64.xml
 
Old 07-01-2011, 01:32 PM   #10
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
Just make sure that you follow the handbook.

http://www.gentoo.org/doc/en/handboo...book-amd64.xml
Which is exactly what I do and have done twice before, and still failed.
 
Old 07-01-2011, 01:38 PM   #11
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Just chrooted and that seemed to do the trick. Output from gcc:
Quote:
-D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2
Which is not entirely correct. How should I interpret this?

Will -march=native work then?

Last edited by Zacariaz; 07-01-2011 at 01:40 PM.
 
Old 07-01-2011, 01:57 PM   #12
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Zacariaz View Post
Just chrooted and that seemed to do the trick. Output from gcc:


Which is not entirely correct. How should I interpret this?

Will -march=native work then?
Once you are on gcc-4.5 then it would be march=atom, but this must be from gcc-4.4 because the march=atom was not added until gcc-4.5
 
Old 07-01-2011, 01:59 PM   #13
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
Once you are on gcc-4.5 then it would be march=atom, but this must be from gcc-4.4 because the march=atom was not added until gcc-4.5
I see, so I assume that -march=native will work then.

Thanks for that. Next up is the use vars, but that will have to wait a bit. I've got a splitting headache.

In the meantime, if you've got any suggestions, please do let me know.
 
Old 07-01-2011, 02:13 PM   #14
Zacariaz
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
can't let it all be now that things are working out so well

Easy question, which charmap to use with locale da_DK? ISO-8859-1, UTF-8, both or something else?
 
Old 07-01-2011, 02:25 PM   #15
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Zacariaz View Post
can't let it all be now that things are working out so well

Easy question, which charmap to use with locale da_DK? ISO-8859-1, UTF-8, both or something else?
probably both and

ISO-8859-15 which I believe would be
Code:
da_DK.iso885915
I am in the US, so I use the standard


Quote:
lxde@asus-gentoo ~ $ locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Gentoo PCSpectra.com Linux - Newbie 8 11-22-2006 08:48 PM
Installing ATI 9200SE and X -- Guidance appreciated Tischbein Linux - Hardware 4 10-15-2006 10:51 AM
How do I start installing stage 3 of gentoo from universal gentoo 2005-1? kazuya1977 Linux - General 1 11-11-2005 10:30 AM
Installing Gentoo cs.cracker Linux - Newbie 2 03-02-2005 01:07 PM
Installing X in Gentoo raid517 Linux - Software 0 08-26-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration