Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-06-2008, 11:48 PM   #1
LQ Newbie
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Can not make snull driver to work in ubuntu 8.04

Sorry for the long mail. I am fairly new to the Linux world. Recently installed Ubuntu 8.04 on a partition in my AMD processor based pc, then tried to test the snull driver on it. The compilation of snull.c failed since the net_device structure is changed in version 2.6.24. I was able to download a snull.c version for 2.6.24 which compiled clean.

Then I tried configuring the sn0 interface using the command "ifconfig sn0 local0" similarly I tried to do "ifconfig sn1 local1". local0,local1, remote0 and remote1 are properly configured, since I can ping local0 and local1. "ifconfig sn0[1] local0[1]" commands fail on my installation, following is the error message
root@Ubuntu8.04:~/drivers/snull# ifconfig sn0 local0
SIOCSIFADDR: No such device
sn0: ERROR while getting interface flags: No such device

I googled the above error message and came to a conclusion that I should use "ifconfig eth0:0[1] local0[1]" for my pc. My pc has a single ethernet card with default interface name as "eth0". After doing all this I modified my test snull.c to associate "eth0:0[1]" with the two devices. I could ping the local0[1] interfaces but not the remote0[1] interfaces. Then putting some debug printks, I concluded that register_netdev is not really registering the device in my case, since I do not get any printk debug messages from the device functions like, snull_open, snull_config, snull_tx etc.

1: Is my process of creating eth0:0[1] corresponding to sn0[1] correct?
2: Is my assumption that register_netdev is not succeeding correct?

I would appreciate a solution for this or a more specific debug point.
Old 07-02-2009, 10:39 AM   #2
LQ Newbie
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Is snull.ko loaded?

Do you see sn0 and sn1 using "ifconfig -a"?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't make Nvidia driver work on Fedora 7! tauro_kpo Linux - Software 3 06-04-2007 04:08 AM
Can I make a printer work without a Linux driver? tigerflag Linux - Hardware 3 10-12-2005 11:40 AM
Snull gr33ndata Linux - Networking 1 02-21-2005 11:34 AM
Help,how can I install alsa driver and make it work? LittlesnowLinux Debian 2 11-25-2004 08:36 AM
How do I make printer driver installation commands work? jayelitumbiolo Linux - Newbie 1 11-06-2003 07:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration