[Aboriginal] Experimenting with mksh as shell for aboriginal

Rob Landley rob at landley.net
Fri May 31 06:39:30 PDT 2013


On 05/30/2013 12:39:54 AM, Patrick Lauer wrote:
> On 05/30/2013 12:51 PM, Rob Landley wrote:
> > On 05/29/2013 12:20:51 AM, Patrick Lauer wrote:
> >> There's a few little glitches that I noticed, so maybe I'll either
> >> document that or throw patches at you - in the meantime here's a  
> little
> >> funny hack: Replacing bash with mksh, because old versions suck ;)
> >
> > Old versions do indeed suck.
> >
> > My current plan is to implement toysh in toybox as a full bash
> > replacement, and migrate to that. But mksh is less obsolete than  
> bash 2.
> And it has an active upstream that tests on weird platforms ...

Which is nice, but I'm trying to get the number of separate packages in  
the base system down. I originally planned to replace bash with one of  
the busybox shells (then Bruce happened), now I plan to do toysh but  
have a bunch of commands like "mount" to implement first...

So I'm looking at this as "fun, but stopgap". That said, I've  
downloaded the original public domain version and might loot cleaned up  
versions of some of its code for toysh in toybox...

> >> It doesn't work completely reliable yet, and I had some weird  
> distcc
> >> issues along the way (which is why it's commented out)
> >
> > Did you notice the control-images stuff?
> >
> > http://landley.net/aboriginal/control-images
> >
> > Specifically the lfs-bootstrap.hdc although I think I need to check  
> in
> > a couple tweaks and rebuild the binary. (I have a directorty for
> > updating it from LFS 6.8 to 7.3. It's on my todo list. :)
> >
> > It's not just aboriginal rebuilding itself,
> Looks like fun, let's see if I find some time for playing around with  
> it ...

I need to find some time to update it. :)

> >
> >> But as you can see it's a rather invasive change in a dozen lines  
> of
> >> code - you built a good foundation.
> >
> > Thanks. :)
> >
> > Mind if I forward this to the mailing list?
> I've figured out why it failed (your noversion() function is too
> pessimistic), let me send a working patch later today/tomorrow. I've
> managed to build almost all targets (cc implodes on armv4eb and armv6,
> will try to figure out what happens there ...) and boot them (sh4  
> fails
> for me, looks like either an invalid kernel image or qemu-1.4 being  
> buggy).

armv4eb isn't fully supported because qemu still hasn't quite got  
support for it (or so the qemu mailing list keeps saying), so I haven't  
really tested it.

Last I checked armv6 was working, though.

Oh, sh4 needs a patched qemu. (The following patch whitespace-damaged  
by cut and paste.)

--- a/hw/char/sh_serial.c
+++ b/hw/char/sh_serial.c
@@ -248,11 +248,9 @@ static uint64_t sh_serial_read(void *opaque,  
hwaddr offs,
                      s->flags &= ~SH_SERIAL_FLAG_RDF;
              }
              break;
-#if 0
          case 0x18:
              ret = s->fcr;
              break;
-#endif
          case 0x1c:
              ret = s->rx_cnt;
              break;

> See you on the mailing list,
> 
> Patrick
> 

I should just cc: it here.

Rob


More information about the Aboriginal mailing list