From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30441 invoked by alias); 21 Feb 2007 10:27:36 -0000 Received: (qmail 30432 invoked by uid 22791); 21 Feb 2007 10:27:35 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.228) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Feb 2007 10:27:31 +0000 Received: by nz-out-0506.google.com with SMTP id x3so2330989nzd for ; Wed, 21 Feb 2007 02:27:29 -0800 (PST) Received: by 10.64.233.12 with SMTP id f12mr13589721qbh.1172053649801; Wed, 21 Feb 2007 02:27:29 -0800 (PST) Received: by 10.65.153.4 with HTTP; Wed, 21 Feb 2007 02:27:29 -0800 (PST) Message-ID: Date: Wed, 21 Feb 2007 10:27:00 -0000 From: "shobhit saxena" To: ecos-discuss@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: [ECOS] need the correct template & packages for ppp X-SW-Source: 2007-02/txt/msg00200.txt.bz2 hello everyone, i am working on arm e7t board using ecos tool.I wanna run the following program "windows_telnet".The problem is when i take the "net template" & add "ppp support" to the ecos options,it successfully builds.Then i tried to make this program but it shows error " windows_telnet section .bss is not within region ram".i know that the executable is more than the size of RAM in the board(512 kb). CAN ANYONE SUGGEST ME A COFIGURATION ON THE ECOS TOOL SO THAT PPP & TELNET BOTH WORK WITHOUT THE ABOVE ERROR. #include #include #include #include #define SOMAXCONN 3 static char *windows_script[] = { "TIMEOUT", "2", "", "CLIENTCLIENT\\c", "CLIENTSERVER", "\\c", 0 }; void telnet(void) { struct sockaddr_in sin; struct sockaddr_in pin; /* get an internet domain socket */ int sd; if ((sd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { return; } /* complete the socket structure */ memset(&sin, 0, sizeof(sin)); sin.sin_len = sizeof(sin); sin.sin_family = AF_INET; sin.sin_addr.s_addr = INADDR_ANY; sin.sin_port = htons(23); unsigned int opt = 1; if (setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1) { goto out; } /* bind the socket to the port number */ if (bind(sd, (struct sockaddr *) &sin, sizeof(sin)) == -1) { goto out; } /* show that we are willing to listen */ if (listen(sd, SOMAXCONN) == -1) { goto out; } int sd_current; /* wait for a client to talk to us */ socklen_t addrlen = sizeof(pin); if ((sd_current = accept(sd, (struct sockaddr *) &pin, &addrlen)) == -1) { goto out; } for (;;) { char *prompt="eCos>"; int promptlen = strlen(prompt); if (write(sd_current, prompt, promptlen) != promptlen) { goto AbortSession; } /* get a message from the client */ char dir[256]; int len; size_t i; for (i=0; i