From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2213 invoked by alias); 22 Feb 2007 12:04:37 -0000 Received: (qmail 2203 invoked by uid 22791); 22 Feb 2007 12:04:37 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 Feb 2007 12:04:32 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id A184919501A4; Thu, 22 Feb 2007 05:04:30 -0700 (MST) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id EC9F119500A2; Thu, 22 Feb 2007 05:04:26 -0700 (MST) Message-ID: <45DD86C9.5050503@mlbassoc.com> Date: Thu, 22 Feb 2007 12:04:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Chuck McManis CC: ECOS Discussion Group References: <6.1.2.0.2.20070221191033.044064b0@192.168.110.40> In-Reply-To: <6.1.2.0.2.20070221191033.044064b0@192.168.110.40> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] N00blet question on networking X-SW-Source: 2007-02/txt/msg00212.txt.bz2 Chuck McManis wrote: > Ok, so I have redboot working. Further I can build a libtarget.a with a > basic set of options, I tried the simple program to get data from the > console and echo it back, and I can boot redboot, 'load -h > simple' and 'go' to run it. All's cool. > > So I used ecosconfig to add in CYGPKG_NET and FREEBSD_STACK and ETH_DRIVERS > (actually there was a point where I had no conflicts but a couple of > ethernet driver files were missing, its a CDL bug but I've not assured > myself that I know enough about what I'm doing to call it a bug outright > yet ;-) > > Now I can build the httpd1.c test and when I run it this is what I get: > ---------------------------------------------------- > Ethernet eth0: MAC address 00:0a:00:c0:ff:ee > IP: 192.168.110.124/255.255.255.0, Gateway: 192.168.110.254 > Default server: 0.0.0.0 > > RedBoot(tm) bootstrap and debug environment [GRUB] > Non-certified release, version UNKNOWN - built 21:38:48, Feb 19 2007 > > Platform: PC (I386) > Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. > Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited > > RAM: 0x00100000-0x040f0000, [0x0018da10-0x01000000] available > RedBoot> load -h 192.168.110.30 httpd1 > Using default protocol (TFTP) > Entry point: 0x00208000, address range: 0x00208000-0x00244720 > RedBoot> go > [cyg_net_init] Init: mbinit(0x00000000) > [cyg_net_init] Init: cyg_net_init_devs(0x00000000) > Init device 'vt8235_eth0' > [cyg_net_init] Init: loopattach(0x00000000) > [cyg_net_init] Init: ifinit(0x00000000) > [cyg_net_init] Init: domaininit(0x00000000) > [cyg_net_init] Init: cyg_net_add_domain(0x00243f80) > New domain internet at 0x00000000 > [cyg_net_init] Init: cyg_net_add_domain(0x002436c0) > New domain route at 0x00000000 > [cyg_net_init] Init: call_route_init(0x00000000) > [cyg_net_init] Done > [eth_drv_ioctl] Warning: Driver can't set multi-cast mode > [eth_drv_ioctl] Warning: Driver can't set multi-cast mode > > ---------------------------------------- > > Ok, but when I do this, there doesn't seem to be any way to talk to my > target board. Eventually it prints : > > BOOTP/DHCP failed on eth0 > [eth_drv_ioctl] Warning: Driver can't set multi-cast mode > [eth_drv_ioctl] Warning: Driver can't set multi-cast mode > > Which seems unusual given that DHCP worked fine for Redboot. > > So here are some questions: > > What should this test print when it works? Should I be able to ping my > target after using init_all_network_interfaces() ? What is different > between Redboot's use of my driver and ECOS's use of the driver? The most likely cause is not getting interrupts from your ethernet card. RedBoot doesn't use them but eCos requires that they work. Try putting some 'diag_printf()' calls in the ethernet driver to see what's happening. Note: at this point, it's best to access RedBoot via the serial port and leave network based debugging for later. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss