From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harry Kalogirou Subject: Re: ELKS not runnable.... (other thing) Date: 17 May 2002 22:40:43 +0300 Sender: linux-8086-owner@vger.kernel.org Message-ID: <1021664441.21840.21.camel@cool> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-fPO2CpEMf+N5RNXW926x" Return-path: In-Reply-To: List-Id: To: Stefan de Konink Cc: Linux-8086 --=-fPO2CpEMf+N5RNXW926x Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable =D4=E7=ED =D0=E1=F1, 17-05-2002 =F3=F4=E9=F2 23:15, =EF/=E7 Stefan de Konin= k =DD=E3=F1=E1=F8=E5: > When after loading the init and setting op the httpd deamon with the > comb_net (0.1.0) image. I get a login prompt. When i type root followed > with enter, the system loads, but doesn't show a prompt. >=20 > What can I do about this? (or is this the same bug as everybody is buggin= g > about) >=20 No, this is a bug I found a couple of days ago. The fix is included in the latest kernel in the CVS(but that has other problems now :( ). If you apply the attached patch to the 0.1.0 source you will be ok.=20 This bug affects "ash", so with an unpatched kernel you have to use "sash" by editing the /etc/passwd file. I was going to release some new precompiled kernels with the patch(0.1.1) but this _unrunnability_ mess came up ... :( Harry --=-fPO2CpEMf+N5RNXW926x Content-Disposition: inline; filename=exec.patch Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-7 --- /tmp/elks/fs/exec.c Mon Apr 29 03:02:28 2002 +++ fs/exec.c Fri May 17 15:14:34 2002 @@ -266,16 +266,8 @@ */ =20 ptr =3D ((char *) mh.dseg) + stack_top; - count =3D mh.bseg; - while (count) { - pokeb(dseg, ptr++, 0); - count--; - } - /* fmemset should work, but doesn't */ =20 -#if 0 - fmemset(ptr, dseg, 0, count); -#endif + fmemset((char *)mh.dseg + stack_top, dseg, 0, mh.bseg); =20 /* * Copy the stack --=-fPO2CpEMf+N5RNXW926x--