[Barrelfish-users] Network module issues on Intel SCC
Wayne Zhang
waynegatesv5 at gmail.com
Fri Sep 20 11:03:34 CEST 2013
Thank you for your help.
I have checked the config. I am using the correct eMAC. And the problem is
when netd sends udp packets, there is no reply. I use TCPDUMP to check if
there are udp packets from SCC in a computer of the some LAN. I find no
packets from SCC. Because I cannot access DHCP server, I cannot check the
logs of DHCP server. I don't know whether the problem is in the driver of
barrelfish of SCC network or the problem of DHCP server.
What should I do next?
2013/9/19 Pravin <shindep at student.ethz.ch>
> Hi,
>
> I just want to do a quick sanity check. SCC has 4 NIC ports and eMAC2
> corresponds to third port. Based on which port you are using, you may
> have to change the eMAC in use. This can be done by passing a
> command-line argument "device=2" to eMAC driver and changing the
> device name accordingly for netd and NGD_MNG.
>
> Also, if you are using the correct eMAC then next thing to debug is to
> check the logs of DHCP server (or run wireshark/TCPDUMP) in the
> network to make sure that SCC is actually able to send out the
> broadcast packet for DHCP request.
>
> I hope this helps.
>
> Regards,
> Pravin
>
>
> On Tue, Sep 17, 2013 at 3:36 AM, Wayne Zhang <waynegatesv5 at gmail.com>
> wrote:
> > Dear all,
> >
> > I try to run barrelfish system on Intel SCC machine. And I want to mount
> a
> > nfs file on the MCPC of SCC.
> >
> > My menu.lst.scc is as following:
> >
> > timeout 0
> >
> > title Barrelfish
> > root (nd)
> > kernel /scc/sbin/cpu loglevel=4
> > module /scc/sbin/cpu
> > module /scc/sbin/init
> >
> > # Domains spawned by init
> > module /scc/sbin/mem_serv
> > module /scc/sbin/monitor
> >
> > module /scc/sbin/ramfsd boot
> > module /scc/sbin/skb boot
> > module /scc/sbin/spawnd boot BOOT_CORE
> > module /scc/sbin/startd boot
> >
> > # modules needed to start the networking
> > module /scc/sbin/eMAC core=0
> > module /scc/sbin/NGD_MNG core=0 cardname=eMAC2_0
> > module /scc/sbin/netd core=0 cardname=eMAC2_0
> > module /scc/sbin/eMAC core=1
> > module /scc/sbin/NGD_MNG core=2 cardname=eMAC2_1
> > module /scc/sbin/netd core=1 cardname=eMAC2_1
> >
> > # RCK memory map
> > # 624MB private RAM
> > mmap map 0x0 0x27000000 1
> > mmap map 0x80000000 0x03000000 1
> > # 1GB shared RAM (over all MCs) in the middle of address space
> > mmap map 0x84000000 0x3c000000 1
> > # 384MB MPB space
> > mmap mmp 0xc0000000 0x18000000 1
> > # 16MB more private RAM (bootup jump is in here, too)
> > mmap map 0xff000000 0x1000000 1
> >
> >
> > When barrelfish boots up, barrelfish comes into a dead loop trying to
> get an
> > IP in source code /lib/lwip/src/core/dhcp.c: "void dhcp_fine_tmr(void)".
> > Further calling "dhcp_discover" again and again.
> >
> > The std output is as following:
> > 1379413811.734795901 [tty0] dhcp_timeout()
> > 1379413811.735755643 [tty0] dhcp_timeout(): restarting discovery
> > 1379413811.736759345 [tty0] dhcp_discover()
> > 1379413811.737727972 [tty0] pbuf_alloc(length=308)
> > 1379413811.738694300 [tty0] transaction id xid(abcd0001)
> > 1379413811.739667122 [tty0] dhcp_discover: making request
> > 1379413811.740637744 [tty0] dhcp_discover: realloc()ing
> > 1379413811.741604303 [tty0] udp_connect: connected to 0.0.0.0,port 67
> > 1379413811.742604702 [tty0] dhcp_discover: sendto(DISCOVER,
> > IP_ADDR_BROADCAST, DHCP_SERVER_PORT)
> > 1379413811.743581653 [tty0] pbuf_header: old 0x2268c718 new 0x2268c710
> (8)
> > 1379413811.744547261 [tty0] udp_send: added header in given pbuf
> 0x2268c6cc
> > 1379413811.745512044 [tty0] udp_send: sending datagram of length 316
> > 1379413811.746473105 [tty0] udp_send: UDP packet length 316
> > 1379413811.747473730 [tty0] inet_chksum_pseudo(): checksumming pbuf
> > 0x2268c6cc (has next 0x0)
> > 1379413811.748451621 [tty0] inet_chksum_pseudo(): pbuf chain
> > lwip_chksum()=1025
> > 1379413811.749411031 [tty0] udp_send: UDP checksum 0xefda
> > 1379413811.750373147 [tty0] udp_send: ip_output_if (,,,,IP_PROTO_UDP,)
> > 1379413811.751335487 [tty0] pbuf_header: old 0x2268c710 new 0x2268c6fc
> (20)
> > 1379413811.752299610 [tty0] ip_output_if: en0
> > 1379413811.753273959 [tty0] IP header:
> > 1379413811.754272401 [tty0] +-------------------------------+
> > 1379413811.755272894 [tty0] | 4 | 5 | 0x00 | 336 | (v, hl,
> tos,
> > len)
> > 1379413811.756237303 [tty0] +-------------------------------+
> > 1379413811.757193451 [tty0] | 1 |000| 0 | (id, flags,
> > offset)
> > 1379413811.758163924 [tty0] +-------------------------------+
> > 1379413811.759130618 [tty0] | 255 | 17 | 0xba9c | (ttl,
> proto,
> > chksum)
> > 1379413811.760090206 [tty0] +-------------------------------+
> > 1379413811.761051587 [tty0] | 0 | 0 | 0 | 0 | (src)
> > 1379413811.762015340 [tty0] +-------------------------------+
> > 1379413811.763004899 [tty0] | 255 | 255 | 255 | 255 | (dest)
> > 1379413811.763974091 [tty0] +-------------------------------+
> > 1379413811.764945436 [tty0] netif->output()pbuf_header: old 0x2268c6fc
> new
> > 0x2268c6ee (14)
> > 1379413811.765911674 [tty0] etharp_send_ip: sending packet 0x2268c6cc
> > 1379413811.766887377 [tty0] lwip_barrelfish: ##### send_pkt_to_network:
> > ghost_write_index [1] for p 0x2268c6cc
> > 1379413811.767873010 [tty0] lwip_barrelfish: #### to_network_driver,
> slot 1
> > pbuf 0x2268c6cc of len 2874140574 8756830
> > 1379413810.122313061 [tty0] dhcp_discover: deleting()ing
> > 1379413810.123310789 [tty0] pbuf_free(0x2268c088)
> > 1379413810.124319658 [tty0] pbuf_free: 0x2268c088 has ref 1, ending here.
> > 1379413810.125344781 [tty0] dhcp_discover: SELECTING
> > 1379413810.126350501 [tty0] dhcp_discover(): set request timeout 2000
> msecs
> > 1379413810.129326596 [tty0] netd: Waiting for DHCP to complete
> > 1379413810.291828124 [tty0] tcp_slowtmr: no active pcbs
> > 1379413810.771698730 [tty0] tcp_slowtmr: no active pcbs
> > 1379413811.251817167 [tty0] tcp_slowtmr: no active pcbs
> > 1379413811.731670476 [tty0] tcp_slowtmr: no active pcbs
> > 1379413811.733772300 [tty0] dhcp_fine_tmr(): request timeout
> > 1379413811.734795901 [tty0] dhcp_timeout()
> > 1379413811.735755643 [tty0] dhcp_timeout(): restarting discovery
> > 1379413811.736759345 [tty0] dhcp_discover()
> >
> > So how can I connect to network on Intel SCC?
> >
> > Thank you~
> >
> > _______________________________________________
> > Barrelfish-users mailing list
> > Barrelfish-users at lists.inf.ethz.ch
> > https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20130920/027ea9a4/attachment.html
More information about the Barrelfish-users
mailing list