Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1F51kn-0008OQ-3Q for mharc-grub-devel@gnu.org; Fri, 03 Feb 2006 09:17:37 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F51hs-000843-97 for grub-devel@gnu.org; Fri, 03 Feb 2006 09:14:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F50sD-00088F-As for grub-devel@gnu.org; Fri, 03 Feb 2006 08:22:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4zpK-0003AM-2h for grub-devel@gnu.org; Fri, 03 Feb 2006 07:14:12 -0500 Received: from [81.161.240.12] (helo=ALPHA.tu-sofia.bg) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F4zoJ-0007xB-Ux for grub-devel@gnu.org; Fri, 03 Feb 2006 07:13:08 -0500 Received: (from root@localhost) by ALPHA.tu-sofia.bg (8.13.1/8.13.1) id k13CAoS8013244 for grub-devel@gnu.org; Fri, 3 Feb 2006 14:10:50 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by ALPHA.tu-sofia.bg (8.13.1/8.13.1) with ESMTP id k13CAlbN013146 for ; Fri, 3 Feb 2006 14:10:47 +0200 Message-Id: <200602031210.k13CAlbN013146@ALPHA.tu-sofia.bg> Date: Fri, 3 Feb 2006 14:10:47 +0200 X-Mailer: JAW::Mail jawmail-2.0.1 X-Originating-IP: 81.161.251.159 From: Kiril Paunov To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: inline X-scanner: scanned by Inflex 1.0.12.7 Subject: serial line - file interface X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 14:17:33 -0000 Hello. I hope that this will be interesting for you... I'm making some experiments with embedde OS, currently with RTEMS on i386. I use some PC (to hand) for my tests and got to the problem with booting. See, it's just to much time for each boot! So I made some changes to grub to be able to boot images from the serial line. I know that there are bette= r sulutions for this problem but maybe this can help on some way to the grub = project. There is a new command 'comload' - it's a bit silly but that's Ok for me. That's what I have used first... before the idea for the `(com)' device. The patch to release 1.92 can be found here: http://81.161.251.159/pub/grub/grub-1.92-comio.patch and that's the changelog entry: +2005-02-03 Kiril Paunov + +=09* util/i386/pc/grub-install.in: Found an syntaxis error. + +=09* commands/comload: New command for serial data download. +=09I's a bit ~~~ but can be usefull for people that work with +=09embedded systems. + +=09* util/grub-comiosrv.c: Server program for the `(com)' interface +=09(See bellow include/grub/comio.h io/comio.c). + +=09* include/grub/comio.h io/comio.c: New file interface. +=09This allows to download and boot ower the serial line. +=09I't usefull for people that work with embedded systems. +=09It's not very good covered by the file interface but i't +=09works well. There is not a good abstraction for this kind +=09off filesystem (net/serial/???)!!! +=09Example: +=09grub.cfg: +=09=09# +=09=09# serial --unit=3D1 --speed=3D9600 --word=3D8 --parity=3Dno --stop= =3D1 +=09=09# terminal serial +=09=09# +=09Host: on /dev/ttyS0 +=09=09# +=09=09# ./grub-comiosrv -b 115200 /dev/ttyS0 +=09=09# +=09Host: on /dev/ttyS1 +=09=09# +=09=09# > multiboot (com)/0-115200-n-8-1-my_test_image +=09=09# > boot +=09=09# +=09The sintax is: +=09=09`(com)/' +=09=09`' =3D ----- +=09=09`' =3D <0|1> - comm port +=09=09`' =3D - valid baud rate +=09=09`' =3D +=09=09`' =3D <5|6|7|8> +=09=09`' =3D <1|2> +=09=09`' =3D file name on the host relative to `grub-comiosrv' +=09Protocol: +=09=09Request_A: `[my_test_image]' +=09=09Respons_A: `[]' +=09=09Request_B: `[my_test_image::]' +=09=09Request_B: `[]' +=09 +=09Enjoy yourself! --=20 With respect & pleasure Kiril Paunov --=0A=0A________________________=0Ahttp://mail.tu-sofia.bg/=0A