[openbeosnetteam] Daily update...

Here's as far as I've got today...

Basically I have ethernet, arp and loopback modules building and installing.
The stack runs and opens them and uses them... Devices are detected and
added to the stack. And then... BOOM! No errors, the whole system just stops
responding. Any ideas welcome.

This is the debugging output I'm seeing to show what it's doing/not doing...
(yes it is very verbose!!!)

core network module: Starting network stack...
ethernet: ether_ops
Done ethernet init
returning B_OK from ethernet_init...
get_module(network/interface/ethernet) has returned 0
Loaded network/interface/ethernet, running init
tulip: init_driver tulip LiteOn found at IRQ 9 tulip: publish_devices()
tulip: init_driver tulip LiteOn found at IRQ 9 find_mii: Found phy= 1,
control 3
000 status 7829 ID_1 0040 ID_2 6212 autoN 01e1 linkP 40a1.
LiteOn found: irq 9 ioaddr 31df0000 ethernet address 00:a0:cc:d0:22:dc
net_server_add_device: 0x02a47698
device to be added is tulip0
add_device: added tulip0
loop_ops: INIT!
get_module(network/interface/loop) has returned 0
Loaded network/interface/loop, running init
k_loop_init()
net_server_add_device: 0x02a4d6f0
device to be added is loop0
add_device: added loop0
ether_dev_start: tulip0
Failed to set tulip0 into promiscuous mode
device 5848968 has been setup!
Dev Name         MTU  MAC Address       Flags
=== ============ ==== ================= ===========================
 1  tulip0       1500                   UP RUNNING BROADCAST MULTICAST
                 Addresses:
ETHERNET: Interface tulip0 has a link layer address of 00:a0:cc:d0:22:dc
 2  loop0       16384                   UP RUNNING MULTICAST
start_devices()...
starting rx_thread...
resuming rx_thread
if_thread: tulip0 running! calling read() on dev 24
starting tx_thread...
tulip0: starting tx_thread...
if_thread: tulip0 running! calling read() on dev 24
starting tx_thread...
tulip0: starting tx_thread...
all done, tulip0 has been started!
starting rx_thread...
resuming rx_thread
loop0: starting rx_thread...
starting tx_thread...
loop0: starting tx_thread...
all done, loop0 has been started!
Network modules List
====================
done starting the stack!!!
return B_OK from driver init
socket_driver: uninit_driver

I'm going to remove some of the debugging messages and then commit to the
tree. You'll need to add directories

~/config/add-ons/kernel/network/protocol
~/config/add-ons/kernel/network/interface

Then run make installkernel in arp, ethernet and loop and net_server.  Then
reboot!  One point is that if you don't have any cards configured then the
/dev/net endpoint doesn't seem to be created, so nothing happens. Not quite
sure how we get round that at present.

david


Other related posts: