Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Linux Commands In Perl

Received: by 10.43.53.144 with SMTP id vq16mr4551092icb.26.1345411013559;
        Sun, 19 Aug 2012 14:16:53 -0700 (PDT)
X-BeenThere: stl-pm@googlegroups.com
Received: by 10.50.104.169 with SMTP id gf9ls4079932igb.0.gmail; Sun, 19 Aug
 2012 14:16:52 -0700 (PDT)
Received: by 10.43.18.67 with SMTP id qf3mr4557740icb.18.1345411012948;
        Sun, 19 Aug 2012 14:16:52 -0700 (PDT)
Received: by 10.43.18.67 with SMTP id qf3mr4557739icb.18.1345411012933;
        Sun, 19 Aug 2012 14:16:52 -0700 (PDT)
Return-Path: <don.el...@gmail.com>
Received: from mail-iy0-f170.google.com (mail-iy0-f170.google.com [209.85.210.170])
        by gmr-mx.google.com with ESMTPS id m5si474559igo.2.2012.08.19.14.16.52
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sun, 19 Aug 2012 14:16:52 -0700 (PDT)
Received-SPF: pass (google.com: domain of don.el...@gmail.com designates 209.85.210.170 as permitted sender) client-ip=209.85.210.170;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of don.el...@gmail.com designates 209.85.210.170 as permitted sender) smtp.mail=don.el...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-iy0-f170.google.com with SMTP id m10so1842974iam.15
        for <stl-pm@googlegroups.com>; Sun, 19 Aug 2012 14:16:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=0FpbFJ9CyLDpKj1L+QZHR1jZ/wrQ964JdFkuWlPpms8=;
        b=xR50+EDDVScsebcPDHLY+DSCyvGoWkcb8T8XPoWUe4DV5gdUZ9ASM8zHG+kRnbUO6Z
         uOw/R9dteA+85xgcAlLuOJNQPnRqw1Kb+iY9rSNGkDOXGrjSeAGJcLtru1ZPP+i3xAN5
         t8QUooho+lrVJ0IRU66Totg41xJv7D0FWGsXHiSdSaCFsp8P8wZklkA+pGynGm1oDlbc
         HCPVz2mt+uKrWRG5eVKQQ41PkjxEF+xRHJVsPS7/4E/yI/ZJsCKARHwMlQCh/28Vaih5
         ygF7WHHVkJgftgnDNSrQ2csSJOsL2jIWDbdjWfYo+Zxirk7/qYFLbpBxbDKDLKH651Zj
         GjgA==
MIME-Version: 1.0
Received: by 10.50.168.106 with SMTP id zv10mr8129189igb.13.1345411011960;
 Sun, 19 Aug 2012 14:16:51 -0700 (PDT)
Received: by 10.50.161.226 with HTTP; Sun, 19 Aug 2012 14:16:51 -0700 (PDT)
In-Reply-To: <CALKyAesiVbDHHJLwEHofNKMHb1oJ4cWDEzisswXGj1S1bQb...@mail.gmail.com>
References: <bb0c6e4c-6e80-4ab4-bdc9-aab37958b959@googlegroups.com>
	<CALKyAeuY8Gnn1p1h61rDjNkZ0PrLWYbHYZSnZRCBU5OJaST...@mail.gmail.com>
	<CALKyAesiVbDHHJLwEHofNKMHb1oJ4cWDEzisswXGj1S1bQb...@mail.gmail.com>
Date: Sun, 19 Aug 2012 16:16:51 -0500
Message-ID: <CALKyAesAx=B3g7Y-kEN4snVRTSNQSz5SLut8oBkQUgiSO0j...@mail.gmail.com>
Subject: Re: [perl-hackers] Linux Commands In Perl
From: Don Ellis <don.el...@gmail.com>
To: stl-pm@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1

Ok, I've tried another page:

    http://uml.devloop.org.uk/howto.html

Much more successful. Actually got the kernel (pre-built) to run in
UML mode. Couldn't get it to run right with their Debian-Wheezy
filesystem (got it to run, but lots of extra debugging info on
terminal), but worked great with their CentOS.

Then, I went to build perllinux to run on their kernel.

1) Term-Screen and Perl-Tidy are enumerated in the Makefile and import
lists with specific version numbers. I was able to find where they
were mentioned and fix this.

After I got those fixed, 'make get-required-imports' worked, but 'make
build-required' croaks with complaint about wrong kernel version.

I'll get back to it sometime, but just a bit too much trouble just now...

--Don Ellis


On Sat, Aug 18, 2012 at 6:01 PM, Don Ellis <don.el...@gmail.com> wrote:
> One further note: when running this in v2.6.39, the system hangs after
> the 15th parse_chan_pair failed message.
>
> To get this far, I tried a later command line version:
>
> ./linux rootfstype=hostfs rootflags=/home/donls/uml/ rw mem=48M
> init=/bin/bash TERM=linux PATH=/tools/bin:/bin quiet
>
> Previous command line attempts were:
>
> ./linux rootfstype=hostfs rw init=/bin/bash
>
> All of this is based on instructions for UML (required for perllinux) at:
>
>     landley.net/code/UML.html
>
> Some of the instructions are just a bit sketchy, or aren't working for
> me on Ubuntu 10.0.4.
>
> --Don Ellis
>
>
> On Sat, Aug 18, 2012 at 5:38 PM, Don Ellis <don.el...@gmail.com> wrote:
>> Interesting!
>>
>> One little hitch - you first need to implement UML. Instructions for
>> UML look pretty simple, but it just isn't working for me [yet]. As I
>> write this, I've tried running the 2.6.39 kernel and given up, and now
>> I'm trying 3.5.2. Hopefully the fact that I'm complaining will result
>> in success with my second kernel attempt. [Fail!]
>>
>> Well, that's different. Instead of hanging, the attempted run aborted.
>>
>> Here's the end of the run output, which is just about identical to the
>> results of v2.6.39, except that v2.6.39 hanged. And now, when I go
>> back to v2.6.39, I get a segfault instead of a hang. Original results
>> from 2.6.39 have scrolled out of the window. Need to tee these, or use
>> script (or some such).
>>
>> [Note that in these two attempts, v2.6.39 shows 'parse_chan_pair
>> failed', while v3.5.2 shows 'setup_one_line failed', both for values
>> of 1-15]
>>
>> = = = = = = = = = =
>> Results in v2.6.39 after trying v3.5.2
>> = = = = = = = = = =
>> Using a channel type which is configured out of UML
>> parse_chan_pair failed for device 15 : Configuration failed
>> Console initialized on /dev/tty0
>> console [tty0] enabled
>> VFS: Mounted root (hostfs filesystem) on device 0:8.
>> Segmentation fault
>>
>> = = = = = = = = = =
>> Results in v3.5.2
>> = = = = = = = = = =
>> ...
>> Initialized stdio console driver
>> Using a channel type which is configured out of UML
>> setup_one_line failed for device 1 : Configuration failed
>> Using a channel type which is configured out of UML
>> setup_one_line failed for device 2 : Configuration failed
>>
>> ...
>>
>> Using a channel type which is configured out of UML
>> setup_one_line failed for device 14 : Configuration failed
>> Using a channel type which is configured out of UML
>> setup_one_line failed for device 15 : Configuration failed
>> Console initialized on /dev/tty0
>> console [tty0] enabled
>> VFS: Mounted root (hostfs filesystem) on device 0:8.
>> Aborted
>>
>> = = = = = = = = = =
>>
>> On Fri, Aug 17, 2012 at 5:26 PM, deech <aditya.si...@gmail.com> wrote:
>>> Some one re-wrote a lot of the Linux commands in Perl:
>>> http://perllinux.sourceforge.net/. Thought I'd post in case some one hadn't
>>> seen it.
>>>
>>> -deech