Compiling sunlance as a module
Hi.
I'm still fiddling around with my configuration for my SS20, and I found that compiling the sunlance.c file as a module has problems. When booting up and the various init scripts are running, the eth0 interface fails to start correctly. By doing 'modprobe sunlance' after I log in I am able to start eth0 and things move smoothly, but I'm an curious to find out why having this code as a module fails. Searching via Google brought me to the following link regarding Suse-Linux:
http://lists.suse.com/archive/suse-sparc/2002-Feb/0103.html
The original poster had a problem due to compiling sunlance as a module, and the response was "you can't do that". So, after looking around a bit more and not finding any more info on exactly why that is true, or even if it is still true, I seek enlightenment from the list.
The machine is now running 2.6.5-rc3 thanks to the help I've received here, btw.
Art Haas
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822
Quoted 6 lines · On Tue, 30 Mar 2004 17:44:12 -0600 "Art Haas" <[email protected]> wrote:
I'm still fiddling around with my configuration for my SS20, and I found that compiling the
sunlance.cfile as a module has problems. When booting up and the various init scripts are running, the eth0 interface fails to start correctly. By doing 'modprobe sunlance' after I log in I am able to start eth0 and things move smoothly, but I'm an curious to find out why having this code as a module fails
I'm currently doing this on a ss4 and my first guess would be is that nothing is loading the module before the init scripts try to make use of the network device. As long as I have the module loaded *before* the network dependent init scripts run, everything is fine. Not sure which distribution you are using or I'd make a suggestion as to where to setup the module to load.
Additionally network drives don't seem to fall under the drivers the kernel will auto-load as needed (since it probably can't determine what you may have or in the case of multiple NICs, which one you want to use).
Signature · 2 lines
Jason Wever Gentoo/Sparc Team Co-Lead
Quoted 17 lines · Jason Wever
Quoted 6 lines · On Tue, 30 Mar 2004 17:44:12 -0600 "Art Haas" <[email protected]> wrote:
I'm still fiddling around with my configuration for my SS20, and I found that compiling the
sunlance.cfile as a module has problems. When booting up and the various init scripts are running, the eth0 interface fails to start correctly. By doing 'modprobe sunlance' after I log in I am able to start eth0 and things move smoothly, but I'm an curious to find out why having this code as a module failsI'm currently doing this on a ss4 and my first guess would be is that nothing is loading the module before the init scripts try to make use of the network device. As long as I have the module loaded *before* the network dependent init scripts run, everything is fine. Not sure which distribution you are using or I'd make a suggestion as to where to setup the module to load.
Quoted 4 lines
Additionally network drives don't seem to fall under the drivers the kernel will auto-load as needed (since it probably can't determine what you may have or in the case of multiple NICs, which one you want to use).
My main computer is an old Pentium computer, and I have an ethernet card using the 8139too driver, and this machine doesn't have any problem loading the module, and I haven't (knowingly) done anything special to load it prior to the machine bringing up the eth0 interface. It would not be surprising if my problem is a configuration error, but when I compare my sparc-configuration to the i386-configuration, things look similiar in the networking type areas.
Art Haas
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822
Quoted 7 lines · On Tue, 30 Mar 2004 18:09:24 -0600 "Art Haas" <[email protected]> wrote:
My main computer is an old Pentium computer, and I have an ethernet card using the 8139too driver, and this machine doesn't have any problem loading the module, and I haven't (knowingly) done anything special to load it prior to the machine bringing up the eth0 interface. It would not be surprising if my problem is a configuration error, but when I compare my sparc-configuration to the i386-configuration, things look similiar in the networking type areas.
Are you running hotplug on the i386 box? That can result in the module being auto-loaded as well as any other automatic hardware detection software.
If the kernel is auto-loading the module without outside assistance, I'd be interested to know how that works.
Signature · 2 lines
Jason Wever Gentoo/Sparc Team Co-Lead
Quoted 4 lines · Art Haas
Hi.
I'm still fiddling around with my configuration for my SS20, and I found that compiling the
sunlance.cfile as a module has problems.
[snip]
Quoted 1 line
I seek enlightenment from the list.
All supported 32bit sparc machines come with a sunlance NIC, so why would you want this as a module ?. You are always going to need it.
There is a slightly more obscure issue here - Not all Sun machines have a working CD drive so the ability to boot from the network for both installations and troubleshooting is highly desireable. Booting from a device which needs a module is not a good idea.
On Wed, 31 Mar 2004 00:25:25 +0000 "C.Newport" <[email protected]> wrote:
| All supported 32bit sparc machines come with a sunlance NIC, so | why would you want this as a module ?. You are always going to | need it.
Not at all. The JavaStation JK comes with hme and no lance.
Signature · 3 lines
Ciaran McCreesh Mail: ciaranm at gentoo.org Web: http://dev.gentoo.org/~ciaranm
Quoted 8 lines · C.Newport
Quoted 4 lines · Art Haas
Hi.
I'm still fiddling around with my configuration for my SS20, and I found that compiling the
sunlance.cfile as a module has problems.[snip]
Quoted 1 line
I seek enlightenment from the list.
Quoted 9 lines
All supported 32bit sparc machines come with a sunlance NIC, so why would you want this as a module ?. You are always going to need it.
There is a slightly more obscure issue here - Not all Sun machines have a working CD drive so the ability to boot from the network for both installations and troubleshooting is highly desireable. Booting from a device which needs a module is not a good idea.
I try to make the kernel as modular as I can, so that's why I'm trying to build this driver as a module. It's just how I tend to configure things ...
Art Haas
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822
Quoted 11 lines · Jason Wever
Quoted 7 lines · On Tue, 30 Mar 2004 18:09:24 -0600 "Art Haas" <[email protected]> wrote:
My main computer is an old Pentium computer, and I have an ethernet card using the 8139too driver, and this machine doesn't have any problem loading the module, and I haven't (knowingly) done anything special to load it prior to the machine bringing up the eth0 interface. It would not be surprising if my problem is a configuration error, but when I compare my sparc-configuration to the i386-configuration, things look similiar in the networking type areas.
Quoted 3 lines
Are you running hotplug on the i386 box? That can result in the module being auto-loaded as well as any other automatic hardware detection software.
The machine is configured for hotplug; as I was curious to fiddle around with the 'udev' stuff in development. I'm still using a static '/dev' directory, though.
Quoted 2 lines
If the kernel is auto-loading the module without outside assistance, I'd be interested to know how that works.
I'm certain that my ethernet driver was being successfully loaded as a module long before I'd begun to configure the kernel with hotplug capabilities. I should add a few 'lsmod' statements here and there in the initscripts and see if I can find just where and when this module is getting loaded.
Art Haas
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822
Quoted 3 lines · C.Newport
All supported 32bit sparc machines come with a sunlance NIC, so why would you want this as a module ?. You are always going to need it.
JavaStation-NC, JavaEngine-1, CP-1200 all have HME. Solaris never supported those, but Linux is better.
Quoted 4 lines
There is a slightly more obscure issue here - Not all Sun machines have a working CD drive so the ability to boot from the network for both installations and troubleshooting is highly desireable. Booting from a device which needs a module is not a good idea.
On sparc, initrd is easy to piggyback onto the kernel, so it should pose no problem to netboot over a modular sunlance. Please refer to arch/sparc/boot/piggyback.c.
-- Pete
Quoted 3 lines · Art Haas
I try to make the kernel as modular as I can, so that's why I'm trying to build this driver as a module. It's just how I tend to configure things ...
alias eth0 sunlance
SEE ALSO
modules.conf(5), modprobe(8)
I guess hotplug is the pocket calculator of system configuration.
Signature · 1 line
Keith M Wesolowski
WHACK!!!! That clue-stick on the side of my head hurts! :-)
Here I am thinking that there is some deep Sparc-magic that I'm missing, and if I'd looked at my own '/etc/modprobe.conf' file I would have saved much time and effort. I think I'll go back and hide in a cave for a little while ...
Art Haas
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822