1 |
Am 16.10.2011 01:05, schrieb CJoeB: |
2 |
> Hi everyone, |
3 |
> |
4 |
> Well, thanks to the help I got from the list, I finally have Gentoo |
5 |
> installed on my new desktop and booting to a command prompt. |
6 |
> |
7 |
> However, now I have a networking issue. |
8 |
> |
9 |
> In past, when I booted to the install CD and my ethernet connection was |
10 |
> not active, I typed net-setup eth0 and was able to set it up. This |
11 |
> time, when I booted to the install CD and typed net-setup eth0, the |
12 |
> network card was not recognized. I googled and found a post where |
13 |
> someone said that they had to 'modprobe -r broadcom' and 'modprobe -r |
14 |
> tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run |
15 |
> net-setup. I did this and then ifconfig returned my eth0 connection. |
16 |
> |
17 |
> Of course, later you have to do the cp -L /etc/resolv.conf |
18 |
> /mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my |
19 |
> default runlevel. |
20 |
> |
21 |
> However, when I boot, eth0 does not start. I can start it manually by |
22 |
> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe |
23 |
> broadcom' and 'modprobe tg3' |
24 |
> |
25 |
> However, I would like to have my network started automatically. |
26 |
> |
27 |
> I do have config_eth0="dhcp" in my /etc/conf.d/net file |
28 |
> |
29 |
> Any suggestions? |
30 |
> |
31 |
> Colleen |
32 |
> |
33 |
|
34 |
Hmm, a workaround would be a custom init script. Copy the following code |
35 |
into a new file in /etc/init.d (let's say /etc/init.d/broadcom-fix): |
36 |
|
37 |
#!/sbin/runscript |
38 |
description="Reload broadcom and tg3 modules to work around kernel bug" |
39 |
depend() { |
40 |
before net |
41 |
after modules |
42 |
} |
43 |
start() |
44 |
{ |
45 |
ebegin "Reloading broadcom and tg3 modules" |
46 |
modprobe -r broadcom tg3 && |
47 |
modprobe broadcom && |
48 |
modprobe tg3 |
49 |
eend $? "Failed to reload modules" |
50 |
} |
51 |
|
52 |
Make it executable (chmod 755) and add it to the default run level |
53 |
(rc-update add broadcom-fix default). |
54 |
|
55 |
Better try to start it manually before rebooting so you can be sure it |
56 |
works as expected. |
57 |
|
58 |
Hope this helps, |
59 |
Florian Philipp |