Re: [ECOS] How to create a GPIO driver

2013-03-10 Thread Andrew Lunn
On Sun, Mar 10, 2013 at 11:19:17AM -0700, EnneGi wrote: Hi, I must create a GPIO driver for my lpc1766 board. I try to search some source example for do it, but for gpio drivers I don't find anything. Does anybody tell me how I do it please? For one example, take a look at the end of:

Re: [ECOS] library uses type size_t but my build can not resolve it

2012-12-18 Thread Andrew Lunn
On Tue, Dec 18, 2012 at 06:47:29PM +0100, Bob Brusa wrote: Hi, I built a library for an arm-processor (AT91SAM7s256) based system. String routines and many others use the type size_t. But all such functions I reference seem to have a problem with this type, because its defined nowhere.

Re: [ECOS] Speed up TFTP download time in RedBoot

2012-03-19 Thread Andrew Lunn
On Mon, Mar 19, 2012 at 06:05:36PM +0200, Elad Yosef wrote: Hi, I'm trying to speed up the TFTP download time in the Redboot. I have tried to change the following params; CYGNUM_REDBOOT_NETWORKING_MAX_PKTBUF - had no effect CYGNUM_REDBOOT_GETC_BUFFER - I have increased it to 10K but still

Re: [ECOS] Disable IPv6 at startup?

2012-02-16 Thread Andrew Lunn
On Thu, Feb 16, 2012 at 08:06:19PM +, 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 respond visibly to any IPv4 packets (AFAICT). However, for IPv6, there

Re: [ECOS] CYGINT_IO_ETH_MULTICAST

2012-02-09 Thread Andrew Lunn
On Fri, Feb 10, 2012 at 02:28:23PM +0800, cyl cyl wrote: I want to add ipv6 support on my ecos board. It requires CYGINT_IO_ETH_MULTICAST , but I can't find it in 'common ethernet support' of 'I/O sub-system' , can anyone help me? Thanks. In order to support IPV6, the ethernet interface you

Re: [ECOS] Why is IPv6 in RedBoot not possible?

2012-01-23 Thread Andrew Lunn
question mark is RedBoot. I need to either add IPv6 support to RedBoot or make some basic changes to the way our product works (specifically how the application is updated in the field). Many years back Andrew Lunn stated that IPv6 support in RedBoot was not possibleP From: Andrew

Re: [ECOS] Re: How to add multicast route?

2011-03-31 Thread Andrew Lunn
Hi Grant Adding the 224.0.0.0/24 route seems to work if I first add a default route. I've not looked at the code, i'm just speculating here I've seen cases where a unicast subnet route is rejected if there is no route which leads to the gateway. It could be your multicast route is being

Re: [ECOS] Re: Why does sending multicast UDP require a gateway?

2011-03-30 Thread Andrew Lunn
It's being sent via a socket that's bound to a specific interface, so I wouldn't think that would be a problem. Ah, O.K. Maybe try it anyway? I can see that if you're sending from an unbound socket, you might want a way to specify which interface to use for sending multicast packets. But

Re: [ECOS] Why does sending multicast UDP require a gateway?

2011-03-29 Thread Andrew Lunn
On Tue, Mar 29, 2011 at 10:33:09PM +, Grant Edwards wrote: Somebody I work with has spent the last three days trying to send UDP multicast packets using eCos and the FreeBSD network stack. After quite a bit of trial-and-error we've discovered that you can't send UDP multicast packets

Re: [ECOS] Any problem ?

2011-03-25 Thread Andrew Lunn
On Fri, Mar 25, 2011 at 09:24:15AM -0600, Gary Thomas wrote: On 03/25/2011 09:17 AM, ratheesh kannoth wrote: Is there any prob with below code segment in eCos ? { fd_set rd_fds; FD_ZERO(rd_fds); while (1) {

Re: [ECOS] tftp server:re-use of loop iterator in nested loop when CYGSEM_NET_TFTPD_MULTITHREADED=1

2011-03-22 Thread Andrew Lunn
On Tue, Mar 22, 2011 at 02:05:19PM +0100, J?rgen Lambrecht wrote: Hello, We were looking at the code ecos/packages/net/common/current/src/tftp_server.c. (ecos 3.x) In the function 'tftpd_server(cyg_addrword_t p)', lines 647-668, the iterator 'i' is used in 2 nested for loops: for

Re: [ECOS] cyg_flash_program_mask

2011-02-15 Thread Andrew Lunn
If I understand correctly, the cyg_flash_program() operation erases before program such that the resulting bit pattern in the Flash always represents the input bit pattern exactly, instead of being the result of an and-mask operation. I think you are wrong. Take a look at the code.

Re: [ECOS] cyg_flash_program_mask

2011-02-15 Thread Andrew Lunn
On Tue, Feb 15, 2011 at 12:18:14PM -0500, Tom Schouten wrote: On 02/15/2011 11:45 AM, Andrew Lunn wrote: If I understand correctly, the cyg_flash_program() operation erases before program such that the resulting bit pattern in the Flash always represents the input bit pattern exactly, instead

Re: [ECOS] cyg_flash_program_mask

2011-02-15 Thread Andrew Lunn
On Tue, Feb 15, 2011 at 12:47:49PM -0600, Andrew Dyer wrote: You have to be very careful doing this. At least some NAND flash parts have restrictions on how many 'partial page program' cycles you can do. For the part I am using, the restriction is 4 for normal memory pages, and 8 for the one

Re: [ECOS] [ecos] AT91 SPI Problems (CS / SPI Modes)

2010-12-13 Thread Andrew Lunn
On Mon, Dec 13, 2010 at 04:10:46PM +0100, ingo.kn...@porsche-engineering.de wrote: Hello all, We're having issues with ecos on two identical custom boards with an AT91SAM7X-512 chip, similar to the AT91SAM7XEK Eval board. Additionaly, there're MCP2515 CAN Controller and MCP23S08

Re: [ECOS] Timing differences before / after starting scheduler

2010-08-22 Thread Andrew Lunn
On Sun, Aug 22, 2010 at 03:45:59PM +0200, Tim Jaacks wrote: Hello everybody, I have a problem concering the eCos scheduler. Perhaps I just have not understood all the details of the eCos kernel about scheduling. But I have tried everything I could imagine, without success, so I hope someone

Re: [ECOS] Timing differences before / after starting scheduler

2010-08-22 Thread Andrew Lunn
On Sun, Aug 22, 2010 at 04:46:30PM +0200, Stanislav Meduna wrote: On 22.08.2010 15:45, Tim Jaacks wrote: I am using eCos on an LPC2378, running at 72MHz. Some driver I have implemented reads out eight double words from a CPU FIFO, using eight equal subsequent lines of C-code. Which

Re: [ECOS] Timing differences before / after starting scheduler

2010-08-22 Thread Andrew Lunn
It's the FIFO of the SD/MMC interface, which is 16 DWORDs long. I am polling for FIFO_HALF_FULL and then read out 8 DWORDs. I am running the interface with a 9MHz clock, so the data comes in with 36Mbps. The SD card always sends a complete block of 512 bytes, so I have to read the whole block

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

2010-07-28 Thread Andrew Lunn
On Wed, Jul 28, 2010 at 07:56:41PM +, Grant Edwards wrote: On 2010-07-28, Grant Edwards grant.b.edwa...@gmail.com wrote: On 2010-07-27, Grant Edwards grant.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

Re: [ECOS] Replacing CVS - decision time: part 2

2010-05-01 Thread Andrew Lunn
Hi Alex Rewriting history is IMHO very very dangerous and defeats the purpose of a RCS. That purpose is after all to track changes to your code. IMHO this ability to change history is more about protecting an individual's vanity than anything else. I guess this is a emacs vs vi type of

Re: [ECOS] Type of event in eCos instrumentation record

2010-03-28 Thread Andrew Lunn
On Sun, Mar 28, 2010 at 03:48:50PM +0900, Nodir Kodirov wrote: Hello Mr. Yuriy! I was using eCos kernel instrumentation feature to analyze behavior of my application. I tried the sample given at http://ecos.sourceware.org/docs-latest/user-guide/kernel-instrumentation.html where with these

Re: [ECOS] AT91 I2C driver

2009-10-28 Thread Andrew Lunn
On Wed, Oct 28, 2009 at 11:27:36AM +, Steven Clugston wrote: Is anybody out there interested in having/testing an AT91 I2C driver? I'm currently having a stab at writing one using the lpc2xxx one as a reference, although I'm not sure if I'll actually have time to see it through to

Re: [ECOS] Running code from on-chip flash

2009-09-30 Thread Andrew Lunn
Yes, its true. You will not be able to run tricks like self-modifying code that resides in flash. You would have to move such a routine to RAM and execute it there. eCos FLASH routines are already magically in RAM. Also the AT91SAM7 devices have a flash controller which handles most of the

Re: [ECOS] Running code from on-chip flash

2009-09-27 Thread Andrew Lunn
On Sun, Sep 27, 2009 at 08:57:59AM +0530, Mandeep Sandhu wrote: Hi all, I'm going to be using a real hardware for the first time (with ECOS). The h/w is the Atmel AT91SAM7X512 SoC. In order to save RAM, i'll be running the code from the on-chip flash itself (512KB). Now is it true that

Re: [ECOS] ARM7 ADC drivers - any progress?

2009-09-01 Thread Andrew Lunn
I'm slightly confused by a couple of things, perhaps someone who is familiar with the AT91 hal code might be able to clearup. The HAL can get its tick from two different sources. Some devices, ag the AT91SAM, have a PIT, programmable Interrupt Timer. All AT91 have TC, Timer Counter. There is a

Re: [ECOS] NAND framework

2009-08-21 Thread Andrew Lunn
I would like a few days to polish up the code a bit. Whom should I contact when I am done? The ecos-patches list, even if all you do is say there is another release on your website. I took a very quick look last night at some files. Some copyright headers need adding, others correcting. Also,

[ECOS] NAND framework

2009-08-19 Thread Andrew Lunn
Hi Folks Its time to address the issue of which NAND framework we will include into eCos. This has been dragging on for a while, far too long, and is hindering the adoption of NAND in eCos. So three of the most independent eCos maintainers, John Dallaway, Gary Thomas and myself, have come to an

Re: [ECOS] AT91 GPIO read problem

2009-08-18 Thread Andrew Lunn
On Tue, Aug 18, 2009 at 03:36:53PM +0100, Steven Clugston wrote: I'm fairly new to AT91 and have been trying to use the platform macros to setup and read some GPIOs on an Olimex AT91SAM7S256 based board. They provide their board pre-flashed with a demo program (no source) and you can press

Re: [ECOS] idle_thread_loops with arm-eabi-gcc

2009-08-13 Thread Andrew Lunn
On Wed, Aug 12, 2009 at 09:08:54AM +0200, Heidet, Christophe wrote: Hello, I have a strange problem with arm-eabi-gcc. I use the version from ecos website : arm-eabi-gcc V4.3.2 If I build with the -O2 optimization flag, I can't use the cpuload package, because the idle_thread_loops never

Re: [ECOS] Re: Problems initializing eth0 interface

2009-07-15 Thread Andrew Lunn
Try setting a valid MAC address. The first byte should be 0x00 and the others you are free to choose. Eg 00:ab:cd:ef:01:23 would be reasonaby safe. Make sure the address doesn't conflict with anything else in your network. http://en.wikipedia.org/wiki/MAC_address If you are making up your

Re: [ECOS] Problems initializing eth0 interface

2009-07-14 Thread Andrew Lunn
On Mon, Jul 13, 2009 at 04:40:34PM +0200, Bruno Ricci wrote: Hi all, I'm trying to build eCos to be run on VirtualBox, which has an AMD PCNET network card. I made an i386 target with i82559 and the net package, and I removed: -CYGPKG_DEVS_ETH_INTEL_I82559 -CYGPKG_DEVS_ETH_I386_PC_I82559

Re: [ECOS] Advice on hardware choice

2009-07-14 Thread Andrew Lunn
If I had the money to buy a package from eCosCentric, I'd just go for the AT91SAM9260, but I can't justify it for a hobby project. Do any of the stock packages included in the distribution come close to the above features? Take a look around. There are some partial ports available, eg

Re: [ECOS] ecos memory footprint

2009-07-14 Thread Andrew Lunn
On Tue, Jul 14, 2009 at 06:47:48PM +0530, Mandeep Sandhu wrote: After a lot of help from you all, me the n00b, finally got to compile my first hello world app for the at91sam7ex board running ecos. Here's the o/p of arm-eabi-size for my hello app: ~/ecos/ecos-3.0/examples$ arm-eabi-size

Re: [ECOS] Installing Redboot on a pendrive

2009-07-11 Thread Andrew Lunn
On Sat, Jul 11, 2009 at 10:41:17AM +0200, Stanislav Meduna wrote: Alessio Bianchi wrote: Hi, I've been trying to create a pendrive (to boot off a regular PC) with Redboot, but unfortunately without much success. AFAIK on a PC the eCos only supports booting RedBoot from a floppy. If the

Re: [ECOS] setting up IP address for my LPC2214 board

2009-07-11 Thread Andrew Lunn
On Sat, Jul 11, 2009 at 02:15:28AM -0700, venny vennela wrote: Hi, Am trying to configure Ethernet my LPC 2214 board. am not able to set it up.. RedBoot fconfig -i Initialize non-volatile configuration - continue (y/n)? y Run script at boot: false Use BOOTP for network configuration:

Re: [ECOS] How to write a complicated bootloader?

2009-07-11 Thread Andrew Lunn
On Sat, Jul 11, 2009 at 11:17:50AM +0200, Stanislav Meduna wrote: Hi, I have a hardware with a complicated ethernet device that is not usable in a polled mode (or at least I don't have enough documentation to be able to use it in such a way). There is an OEM driver needing all kind of stuff

Re: [ECOS] setting up IP address for my LPC2214 board

2009-07-11 Thread Andrew Lunn
On Sat, Jul 11, 2009 at 04:21:30AM -0700, venny vennela wrote: Thanks for your quick reply.. Iam assuming that the BOOTP server is running.// have downloaded BOOTP server and started..? Can you please provide me steps to check that BOOTP is running ? Etherreal. http://www.ethereal.com/

Re: [ECOS] Installing Redboot on a pendrive

2009-07-11 Thread Andrew Lunn
On Sat, Jul 11, 2009 at 01:44:14PM +0200, Alessio Bianchi wrote: On 07/11/2009 10:41 AM, Stanislav Meduna wrote: Alessio Bianchi wrote: Hi, I've been trying to create a pendrive (to boot off a regular PC) with Redboot, but unfortunately without much success. AFAIK on a PC the eCos only

Re: [ECOS] Installing Redboot on a pendrive

2009-07-11 Thread Andrew Lunn
Another question, what driver support is offered by ecos? I need to put an http server on it, and I noticed that there is an available package, but I was wondering if my network card would be supported. I have a Broadcom BCM5906M, perfectly supported by the linux kernel, but I can use several

Re: [ECOS] JFFS2 alternative

2009-06-30 Thread Andrew Lunn
On Tue, Jun 30, 2009 at 08:47:25AM +0200, ?yvind Harboe wrote: JFFS2 is fine for smaller file systems, but it breaks down completely on large file systems. Does anyone know of viable eCos alternatives to JFFS2? LogFS is GPL v2 without exception, so that would make the application linked

Re: [ECOS] Does /devs/eth/arm/at91 work for SAM9 parts?

2009-06-27 Thread Andrew Lunn
On Sat, Jun 27, 2009 at 04:40:24PM +, Grant Edwards wrote: There appears to be plenty of support for Atmel's SAM7 (ARM7TDMI) series of parts, and I'm trying to find out how much work it would be to support a SAM9 part (ARM926EJ-S). The SAM9 parts supposedly have the same programming model

Re: [ECOS] i made progresses but now got confused.

2009-06-26 Thread Andrew Lunn
On Fri, Jun 26, 2009 at 03:29:58PM +0800, wb ning wrote: Hi, all i used at91sam7s. Since i can't run the examples in the ecos examples directory. That means when i compile and link and got the hello.elf and then download it to flash. After restart the board, no message displayed on the

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

2009-06-16 Thread Andrew Lunn
On Mon, Jun 15, 2009 at 05:41:54PM +, Grant Edwards wrote: I've been asked by one of my internal customers how to send a UDP broadcast packet to IP address 255.255.255.255. Hi Grant If you have a debugger handy, try putting a break point here: src/sys/netinet/in_pcb.c int in_pcbladdr(inp,

Re: [ECOS] eCos on STR9 ?

2009-06-16 Thread Andrew Lunn
What's wrong with ST processors that they aren't so widely supported compering to Atmel product? Situation in other small OS like FreeRTOS is only a bit better. I happened to get two AT91SAM7 development boards for free and found it an interesting SoC. So i ported eCos for fun. If i had

Re: [ECOS] PCI wireless card

2009-06-10 Thread Andrew Lunn
On Wed, Jun 10, 2009 at 08:15:53AM +0200, Patrick Rittiner wrote: hello, I ve a question. Are there any drivers for an wireless card in eCos?. I have a soekris 4801 board on which ecos is running. Now i need to use the linksys wmp54g-eu PCI wireless card to use with it. there is a open

Re: [ECOS] How can i know about the MAINTAINERS

2009-06-09 Thread Andrew Lunn
On Tue, Jun 09, 2009 at 01:50:30PM +0530, vibi sreenivasan wrote: hi, How can one know about the maintainers of different sections of ecos. I have checked for MAINTAINERS FILE in source, but didnt find any. There is no clear definition of who maintains what. Best

Re: [ECOS] Re: NAND on STM32?

2009-06-09 Thread Andrew Lunn
Hi Simon, Sorry to hijack your thread... I have a new code drop in preparation - several fixes and tweaks, and incorporating a lot of the feedback I've received - which I am hoping to push out (to the bugzilla ticket) within the next week. Ross, are you just going to do a code drop with

Re: [ECOS] why redboot template of at91sam7sek is wrong?

2009-06-08 Thread Andrew Lunn
On Mon, Jun 08, 2009 at 05:19:48PM +0800, wb ning wrote: Hello all, i just type the command ecosconfig new at91sam7sek redboot, but the generated ecos.ecc has 1 conflict. The messages are following: U CYGHWR_HAL_ARM_AT91_FIQ, new inferred value 1 U CYGHWR_HAL_ARM_AT91, new inferred value

Re: [ECOS] eCos contributions and development projects

2009-06-06 Thread Andrew Lunn
Especially what the eCos community needs is good eCos wiki. It's pity that community has higly qualificated and talented developers (which usual are the very busy to be the teachers), but has not the freelance tech-writes, so, eCos wiki is just a dream for the most newcomers. The main goal

Re: [ECOS] ea2468 Ethernet overrun

2009-06-03 Thread Andrew Lunn
On Wed, Jun 03, 2009 at 05:43:04PM +0400, Nikolay Marusov wrote: Hello! I am playing with Embedded Artists LPC2468-16 OEM Board. Has anybody encounetered with a problem of TX overrun while transmitting Ethernet packets? Device works pretty well at 10Mbit/s but regullarly drops packet when

Re: [ECOS] elf to binary conversion problem

2009-05-28 Thread Andrew Lunn
On Thu, May 28, 2009 at 10:01:01AM +0300, Max Salov wrote: Hi, I've made a port of eCos-3.0 to stm3210b eval board by stripping some elements off the stm3210e port. It builds successfully. With minimal set of packages (libc_stdio, libc_stdlib, libc_string, libc_i18n) hello world

Re: [ECOS] elf to binary conversion problem

2009-05-28 Thread Andrew Lunn
Sections: Idx Name Size VMA LMA File off Algn 0 .debug_aranges 0978 1508 2**3 CONTENTS, READONLY, DEBUGGING 1 .debug_pubnames 1302 1e80 2**0 CONTENTS, READONLY,

Re: [ECOS] how to configure eCos small enough to run on at91sam7s64

2009-05-27 Thread Andrew Lunn
On Wed, May 27, 2009 at 02:09:59PM +0800, wb ning wrote: Hello all, I am only start to use eCos. And now i have setup my own environment, that's cygwin + eCos. Next Step i should configure it using Configuration Tools.exe. There is a template of Atmel AT91SAM7SEK evaluation board came with

Re: [ECOS] Using C++ std streams (fstream, ofstream and ifstream) in eCos.

2009-05-27 Thread Andrew Lunn
On Tue, May 26, 2009 at 11:16:43PM -0700, grinder213 wrote: From my previous post.. I'm using the eCoscentric release of 2.98. on a ATMEL AT91SAM9260-EK. So I guess the std lib should be fully supported in my version of the code!?!? You need to ask eCosCentric that, not us. Maybe your

[ECOS] Re: NAND YAFFS

2009-05-18 Thread Andrew Lunn
Hi Folks Last week a conversation started on the ecos maintainers list about eCosCentric contributing their NAND flash framework. The emails are archived at: http://ecos.sourceware.org/ml/ecos-maintainers/2009-05/ and take a look at the thread NAND YAFFS, started by Ross Younger. We now have

Re: [ECOS] Idle thread exit ???hook???

2009-05-13 Thread Andrew Lunn
On Wed, May 13, 2009 at 05:40:56AM -0700, panduroDk wrote: Hi I???m trying to measure my CPU load by using a GPIO pin and a voltmeter, and now I???m looking for some kind of Idle thread exit ???hook??? but I can???t seem to find it, dose eCos provide such a functionality. The plan Is to

Re: [ECOS] SIGURG, SIGIO and BSD stack

2009-05-11 Thread Andrew Lunn
On Mon, May 11, 2009 at 02:16:31PM +0400, Alexander Aganichev wrote: Hello! I wonder what was the intension to hide sending of SIGURG signal under #ifndef __ECOS in the BSD stack? I also see that sending of SIGIO signal is not present in BSD stack and hidden in OpenBSD stack. I have a

Re: [ECOS] eCos 3.0 and newlib in ARM toolchain

2009-05-11 Thread Andrew Lunn
Does it means newlib has been dropped from the recommended toolchain? Does it means that if I want to use newlib I will have to assemble and compile my own toolset? Which are the advantages of using glibc for embedded development when not using Linux? newlib was never used by eCos. It was

Re: [ECOS] raw output to serial port and dataflash + legacy API questions

2009-05-11 Thread Andrew Lunn
For example, you write this code in some .c file: __externC cyg_spi_at91_device_t spi_dataflash_dev0; CYG_DATAFLASH_FLASH_DRIVER( cyg_eb55_dataflash, spi_dataflash_dev0, 0x0800, 0,

Re: [ECOS] raw output to serial port and dataflash + legacy API questions

2009-05-11 Thread Andrew Lunn
If something is not referenced, the linker will throw it away. It is unwanted bloat. The variable that is not referenced is marked as __attribute__((used)). I _think_ this just stops the warning. The symbol itself is not changed. This attribute is most often used for parameters passed

Re: [ECOS] implementation of my personal TCP/IP stack

2009-05-06 Thread Andrew Lunn
Since this has already been done 3 times, it should be straight forward for you. Isn't it four actually? Redboot? The interface is slightly different, polled rather than interrupt driven, but its not that different. Andrew -- Before posting, please read the FAQ:

Re: [ECOS] Problem with pc target and floppy/grub

2009-05-04 Thread Andrew Lunn
On Mon, May 04, 2009 at 06:05:48PM +0200, Daniel Saltmann wrote: Hello, I want to use eCos on an i386 target booting from floppy or grub. There are no problems installing ecos or creating a floppy or grub image. The system boots from floppy but then the screen turns black. I tried

Re: [ECOS] Re: Synthetic target on linux x86_64 host

2009-05-03 Thread Andrew Lunn
On Sun, May 03, 2009 at 12:44:13AM +0300, Tarmo Kuuse wrote: Andrew Lunn wrote: Can synthetic target even be built with native x86_64 tools? I don't think so. Synth calls kernel system calls directly, using assembly language. I expect this part needs re-writing into 64 bit code

Re: [ECOS] Synthetic target on linux x86_64 host

2009-05-02 Thread Andrew Lunn
Can synthetic target even be built with native x86_64 tools? I don't think so. Synth calls kernel system calls directly, using assembly language. I expect this part needs re-writing into 64 bit code. Also, eCos is very much used on 32 bit systems. I don't know of anybody using it on 64 bit

Re: [ECOS] Re: Re[ECOS] dboot networking problem

2009-04-28 Thread Andrew Lunn
On Tue, Apr 28, 2009 at 03:11:05AM -0700, rd.asha wrote: Hi, I am finding same issue on iMX27 processor and am using LTIB Release 3. I found that it is not dependent on size of file being downloaded. This issue is observed when http load is invoked twice in source code flow. If http load

Re: [ECOS] eCos on MPC8313

2009-04-21 Thread Andrew Lunn
Did somebody make a comparison of the network performance of eCos and Linux? In general, eCos is slower. eCos has different aims to Linux. eCos is an RTOS, and so does not want the TCP/IP stack, which by definition is none real time, from upsetting the real time behaviour. So eCos tries to do

Re: [ECOS] 8MB flash

2009-04-17 Thread Andrew Lunn
On Thu, Apr 16, 2009 at 11:06:48PM -0400, kee...@mrt-communication.com wrote: Dear ALL, Can anyone guide me to write a driver for 8MB NOR flash of EON in ecos for i386 processor. or some site where can i find some help regarding this. We need a bit more information first. Exactly which device

Re: [ECOS] Nor flash driver

2009-04-17 Thread Andrew Lunn
On Fri, Apr 17, 2009 at 04:46:31AM -0400, kee...@mrt-communication.com wrote: Dear all, I have a driver for 4MB NOR flash ,I want to ungrade that code for 8MB NOR flash.I have seen through the datasheet ,the working of both the flash are same(erase steps,ID steps)as they are both EON

Re: [ECOS] printf and diag_printf go to nowhere

2009-04-15 Thread Andrew Lunn
On Wed, Apr 15, 2009 at 09:38:39AM +0200, Edgar Grimberg wrote: Robert Brusa wrote: This little serial example program. Compiled, linked downloaded with BDI all ok. But I can not start it with BDI/telnet go 0. Hell and death - just before I did just this! Are you sure that execution is

Re: [ECOS] ECOS 2.0 build help: mips_size.ecc: error

2009-04-11 Thread Andrew Lunn
On Fri, Apr 10, 2009 at 03:52:06PM -0700, netadmin @dslextreme.com wrote: Hi, I am trying to follow the instruction from Netgear GS108T switch to build its firmware. It is MIPS based chip.? I followed the instruction and download and installed ECOS. Then I realized the original firmware was

Re: [ECOS] how to print timestamp in ecos

2009-04-03 Thread Andrew Lunn
On Fri, Apr 03, 2009 at 02:49:11AM -0700, gaurang wrote: Hi, Any test code of wallclock and how to make makefile.I insert Wallclock I/O package (CYGPKG_IO_WALLCLOCK) and the ISO C date and time package (CYGPKG_LIBC_TIME) in my ecos and I use time() function,but I am not getting

Re: [ECOS] Timer 5 channel 3 is not working in ecos

2009-04-02 Thread Andrew Lunn
On Thu, Apr 02, 2009 at 07:27:56AM -0700, gaurang wrote: Hi, I am using stm32 microcontroller Any particular one? Or does it happen with all the stm32 microcontrollers? Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list

Re: [ECOS] Default Network Interface Card support in examples of book Anthony J. Massa - eCos S/W dev

2009-03-30 Thread Andrew Lunn
make[1]: *** [src/hal_misc.o.d] Error 1 make[1]: *** Waiting for unfinished jobs cc1.exe: Invalid option `-finline-limit=7000' It looks like you need to upgrade your compiler. It does not recognize this compiler option, which is should do. So i guess you

Re: [ECOS] Problem with multiple threads

2009-03-30 Thread Andrew Lunn
On Mon, Mar 30, 2009 at 10:01:09PM +0530, Himanshu Patel wrote: Hi Andrew, We have selected CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS option. So printf should thread safe. Right? Sure it is thread safe. However to be thread safe it uses mutex's which are a form of synchronization. Andrew

Re: [ECOS] Endianness of Linux synthetic target

2009-03-27 Thread Andrew Lunn
On Fri, Mar 27, 2009 at 12:12:56PM +0200, Tarmo Kuuse wrote: Hi! When building and running Linux synthetic target on a PC, does eCos use little endian like the host (x86)? Yes. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list

Re: [ECOS] Re: Endianness of Linux synthetic target

2009-03-27 Thread Andrew Lunn
On Fri, Mar 27, 2009 at 02:37:24PM +0200, Tarmo Kuuse wrote: Andrew Lunn wrote: On Fri, Mar 27, 2009 at 12:12:56PM +0200, Tarmo Kuuse wrote: When building and running Linux synthetic target on a PC, does eCos use little endian like the host (x86)? Yes. OK. Today I learned something

Re: [ECOS] running ecos application on redboot

2009-03-27 Thread Andrew Lunn
On Fri, Mar 27, 2009 at 03:28:09PM +0200, Atilay Yilmaz wrote: Hi, I have been trying running an ecos application in elf format. whether or not I set address, it doesn't work: RAM: 0x2080-0x2400, [0x2081fd80-0x23fed000] available This tells you what is wrong... FLASH: 0x3000 -

Re: [ECOS] TUI: PDCurses for eCOS

2009-03-24 Thread Andrew Lunn
I do not know much about this remark from PDCurses's README 8 The core package is in the public domain, but small portions of PDCurses are subject to copyright under various licenses. Each directory contains a README file, with a section titled Distribution Status which describes the

Re: [ECOS] networking on redboot

2009-03-13 Thread Andrew Lunn
Hi again, finally I compiled driver for SMSC91C111 successfully. I also modified \ecos\packages\devs\eth\arm\ertec\current\include\devs_eth_arm_ertec.inl and \ecos\packages\devs\eth\arm\ertec\current\cdl\ertec_eth_drivers.cdl files to define SMSC91C111 definitions/functions for ertec board.

Re: [ECOS] networking on redboot

2009-03-13 Thread Andrew Lunn
Hi Andrew, what do you mean by 'special one for your target'? I don't know what this function is, in fact. the comments says it reads bank register. the code is: Maybe it is time you started reading the data sheet for your hardware and the ethernet chipset. Andrew -- Before posting,

Re: [ECOS] [ecos]hanger in printf

2009-02-27 Thread Andrew Lunn
On Fri, Feb 27, 2009 at 11:58:05AM +0100, Robert Brusa wrote: Hi Following a recent update (Jan 09) of ecos from V2.0 to the unstable version and migration to the new gnutools arm-eabi of codesourcery, I run into a hanger of a printf statement: void IsInitMode(void) { static bool

Re: [ECOS] Some thoughts on ADC

2009-02-27 Thread Andrew Lunn
Also, what do you think of a synth ADC driver? It would probably only provide constant or random data on it's channels, but may be useful for testing. Any ideas? Saw tooth or sine waves should not be too hard. If you want to go a little further, with a bit of work it would be possible to

Re: [ECOS] Some thoughts on ADC

2009-02-27 Thread Andrew Lunn
On Fri, Feb 27, 2009 at 02:17:34PM +0100, Simon Kallweit wrote: Andrew Lunn wrote: Also, what do you think of a synth ADC driver? It would probably only provide constant or random data on it's channels, but may be useful for testing. Any ideas? Saw tooth or sine waves should

Re: [ECOS] IXP435 usb register access issue

2009-02-24 Thread Andrew Lunn
On Tue, Feb 24, 2009 at 04:25:46PM -0800, mukund jampala wrote: Hi Guys, I am using an IXP435 and trying to program the USB controller on it. The environment is Redboot. In the current redboot, I am NOT able to access the USB base address i.e. 0xCD00. Actually, I am not able to

Re: [ECOS] Testing eCos 3.0 beta 1 on pc_i82559

2009-02-23 Thread Andrew Lunn
On Mon, Feb 23, 2009 at 10:33:35AM +, John Dallaway wrote: I will be testing eCos 3.0 beta 1 on I will be testing synth on Debian unstable. I will also be testing some of the AT91 targets. I've already done simple compile tests using templates default, minimal and kernel. Everything

Re: [ECOS] openocd - Unable to set thumb software breakpoint at address

2009-02-17 Thread Andrew Lunn
On Wed, Feb 18, 2009 at 12:51:27AM +0100, Szentirmai Gergely wrote: Hi I have problems with debugging a AT91SAM7A3 It says: Unable to set thumb software breakpoint at address 00101ad8 Is 0x00101ad8 a flash address? If so, you want to be using hardware breakpoints. Andrew -- Before

Re: [ECOS] Debug eCos kernel

2009-02-11 Thread Andrew Lunn
On Wed, Feb 11, 2009 at 10:54:53AM +0100, Deroo Stijn wrote: Andrew, I enabled CYGIMPL_TRACE_SPLX, but I can't compile ecos correctly. It's giving me following error. I doubt if the right place to enable CYGIMPL_TRACE_SPLX is in param.h?

Re: [ECOS] Debug eCos kernel

2009-02-10 Thread Andrew Lunn
On Tue, Feb 10, 2009 at 04:43:01PM +0100, Deroo Stijn wrote: Ok, I enabled CYGPKG_INFRA_DEBUG and can see a lot of extra info, but I'm still not able to see what I need. I looked further into http://ecos.sourceware.org/docs-latest/user-guide/debugging-techniques.html but don't see how this

Re: [ECOS] Debug eCos kernel

2009-02-09 Thread Andrew Lunn
On Mon, Feb 09, 2009 at 09:40:02AM -0700, Gary Thomas wrote: Deroo Stijn wrote: Hi, I tried to debug the eCOS kernel by enabling the flag CYGIMPL_TRACE_SPLX as mentioned in http://www.mail-archive.com/ecos-discuss@ecos.sourceware.org/msg06087.html However, I couldn't find the

Re: [ECOS] Debug eCos kernel

2009-02-09 Thread Andrew Lunn
On Tue, Feb 10, 2009 at 08:18:56AM +0100, Deroo Stijn wrote: Ok, sorry about that, but I want indeed investigate the mutual exclusion to see where it goes wrong for my application. So I still don't know how to enable these debugging? Are you trying to debug problems with the eCos kernel, or

Re: [ECOS] how to handle missed interrupt issue?

2009-02-05 Thread Andrew Lunn
Now I want implement function to change circular buffer pointer, but if I do such simple thing: cyg_drv_isr_lock() change pointer cyg_drv_isr_unlock() there is probability that I lost interrupt between cyg_drv_isr_lock() and cyg_drv_isr_unlock(), You should not loose the interrupt. The

Re: [ECOS] FAT32 over NAND

2009-01-20 Thread Andrew Lunn
On Tue, Jan 20, 2009 at 07:38:02PM +0530, Himanshu Patel wrote: Hi, We want to have FAT32 file system over NAND flash. Is it possible? What approach should we take for developing the same? If you look back in the archive, last year there was some work to get YAFFS on NAND working. I would

Re: [ECOS] FAT32 over NAND

2009-01-20 Thread Andrew Lunn
On Tue, Jan 20, 2009 at 08:41:35PM +0530, Himanshu Patel wrote: Okay...Thanks... YAFFS2 is not a possible option...As device should be able to access from PC running Windows also through mass storage interface... Can we make use of NFTL (NAND flash translation layer) which Linux is

Re: [ECOS] Problem with precompiled Cygwin arm-eabi toolchain

2009-01-17 Thread Andrew Lunn
On Fri, Jan 16, 2009 at 11:48:17PM +0100, Uwe Kindler wrote: Hello, could anybody successful compile an eCos image for ARM7 architecture with the new precompiled arm-eabi toolchain for Cygwin? If I use the arm-eabi toolchain the build process stops at the first C source file

Re: [ECOS] printf not working in ARM simulator

2009-01-10 Thread Andrew Lunn
On Sat, Jan 10, 2009 at 05:17:00AM -0800, Portos wrote: Actually, we may have found a temporary solution, a hack... A watchpoint can call commands and resume the program. So we can have printf send characters to some buffer (possibly hack the code a bit for that), and when some location is

Re: [ECOS] ADC - No init

2009-01-01 Thread Andrew Lunn
On Thu, Jan 01, 2009 at 09:01:49AM -0800, Peter Huszar wrote: First of all Happy New Year to all of you. I have been doing some work with the ADC driver of the LPC2xxx family. I might have misunderstood the concept of the DEVTAB, but since it requires the entry point of the init()

Re: [ECOS] Dumb C question..

2008-12-24 Thread Andrew Lunn
OK, I try a bit harder. I reproduce this warning only with my native gcc-snapshot which is gcc (Ubuntu 20080404-0ubuntu1) 4.3.1 20080404 (prerelease) [gcc-4_3-branch revision 133917]. None of the other gcc's do this, not even 4.3.2-arm-eabi. gcc version 4.3.1 (Debian 4.3.1-8) on my

[ECOS] Dumb C question..

2008-12-23 Thread Andrew Lunn
Hi Folks Can anybody figure out what the compiler does not like: /home/lunn/eCos/anoncvs-clean/packages/language/c/libc/string/current/tests/memchr.c: In function 'main': /home/lunn/eCos/anoncvs-clean/packages/language/c/libc/string/current/tests/memchr.c:103: warning: assignment discards

Re: [ECOS] Current state of SMP in eCos

2008-12-22 Thread Andrew Lunn
- SMP synchronization support. I think theoretically I can use the assembly language spinlock code that is in the i386 smp code. But there is probably a linux call for test_and_set. Would that be preferred? - Coherent caches. Should be a non-issue, right? Correct - Uniform addressing.

Re: [ECOS] CAN-problems

2008-12-22 Thread Andrew Lunn
On Mon, Dec 22, 2008 at 02:25:18PM -0800, Peter Last NameHuszar wrote: I have just started to use eCOS for an Olimex LCP-H2294. The basic setup works, I could flash led as a thread, using Redboot ROM monitor, but ran into problem when adding CAN support. I modified the ecos.db to include

  1   2   3   4   5   6   7   8   9   10   >