Skip to contentSkip to conversation

nrattach "Cannot find free NET/ROM device" error!

DISCUSSION Bill Walton 3 participants 4 messages Oct 2, 2002

lore
Share & tools
lore
#0 lore raw

Hello -

I am still having some difficulties regarding getting my NETROM device "nr0" attached. The instructions are simple:

Edit "nrports" file

Edit "nrbroadcast" file

Run "nrattach netrom" to create the device "nr0"

Sounds easy but it doesn't work. Here is what I get when I enter in the "nrattach netrom" command:

nrattach: SIOCGIFFLAGS: no such device
nrattach: cannot find free NET/ROM device

Copies of the following files are attached:

axports
nrports
nrbroadcast
rc.local
output (from ifconfig command)

Any help that you could offer would be appreciated! I am running RedHat 7.2 with the 2.4.18 kernel (ax25 enabled, libs,tools, apps all installed). Am I making an error in these simple files? or is there a greater evil lurking somewhere? I will be running 7 or 8 ports in the finished configuration. But for now I am just trying to get it all to work in its simplest form.

Regards,

Bill KJ6EO

ax0 Link encap:AMPR AX.25 HWaddr KJ6EO-15
inet addr:44.16.2.102 Mask:255.0.0.0
UP RUNNING MTU:256 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:04:5A:76:37:16
inet addr:64.174.110.108 Bcast:64.174.110.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1101 errors:0 dropped:0 overruns:0 frame:0 TX packets:314 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
RX bytes:119405 (116.6 Kb) TX bytes:37380 (36.5 Kb)

eth1 Link encap:Ethernet HWaddr 00:50:BA:C0:54:A8
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:471 errors:0 dropped:0 overruns:0 frame:0 TX packets:478 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
RX bytes:61992 (60.5 Kb) TX bytes:84023 (82.0 Kb)

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:90 errors:0 dropped:0 overruns:0 frame:0 TX packets:90 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
RX bytes:6887 (6.7 Kb) TX bytes:6887 (6.7 Kb)

# /etc/ax25/nrbroadcast
#
# The format of this file is:
#
# ax25_name min_obs def_qual worst_qual verbose
#
radio	1	192	100	1
# /etc/ax25/nrports
#
# The format of this file is:
#
# name callsign alias paclen description
#
netrom  KJ6EO-7	SCV   236    Linux Switch Port
# /etc/ax25/axports
#
# The format of this file is:
#
# name callsign speed paclen window description
#
radio	KJ6EO-15	4800	256	2	145.050 1200 Baud
#1 lore raw
Quoted 5 lines · Bill Walton

Sounds easy but it doesn't work. Here is what I get when I enter in the "nrattach netrom" command:

nrattach: SIOCGIFFLAGS: no such device
nrattach: cannot find free NET/ROM device

Is netrom compiled as a module? Have you loaded the module? (modprobe netrom)

Signature · 3 lines
Tomi Manninen           Internet:  [email protected]
OH2BNS                  AX.25:     [email protected]
KP20ME04                Amprnet:   [email protected]
#2 lore raw

Hi Tomi -

Thank you for your response regarding the NETROM problems that I was having. YES...you were absolutely correct, somehow I did not get the netrom module loaded. I thought that I compiled it directly into the kernel but I must have choosen an <M> during the kernel configuration.

Again, your help is most appreciated!

Regards,

Bill KJ6EO

Quoted 15 lines · Tomi Manninen
Quoted 5 lines · Bill Walton

Sounds easy but it doesn't work. Here is what I get when I enter in the "nrattach netrom" command:

nrattach: SIOCGIFFLAGS: no such device
nrattach: cannot find free NET/ROM device

Is netrom compiled as a module? Have you loaded the module? (modprobe netrom)

--

Tomi Manninen           Internet:  [email protected]
OH2BNS                  AX.25:     [email protected]
KP20ME04                Amprnet:   [email protected]
#3 lore raw
In reply to Bill Walton
Quoted 5 lines · Bill Walton

Hello -

I am still having some difficulties regarding getting my NETROM device "nr0" attached. The instructions are simple:

Quoted 8 lines

Edit "nrports" file

Edit "nrbroadcast" file

Run "nrattach netrom" to create the device "nr0"

Sounds easy but it doesn't work. Here is what I get when I enter in the "nrattach netrom" command:

Ah!, but that is basicly correct, but your configuration seems at fault here.

Quoted 3 lines

nrattach: SIOCGIFFLAGS: no such device
nrattach: cannot find free NET/ROM device

You do not have netrom compiled into your kernel, but if you have netrom as a module you will need to add the following to your /etc/modules.conf file.

alias net-pf-6 netrom
alias nr0 netrom

after editing that file type 'depmod -a' then the rest should work.

However, it will up an interface for you but, i would advise;

nrattach -i 44.16.2.102 -m 236 netrom

Another ditch you may fall into is the mkiss problem with kernel 2.4.18, check out the linux hams archive at;
hes.iki.fi
I think everyone will advise you to upgrade to 2.4.19 which has eliminated that problem and AFAIK there are no fatal problems with 2.4.19.

I must compliment you on the information you gave, it makes solving your problem so much easier than just saying it did not work which is the case mostly.

have fun.

Quoted 16 lines

Copies of the following files are attached:

axports
nrports
nrbroadcast
rc.local
output (from ifconfig command)

Any help that you could offer would be appreciated! I am running RedHat 7.2 with the 2.4.18 kernel (ax25 enabled, libs,tools, apps all installed). Am I making an error in these simple files? or is there a greater evil lurking somewhere? I will be running 7 or 8 ports in the finished configuration. But for now I am just trying to get it all to work in its simplest form.

Quoted 3 lines

Regards,

Bill KJ6EO

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="output"
Content-Transfer-Encoding: 7bit Content-Description:
----------------------------------------

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="nrbroadcast"
Content-Transfer-Encoding: 7bit
Content-Description:
----------------------------------------

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="nrports"
Content-Transfer-Encoding: 7bit Content-Description:
----------------------------------------

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="axports"
Content-Transfer-Encoding: 7bit Content-Description:
----------------------------------------

----------------------------------------
Content-Type: application/x-unknown-content-type-local_auto_file; charset="us-ascii"; name="rc.local"
Content-Transfer-Encoding: base64
Content-Description:
----------------------------------------

Signature · 3 lines
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/