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