<div style="font:14px/1.5 'Lucida Grande', '微软雅黑';color:#333;"><p style="font:18px/1.5 'Times';margin:0;">Hi, </p><p style="line-height: 1.5; margin: 0px;"><font face="Times"><span style="font-size: 18px;">   The system can print IP info after I  increased the startup RAM size and </span></font><span style="font-family: Menlo, courier; font-size: 12pt; font-style: normal; font-variant-caps: normal; font-weight: bold; color: rgb(128, 0, 128); white-space: pre;">PBUF_POOL_BUFSIZE which is a constant in file </span><span style="white-space: pre-wrap;">net_constants.h. I seems that the network works. But the error message “</span>kernel 1: e1000n: IRQ message buffer overflow on IRQ 0<span style="white-space: pre-wrap;">” still appears. I track the message and find the line where print the message in file kernel/arch/x86_64/irq.c </span></p><p style="line-height: 1.5; margin: 0px;"><img src="cid:E237BD74BD4403F740D988865B86719C" modifysize="100%" style="width: 600px; height: 180px;"></p><p style="line-height: 1.5; margin: 0px;"><br></p><p style="line-height: 1.5; margin: 0px;">it seems like that the lmp buffer size is too small, so i increase the <span style="color: rgb(121, 93, 163); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; white-space: pre;">DEFAULT_LMP_BUF_WORDS in file </span><span class="js-path-segment" style="box-sizing: border-box; color: rgb(118, 118, 118); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;"><a href="https://github.com/BarrelfishOS/barrelfish/tree/3d092c3cde6c02aa4530b450d4025b5258e401ef/include" style="box-sizing: border-box; background-color: transparent; -webkit-text-decoration-skip: objects; color: rgb(64, 120, 192); text-decoration: none;">include</a></span><span class="separator" style="box-sizing: border-box; color: rgb(118, 118, 118); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;">/</span><span class="js-path-segment" style="box-sizing: border-box; color: rgb(118, 118, 118); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;"><a href="https://github.com/BarrelfishOS/barrelfish/tree/3d092c3cde6c02aa4530b450d4025b5258e401ef/include/barrelfish" style="box-sizing: border-box; background-color: transparent; -webkit-text-decoration-skip: objects; color: rgb(64, 120, 192); text-decoration: none;">barrelfish</a></span><span class="separator" style="box-sizing: border-box; color: rgb(118, 118, 118); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;">/</span><span class="final-path" style="box-sizing: border-box; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;">lmp_endpoints.h from </span><span style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; white-space: pre;">(LMP_RECV_LENGTH * </span><span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; white-space: pre;">2</span><span style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; white-space: pre;">) to </span><span style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; white-space: pre;">(LMP_RECV_LENGTH * <font color="#0086b3">3</font></span><span style="font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; white-space: pre;">). </span><font face="Consolas, Liberation Mono, Menlo, Courier, monospace" size="2"><span style="white-space: pre;">Unfortunately, it didn`t work.</span></font></p><span style="font: 14px/1.5 'Lucida Grande';color:#333;"><br></span><div class="foxmail_blockquote_fromhere_element" style="font: 12px/1.5 'Lucida Grande';padding:2px 0 2px 0;"><span style="color:#333;text-decoration:line-through;white-space:pre-wrap;">                            </span> 原始邮件 <span style="color:#333;text-decoration:line-through;white-space:pre-wrap;">                            </span></div><div style="font: 12px/1.5 'Lucida Grande';background:#efefef;color:#666666;padding:8px;"><div><b style="color:#999;">发件人:</b> Häcki  Roni<roni.haecki@inf.ethz.ch></div><div><b style="color:#999;">收件人:</b> kdf5000<kdf5000@163.com>; barrelfish-users@lists.inf.ethz.ch<barrelfish-users@lists.inf.ethz.ch></div><div><b style="color:#999;">发送时间:</b> 2016年7月18日(周一) 23:02</div><div><b style="color:#999;">主题:</b> AW: 回复:AW: [Barrelfish-users] Failed to run barrelfish inside qemu withnetworking enabled</div></div><br><div class="mail_quote_0EB1420EB35147F09C3EA8E8EE19A9F5" style="font: 14px/1.5 'Lucida Grande';color:#333;"><pre style="white-space:pre-wrap;">Hi,

It seems like that you are running out of memory. You can either increase
the guest startup RAM size (tools/qemu-wrapper.h the -m option) or as you
suggested change some of the include/barrelfish/net_constants.h. 

-- Roni
________________________________________
Von: kdf5000 [<a href="mailto:kdf5000@163.com" title="mailto:kdf5000@163.com">kdf5000@163.com</a>]
Gesendet: Montag, 18. Juli 2016 05:51
An: <a href="mailto:barrelfish-users@lists.inf.ethz.ch" title="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</a>; Häcki  Roni
Betreff: 回复:AW: [Barrelfish-users] Failed to run barrelfish inside qemu withnetworking enabled

Hi,
     Thank you for your prompt reply! I checkout the latest released version(release2016-06-29) and build again, it shows a different error:


> routing GSI 0 -> 2 -> INTI 2 -> APIC 1 (coreid 1) vector 32

kernel 1: unhandled IRQ 0

e1000n.1.0: Reset done..

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

#######

For service [e1000] MAC= 52:54:00:12:34:56

using 8192 slots for internal buffer

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

########### Driver with interrupts

e1000: Media type: copper, Link speed: 1 Gb in Full duplex.

service [e1000_0] exported at iref 261

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0

################################

For service [e1000_0_FILT] MAC= 52:54:00:12:34:56

idc_c_port_mng_srv: success [e1000_PORTS_MNG]

LWIP: lwip_init: done with connection setup

LWIP: done with connection setup

NGKDM: done with most of things for device[e1000]

netd.0 in alloc_mem() ..//lib/i

Allocating memory region frame failed!

Aborted


It seems that the configuration of memory is improper. Should I change the configuration in file (include/barrelfish/net_constants.h)? Here is my menu.lst.x86_64:


title   Barrelfish

root    (nd)

kernel  /x86_64/sbin/elver loglevel=4

module  /x86_64/sbin/cpu loglevel=4

module  /x86_64/sbin/init


# Domains spawned by init

module  /x86_64/sbin/mem_serv

module  /x86_64/sbin/monitor


# Special boot time domains spawned by monitor

module  /x86_64/sbin/ramfsd boot

module  /x86_64/sbin/skb boot

modulenounzip /eclipseclp_ramfs.cpio.gz nospawn

modulenounzip /skb_ramfs.cpio.gz nospawn

module  /x86_64/sbin/kaluga boot

module  /x86_64/sbin/acpi boot

module  /x86_64/sbin/spawnd boot

#bootapic-x86_64=1-15

module  /x86_64/sbin/startd boot

module /x86_64/sbin/routing_setup boot


# Drivers

module /x86_64/sbin/pci auto

module /x86_64/sbin/corectrl auto

module /x86_64/sbin/ahcid auto


## For networking

#module /x86_64/sbin/rtl8029

module /x86_64/sbin/e1000n core=1


## Other services needed for networking

module /x86_64/sbin/NGD_mng cardname=e1000

module /x86_64/sbin/netd cardname=e1000


# General user domains

module  /x86_64/sbin/serial

module  /x86_64/sbin/fish nospawn

module  /x86_64/sbin/angler serial0.terminal xterm



 原始邮件
发件人: Häcki Roni<<a href="mailto:roni.haecki@inf.ethz.ch" title="mailto:roni.haecki@inf.ethz.ch">roni.haecki@inf.ethz.ch</a>>
收件人: 孔德飞<<a href="mailto:kdf5000@163.com" title="mailto:kdf5000@163.com">kdf5000@163.com</a>>; <a href="mailto:barrelfish-users@lists.inf.ethz.ch" title="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</a><<a href="mailto:barrelfish-users@lists.inf.ethz.ch" title="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</a>>
发送时间: 2016年7月17日(周日) 22:59
主题: AW: [Barrelfish-users] Failed to run barrelfish inside qemu withnetworking enabled


Hi,

It seems like you are starting the e1000n driver and other network related services
seem to assume there is an e1000n card. Can you show us the contents of your menu.lst file
(in your build directory platforms/x86/menu.lst.x86_64)?

The default menu.lst file that is generated most likely uses the e1000n driver and you have to change
the lines as described in the wiki (Changes in the menu.lst).

 --Roni
________________________________________
Von: Barrelfish-users [<a href="mailto:barrelfish-users-bounces@lists.inf.ethz.ch" title="mailto:barrelfish-users-bounces@lists.inf.ethz.ch">barrelfish-users-bounces@lists.inf.ethz.ch</a><mailto:<a href="mailto:barrelfish-users-bounces@lists.inf.ethz.ch" title="mailto:barrelfish-users-bounces@lists.inf.ethz.ch">barrelfish-users-bounces@lists.inf.ethz.ch</a>>]&quot; im Auftrag von &quot;孔德飞 [<a href="mailto:kdf5000@163.com" title="mailto:kdf5000@163.com">kdf5000@163.com</a><mailto:<a href="mailto:kdf5000@163.com" title="mailto:kdf5000@163.com">kdf5000@163.com</a>>]
Gesendet: Sonntag, 17. Juli 2016 14:32
An: <a href="mailto:barrelfish-users@lists.inf.ethz.ch" title="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</a><mailto:<a href="mailto:barrelfish-users@lists.inf.ethz.ch" title="mailto:barrelfish-users@lists.inf.ethz.ch">barrelfish-users@lists.inf.ethz.ch</a>>
Betreff: [Barrelfish-users] Failed to run barrelfish inside qemu with   networking enabled

Hello,

      I have successfully compiled and run barrelfish in qemu. I read the wiki and try to run barrelfish with networking enabled following the instructions in the wiki page(<a href="http://wiki.barrelfish.org/qemu_networking" title="http://wiki.barrelfish.org/qemu_networking">http://wiki.barrelfish.org/qemu_networking</a> ), the only difference is that I replace the rtl8029 adapter with e1000n which is default in new release version. When  booting the barrelfish in qemu(make emu_x86_64), it gives the following errors:

kernel 1: e1000n: IRQ message buffer overflow on IRQ 0
kernel 1: e1000n: IRQ message buffer overflow on IRQ 0
kernel 1: e1000n: IRQ message buffer overflow on IRQ 0
kernel 1: e1000n: IRQ message buffer overflow on IRQ 0
kernel 1: e1000n: IRQ message buffer overflow on IRQ 0
kernel 1: e1000n: IRQ message buffer overflow on IRQ 0
net_queue_manager: Use raw interface
Connected to driver [e1000]
remaining_lwip_init: allocating pbuf memory
#### Networking with small amount of memory #####
#### [0:4:netd] [for_qemu] [1] MEM_SIZE[62914560], PBUF_POOL_SIZE[16384], MEMP_MAX[14],  RECEIVE_BUFFERS[2444] qid[0]####
Assertion failed on core 0 in netd: rem_len <= 0, function pbuf_alloc_tagged, file ..//lib/lwip/src/core/pbuf.c, line 454.
Aborted







</pre></div></div>