This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: how to setup to use dhcp - help needed
- From: Richard dot von dot Lehe at gd-ais dot com
- To: iboard at telasic dot com, ecos-discuss at sources dot redhat dot com
- Date: Fri, 21 Jan 2005 10:32:05 -0600
- Subject: RE: [ECOS] how to setup to use dhcp - help needed
I'm no expert, but I have been down this same road. I'll assume you configured your ecos.ecc to include the networking framework. You can do this command-line : something like 'ecosconfig new rattler net' (please double-check documentation from Analogue & Micro on this), or via Configtool.
You already mentioned the only thing with Redboot you need to worry about - having a unique IP for both redboot and your application.
Then I'd look under the "Basic networking framework" section using Configtool. There are two sections: "Initialization options for eth0" and "Initialization options for eth1". This is where you can choose Bootp/dhcp or manual initialization of these ports.
Then init_all_network_interfaces pretty much takes care of things. You can also disable the 2nd port - I think that's done under I/O sub-system->Common ethernet support->A&M Rattler ethernet support.
I hope some part of that helps and I'm not just repeating things you already know.
Rich
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org]On Behalf Of Ian Board
Sent: Thursday, January 20, 2005 8:39 PM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] how to setup to use dhcp - help needed
I am using a rattler board with an application that has a small UDP
based command processing thread on it.
I set up redboot to use BOOTP to get an IP address and I see in the
reference manual that applications must have an IP address different
from that used by gdb.
Can someone outline what I have to do to use dhcp to set up an ip
address for the application? (including any necessary redboot config
stuff). Everything builds without error, but I get a lot of errors from
init_all_network_interfaces().
Any advice would be appreciated -
Ian
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss