Re: [gentoo-user] Another Install Issue

2011-10-18 Thread Colleen Beamer
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



Re: [gentoo-user] Another Install Issue

2011-10-18 Thread Mick
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Florian Philipp
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



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Neil Bothwick
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


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Mick
On 17 October 2011 09:15, Neil Bothwick n...@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



Re: [gentoo-user] Another Install Issue

2011-10-17 Thread 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.


-- 
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.


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Florian Philipp
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



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread 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




Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Neil Bothwick
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.


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Florian Philipp
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.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Stroller

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=1chap=7#doc_chap5


Stroller.


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Florian Philipp
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



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread 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?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread 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).


 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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Florian Philipp
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



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread CJoeB
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=1chap=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




Re: [gentoo-user] Another Install Issue

2011-10-16 Thread CJoeB
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 :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:
loLink 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:
loLink 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:

eth0Link 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

eth0Link 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 

Re: [gentoo-user] Another Install Issue

2011-10-16 Thread CJoeB
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





Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Matthew Finkel
On Sun, Oct 16, 2011 at 11:05 AM, CJoeB colleen.bea...@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


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Mick
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 :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:
 loLink 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:
 loLink 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:
 
 eth0Link 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
 
 eth0Link 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 

Re: [gentoo-user] Another Install Issue

2011-10-16 Thread CJoeB
On 10/16/11 11:29, Matthew Finkel wrote:
 On Sun, Oct 16, 2011 at 11:05 AM, CJoeB colleen.bea...@gmail.com
 mailto:colleen.bea...@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



Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Mick
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.bea...@gmail.com
  
  mailto:colleen.bea...@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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread 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.bea...@gmail.com

 mailto:colleen.bea...@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





Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Florian Philipp
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.bea...@gmail.com

 mailto:colleen.bea...@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



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Neil Bothwick
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


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Neil Bothwick
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.


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread CJoeB
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




Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Mick
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Mick
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread Florian Philipp
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
}



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-16 Thread 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



Re: [gentoo-user] Another Install Issue

2011-10-16 Thread CJoeB
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