From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28531 invoked by alias); 1 Feb 2007 18:51:15 -0000 Received: (qmail 28522 invoked by uid 22791); 1 Feb 2007 18:51:14 -0000 X-Spam-Check-By: sourceware.org Received: from jive.SoftHome.net (HELO jive.SoftHome.net) (66.54.152.27) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 01 Feb 2007 18:51:05 +0000 Received: (qmail 23598 invoked by uid 417); 1 Feb 2007 18:51:03 -0000 Received: from shunt-smtp-out-0 (HELO softhome.net) (172.16.3.12) by shunt-smtp-out-0 with SMTP; 1 Feb 2007 18:51:03 -0000 Received: from [82.209.211.124] ([82.209.211.124]) (AUTH: PLAIN w3sg@softhome.net) by softhome.net with esmtp; Thu, 01 Feb 2007 11:50:59 -0700 Date: Thu, 01 Feb 2007 18:51:00 -0000 From: Sergei Gavrikov To: wang cui cc: andrew@lunn.ch, htalanki@comtechefdata.com, ecos-discuss@ecos.sourceware.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463803648-370851966-1170356173=:6629" X-IsSubscribed: yes 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] In-built shell for Redboot X-SW-Source: 2007-02/txt/msg00015.txt.bz2 ---1463803648-370851966-1170356173=:6629 Content-Type: TEXT/PLAIN; charset=koi8-r; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-length: 3749 On Thu, 1 Feb 2007, wang cui wrote: > I think he want to call function by name directly without a warpper of > "RedBoot_cmd()" macro. > > Actually VxWorks provide this function. It strips all symbles from > application image, then generate a source file contains all symbles, > then add it into project and rebuild it. Then user can call all > functions directly from VxWorks shell. However, I think Redboot style > is good enough. > > But what I am thinking about is: Can we divide the shell functionality > from Redboot and create a new package(suppose to be RedShell)? > Because we always need a shell in application, and there are very many > things have been implemented in Redboot. If so, we can reduce a lot of > work in writing application shell. > Would we like to follow the subject "In-built shell for RedBoot" ... Ah, this idea does scratch the RedBoot body (or spirit? :)! I saw/see neither LiloShell nor GrubShell, but, with TAB button on LILO start, for example, it's possible to select an `init' process as a parameter. Sometimes, they add to parameters 'init=3D/bin/sh'. It looks like that it's possible to add same choice on RedBoot startup to replace default RedBoot's CLI loop. It would be a cool feature, but, what do they (RedBoot experts) think about? Though, looking the RedBoot's 'cyg_start' entry, it seems that was done. There is one conditional call of the 'cyg_plf_redboot_startup' there. That piece has been called before a start of the RedBoot's event loop, while (true) {...}. And RedBoot had madden a lot of initial work (all needed things for most of us) since a reset. More that, RedBoot gives us an abstract I/O with virtual channels (serial, ethernet), TFTP/HTTP clients, FLASH support, etc. Therefore, everybody can just put his own event loop in his own redboot platform startup function and using the '_rb_gets' will have a fun with a lovely interpreter (=3D shell). I had a fun with an embedded Tcl shell in RedBoot from that point, for example. Though, there was 'malloc' evil there. Another limitation of such "In-built shell for Redboot", there won't be any kernel things there. But, for some tasks that's a solution. Ah, if I would have an objloader for ARM like Anthnony has for PowerPC (services/objloader) ... There is yet another issue with such a tweak, that's the RedBoot's 'do_version' call. We cannot hide the RedHat's copyright notice, can we? Sergei >> From: Andrew Lunn >> To: Harish Talanki >> CC: ecos-discuss@ecos.sourceware.org >> Subject: Re: [ECOS] In-built shell for Redboot >> Date: Tue, 30 Jan 2007 22:46:25 +0100 >>=20 >> On Tue, Jan 30, 2007 at 02:09:52PM -0700, Harish Talanki wrote: >> > eCos Experts, >> > Is there a way I can invoke a function call directly from the shell, >> > with Redboot boot loader. >>=20 >> > I want to add bunch of function calls to the code, and be able to >> > directly invoke them from >> > command line. Is there any package or configuration option I need to >> > choose? >> > >> > Right now I keep adding new Redboot Commands, to get arround this. >>=20 >> What is the difference between adding a redboot command and calling a >> function? All a redboot command does is call a function. >> >> Andrew >>=20 >> -- >> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos >> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss >>=20 > > _________________________________________________________________ > =C3=E2=B7=D1=CF=C2=D4=D8 MSN Explorer: http://explorer.msn.com/lccn/=20 > > --=20 > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > ---1463803648-370851966-1170356173=:6629 Content-Type: text/plain; charset=us-ascii Content-length: 148 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ---1463803648-370851966-1170356173=:6629--