From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25512 invoked by alias); 2 Feb 2007 02:46:37 -0000 Received: (qmail 25501 invoked by uid 22791); 2 Feb 2007 02:46:35 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s5.bay0.hotmail.com (HELO bay0-omc3-s5.bay0.hotmail.com) (65.54.246.205) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Feb 2007 02:46:28 +0000 Received: from hotmail.com ([65.54.229.25]) by bay0-omc3-s5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 1 Feb 2007 18:46:27 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Feb 2007 18:46:26 -0800 Message-ID: Received: from 65.54.229.220 by by110fd.bay110.hotmail.msn.com with HTTP; Fri, 02 Feb 2007 02:46:26 GMT X-Sender: iucgnaw@msn.com In-Reply-To: From: "wang cui" To: w3sg@SoftHome.net Cc: andrew@lunn.ch, htalanki@comtechefdata.com, ecos-discuss@ecos.sourceware.org Bcc: Date: Fri, 02 Feb 2007 02:46:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed 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/msg00019.txt.bz2 I am not a expert in Shell technology, but I'd like to see a general purpose shell functionality can be used both in Redboot and app. :-) Andrew described many necessary requirement of shell in another mail, I strongly agree with him. Could we port a common shell from GNU world? That will be fantastic. > >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=/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 (= 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 > _________________________________________________________________ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss