linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bodo Giannone <Bodo@Giannone.de>
To: Frank Kotler <fbkotler@verizon.net>
Cc: linux-assembly@vger.kernel.org
Subject: Re: init.asm - 0.03 (19-Jun-2002) - asmutils 0.18
Date: Fri, 02 May 2008 17:46:28 +0200	[thread overview]
Message-ID: <481B3754.7090000@Giannone.de> (raw)
In-Reply-To: <48198E19.7090605@verizon.net>

Hello Frank and all others,

>> I am the maintainer of BG-Tiny Linux Bootdisk.
> 
> Thank you. I downloaded it and tried it. Sure is tiny! Seemed to work
> fine. (unlike "a-linux" which hung on me the last time I tried it, IIRC)
> 
>> The tiny init version included in asmutils-0.18 (init.asm 0.03,
>> 19-Jun-2002) is exactly what I was looking for to integrate into BG-Tiny
>> Linux Bootdisk. Unfortunately I am havging some problems I cannot
>> resolve myself due to lacking assembler skills.
>>
>> I want to start /bin/sh on tty1-4 without using getty or login.
>> Unfortunately directly after booting I get the following error message:
>> "can't access tty, job control turned off". This could mean that init
>> does not activate the ttys completely. Is there a possibility to change
>> that?
> 
> Always a "possibility"! I'm gradually acquiring a few assembly skills...
> but I'm not sure what "init" is supposed to do. Quite a difference
> between the asmutils "init" and /sbin/init on my system!!! 

You are right. Normally init is supposed to execute some initscripts at
bootup time and then to start getty on several virtual terminals. At
shutdown time it should start/stop again some initscripts and then shut
down the system. However most of this is not really required for a small
rescue system like BG-Tiny Linux Bootdisk.

The init from asmutils at bootup first starts an init script and then
executes /sbin/sh (or whatever is hardcoded) on /dev/tty1-4. It is
something like a simple but effective combination of init/getty/login.


> The "init" you're using comes from Busybox, right?

Yes, the init used until now comes from Busybox. But due to ram- and
diskspace reasons I would like to change it to the one from asmutils.


>> The sh I am using is ash from BusyBox 1.3.2. If I try to use sh.asm from
>> asmutils-0.18 I only get a segfault.
> 
> Hmmm. It seems to work okay for me - that's launching it from my "usual"
> shell or from the shell from Busybox (I guess) that I get after booting
> your disk... and mounting the partition with asmutils on it - not "from
> scratch". How would I see this segfault?

sh from asmutils taken by itself works fine. It segfaults only in
combination with init from asmutils. At least it does so on my system.

If I use another type of sh, for example ash from busybox I get the
following error and no segfault: "can't access tty, job control turned off".

I think the cause could be the same. It could probably mean that init
does not activate the ttys completely.


>> I am using linux kernel 2.4.36.2 and uClibc 0.9.27 (linked statically).
>>
>> It would be great if someone had a suggestion.
> 
> I'd be willing to attempt to modify the asmutils "init", if I knew what
> it needed to do differently. Anyone know where I can find a "newbie's
> quickstart guide to init"? Maybe I should look at the Busybox  code...
> 
> That's not much of a "suggestion". I just wanted to give ya some
> encouragement. It "should" be a "possibility" to fix any problems you're
> having with asmutils.

Thank You very much. I am looking forward to Your answer. Have a nice
weekend.

Greetings,

Bodo Giannone

  parent reply	other threads:[~2008-05-02 15:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29 15:36 init.asm - 0.03 (19-Jun-2002) - asmutils 0.18 Bodo Giannone
2008-05-01  9:32 ` Frank Kotler
2008-05-02 12:12   ` Faré
2008-05-02 15:46   ` Bodo Giannone [this message]
2008-05-02 20:19     ` Frank Kotler
2008-05-30 20:34       ` Karsten Scheibler
  -- strict thread matches above, loose matches on Subject: below --
2008-04-29 16:08 Bodo Giannone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=481B3754.7090000@Giannone.de \
    --to=bodo@giannone.de \
    --cc=fbkotler@verizon.net \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).