I'm new to gentoo and actually new to linux(well, I know basic commands, and concepts, though). After five days of struggling--rebuilding, reemerging and a lot of restarting I finally got the system to work.
Now I'm confronted with a new problem: after I generated a driver for my realtek 8168 wired ethernet card using the official driver's autoconfig script and invoke dhpcd , the whole system froze. I couldn't even switch to tty2. Then I tried dhcpcd just after logging in and it froze again. Reemerging doesn't help.
This is the new kernel I've just compiled exluding r8169 driver that the livecd use.
How could I fix this problem?

eliminate the manufacturer's driver and use the r8169 driver provided in the kernel as a module

Well, it works for just one boot. I rebooted (using my new kernel) and ifconfig eth0 up and dhcpcd and it froze! It seems that it freezes since the second boot of every new kernel.
It's driving me crazy... I can't even emerge.

I'll give it a try right away.
One more thing. My new kernel contains drivers for my b4313 wireless card and I just wanted to try your suggestion on it . So before configuring I just ifconfig wlan0 up and down it froze again! ifconfig never froze before.
Now I'm thinking that the freezes are not because of dhcpcd but my new kernel.
Do you guys got any idea on that? I don't know how to get my kernel information out to you.

Wow, you turned off so many things… But I will still give it a try.
Still need time to know what they really do in the system. Is there any chance that I find a intuitive description for all those features? Though this may sound ... lazy.
Well I found out that if I use pump instead of dhcpcd and start net.eth0 as default and don't load wlan0 then everything's fine. I think there must be something wrong with my brcmmsmac driver or my card or brcm specific driver. Maybe I'll post up a new thread.
Thank you, BillWho and DONAHUE!

do the first two show the wireless interface?
does the last show BRCMSMAC driver in use for the wireless NIC?
if the answer is yes for all, the wireless part of the kernel should be in pretty good shape and you should proceed with

do the first two show the wireless interface?
does the last show BRCMSMAC driver in use for the wireless NIC?
if the answer is yes for all, the wireless part of the kernel should be in pretty good shape and you should proceed with

Code:

emerge wireless-tools wpa_supplicant
iwlist scan

if iwlist scan scans and shows your network

Code:

iwlist scan | wgetpaste

and post the url

I'll give that a try in a few days…Mountain-climbing tomorrow…Thank you!

do the first two show the wireless interface?
does the last show BRCMSMAC driver in use for the wireless NIC?
if the answer is yes for all, the wireless part of the kernel should be in pretty good shape and you should proceed with

Code:

emerge wireless-tools wpa_supplicant
iwlist scan

if iwlist scan scans and shows your network

Code:

iwlist scan | wgetpaste

and post the url

Hey I found something. Neither ifconfig -a nor ifconfig shows wlan0, but I didn't start wlan0 on default or my machine would freeze before log-in interface shows up. But lspci -k shows something really interesting.
It shows that my br4313 card uses bcma instead of BRCMSMAC module. Module bcma seems to be the module under BRCMSMAC.
Maybe I should change it mannually?

Broadcom-sta works! Though it needs a restart and I haven't test with iwlist yet. But the light i on and I can use fn+f2 to switch it.
Oh I don't know what to say... It made me so depressed.Now I'm vary happy! Thank you so much!