Re: [ECOS] NTP authentication in eCos

2013-08-20 Thread Jay Foster
I have used the sntp eCos. I don't use authentication, but did have a problem a while back with the sntp code not working with ntp servers that were configured to do NTP auth. The eCos sntp code includes the KeyIdentifier and MessageDigest fields in it's NTP packets to the NTP server, but it

Re: [ECOS] NTP authentication in eCos

2013-08-20 Thread Jay Foster
I used the eCos SNTP code. The code I used is about 8 years old, so maybe things have changed some. I don't know anything about NTP/v4 or Autokey protocol. On 8/20/2013 2:34 PM, vxWorker wrote: Hi Jay, thanks for your response, I 'll keep that in mind. Were you using SNTP included in eCos?

Re: [ECOS] Select break?

2012-10-11 Thread Jay Foster
Just because eCos does not have a pipe or socketpair feature does not mean that you cannot use an additional pair of sockets. Add another socket (UDP on the loopback interface) to listen on in your select() call. Add another socket (UDP) to send messages to it using sendto(). You can bind

Re: [ECOS] Baffled yet again by CDL

2012-03-21 Thread Jay Foster
Use default_value { \Foobar\ } There are many examples in the eCos repository that do this. Jay On 3/21/2012 1:31 PM, Grant Edwards wrote: How do I get a quoted string as a default value for a CDL option? If I put default_value {Foobar} I get this: #define CYG_WHATEVER Foobar

Re: [ECOS] Disable IPv6 at startup?

2012-02-16 Thread Jay Foster
Perhaps the IPV6CTL_AUTO_LINKLOCAL sysctl() (enable CYGPKG_NET_FREEBSD_SYSCTL) might work? Jay On 2/16/2012 12:06 PM, Grant Edwards wrote: What's the simplest/best way to disable IPv6 at runtime? For IPv4 if you never set up any addresses or routes, then that's disabled enough since it won't

Re: [ECOS] How to set a socket to non-blocking?

2012-01-20 Thread Jay Foster
Try /* Set the socket for non-blocking mode. */ int yes = 1; if (ioctl(fd, FIONBIO, yes) 0) { /* Error */ } Jay On 1/20/2012 6:01 AM, Grant Edwards wrote: The eCos reference talks about how sockets behave when their marked as non-blocking. How does one set a

[ECOS] I2C on S3C2510A

2011-05-23 Thread Jay Foster
Has anyone had any success in getting the I2C controller to work on the Samsung S3C2510A, S3C4510B, or S3C4530A? It looks like the same or similar I2C controller in each of these MCUs. Jay -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list

Re: [ECOS] Re: Problem with CYG_HAL_TABLES

2011-01-25 Thread Jay Foster
of my issue, I think that CYG_HAL_TABLE_BEGIN, CYG_HAL_TABLE_END, and CYG_HAL_TABLE_TYPE should all use the same alignment. Jay On 1/25/2011 6:02 AM, Sergei Gavrikov wrote: Hi Jay, On Thu, 20 Jan 2011, Jay Foster wrote: Looking at the definition of CYG_HAL_TABLE_TYPE and CYG_HAL_TABLE_BEGIN, I

[ECOS] Problem with CYG_HAL_TABLES

2011-01-20 Thread Jay Foster
I have used the CYG_HAL_TABLE mechanism before with success, but I am now running into an alignment problem with a new application. This is on an ARM architecture. I have an object defined as: typedef struct { } CYG_HAL_TABLE_TYPE MY_TYPE; I then declare the HAL table array as:

[ECOS] Re: Problem with CYG_HAL_TABLES

2011-01-20 Thread Jay Foster
(CYGARC_P2ALIGNMENT is 2 and CYGARC_ALIGNMENT is 4). This would result in the table label being 4 byte aligned and the elements 16 byte aligned. The question is why has this not caused me problems before this? Jay On 1/20/2011 9:30 AM, Jay Foster wrote: I have used the CYG_HAL_TABLE mechanism before

Re: [ECOS] How to port NAT for the ecos?

2011-01-05 Thread Jay Foster
You can either use the FreeBSD libalias library and do it from user space (works for PPP), or add back in the IP Filter bits to the FreeBSD TCP/IP stack that were removed when it was ported to eCos. The IP Filter method is probably more generally useful, as you can also implement firewall

Re: [ECOS] What does implements CYGINT_IO_ETH_MULTICAST mean?

2010-09-24 Thread Jay Foster
I have an ethernet driver that does implement these, but I don't actually use it. Generally, what your driver needs to do is setup the CAM registers and modes appropriately. For my driver, CAM entry 0 is always the station address, and the other addresses are used for multicast addresses.

Re: [ECOS] Re: Socket leak when accept() is aborted by TCP RST?

2010-07-28 Thread Jay Foster
On 7/28/2010 12:56 PM, Grant Edwards wrote: On 2010-07-28, Grant Edwardsgrant.b.edwa...@gmail.com wrote: On 2010-07-27, Grant Edwardsgrant.b.edwa...@gmail.com wrote: I'm seeing what appears to me to be a socket leak in the accept() operation provided by the new BSD network stack. The

Re: [ECOS] Socket leak when accept() is aborted by TCP RST?

2010-07-27 Thread Jay Foster
I don't know about the socket leak, per se, but I have had some dealings with the original BSD network stack with regards to the accept() call. From my memory, I remember there being two queues on which the socket might be placed (so_comp, so_incomp). Depending on the timing, the socket

Re: [ECOS] Re: Socket leak when accept() is aborted by TCP RST?

2010-07-27 Thread Jay Foster
You could try TCP/IP Illustrated, Volume 2 (and volume 1) by Gary R. Wright and W. Richard Stevens, published by Addison Wesley. It's a bit dated, but the basics are there. It shows the network code listings, bit by bit, with an explanation for each line. Jay On 7/27/2010 3:39 PM, Grant

[ECOS] CVS import Question

2010-05-26 Thread Jay Foster
I have a general CVS question pertaining to importing 3rd party modules on vendor branches. I've looked through the CVS manual, but it does not discuss my issue. When I import an update to a 3rd party module onto it's vendor branch, what happens to files that are no longer in the updated

[ECOS] CDL Inferred Value

2010-05-20 Thread Jay Foster
I have a CDL file with a component defined. It has flavor 'bool' and a 'default_value' of 1. I do not configure this option in any of my templates or .ecm files, so expect to get the default value (1=enabled). However, I end up with it disabled. The .ecc file shows that the user_value is 1

Re: [ECOS] CDL Inferred Value

2010-05-20 Thread Jay Foster
/20/2010 5:05 PM, Jay Foster wrote: I have a CDL file with a component defined. It has flavor 'bool' and a 'default_value' of 1. I do not configure this option in any of my templates or .ecm files, so expect to get the default value (1=enabled). However, I end up with it disabled. The .ecc file

[ECOS] pthread_kill return value

2010-02-04 Thread Jay Foster
According to the man page for pthread_kill, the return value is supposed to be 0 on success and an error number (ESRCH, EINVAL) on error. However, the eCos implementation is returning 0 on success and -1 on error with errno set to the error number. It looks like the eCos pthread_kill()

Re: [ECOS] 'id' rollover bug in dns.c

2009-10-01 Thread Jay Foster
shouldn't be an issue. Cheers, Will -Original Message- From: Will Lentz Sent: Thursday, October 01, 2009 4:53 PM To: 'Jay Foster' Cc: ecos-discuss@ecos.sourceware.org Subject: RE: [ECOS] 'id' rollover bug in dns.c Thanks! That's a better solution. Will -Original Message- From: Jay

Re: [ECOS] issue with raw bsd sockets

2009-08-07 Thread Jay Foster
packet (DHCP Offer). [snip] Any hint's appreciated. Hi Mandeep, I call that recently Jay Foster share on the list a solution http://sourceware.org/ml/ecos-discuss/2009-06/msg00075.html Follow this thread. HIH. Thanks Sergei. This is _exactly_ my problem too. Though this patch didn't help much

RE: [ECOS] Re: How to send UDP broadcast to 255.255.255.255?

2009-06-16 Thread Jay Foster
You can try the following patch that someone added to my local source. It adds a CDL option (CYGOPT_NET_INET_FORCE_DIRECTED_BROADCAST) to modify this behavior (the default being the same behavior you have now). Sorry it isn't in patch format, but it is straight forward. What is not shown here

RE: [ECOS] arm-elf-gcc 3.2.1 bug: unsigned vs. unsigned long ?

2009-02-25 Thread Jay Foster
I don't know about that problem, but I don know that the arm-elf-gcc 3.2.1 compiler does generate bad code sometimes. I switched to 3.4.3 and no more bad code generation. It's been too long for me to remember the specifics. I think it had something to do with not properly manipulating the stack

RE: [ECOS] Cygwin mount mode still need to be text for eCos?

2009-01-07 Thread Jay Foster
I've always just used the default for Cygwin when installing Cygwin (I ignored the eCos request to set it to DOS mode), and have never had any problem. Jay -Original Message- From: Grant Edwards [mailto:gra...@visi.com] Sent: Wednesday, January 07, 2009 1:58 PM To:

RE: [ECOS] Re: The next Cygwon toolchain build problem

2009-01-05 Thread Jay Foster
I have a tarball (~96MB compressed) for the 3.4.3 arm-elf gnu tools built for Cygwin following the instructions from the eCos web site. It includes big endian support. gcc 3.2.1 is known to be broken for ARM anyway (why I switched to 3.4.3 several years ago). I cannot attach it to this email

RE: [ECOS] Re: How to get Ethernet link status?

2008-12-19 Thread Jay Foster
link status? On 2008-12-17, Grant Edwards gra...@visi.com wrote: On 2008-12-17, Jay Foster j...@systech.com wrote: You may also be able to use the SIOCGIFSTATS socket ioctl to retrieve the eth_stats (struct ether_drv_stats) structure. You can get the speed from the speed member and the duplex

RE: [ECOS] Re: How to get Ethernet link status?

2008-12-17 Thread Jay Foster
You may also be able to use the SIOCGIFSTATS socket ioctl to retrieve the eth_stats (struct ether_drv_stats) structure. You can get the speed from the speed member and the duplex from the duplex member. Not all ethernet drivers support the SIOCGIFSTATS ioctl. Jay -Original Message-

RE: [ECOS] How to get Ethernet link status?

2008-12-16 Thread Jay Foster
I've done this by implementing my own function, which calls the _eth_phy_state() function from the Generic PHY Package. Depending on which drivers/packages are configured, my function might call the ethernet driver specific function (PhyStatus() for example), or the _eth_phy_state() function when

RE: [ECOS] Re: How to get Ethernet link status?

2008-12-16 Thread Jay Foster
] Sent: Tuesday, December 16, 2008 1:15 PM To: ecos-disc...@sources.redhat.com Subject: [ECOS] Re: How to get Ethernet link status? On 2008-12-16, Jay Foster j...@systech.com wrote: I've done this by implementing my own function, which calls the _eth_phy_state() function from the Generic PHY

[ECOS] CDL include_files property

2008-12-04 Thread Jay Foster
I have a situation where I need to have some header files copied from their repository directory (package/current/include/) to the install tree (.../install/include/). I added these files using an include_files property in the package CDL file, but they don't get copied to the install tree. The

RE: [ECOS] Re: How to tell if a file is being compiled as part o f eCos?

2008-08-01 Thread Jay Foster
, 2008 9:33 AM To: [EMAIL PROTECTED] Subject: [ECOS] Re: How to tell if a file is being compiled as part of eCos? On 2008-08-01, Sergei Gavrikov [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2008 at 04:19:26PM +, Grant Edwards wrote: On 2008-07-31, Jay Foster [EMAIL PROTECTED] wrote: I've

RE: [ECOS] How to tell if a file is being compiled as part of eC os?

2008-07-31 Thread Jay Foster
I've seen many eCos packages use __ECOS (or sometimes __ECOS__) for this purpose. __ECOS is usually defined by the associated package CDL file in a ...CFLAGS_ADD option. You can grep for __ECOS in the sources and find examples. Jay -Original Message- From: Grant Edwards [mailto:[EMAIL

RE: [ECOS] IPv6 Link Local Address - Link ID?

2008-04-18 Thread Jay Foster
I believe that the KAME/FreeBSD stack internally hacks bytes 2 and 3 (counting the first byte as byte 0) of IPv6 link-local addresses to contain the associated interface index. The IPv6 standard defines these bytes to be always 0, and the FreeBSD stack automatically modifies them as necessary

RE: [ECOS] Re: Entropy gathering?

2008-04-03 Thread Jay Foster
A colleague implemented something like this by creating a function that could be called from various places at random times, such as the ethernet driver (ether_input()), serial port modem signal changes, etc. The function would read the HAL microsecond clock value and write the lower 16-bits to

RE: [ECOS] Re: Entropy gathering?

2008-04-03 Thread Jay Foster
? On 2008-04-03, Jay Foster [EMAIL PROTECTED] wrote: A colleague implemented something like this by creating a function that could be called from various places at random times, such as the ethernet driver (ether_input()), serial port modem signal changes, etc. The function would read the HAL

[ECOS] What Does CYGPGK_NET_FREEBSD_PPP Do?

2008-03-27 Thread Jay Foster
I am using the CYGPKG_PPP package. I also noticed the CYGPKG_NET_FREEBSD_PPP component/option in the FreeBSD network stack CDL file. I searched, but could find no references to this or any documentation. I searched the eCos mailing lists and it didn't show up anywhere. Does this option do

RE: [ECOS] BOOTP problem

2008-02-11 Thread Jay Foster
Shusharin [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 1:10 AM To: Andrew Lunn Cc: Jay Foster; ecos-discuss@ecos.sourceware.org Subject: Re: [ECOS] BOOTP problem В Пнд, 11/02/2008 в 09:45 +0100, Andrew Lunn пишет: On Mon, Feb 11, 2008 at 12:44:37PM +0600, Alexey Shusharin wrote

RE: [ECOS] DHCP over multiple interfaces

2008-01-23 Thread Jay Foster
I don't know about eCos, but I have solved a similar issue on Linux using the SIOCGIFCONF, SIOCGIFINDEX ioctls, and the setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE) option to bind a socket to a specific interface for the purposes of sending broadcasts. Jay -Original Message- From: Dave

[ECOS] Host Tools Build Problem - Fedora 8

2007-11-30 Thread Jay Foster
I'm trying to build the host tools (ecosconfig, et al) on a new install of Fedora 8 (x86_64). I am getting the following error when running configure: checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized. I tried adding

RE: [ECOS] Host Tools Build Problem - Fedora 8

2007-11-30 Thread Jay Foster
there doesn't seem to be a tclConfig.sh or tkConfig.sh file anywhere on the installation. Yes, I did install TCL and TK (version 8.4). Jay -Original Message- From: Gary Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 9:08 AM To: Jay Foster Cc: ecos-discuss@ecos.sourceware.org

[ECOS] CDL Interface Configury

2007-10-12 Thread Jay Foster
I'm having a problem using the cdl_interface CDL configury. I have a CDL package where I have: requires(CYGINT_XXX == 1) cdl_interface CYGINT_XXX { display } I (currently) do not have any implementations for this interface enabled. I would

[ECOS] BOOTP with BSD Stack

2007-03-20 Thread Jay Foster
I have been having problems getting BOOTP to work using the BSD IP stack. After perusing the code source, I discovered that there is a conditional compile statement (BOOTP_COMPAT) that prevents BOOTP from working. If I define BOOTP_COMPAT, then BOOTP works. Why is the conditional compile there,

RE: [ECOS] Add config keys to Set/Clear promiscuous mode to ether net device?

2007-02-02 Thread Jay Foster
This may also be done generically from the ethernet driver's xxx_eth_start() function. There is a 'flags' argument passed to the start function, but unfortunately, eCos makes no use of it. However, if CYGPKG_NET is included, the interface flags can be accessed using

[ECOS] ARM Linking Problem

2006-10-26 Thread Jay Foster
I am building eCos for an ARM9 target and am getting the following error message from the linker: Not enough room for program headers I have successfully built other applications (tests) and RedBoot for this same target with no problem. A search on Google found the following from

RE: [ECOS] ARM Linking Problem

2006-10-26 Thread Jay Foster
arm-elf-gcc 3.4.3. arm-elf-ld (GNU ld) 2.15. Jay -Original Message- From: Andrew Lunn [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 9:36 AM To: Jay Foster Cc: 'ecos-discuss@ecos.sourceware.org' Subject: Re: [ECOS] ARM Linking Problem On Thu, Oct 26, 2006 at 09:14:02AM

RE: [ECOS] ARM HAL Problems

2006-07-07 Thread Jay Foster
and flush the caches before I load my application. All works again. Jay -Original Message- From: Andrew Lunn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 3:15 PM To: Jay Foster Subject: Re: [ECOS] ARM HAL Problems On Thu, Jul 06, 2006 at 02:58:00PM -0700, Jay Foster wrote: I'm

[ECOS] FW: DHCP bind fails

2006-06-22 Thread Jay Foster
I'm using the BSD TCP/IP stack, and when my program calls init_all_network_interfaces(), it fails the bind() call in do_dhcp(). The errno value is EADDRNOTAVAIL (Can't assign requested address). I tracked this down to the following statement in in_pcbbind(): if

[ECOS] Generic PHY Driver Changes

2006-06-22 Thread Jay Foster
I'm developing a new ethernet driver for an MCU that has two ethernet interfaces. I would like to use the generic PHY driver, but have encountered the following problem: The two ethernet interfaces on the MCU share common MDC and MDIO signals, so both PHYs are on the same MII bus. The

[ECOS] Flash Driver Read/Write Alignment Question

2006-06-09 Thread Jay Foster
I am puzzling over how the eCos flash drivers are supposed to work when using 16-bit wide flash devices. I'm using an ARM architecture (ARM7TDMI, ARM940T), and the AMD AM29LV160 flash device connected in the 16-bit wide mode (CYGNUM_FLASH_WIDTH=16). Looking at the flash driver code, this defines

RE: [ECOS] Recommended Version of GCC

2006-05-12 Thread Jay Foster
For what it's worth, I too am using gcc 3.4.3 for ARM7TDMI. I switched from 3.2.1 because 3.2.1 had a bug that generated incorrect ARM code. I forget the details now. Inlining also works with 3.4.3. Jay -Original Message- From: Birahim Larou Fall [mailto:[EMAIL PROTECTED] Sent:

[ECOS] CDL Constraints Question

2006-03-29 Thread Jay Foster
I have a CDL package that contains a cdl_interface (call it CYGINT_X) and a boolean cdl_option (call it CYGOPT_X). The cdl_option is only active when the cdl_interface is implemented (active_if CYGINT_X). It is valid to have 0, 1, 2, or more implementors of CYGINT_X. For another cdl_option, I

RE: [ECOS] Problem found with flash driver

2006-03-02 Thread Jay Foster
I ran into a similar problem with the Samsung S3C45xx HAL. However, I fixed it by defining my own HAL_FLASH_CACHES_OFF(), HAL_FLASH_CACHES_ON() macros in my platform HAL, which overrides that defined in flash.h. The problem I had was that the HAL_FLASH_CACHES_OFF() macro in flash.h were

RE: [ECOS] Re: ISR not causing an DSR in some rare conditions

2006-01-23 Thread Jay Foster
PROTECTED] Sent: Monday, January 23, 2006 2:07 AM To: [EMAIL PROTECTED] Subject: Re: [ECOS] Re: ISR not causing an DSR in some rare conditions Jay Foster [EMAIL PROTECTED] writes: I've re-examined this patch, and have noticed that it does not 'exactly' result in the same operation as the original code

[ECOS] DSR Scheduling Problem

2006-01-13 Thread Jay Foster
I am experiencing a problem with a serial driver that I'm developing. It uses separate RX and TX ISRs and DSRs. The RX and TX ISRs just schedule the corresponding DSR to run. The test begins by transmitting data, which is looped back to the receiver. It starts out with: TX ISR - TX DSR

[ECOS] Patch AMD Flash Driver Problem with CYGNUM_FLASH_16AS8

2005-12-08 Thread Jay Foster
Attached is a patch that accomplishes this. Jay -Original Message- From: Jay Foster [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 2:38 PM To: ecos-discuss@ecos.sourceware.org Subject: RE: [ECOS] AMD Flash Driver Problem with CYGNUM_FLASH_16AS8 I'm putting forward

RE: [ECOS] AMD Flash Driver Problem with CYGNUM_FLASH_16AS8

2005-12-07 Thread Jay Foster
-Original Message- From: Jay Foster [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 2:11 PM To: ecos-discuss@ecos.sourceware.org Cc: Jay Foster Subject: [ECOS] AMD Flash Driver Problem with CYGNUM_FLASH_16AS8 I have several targets using the AMD flash driver with the following devices

RE: [ECOS] Possible sockets/fd race condition

2005-11-16 Thread Jay Foster
Do you have ASSERTions turned on. This could help identify a problem earlier. I have seen other similar kinds of problems (with assertions turned on), but have not spent any time trying to resolve them yet. Assertions such as: eCos panic: cyg_fp_free() will close fd eCos panic: sbdrop eCos