Frank Kotler | 1 May 11:32 2008
Picon
Picon

Re: init.asm - 0.03 (19-Jun-2002) - asmutils 0.18

Bodo Giannone wrote:
> Hello,
> 
> 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!!! The "init" 
you're using comes from Busybox, right?

> 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 
(Continue reading)

Faré | 2 May 14:12 2008
Picon

Re: init.asm - 0.03 (19-Jun-2002) - asmutils 0.18

When running your shell on a tty, you may be missing such fun syscalls
as  setsid, setpgid, tcsetpgrp, etc., that may be necessary for the
process to feel like it's in control of its destiny and its terminal.
Double check what the C version of init does before you do the same.

[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ]
A programming language is low level
when its programs require attention to the irrelevant.
        -- Alan Perlis

2008/5/1 Frank Kotler <fbkotler <at> verizon.net>:
> Bodo Giannone wrote:
>
> > Hello,
> >
> > 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:
(Continue reading)

Bodo Giannone | 2 May 17:46 2008
Picon

Re: init.asm - 0.03 (19-Jun-2002) - asmutils 0.18

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
(Continue reading)

Frank Kotler | 2 May 22:19 2008
Picon
Picon

Re: init.asm - 0.03 (19-Jun-2002) - asmutils 0.18

Bodo Giannone wrote:

...
> 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".

 From the Busybox FAQ:

--------------------
Why do I keep getting "sh: can't access tty; job control turned off" 
errors?  Why doesn't Control-C work within my shell?

     Job control will be turned off since your shell can not obtain a 
controlling
     terminal.  This typically happens when you run your shell on 
/dev/console.
     The kernel will not provide a controlling terminal on the /dev/console
     device.  Your should run your shell on a normal tty such as tty1 or 
ttyS0
     and everything will work perfectly.  If you <em>REALLY</em> want 
your shell
     to run on /dev/console, then you can hack your kernel (if you are 
into that
     sortof thing) by changing drivers/char/tty_io.c to change the lines 
where
     it sets "noctty = 1;" to instead set it to "0".  I recommend you 
instead
     run your shell on a real console...
-------------------

(Continue reading)

jeff | 5 May 15:52 2008
Picon

Release Announcement


Announcement:

http://linuxasmtools.net/ now exists with the
programs listed below. Previously, many of
these progrms were part of the DesktopLinuxAsm
site.

Development tools
  AsmBug - terminal debugger
  MiniBug - console debugger
  AsmTrace - execution trace
  AsmDis - disassembler
  AsmSrc - creates nasm source
  AsmProj - new project setup
Help and information
  AsmRef - menu oriented reference to asm
  ElfDecode - ELF executable decoder
  file_info - file decoder
Libraries
  AsmLib - general terminal library
  AsmLibx - simple x-window library
  Alib - DOS library
Utilities
  AsmMgr - asm optimized file manager
  AsmFile - gemeral file manager
  AsmTimer - program timer
  AsmFind - file or text search utility
  AsmView - file viewer
  AsmLinks - hyper file viewer
(Continue reading)

jeff | 29 May 21:57 2008
Picon

Release Announcement


Announcement:

The following programs have been updated at
SourceForge:

File search utility
http://sourceforge.net/projects/asmfind
Small improvements to user interface

Todo/plan program with cyclic events
http://sourceforge.net/projects/asmplan
A bug in file handling was fixed

Assembler reference, with kernel functions and examples
http://sourceforge.net/projects/asmref
Menu revision, and additional material

Kernel function trace
http://sourceforge.net/projects/asmtrace
Multiple processes are now handled correctly.

Simple file viewer
http://sourceforge.net/projects/asmview
A bug was fixed in search of huge files

X server protocall trace
http;//sourceforge.net/projects/tracex
Initial release of x server trace

(Continue reading)

Karsten Scheibler | 30 May 22:34 2008
Picon

Re: init.asm - 0.03 (19-Jun-2002) - asmutils 0.18

Hello,

>> 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".
>
> From the Busybox FAQ:
>
> --------------------
> Why do I keep getting "sh: can't access tty; job control turned off" 
> errors?  Why doesn't Control-C work within my shell?
>
>     Job control will be turned off since your shell can not obtain a 
> controlling
>     terminal.  This typically happens when you run your shell on 
> /dev/console.
>     The kernel will not provide a controlling terminal on the /dev/console
>     device.  Your should run your shell on a normal tty such as tty1 or 
> ttyS0
>     and everything will work perfectly.  If you <em>REALLY</em> want your 
> shell
>     to run on /dev/console, then you can hack your kernel (if you are into 
> that
>     sortof thing) by changing drivers/char/tty_io.c to change the lines 
> where
>     it sets "noctty = 1;" to instead set it to "0".  I recommend you 
> instead
>     run your shell on a real console...
> -------------------

(Continue reading)


Gmane