Denis Vlasenko | 1 Jun 08:21 2004
Picon

Re: Another thing wrong with init...

On Monday 31 May 2004 23:53, Rob Landley wrote:
> I'm this close -><- to doing a major rwrite on init/init.c...

Do not bother. I got rid of init altogether.
My init starts with '#!/bin/sh' line now :)
--

-- 
vda
tom | 1 Jun 09:43 2004

RE: Another thing wrong with init...


Rob,

> If you put a comment after an inittab line, it barfs, looking 
> for all those spaces and the # as part of the name.

I hate "inline" comments, I really do.

> The easy fix is to add " \t#" to the list of characters that 
> cause it to filter the sucker through the shell...

I was wondering, off hand, if some form of "parsing" should be done to
the line in inittab. Perhaps strip out comments, etc. when reading in
the commands. I'd imagine that would save, albeit a minute amount, of
RAM during bootup anyway. Thoughts?

Thomas Cameron
_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
Mark Alamo - LHS | 1 Jun 17:35 2004

Question about Busbox's MSH (sourcing enviroment files within CASE statement).

Hi,
 
    I'm trying to use busybox (1.0.0-pre10) on an embedded platform (ARM-like processor, no MMU).
    I'm have it configured to use msh as the default sh (using vfork in the code since I don't have an MMU) and as init.
 
    Everything appears to work OK. I can boot the unit and login on the console.
 
    The problem: several custom scripts are attempting to source (Ie. msh's dodot function) subscripts from within "complex" shell commands (CASE statements, etc).
    Although the dodot function is called at the correct time, the actual sourcing of the subscript and setting of environment variables is done after the all branches of the CASE are executed.
    This problem also occurs when multiple commands are listed on the same line (separated by ";").
 
    Example:
 
    Start script:
        echo "Start" ; . ./subA ; echo "Mid" ; . ./subB ; echo "End"
 
    subA script:
        echo "subA"
   
    subB script:
        echo "subB"
 
    Output:
    > ./start
       
        Start
        Mid
        End
        subB
        subA
 
   
Thanks,
Mark
_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
LGassmann | 1 Jun 22:46 2004

syslogd and klogd

 Hi,
Try to compile busybox for ppc,and i have a strange error on pre8 and pre10 to.
./applets/applets.a(applets.o)(.rodata+0xbec): undefined reference to `klogd_main'
./applets/applets.a(applets.o)(.rodata+0xc1c): undefined reference to `logread_main'
collect2: ld returned 1 exit status
make[1]: *** [busybox] Fehler 1

Do maybe someone know what this can be?
thx in advance
_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
Erik Andersen | 1 Jun 22:50 2004

Re: syslogd and klogd

On Tue Jun 01, 2004 at 10:46:08PM +0200, LGassmann wrote:
>  Hi,
> Try to compile busybox for ppc,and i have a strange error on pre8 and pre10 to.
> ./applets/applets.a(applets.o)(.rodata+0xbec): undefined reference to `klogd_main'
> ./applets/applets.a(applets.o)(.rodata+0xc1c): undefined reference to `logread_main'
> collect2: ld returned 1 exit status
> make[1]: *** [busybox] Fehler 1
> 
> Do maybe someone know what this can be?
> thx in advance

Please provide us with your .config file,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
Erik Andersen | 2 Jun 00:44 2004

Re: syslogd and klogd

On Tue Jun 01, 2004 at 02:50:03PM -0600, Erik wrote:
> On Tue Jun 01, 2004 at 10:46:08PM +0200, LGassmann wrote:
> >  Hi,
> > Try to compile busybox for ppc,and i have a strange error on pre8 and pre10 to.
> > ./applets/applets.a(applets.o)(.rodata+0xbec): undefined reference to `klogd_main'
> > ./applets/applets.a(applets.o)(.rodata+0xc1c): undefined reference to `logread_main'
> > collect2: ld returned 1 exit status
> > make[1]: *** [busybox] Fehler 1
> > 
> > Do maybe someone know what this can be?
> > thx in advance
> 
> Please provide us with your .config file,

Ok, I tried a build with your .config (with pre10 and with
current CVS) and it compiled up just fine for me.  Perhaps
you have some stale object files or some such in your tree.
Try doing a 'make clean; make oldconfig; make' and see if it
compiles.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
Steve Dover | 2 Jun 05:04 2004
Picon
Picon

echo -e "test\ntest2\n"

output is:
testntest2n

_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
Erik Andersen | 2 Jun 05:29 2004

Re: echo -e "test\ntest2\n"

On Tue Jun 01, 2004 at 10:04:24PM -0500, Steve Dover wrote:
> output is:
> testntest2n
> 

Busybox version?  C library?  Kernel version?

$ ./busybox --help 2>&1 | head -n 1
BusyBox v1.00-pre10 (2004.06.02-03:25+0000) multi-call binary

$ ./busybox echo -e "test\ntest2\n"
test
test2

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
Steve Dover | 2 Jun 06:20 2004
Picon
Picon

Re: echo -e "test\ntest2\n"

Erik Andersen wrote:
> On Tue Jun 01, 2004 at 10:04:24PM -0500, Steve Dover wrote:
> 
>>output is:
>>testntest2n
>>
> 
> 
> Busybox version?  C library?  Kernel version?
> 
> $ ./busybox --help 2>&1 | head -n 1
> BusyBox v1.00-pre10 (2004.06.02-03:25+0000) multi-call binary
> 
> $ ./busybox echo -e "test\ntest2\n"
> test
> test2
> 
Busybox-1.00-pre10  (a couple day old snapshot also fails)
uClibc-0.9.26
kernel-2.4.26

Checking, yes, I do have CONFIG_FEATURE_FANCY_ECHO set.

Toolchain problem?
I'll re-address after I get Rob's script working
to build a native gcc on uClibc.  I'm still using
the wrapper with gcc-2.95.3 until I get that going.

Thanks for the test,
Steve

_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
Erik Andersen | 2 Jun 06:54 2004

Re: echo -e "test\ntest2\n"

On Tue Jun 01, 2004 at 11:20:07PM -0500, Steve Dover wrote:
> Checking, yes, I do have CONFIG_FEATURE_FANCY_ECHO set.
> 
> Toolchain problem?
> I'll re-address after I get Rob's script working
> to build a native gcc on uClibc.  I'm still using
> the wrapper with gcc-2.95.3 until I get that going.
> 
> Thanks for the test,
> Steve

Could be dunno.  I just tried with uClibc 0.9.26 and with
glibc and it worked as expected for me...

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
_______________________________________________
busybox mailing list
busybox <at> mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox

Gmane