* [gentoo-user] Another Install Issue
@ 2011-10-15 23:05 CJoeB
2011-10-16 9:59 ` Stroller
` (2 more replies)
0 siblings, 3 replies; 33+ messages in thread
From: CJoeB @ 2011-10-15 23:05 UTC (permalink / raw
To: gentoo-user
Hi everyone,
Well, thanks to the help I got from the list, I finally have Gentoo
installed on my new desktop and booting to a command prompt.
However, now I have a networking issue.
In past, when I booted to the install CD and my ethernet connection was
not active, I typed net-setup eth0 and was able to set it up. This
time, when I booted to the install CD and typed net-setup eth0, the
network card was not recognized. I googled and found a post where
someone said that they had to 'modprobe -r broadcom' and 'modprobe -r
tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run
net-setup. I did this and then ifconfig returned my eth0 connection.
Of course, later you have to do the cp -L /etc/resolv.conf
/mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my
default runlevel.
However, when I boot, eth0 does not start. I can start it manually by
doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
broadcom' and 'modprobe tg3'
However, I would like to have my network started automatically.
I do have config_eth0="dhcp" in my /etc/conf.d/net file
Any suggestions?
Colleen
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-15 23:05 [gentoo-user] Another Install Issue CJoeB
@ 2011-10-16 9:59 ` Stroller
2011-10-16 13:27 ` CJoeB
2011-10-16 10:05 ` Florian Philipp
2011-10-16 10:43 ` Mick
2 siblings, 1 reply; 33+ messages in thread
From: Stroller @ 2011-10-16 9:59 UTC (permalink / raw
To: gentoo-user
On 16 October 2011, at 00:05, CJoeB wrote:
> ...
> However, when I boot, eth0 does not start. I can start it manually by
> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
> broadcom' and 'modprobe tg3'
>
> However, I would like to have my network started automatically.
List broadcom and tg3 in /etc/conf.d/modules as per section 7.e. of the install guide.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#doc_chap5
Stroller.
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-15 23:05 [gentoo-user] Another Install Issue CJoeB
2011-10-16 9:59 ` Stroller
@ 2011-10-16 10:05 ` Florian Philipp
2011-10-16 10:18 ` Mick
2011-10-16 10:43 ` Mick
2 siblings, 1 reply; 33+ messages in thread
From: Florian Philipp @ 2011-10-16 10:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]
Am 16.10.2011 01:05, schrieb CJoeB:
> Hi everyone,
>
> Well, thanks to the help I got from the list, I finally have Gentoo
> installed on my new desktop and booting to a command prompt.
>
> However, now I have a networking issue.
>
> In past, when I booted to the install CD and my ethernet connection was
> not active, I typed net-setup eth0 and was able to set it up. This
> time, when I booted to the install CD and typed net-setup eth0, the
> network card was not recognized. I googled and found a post where
> someone said that they had to 'modprobe -r broadcom' and 'modprobe -r
> tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run
> net-setup. I did this and then ifconfig returned my eth0 connection.
>
> Of course, later you have to do the cp -L /etc/resolv.conf
> /mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my
> default runlevel.
>
> However, when I boot, eth0 does not start. I can start it manually by
> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
> broadcom' and 'modprobe tg3'
>
> However, I would like to have my network started automatically.
>
> I do have config_eth0="dhcp" in my /etc/conf.d/net file
>
> Any suggestions?
>
> Colleen
>
Hmm, a workaround would be a custom init script. Copy the following code
into a new file in /etc/init.d (let's say /etc/init.d/broadcom-fix):
#!/sbin/runscript
description="Reload broadcom and tg3 modules to work around kernel bug"
depend() {
before net
after modules
}
start()
{
ebegin "Reloading broadcom and tg3 modules"
modprobe -r broadcom tg3 &&
modprobe broadcom &&
modprobe tg3
eend $? "Failed to reload modules"
}
Make it executable (chmod 755) and add it to the default run level
(rc-update add broadcom-fix default).
Better try to start it manually before rebooting so you can be sure it
works as expected.
Hope this helps,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 10:05 ` Florian Philipp
@ 2011-10-16 10:18 ` Mick
2011-10-16 22:35 ` Florian Philipp
0 siblings, 1 reply; 33+ messages in thread
From: Mick @ 2011-10-16 10:18 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 2311 bytes --]
On Sunday 16 Oct 2011 11:05:55 Florian Philipp wrote:
> Am 16.10.2011 01:05, schrieb CJoeB:
> > Hi everyone,
> >
> > Well, thanks to the help I got from the list, I finally have Gentoo
> > installed on my new desktop and booting to a command prompt.
> >
> > However, now I have a networking issue.
> >
> > In past, when I booted to the install CD and my ethernet connection was
> > not active, I typed net-setup eth0 and was able to set it up. This
> > time, when I booted to the install CD and typed net-setup eth0, the
> > network card was not recognized. I googled and found a post where
> > someone said that they had to 'modprobe -r broadcom' and 'modprobe -r
> > tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run
> > net-setup. I did this and then ifconfig returned my eth0 connection.
> >
> > Of course, later you have to do the cp -L /etc/resolv.conf
> > /mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my
> > default runlevel.
> >
> > However, when I boot, eth0 does not start. I can start it manually by
> > doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
> > broadcom' and 'modprobe tg3'
> >
> > However, I would like to have my network started automatically.
> >
> > I do have config_eth0="dhcp" in my /etc/conf.d/net file
> >
> > Any suggestions?
> >
> > Colleen
>
> Hmm, a workaround would be a custom init script. Copy the following code
> into a new file in /etc/init.d (let's say /etc/init.d/broadcom-fix):
>
> #!/sbin/runscript
> description="Reload broadcom and tg3 modules to work around kernel bug"
> depend() {
> before net
> after modules
> }
> start()
> {
> ebegin "Reloading broadcom and tg3 modules"
> modprobe -r broadcom tg3 &&
> modprobe broadcom &&
> modprobe tg3
> eend $? "Failed to reload modules"
> }
>
> Make it executable (chmod 755) and add it to the default run level
> (rc-update add broadcom-fix default).
>
> Better try to start it manually before rebooting so you can be sure it
> works as expected.
>
> Hope this helps,
> Florian Philipp
This would be a workaround - the question is why does the module need to be
removed and reinstalled manually? Why isn't the kernel loading it at boot
time?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-15 23:05 [gentoo-user] Another Install Issue CJoeB
2011-10-16 9:59 ` Stroller
2011-10-16 10:05 ` Florian Philipp
@ 2011-10-16 10:43 ` Mick
2011-10-16 12:59 ` Florian Philipp
2011-10-16 14:52 ` CJoeB
2 siblings, 2 replies; 33+ messages in thread
From: Mick @ 2011-10-16 10:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1895 bytes --]
On Sunday 16 Oct 2011 00:05:01 CJoeB wrote:
> Hi everyone,
>
> Well, thanks to the help I got from the list, I finally have Gentoo
> installed on my new desktop and booting to a command prompt.
>
> However, now I have a networking issue.
>
> In past, when I booted to the install CD and my ethernet connection was
> not active, I typed net-setup eth0 and was able to set it up. This
> time, when I booted to the install CD and typed net-setup eth0, the
> network card was not recognized.
This means that your kernel is not configured with the corresponding modules
for your network card, or that there is some other configuration problem with
e.g. firmware loading (if such a thing is necessary for your card).
> I googled and found a post where
> someone said that they had to 'modprobe -r broadcom' and 'modprobe -r
> tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run
> net-setup. I did this and then ifconfig returned my eth0 connection.
>
> Of course, later you have to do the cp -L /etc/resolv.conf
> /mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my
> default runlevel.
>
> However, when I boot, eth0 does not start.
What does dmesg show?
What does cat /var/log/syslog | grep -i tg3 show
> I can start it manually by
> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
> broadcom' and 'modprobe tg3'
So the question is why when you remove and install the module manually your
NIC driver loads, but at boot time it does not ...
> However, I would like to have my network started automatically.
>
> I do have config_eth0="dhcp" in my /etc/conf.d/net file
Please show:
grep ^[^#] /etc/conf.d/net
ifconfig and ifconfig -a (before and after you modprobe the driver)
It may also help to know what is your card (lshw and lspci -v).
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 10:43 ` Mick
@ 2011-10-16 12:59 ` Florian Philipp
2011-10-16 15:05 ` CJoeB
2011-10-16 14:52 ` CJoeB
1 sibling, 1 reply; 33+ messages in thread
From: Florian Philipp @ 2011-10-16 12:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 982 bytes --]
Am 16.10.2011 12:43, schrieb Mick:
> On Sunday 16 Oct 2011 00:05:01 CJoeB wrote:
>> Hi everyone,
>>
>> Well, thanks to the help I got from the list, I finally have Gentoo
>> installed on my new desktop and booting to a command prompt.
>>
>> However, now I have a networking issue.
>>
>> In past, when I booted to the install CD and my ethernet connection was
>> not active, I typed net-setup eth0 and was able to set it up. This
>> time, when I booted to the install CD and typed net-setup eth0, the
>> network card was not recognized.
>
> This means that your kernel is not configured with the corresponding modules
> for your network card, or that there is some other configuration problem with
> e.g. firmware loading (if such a thing is necessary for your card).
>
[...]
Also: Are the modules actually loaded before you unload them? Use
`modprobe -vr broadcom tg3`. If there is no output, the module was not
loaded.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 9:59 ` Stroller
@ 2011-10-16 13:27 ` CJoeB
0 siblings, 0 replies; 33+ messages in thread
From: CJoeB @ 2011-10-16 13:27 UTC (permalink / raw
To: gentoo-user
On 10/16/11 05:59, Stroller wrote:
> On 16 October 2011, at 00:05, CJoeB wrote:
>> ...
>> However, when I boot, eth0 does not start. I can start it manually by
>> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
>> broadcom' and 'modprobe tg3'
>>
>> However, I would like to have my network started automatically.
> List broadcom and tg3 in /etc/conf.d/modules as per section 7.e. of the install guide.
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#doc_chap5
I did from the beginning (i.e. before I posted to the list) - it didn't
resolve the issue.
Colleen
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 10:43 ` Mick
2011-10-16 12:59 ` Florian Philipp
@ 2011-10-16 14:52 ` CJoeB
2011-10-16 16:02 ` Mick
2011-10-16 21:23 ` Neil Bothwick
1 sibling, 2 replies; 33+ messages in thread
From: CJoeB @ 2011-10-16 14:52 UTC (permalink / raw
To: gentoo-user
On 10/16/11 06:43, Mick wrote:
> On Sunday 16 Oct 2011 00:05:01 CJoeB wrote:
>> Hi everyone,
>>
>>
>> However, now I have a networking issue.
>>
>> In past, when I booted to the install CD and my ethernet connection was
>> not active, I typed net-setup eth0 and was able to set it up. This
>> time, when I booted to the install CD and typed net-setup eth0, the
>> network card was not recognized.
> This means that your kernel is not configured with the corresponding modules
> for your network card, or that there is some other configuration problem with
> e.g. firmware loading (if such a thing is necessary for your card).
I use genkernel. Granted, rather than just running genkernel all, I run
genkernel --menuconfig all because I remove stuff that I know I won't
need. However, in the network section, everything related to broadcom
and tg3 is built as a module. I even tried building tg3 directly into
the kernel and it didn't help. I had to do the 'modprobe -r broadcom'
and 'modprobe -r tg3' and then, 'modprobe broadcom' and 'modprobe tg3'
prior to running net-setup even when booted to the install CD.
>> I googled and found a post where
>> someone said that they had to 'modprobe -r broadcom' and 'modprobe -r
>> tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run
>> net-setup. I did this and then ifconfig returned my eth0 connection.
>>
>> Of course, later you have to do the cp -L /etc/resolv.conf
>> /mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my
>> default runlevel.
>>
>> However, when I boot, eth0 does not start.
> What does dmesg show?
On line states:
tg3 0000:03:00.0: Problem fetching invariants of chip, aborting
>
>
> What does cat /var/log/syslog | grep -i tg3 show
Don't have a syslog file .... however,
'cat /var/log/rc.log | grep -i tg3' shows:
*Loading modul tg3 ...
The line is repeated a total of 7 times.
>> I can start it manually by
>> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
>> broadcom' and 'modprobe tg3'
> So the question is why when you remove and install the module manually your
> NIC driver loads, but at boot time it does not ...
>
Good question and I have no idea! :-)
>> However, I would like to have my network started automatically.
>>
>> I do have config_eth0="dhcp" in my /etc/conf.d/net file
> Please show:
>
> grep ^[^#] /etc/conf.d/net
Prior to loading:
config_eth0="dhcp"
Note, that this is the format listed in the Handbook. Previously, in
the Handbook, the format was config_eth0=( "dhcp" ). I've tried it both
ways
> ifconfig and ifconfig -a (before and after you modprobe the driver)
Before loading:
ifconfig just lists:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:198 (198.0 B) TX bytes:198 (198.0 B)
ifconfig -a lists:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:324 (324.0 B) TX bytes:324 (324.0 B)
After doing ''modprobe -r broadcom' and 'modprobe -r tg3' and then,
'modprobe broadcom' and 'modprobe tg3'
ifconfig lists:
eth0 Link encap:Ethernet HWaddr 78:2b:cb:ad:9e:47
inet addr:192.168.2.15 Bcast:192:168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1727 errors:0 dropped:0 overruns:0 frame:0
TX packets:908 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1826702 (1.7 MiB) TX bytes:67525 (65.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:828 (828.0 B) TX bytes:828 (828.0 B)
ifconfig -a lists
eth0 Link encap:Ethernet HWaddr 78:2b:cb:ad:9e:47
inet addr:192.168.2.15 Bcast:192:168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2024 errors:0 dropped:0 overruns:0 frame:0
TX packets:958 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1846649 (1.7 MiB) TX bytes:70725 (69.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1062 (1.0 KiB) TX bytes:1062 (1.0 KiB)
> It may also help to know what is your card (lshw and lspci -v).
Okay, I had to install pciutils before I could get the output so,
obviously, this was done after the drivers loaded.
lspci -v shows:
03:00.0 Ethernet controller: Broadcom Corporation Netlink BCM57788
Gigabit Ethernet PCIe (rev 01)
Subsystem: Dell Device 04aa
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at fe500000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [48] Power Management version 3
Capabilities: [60] Vendor Specific Information: Len=6c <?>
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [cc] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel
Capabilities: [160] Device Serial Number
78-2b-cb-ff-fe-ad-9e-47
Capabilities: [16c] Power Budgeting <?>
Kernel driver in use: tg3
Kernel modules: tg3
I couldn't do lshw because I had to install it and there was an error
during the build. Something about a "gui" and I don't have x installed yet.
HTH
Colleen
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 12:59 ` Florian Philipp
@ 2011-10-16 15:05 ` CJoeB
2011-10-16 15:29 ` Matthew Finkel
0 siblings, 1 reply; 33+ messages in thread
From: CJoeB @ 2011-10-16 15:05 UTC (permalink / raw
To: gentoo-user
On 10/16/11 08:59, Florian Philipp wrote:
> Am 16.10.2011 12:43, schrieb Mick:
>> On Sunday 16 Oct 2011 00:05:01 CJoeB wrote:
>>> Hi everyone,
>>>
>>> Well, thanks to the help I got from the list, I finally have Gentoo
>>> installed on my new desktop and booting to a command prompt.
>>>
>>> However, now I have a networking issue.
>>>
>>> In past, when I booted to the install CD and my ethernet connection was
>>> not active, I typed net-setup eth0 and was able to set it up. This
>>> time, when I booted to the install CD and typed net-setup eth0, the
>>> network card was not recognized.
>> This means that your kernel is not configured with the corresponding modules
>> for your network card, or that there is some other configuration problem with
>> e.g. firmware loading (if such a thing is necessary for your card).
>>
> [...]
>
> Also: Are the modules actually loaded before you unload them? Use
> `modprobe -vr broadcom tg3`. If there is no output, the module was not
> loaded.
Prior to unloading the modules, output from 'modprobe -vr broadcom tg3' is
rmmod /lib/modules/2.6.39-gentoo-r3/kernel/drivers/net/tg3.ko
Regards,
Colleen
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 15:05 ` CJoeB
@ 2011-10-16 15:29 ` Matthew Finkel
2011-10-16 16:08 ` CJoeB
0 siblings, 1 reply; 33+ messages in thread
From: Matthew Finkel @ 2011-10-16 15:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 847 bytes --]
On Sun, Oct 16, 2011 at 11:05 AM, CJoeB <colleen.beamer@gmail.com> wrote:
> > Also: Are the modules actually loaded before you unload them? Use
> > `modprobe -vr broadcom tg3`. If there is no output, the module was not
> > loaded.
> Prior to unloading the modules, output from 'modprobe -vr broadcom tg3' is
>
> rmmod /lib/modules/2.6.39-gentoo-r3/kernel/drivers/net/tg3.ko
>
>
Hi Colleen,
Looks like broadcom isn't loading at boot. Also, I'm not too familiar with
broadcom, but why must you load two modules? I found [1] which sound like
your problem (possibly the site you mentioned earlier) which references a
similar problem when tg3 is loaded before broadcom. You may have already
tried this, but have you tested changing the order in /etc/conf.d/modules?
[1] https://bbs.archlinux.org/viewtopic.php?id=110026
- Matt
--
Matthew Finkel
[-- Attachment #2: Type: text/html, Size: 1363 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 14:52 ` CJoeB
@ 2011-10-16 16:02 ` Mick
2011-10-16 21:24 ` Neil Bothwick
2011-10-16 21:23 ` Neil Bothwick
1 sibling, 1 reply; 33+ messages in thread
From: Mick @ 2011-10-16 16:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 7404 bytes --]
On Sunday 16 Oct 2011 15:52:51 CJoeB wrote:
> On 10/16/11 06:43, Mick wrote:
> > On Sunday 16 Oct 2011 00:05:01 CJoeB wrote:
> >> Hi everyone,
> >>
> >>
> >> However, now I have a networking issue.
> >>
> >> In past, when I booted to the install CD and my ethernet connection was
> >> not active, I typed net-setup eth0 and was able to set it up. This
> >> time, when I booted to the install CD and typed net-setup eth0, the
> >> network card was not recognized.
> >
> > This means that your kernel is not configured with the corresponding
> > modules for your network card, or that there is some other configuration
> > problem with e.g. firmware loading (if such a thing is necessary for
> > your card).
>
> I use genkernel. Granted, rather than just running genkernel all, I run
> genkernel --menuconfig all because I remove stuff that I know I won't
> need. However, in the network section, everything related to broadcom
> and tg3 is built as a module. I even tried building tg3 directly into
> the kernel and it didn't help. I had to do the 'modprobe -r broadcom'
> and 'modprobe -r tg3' and then, 'modprobe broadcom' and 'modprobe tg3'
> prior to running net-setup even when booted to the install CD.
From what your dmesg shows tg3 fails to load. So there should not be a need
to remove it.
> >> I googled and found a post where
> >> someone said that they had to 'modprobe -r broadcom' and 'modprobe -r
> >> tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run
> >> net-setup. I did this and then ifconfig returned my eth0 connection.
> >>
> >> Of course, later you have to do the cp -L /etc/resolv.conf
> >> /mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my
> >> default runlevel.
> >>
> >> However, when I boot, eth0 does not start.
> >
> > What does dmesg show?
>
> On line states:
> tg3 0000:03:00.0: Problem fetching invariants of chip, aborting
It fails to load. Something is blocking it from accessing the NIC chipset.
> > What does cat /var/log/syslog | grep -i tg3 show
>
> Don't have a syslog file .... however,
>
> 'cat /var/log/rc.log | grep -i tg3' shows:
> *Loading modul tg3 ...
>
> The line is repeated a total of 7 times.
It should only be there once, unless you tried to load it 7 times?
> >> I can start it manually by
> >> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
> >> broadcom' and 'modprobe tg3'
> >
> > So the question is why when you remove and install the module manually
> > your NIC driver loads, but at boot time it does not ...
>
> Good question and I have no idea! :-)
I looked into it and the answer seems to be a bug in the kernel (there are
patches out which fix this) that does not make sure that broadcom is loaded
before tg3.
> > ifconfig and ifconfig -a (before and after you modprobe the driver)
>
> Before loading:
>
> ifconfig just lists:
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:11 errors:0 dropped:0 overruns:0 frame:0
> TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:198 (198.0 B) TX bytes:198 (198.0 B)
>
> ifconfig -a lists:
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:18 errors:0 dropped:0 overruns:0 frame:0
> TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:324 (324.0 B) TX bytes:324 (324.0 B)
The module is not loaded and the kernel has not seen the NIC.
> After doing ''modprobe -r broadcom' and 'modprobe -r tg3' and then,
> 'modprobe broadcom' and 'modprobe tg3'
>
> ifconfig lists:
>
> eth0 Link encap:Ethernet HWaddr 78:2b:cb:ad:9e:47
> inet addr:192.168.2.15 Bcast:192:168.2.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1727 errors:0 dropped:0 overruns:0 frame:0
> TX packets:908 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1826702 (1.7 MiB) TX bytes:67525 (65.9 KiB)
>
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:46 errors:0 dropped:0 overruns:0 frame:0
> TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:828 (828.0 B) TX bytes:828 (828.0 B)
>
> ifconfig -a lists
>
> eth0 Link encap:Ethernet HWaddr 78:2b:cb:ad:9e:47
> inet addr:192.168.2.15 Bcast:192:168.2.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2024 errors:0 dropped:0 overruns:0 frame:0
> TX packets:958 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1846649 (1.7 MiB) TX bytes:70725 (69.0 KiB)
>
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:50 errors:0 dropped:0 overruns:0 frame:0
> TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1062 (1.0 KiB) TX bytes:1062 (1.0 KiB)
>
> > It may also help to know what is your card (lshw and lspci -v).
>
> Okay, I had to install pciutils before I could get the output so,
> obviously, this was done after the drivers loaded.
>
> lspci -v shows:
>
> 03:00.0 Ethernet controller: Broadcom Corporation Netlink BCM57788
> Gigabit Ethernet PCIe (rev 01)
> Subsystem: Dell Device 04aa
> Flags: bus master, fast devsel, latency 0, IRQ 47
> Memory at fe500000 (64-bit, non-prefetchable) [size=64K]
> Capabilities: [48] Power Management version 3
> Capabilities: [60] Vendor Specific Information: Len=6c <?>
> Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
> Capabilities: [cc] Express Endpoint, MSI 00
> Capabilities: [100] Advanced Error Reporting
> Capabilities: [13c] Virtual Channel
> Capabilities: [160] Device Serial Number
> 78-2b-cb-ff-fe-ad-9e-47
> Capabilities: [16c] Power Budgeting <?>
> Kernel driver in use: tg3
> Kernel modules: tg3
As I said above the kernel ought to manage the order in which the modules and
dependencies are loaded. This is a bug. There are patches out to address
this in future kernels.
Until then you can try to:
1. Configure your /etc/conf.d/modules as suggested here:
http://www.gentoo.org/doc/en/openrc-migration.xml
and have broadcom before tg3.
2. Configure broadcom in the kernel and tg3 as module (in case it makes a
difference, or swap and see if that helps).
3. Have a custom init script (re)loading them in the right order as Florian
has already suggested.
HTH.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 15:29 ` Matthew Finkel
@ 2011-10-16 16:08 ` CJoeB
2011-10-16 17:37 ` Mick
0 siblings, 1 reply; 33+ messages in thread
From: CJoeB @ 2011-10-16 16:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
On 10/16/11 11:29, Matthew Finkel wrote:
> On Sun, Oct 16, 2011 at 11:05 AM, CJoeB <colleen.beamer@gmail.com
> <mailto:colleen.beamer@gmail.com>> wrote:
>
> > Also: Are the modules actually loaded before you unload them? Use
> > `modprobe -vr broadcom tg3`. If there is no output, the module
> was not
> > loaded.
> Prior to unloading the modules, output from 'modprobe -vr broadcom
> tg3' is
>
> rmmod /lib/modules/2.6.39-gentoo-r3/kernel/drivers/net/tg3.ko
>
>
> Hi Colleen,
>
> Looks like broadcom isn't loading at boot. Also, I'm not too familiar
> with broadcom, but why must you load two modules? I found [1] which
> sound like your problem (possibly the site you mentioned earlier)
> which references a similar problem when tg3 is loaded before broadcom.
> You may have already tried this, but have you tested changing the
> order in /etc/conf.d/modules?
>
>
> [1] https://bbs.archlinux.org/viewtopic.php?id=110026
>
> - Matt
>
> --
> Matthew Finkel
Tried changing the order of module loading. Didn't change anything!
:-( But this was a good idea that I never thought of!
Colleen.
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
[-- Attachment #2: Type: text/html, Size: 2718 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 16:08 ` CJoeB
@ 2011-10-16 17:37 ` Mick
2011-10-16 19:19 ` CJoeB
0 siblings, 1 reply; 33+ messages in thread
From: Mick @ 2011-10-16 17:37 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1406 bytes --]
On Sunday 16 Oct 2011 17:08:45 CJoeB wrote:
> On 10/16/11 11:29, Matthew Finkel wrote:
> > On Sun, Oct 16, 2011 at 11:05 AM, CJoeB <colleen.beamer@gmail.com
> >
> > <mailto:colleen.beamer@gmail.com>> wrote:
> > > Also: Are the modules actually loaded before you unload them? Use
> > > `modprobe -vr broadcom tg3`. If there is no output, the module
> > > was not loaded.
> >
> > Prior to unloading the modules, output from 'modprobe -vr broadcom
> > tg3' is
> >
> > rmmod /lib/modules/2.6.39-gentoo-r3/kernel/drivers/net/tg3.ko
> >
> > Hi Colleen,
> >
> > Looks like broadcom isn't loading at boot. Also, I'm not too familiar
> > with broadcom, but why must you load two modules? I found [1] which
> > sound like your problem (possibly the site you mentioned earlier)
> > which references a similar problem when tg3 is loaded before broadcom.
> > You may have already tried this, but have you tested changing the
> > order in /etc/conf.d/modules?
> >
> >
> > [1] https://bbs.archlinux.org/viewtopic.php?id=110026
> >
> > - Matt
>
> Tried changing the order of module loading. Didn't change anything!
>
> :-( But this was a good idea that I never thought of!
OK, that leaves the other 2 options I suggested in earlier message.
BTW have you tried the latest stable kernel? It may have been patched by now.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 17:37 ` Mick
@ 2011-10-16 19:19 ` CJoeB
2011-10-16 20:43 ` Florian Philipp
0 siblings, 1 reply; 33+ messages in thread
From: CJoeB @ 2011-10-16 19:19 UTC (permalink / raw
To: gentoo-user
On 10/16/11 13:37, Mick wrote:
> On Sunday 16 Oct 2011 17:08:45 CJoeB wrote:
>> On 10/16/11 11:29, Matthew Finkel wrote:
>>> On Sun, Oct 16, 2011 at 11:05 AM, CJoeB <colleen.beamer@gmail.com
>>>
>>> <mailto:colleen.beamer@gmail.com>> wrote:
>>> > Also: Are the modules actually loaded before you unload them? Use
>>> > `modprobe -vr broadcom tg3`. If there is no output, the module
>>> > was not loaded.
>>>
>>> Prior to unloading the modules, output from 'modprobe -vr broadcom
>>> tg3' is
>>>
>>> rmmod /lib/modules/2.6.39-gentoo-r3/kernel/drivers/net/tg3.ko
>>>
>>> Hi Colleen,
>>>
>>> Looks like broadcom isn't loading at boot. Also, I'm not too familiar
>>> with broadcom, but why must you load two modules? I found [1] which
>>> sound like your problem (possibly the site you mentioned earlier)
>>> which references a similar problem when tg3 is loaded before broadcom.
>>> You may have already tried this, but have you tested changing the
>>> order in /etc/conf.d/modules?
>>>
>>>
>>> [1] https://bbs.archlinux.org/viewtopic.php?id=110026
>>>
>>> - Matt
>> Tried changing the order of module loading. Didn't change anything!
>>
>> :-( But this was a good idea that I never thought of!
> OK, that leaves the other 2 options I suggested in earlier message.
>
> BTW have you tried the latest stable kernel? It may have been patched by now.
My head is starting to spin. I have the latest stable kernel.
Someone said that since tg3 is not loading at boot then, I shouldn't
have to remove it. However, if I just do 'modprobe tg3', ifconfig just
returns the lo interface. If I do 'modprobe -r broadcom' 'modprobe
broadcom' and 'modprobe tg3', I still only get the lo interface. The
only thing that works is removing both modules and adding them again.
I also tried following the openrc document. The only thing that seems
to suggest a solution is to add arguments for my modules. I have no
idea what those arguments might be and although I tried googling, I
didn't really find anything that would point me in the right direction.
Colleen
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 19:19 ` CJoeB
@ 2011-10-16 20:43 ` Florian Philipp
0 siblings, 0 replies; 33+ messages in thread
From: Florian Philipp @ 2011-10-16 20:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2630 bytes --]
Am 16.10.2011 21:19, schrieb CJoeB:
> On 10/16/11 13:37, Mick wrote:
>> On Sunday 16 Oct 2011 17:08:45 CJoeB wrote:
>>> On 10/16/11 11:29, Matthew Finkel wrote:
>>>> On Sun, Oct 16, 2011 at 11:05 AM, CJoeB <colleen.beamer@gmail.com
>>>>
>>>> <mailto:colleen.beamer@gmail.com>> wrote:
>>>> > Also: Are the modules actually loaded before you unload them? Use
>>>> > `modprobe -vr broadcom tg3`. If there is no output, the module
>>>> > was not loaded.
>>>>
>>>> Prior to unloading the modules, output from 'modprobe -vr broadcom
>>>> tg3' is
>>>>
>>>> rmmod /lib/modules/2.6.39-gentoo-r3/kernel/drivers/net/tg3.ko
>>>>
>>>> Hi Colleen,
>>>>
>>>> Looks like broadcom isn't loading at boot. Also, I'm not too familiar
>>>> with broadcom, but why must you load two modules? I found [1] which
>>>> sound like your problem (possibly the site you mentioned earlier)
>>>> which references a similar problem when tg3 is loaded before broadcom.
>>>> You may have already tried this, but have you tested changing the
>>>> order in /etc/conf.d/modules?
>>>>
>>>>
>>>> [1] https://bbs.archlinux.org/viewtopic.php?id=110026
>>>>
>>>> - Matt
>>> Tried changing the order of module loading. Didn't change anything!
>>>
>>> :-( But this was a good idea that I never thought of!
>> OK, that leaves the other 2 options I suggested in earlier message.
>>
>> BTW have you tried the latest stable kernel? It may have been patched by now.
> My head is starting to spin. I have the latest stable kernel.
>
> Someone said that since tg3 is not loading at boot then, I shouldn't
> have to remove it. However, if I just do 'modprobe tg3', ifconfig just
> returns the lo interface. If I do 'modprobe -r broadcom' 'modprobe
> broadcom' and 'modprobe tg3', I still only get the lo interface. The
> only thing that works is removing both modules and adding them again.
>
If it is still this bug [1], then it makes sense that the order in which
the modules are loaded is important. I can't say I really understand
what is going, though.
I've also checked the mainline kernel sources. Neither module was
updated since 2007.
> I also tried following the openrc document. The only thing that seems
> to suggest a solution is to add arguments for my modules. I have no
> idea what those arguments might be and although I tried googling, I
> didn't really find anything that would point me in the right direction.
>
You can find out available options using /sbin/modinfo.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=525966
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 14:52 ` CJoeB
2011-10-16 16:02 ` Mick
@ 2011-10-16 21:23 ` Neil Bothwick
1 sibling, 0 replies; 33+ messages in thread
From: Neil Bothwick @ 2011-10-16 21:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
On Sun, 16 Oct 2011 10:52:51 -0400, CJoeB wrote:
> I couldn't do lshw because I had to install it and there was an error
> during the build. Something about a "gui" and I don't have x installed
> yet.
USE="-gtk" emerge -1 lshw
--
Neil Bothwick
Top Oxymorons Number 32: Living dead
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 16:02 ` Mick
@ 2011-10-16 21:24 ` Neil Bothwick
2011-10-16 22:03 ` Mick
2011-10-16 22:04 ` CJoeB
0 siblings, 2 replies; 33+ messages in thread
From: Neil Bothwick @ 2011-10-16 21:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 368 bytes --]
On Sun, 16 Oct 2011 17:02:08 +0100, Mick wrote:
> As I said above the kernel ought to manage the order in which the
> modules and dependencies are loaded.
Would building one modules into the kernel and the other as a module
solve (well, kludge) the loading order problem?
--
Neil Bothwick
Every time I jump on the bandwagon all its wheels fall off.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 21:24 ` Neil Bothwick
@ 2011-10-16 22:03 ` Mick
2011-10-16 22:04 ` CJoeB
1 sibling, 0 replies; 33+ messages in thread
From: Mick @ 2011-10-16 22:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 521 bytes --]
On Sunday 16 Oct 2011 22:24:17 Neil Bothwick wrote:
> On Sun, 16 Oct 2011 17:02:08 +0100, Mick wrote:
> > As I said above the kernel ought to manage the order in which the
> > modules and dependencies are loaded.
>
> Would building one modules into the kernel and the other as a module
> solve (well, kludge) the loading order problem?
I don't know really - but it would be something that I would try if I had this
problem.
The only other thing is a local init script to do the deed.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 21:24 ` Neil Bothwick
2011-10-16 22:03 ` Mick
@ 2011-10-16 22:04 ` CJoeB
2011-10-16 22:23 ` Mick
1 sibling, 1 reply; 33+ messages in thread
From: CJoeB @ 2011-10-16 22:04 UTC (permalink / raw
To: gentoo-user
On 10/16/11 17:24, Neil Bothwick wrote:
> On Sun, 16 Oct 2011 17:02:08 +0100, Mick wrote:
>
>> As I said above the kernel ought to manage the order in which the
>> modules and dependencies are loaded.
> Would building one modules into the kernel and the other as a module
> solve (well, kludge) the loading order problem?
>
>
Tried building tg3 directly into the kernel. It didn't help. :-(
Colleen
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 22:04 ` CJoeB
@ 2011-10-16 22:23 ` Mick
2011-10-17 0:24 ` CJoeB
2011-10-18 18:31 ` Colleen Beamer
0 siblings, 2 replies; 33+ messages in thread
From: Mick @ 2011-10-16 22:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 736 bytes --]
On Sunday 16 Oct 2011 23:04:00 CJoeB wrote:
> On 10/16/11 17:24, Neil Bothwick wrote:
> > On Sun, 16 Oct 2011 17:02:08 +0100, Mick wrote:
> >> As I said above the kernel ought to manage the order in which the
> >> modules and dependencies are loaded.
> >
> > Would building one modules into the kernel and the other as a module
> > solve (well, kludge) the loading order problem?
>
> Tried building tg3 directly into the kernel. It didn't help. :-(
Try building both broadcom and tg3 directly into the kernel.
If upon reboot that doesn't work build broadcom in the kernel and tg3 as a
module.
If nothing else works, set up Florian's recommended init.d script and that
should sort it out.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 10:18 ` Mick
@ 2011-10-16 22:35 ` Florian Philipp
2011-10-16 22:46 ` Alex Schuster
` (2 more replies)
0 siblings, 3 replies; 33+ messages in thread
From: Florian Philipp @ 2011-10-16 22:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2918 bytes --]
Am 16.10.2011 12:18, schrieb Mick:
> On Sunday 16 Oct 2011 11:05:55 Florian Philipp wrote:
>> Am 16.10.2011 01:05, schrieb CJoeB:
>>> Hi everyone,
>>>
>>> Well, thanks to the help I got from the list, I finally have Gentoo
>>> installed on my new desktop and booting to a command prompt.
>>>
>>> However, now I have a networking issue.
>>>
>>> In past, when I booted to the install CD and my ethernet connection was
>>> not active, I typed net-setup eth0 and was able to set it up. This
>>> time, when I booted to the install CD and typed net-setup eth0, the
>>> network card was not recognized. I googled and found a post where
>>> someone said that they had to 'modprobe -r broadcom' and 'modprobe -r
>>> tg3' and then 'modprobe broadcom' and 'modprobe tg3' and then, run
>>> net-setup. I did this and then ifconfig returned my eth0 connection.
>>>
>>> Of course, later you have to do the cp -L /etc/resolv.conf
>>> /mnt/gentoo/etc/ .... which I did and dhcpcd has been added to my
>>> default runlevel.
>>>
>>> However, when I boot, eth0 does not start. I can start it manually by
>>> doing 'modprobe -r broadcom' and 'modprobe -r tg3' and then 'modprobe
>>> broadcom' and 'modprobe tg3'
>>>
>>> However, I would like to have my network started automatically.
>>>
>>> I do have config_eth0="dhcp" in my /etc/conf.d/net file
>>>
>>> Any suggestions?
>>>
>>> Colleen
>>
>> Hmm, a workaround would be a custom init script. Copy the following code
>> into a new file in /etc/init.d (let's say /etc/init.d/broadcom-fix):
>>
>> #!/sbin/runscript
>> description="Reload broadcom and tg3 modules to work around kernel bug"
>> depend() {
>> before net
>> after modules
>> }
>> start()
>> {
>> ebegin "Reloading broadcom and tg3 modules"
>> modprobe -r broadcom tg3 &&
>> modprobe broadcom &&
>> modprobe tg3
>> eend $? "Failed to reload modules"
>> }
>>
>> Make it executable (chmod 755) and add it to the default run level
>> (rc-update add broadcom-fix default).
>>
>> Better try to start it manually before rebooting so you can be sure it
>> works as expected.
>>
>> Hope this helps,
>> Florian Philipp
>
> This would be a workaround - the question is why does the module need to be
> removed and reinstalled manually? Why isn't the kernel loading it at boot
> time?
I agree that the problem should be solved but just in case Colleen wants
to continue with his installation (I know, he is installing Gentoo for
the first time so I doubt he values his time very high ;-) ), I suggest
he either implements my proposal outlined above or adds similar code to
/etc/conf.d/net:
preup() {
if [ "$IFACE" = eth0 ]; then
ebegin "Reloading broadcom and tg3 modules"
modprobe -r foo bar &&
modprobe broadcom &&
modprobe tg3
ewend $? "Failed to reload modules"
fi
return 0
}
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 22:35 ` Florian Philipp
@ 2011-10-16 22:46 ` Alex Schuster
2011-10-17 6:03 ` Florian Philipp
2011-10-17 8:15 ` Neil Bothwick
2011-10-17 12:40 ` J. Roeleveld
2 siblings, 1 reply; 33+ messages in thread
From: Alex Schuster @ 2011-10-16 22:46 UTC (permalink / raw
To: gentoo-user
Florian Philipp is not up to date yet:
> I agree that the problem should be solved but just in case Colleen wants
> to continue with his installation (I know, he is installing Gentoo for
~~~ ~~ ~~~~~~~~~~~~~~~~~~~~~
> the first time so I doubt he values his time very high ;-) ), I suggest
~~~~~~~~~~~~~~ ~~ ~~~
Read the rest of this thread, you'll be quite surprised :-)
Wonko
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 22:23 ` Mick
@ 2011-10-17 0:24 ` CJoeB
2011-10-18 18:31 ` Colleen Beamer
1 sibling, 0 replies; 33+ messages in thread
From: CJoeB @ 2011-10-17 0:24 UTC (permalink / raw
To: gentoo-user
On 10/16/11 18:23, Mick wrote:
> On Sunday 16 Oct 2011 23:04:00 CJoeB wrote:
>> On 10/16/11 17:24, Neil Bothwick wrote:
>>> On Sun, 16 Oct 2011 17:02:08 +0100, Mick wrote:
>>>> As I said above the kernel ought to manage the order in which the
>>>> modules and dependencies are loaded.
>>> Would building one modules into the kernel and the other as a module
>>> solve (well, kludge) the loading order problem?
>> Tried building tg3 directly into the kernel. It didn't help. :-(
> Try building both broadcom and tg3 directly into the kernel.
>
> If upon reboot that doesn't work build broadcom in the kernel and tg3 as a
> module.
>
> If nothing else works, set up Florian's recommended init.d script and that
> should sort it out.
I'll try the initscript. Hopefully, the issue will be solved when I can
get another kernel.
Thanks for all the help, guys! :-)
Colleen
--
Registered Linux User #411143 with the Linux Counter, http://counter.li.org
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 22:46 ` Alex Schuster
@ 2011-10-17 6:03 ` Florian Philipp
0 siblings, 0 replies; 33+ messages in thread
From: Florian Philipp @ 2011-10-17 6:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 558 bytes --]
Am 17.10.2011 00:46, schrieb Alex Schuster:
> Florian Philipp is not up to date yet:
>
>> I agree that the problem should be solved but just in case Colleen wants
>> to continue with his installation (I know, he is installing Gentoo for
> ~~~ ~~ ~~~~~~~~~~~~~~~~~~~~~
>
>> the first time so I doubt he values his time very high ;-) ), I suggest
> ~~~~~~~~~~~~~~ ~~ ~~~
>
> Read the rest of this thread, you'll be quite surprised :-)
>
> Wonko
>
Ups, sorry Colleen! :-D
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 22:35 ` Florian Philipp
2011-10-16 22:46 ` Alex Schuster
@ 2011-10-17 8:15 ` Neil Bothwick
2011-10-17 11:19 ` Mick
2011-10-17 12:40 ` J. Roeleveld
2 siblings, 1 reply; 33+ messages in thread
From: Neil Bothwick @ 2011-10-17 8:15 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 617 bytes --]
On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote:
> preup() {
> if [ "$IFACE" = eth0 ]; then
> ebegin "Reloading broadcom and tg3 modules"
> modprobe -r foo bar &&
> modprobe broadcom &&
> modprobe tg3
> ewend $? "Failed to reload modules"
> fi
> return 0
> }
This seems more elegant than a separate init script, but do you want it
to return 0 unconditionally? If the modules fail to load, surely you want
the attempt to bring the interface up to abort?
--
Neil Bothwick
Famed tautologist dies of suicide in distressing tragedy
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-17 8:15 ` Neil Bothwick
@ 2011-10-17 11:19 ` Mick
2011-10-17 11:30 ` Neil Bothwick
0 siblings, 1 reply; 33+ messages in thread
From: Mick @ 2011-10-17 11:19 UTC (permalink / raw
To: gentoo-user
On 17 October 2011 09:15, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote:
>
>> preup() {
>> if [ "$IFACE" = eth0 ]; then
>> ebegin "Reloading broadcom and tg3 modules"
>> modprobe -r foo bar &&
>> modprobe broadcom &&
>> modprobe tg3
>> ewend $? "Failed to reload modules"
>> fi
>> return 0
>> }
>
> This seems more elegant than a separate init script, but do you want it
> to return 0 unconditionally? If the modules fail to load, surely you want
> the attempt to bring the interface up to abort?
In my head I find it less elegant to be honest. Is it up to a network
configuration script to load the *kernel* module for the hardware?
--
Regards,
Mick
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-17 11:19 ` Mick
@ 2011-10-17 11:30 ` Neil Bothwick
2011-10-17 12:39 ` Florian Philipp
0 siblings, 1 reply; 33+ messages in thread
From: Neil Bothwick @ 2011-10-17 11:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 794 bytes --]
On Mon, 17 Oct 2011 12:19:16 +0100, Mick wrote:
> > This seems more elegant than a separate init script, but do you want
> > it to return 0 unconditionally? If the modules fail to load, surely
> > you want the attempt to bring the interface up to abort?
>
> In my head I find it less elegant to be honest. Is it up to a network
> configuration script to load the *kernel* module for the hardware?
Is it up to an init script to do that either? I'd say no. either way
seems wrong, but having the network config check that the interface is
available before trying to bring it up seems somewhat less wrong.
--
Neil Bothwick
"I can picture in my mind a world without war, a world without hate. And I
can picture us attacking that world, because they'd never expect it."
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-17 11:30 ` Neil Bothwick
@ 2011-10-17 12:39 ` Florian Philipp
2011-10-17 12:48 ` Neil Bothwick
0 siblings, 1 reply; 33+ messages in thread
From: Florian Philipp @ 2011-10-17 12:39 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1798 bytes --]
Am 17.10.2011 13:30, schrieb Neil Bothwick:
> On Mon, 17 Oct 2011 12:19:16 +0100, Mick wrote:
>
>>> This seems more elegant than a separate init script, but do you want
>>> it to return 0 unconditionally? If the modules fail to load, surely
>>> you want the attempt to bring the interface up to abort?
>>
>> In my head I find it less elegant to be honest. Is it up to a network
>> configuration script to load the *kernel* module for the hardware?
>
> Is it up to an init script to do that either? I'd say no. either way
> seems wrong, but having the network config check that the interface is
> available before trying to bring it up seems somewhat less wrong.
>
>
Yes, I intended it to return 0 unconditionally. My reasoning was that
a) trying anyway doesn't hurt.
b) when you change your kernel config or hardware and don't need that
workaround anymore, it is better to have a working network and a warning
rather than no network and an error.
c) for something that is potentially important for the user to get
access to the system, you should try as hard as possible to get it
running before giving up. Of course, this is more important for a
headless server than a desktop but scripts tend to get copied around.
Concerning what is more elegant: no clue. I guess you could even use
udev for this stuff but I don't know the syntax.
One thing that I worry more about is that there might be a race
condition. Maybe after loading the module, some time is necessary for
the interface to appear. I ran into an issue like that while playing
around with the zram module. In such a case, the separate init script
has a higher chance to succeed than a bash function called some
milliseconds before the interface initialization.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 22:35 ` Florian Philipp
2011-10-16 22:46 ` Alex Schuster
2011-10-17 8:15 ` Neil Bothwick
@ 2011-10-17 12:40 ` J. Roeleveld
2011-10-17 13:09 ` Florian Philipp
2 siblings, 1 reply; 33+ messages in thread
From: J. Roeleveld @ 2011-10-17 12:40 UTC (permalink / raw
To: gentoo-user
On Mon, October 17, 2011 12:35 am, Florian Philipp wrote:
<snipped>
>
> I agree that the problem should be solved but just in case Colleen wants
> to continue with his installation (I know, he is installing Gentoo for
> the first time so I doubt he values his time very high ;-) ), I suggest
> he either implements my proposal outlined above or adds similar code to
> /etc/conf.d/net:
>
> preup() {
> if [ "$IFACE" = eth0 ]; then
> ebegin "Reloading broadcom and tg3 modules"
> modprobe -r foo bar &&
> modprobe broadcom &&
> modprobe tg3
> ewend $? "Failed to reload modules"
> fi
> return 0
> }
For correctness, please change the 4th line above from:
" modprobe -r foo bar && "
to:
" modprobe -r broadcom tg3 && "
I somehow doubt there will be a module called "foo" or "bar" :)
--
Joost
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-17 12:39 ` Florian Philipp
@ 2011-10-17 12:48 ` Neil Bothwick
0 siblings, 0 replies; 33+ messages in thread
From: Neil Bothwick @ 2011-10-17 12:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 939 bytes --]
On Mon, 17 Oct 2011 14:39:40 +0200, Florian Philipp wrote:
> > Is it up to an init script to do that either? I'd say no. either way
> > seems wrong, but having the network config check that the interface is
> > available before trying to bring it up seems somewhat less wrong.
> Yes, I intended it to return 0 unconditionally. My reasoning was that
> a) trying anyway doesn't hurt.
Fair enough.
> One thing that I worry more about is that there might be a race
> condition. Maybe after loading the module, some time is necessary for
> the interface to appear. I ran into an issue like that while playing
> around with the zram module. In such a case, the separate init script
> has a higher chance to succeed than a bash function called some
> milliseconds before the interface initialization.
You could add a "sleep 1" to preup().
--
Neil Bothwick
By the time you can make ends meet, they move the ends.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-17 12:40 ` J. Roeleveld
@ 2011-10-17 13:09 ` Florian Philipp
0 siblings, 0 replies; 33+ messages in thread
From: Florian Philipp @ 2011-10-17 13:09 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]
Am 17.10.2011 14:40, schrieb J. Roeleveld:
> On Mon, October 17, 2011 12:35 am, Florian Philipp wrote:
>
> <snipped>
>
>>
>> I agree that the problem should be solved but just in case Colleen wants
>> to continue with his installation (I know, he is installing Gentoo for
>> the first time so I doubt he values his time very high ;-) ), I suggest
>> he either implements my proposal outlined above or adds similar code to
>> /etc/conf.d/net:
>>
>> preup() {
>> if [ "$IFACE" = eth0 ]; then
>> ebegin "Reloading broadcom and tg3 modules"
>> modprobe -r foo bar &&
>> modprobe broadcom &&
>> modprobe tg3
>> ewend $? "Failed to reload modules"
>> fi
>> return 0
>> }
>
> For correctness, please change the 4th line above from:
> " modprobe -r foo bar && "
> to:
> " modprobe -r broadcom tg3 && "
>
> I somehow doubt there will be a module called "foo" or "bar" :)
>
> --
> Joost
>
>
I should stop writing replies at midnight ;) First I call Colleen a male
newcomer, then I fail to change my own test code.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-16 22:23 ` Mick
2011-10-17 0:24 ` CJoeB
@ 2011-10-18 18:31 ` Colleen Beamer
2011-10-18 18:50 ` Mick
1 sibling, 1 reply; 33+ messages in thread
From: Colleen Beamer @ 2011-10-18 18:31 UTC (permalink / raw
To: gentoo-user
On 10/16/11 18:23, Mick wrote:
> On Sunday 16 Oct 2011 23:04:00 CJoeB wrote:
>> On 10/16/11 17:24, Neil Bothwick wrote:
>>> On Sun, 16 Oct 2011 17:02:08 +0100, Mick wrote:
>>>> As I said above the kernel ought to manage the order in which the
>>>> modules and dependencies are loaded.
>>> Would building one modules into the kernel and the other as a module
>>> solve (well, kludge) the loading order problem?
>> Tried building tg3 directly into the kernel. It didn't help. :-(
> Try building both broadcom and tg3 directly into the kernel.
>
> If upon reboot that doesn't work build broadcom in the kernel and tg3 as a
> module.
>
> If nothing else works, set up Florian's recommended init.d script and that
> should sort it out.
Woo hoo! I did as someone suggested and build all broadcom and tg3
drivers into the kernel. I had previously build tg3 into the kernel,
but that didn't work. However, when I was configuring the kernel this
time, I noticed some entries about Broadcom PHY. On my laptop, when it
boots and gets the the tg3 load, it says something about tg3 and has
libphy in brackets. The stuff about Broadcom PHY was never built into
the kernel and it wasn't something that I deselected. I'm not sure
exactly what portion of this fixed the problem, but at least my ethernet
is active when I boot! :-)
Thanks to everyone who helped on this!
Now, I'm on to working on an audio problem - Can't get audio CD's to
play in either kscd or kaffeine. Haven't installed amarok yet.
Regards,
Colleen
^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: [gentoo-user] Another Install Issue
2011-10-18 18:31 ` Colleen Beamer
@ 2011-10-18 18:50 ` Mick
0 siblings, 0 replies; 33+ messages in thread
From: Mick @ 2011-10-18 18:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 784 bytes --]
On Tuesday 18 Oct 2011 19:31:25 Colleen Beamer wrote:
> On 10/16/11 18:23, Mick wrote:
> > On Sunday 16 Oct 2011 23:04:00 CJoeB wrote:
> >> Tried building tg3 directly into the kernel. It didn't help. :-(
> >
> > Try building both broadcom and tg3 directly into the kernel.
[snip ....]
> Woo hoo! I did as someone suggested and build all broadcom and tg3
> drivers into the kernel.
Excellent! :-)
> Now, I'm on to working on an audio problem - Can't get audio CD's to
> play in either kscd or kaffeine. Haven't installed amarok yet.
I recall coming across this problem in the past. I think that I had to
install kde-base/kdemultimedia-kioslaves, but I'm not sure. Someone who's
more experienced on KDE should chime in here.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 33+ messages in thread
end of thread, other threads:[~2011-10-18 18:52 UTC | newest]
Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-15 23:05 [gentoo-user] Another Install Issue CJoeB
2011-10-16 9:59 ` Stroller
2011-10-16 13:27 ` CJoeB
2011-10-16 10:05 ` Florian Philipp
2011-10-16 10:18 ` Mick
2011-10-16 22:35 ` Florian Philipp
2011-10-16 22:46 ` Alex Schuster
2011-10-17 6:03 ` Florian Philipp
2011-10-17 8:15 ` Neil Bothwick
2011-10-17 11:19 ` Mick
2011-10-17 11:30 ` Neil Bothwick
2011-10-17 12:39 ` Florian Philipp
2011-10-17 12:48 ` Neil Bothwick
2011-10-17 12:40 ` J. Roeleveld
2011-10-17 13:09 ` Florian Philipp
2011-10-16 10:43 ` Mick
2011-10-16 12:59 ` Florian Philipp
2011-10-16 15:05 ` CJoeB
2011-10-16 15:29 ` Matthew Finkel
2011-10-16 16:08 ` CJoeB
2011-10-16 17:37 ` Mick
2011-10-16 19:19 ` CJoeB
2011-10-16 20:43 ` Florian Philipp
2011-10-16 14:52 ` CJoeB
2011-10-16 16:02 ` Mick
2011-10-16 21:24 ` Neil Bothwick
2011-10-16 22:03 ` Mick
2011-10-16 22:04 ` CJoeB
2011-10-16 22:23 ` Mick
2011-10-17 0:24 ` CJoeB
2011-10-18 18:31 ` Colleen Beamer
2011-10-18 18:50 ` Mick
2011-10-16 21:23 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox