[BusyBox] Re: busybox Digest, Vol 7, Issue 43

Linux Mania MadAtLinux at hotmail.com
Thu Sep 18 10:29:25 UTC 2003


----- Original Message -----
From: <busybox-request at mail.busybox.net>
To: <busybox at mail.busybox.net>
Sent: Thursday, September 18, 2003 2:44 PM
Subject: busybox Digest, Vol 7, Issue 43


> Send busybox mailing list submissions to
> busybox at mail.busybox.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://busybox.net/mailman/listinfo/busybox
> or, via email, send a message with subject or body 'help' to
> busybox-request at mail.busybox.net
>
> You can reach the person managing the list at
> busybox-owner at mail.busybox.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of busybox digest..."
>
>
> Today's Topics:
>
>    1. Re: busybox, sort, and making ncurses (Dermot Bradley)
>    2. [ANNOUNCE] ptxdist-0.3.24 released (Robert Schwebel)
>    3. RE: WORKS! - but still and issue -- 1.00-pre2/pre3
>       -shell/ash.c Internal compilererror (David Douglas)
>    4. Re: WORKS! - but still and issue -- 1.00-pre2/pre3
>       -shell/ash.c Internal compilererror (Rob Landley)
>    5. Re: WORKS! - but still and issue -- 1.00-pre2/pre3
>       -shell/ash.c Internal compilererror (Junio C Hamano)
>    6. RE: WORKS! - but still and issue --
>       1.00-pre2/pre3-shell/ash.c Internal compilererror (David Douglas)
>    7. Authentication problem (newbie question) (Fernando Pena L?pez)
>    8. Re: Authentication problem (newbie question) (Bruno Randolf)
>    9. Re: Authentication problem (newbie question) (Fernando Pena L?pez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 16 Sep 2003 23:13:04 -0000 (Europe/Belfast)
> From: "Dermot Bradley" <bradley at tangram.nildram.co.uk>
> Subject: Re: [BusyBox] busybox, sort, and making ncurses
> To: rob at landley.net
> Cc: Dermot Bradley <bradley at tangram.nildram.co.uk>, Glenn McGrath
> <bug1 at optushome.com.au>, busybox at codepoet.org
> Message-ID: <1628.192.168.1.29.1063753984.squirrel at hans>
> Content-Type: text/plain;charset=iso-8859-1
>
> Now that I've worked around the sed issue with zlib (by making zlib's
> configure script use GNU sed) I've got to compiling ncurses 5.3.
>
> Ncurses' configure script uses sed extensively and seems to suffer for
> some Busybox sed issues. I'm guess that some of the sed usage is suffering
> from problems similar to that which Glenn McGrath was investigating
> recently (the sed '4,$d;1,2d' sort of thing).
>
> Also the script include/MKkey_defs.sh is calling "sort" as follows:
>
>    if sort -k 6 $DATA >$data 2>/dev/null
>
> but obviously Busybox sort doesn't have a "-k" option. Again I'll
> workaround this by using GNU sort.
>
> I've worked around these for now by ensuring that "configure" uses GNU sed
> and  likewise the "sort -k" call in MKkey_defs.sh used GNU sed.
>
> It seems like there's a lot of areas where Busybox's sed is getting caught
> out...
>
> I also hit a problem with bison's "make check" and Busybox sed - the file
> tests/testsuite calls a few "sed -f extract.sed stderr" which result in
> sed spinning and hopping CPU.
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 17 Sep 2003 20:14:46 +0200
> From: Robert Schwebel <robert at schwebel.de>
> Subject: [BusyBox] [ANNOUNCE] ptxdist-0.3.24 released
> To: busybox at busybox.net
> Message-ID: <20030917181446.GR8367 at pengutronix.de>
> Content-Type: text/plain; charset=iso-8859-15
>
> Hildesheim, Germany - Pengutronix has released version 0.3.24 of the
> Userland Build system PTXdist.
>
> Highlights:
>
> * patch system: added generic patch system which gets patches
>   from a web repository; inserted all of Dan Kegel's patches
> * ltt: added support for Linux Trace Toolkit
> * general: introduced generic architecture support file in
>           config/arch/
> * config: support for extra CFLAGS and CXXFLAGS
> * general: add customer specific "addons" directory
> * kernel: support for linux-2.4.22 on x86
> * rtai: support for rtai-24.1.11
> * mtd: added mkjffs2 tools
> * libnet: added support for libnet
> * mips: support for big and little endian
> * busybox: update to 1.00-pre3; configuration allows multiple
>   bbs now.
> * XFree86: added
> * Mozilla-Firebird: added
> * NEWPACKET: added script to support creation of new rules files
>
> Special thanks goes to Dan Kegel for his great patch system idea and
> to Marc Kleine-Budde for tweaking it into the ptxdist design.
>
> PTXdist is a GPL licensed tool which can be used to customize Linux and
> the GNU userland for all kinds of embedded systems, like PLCs, data
> loggers, firewalls etc. It provides a kconfig configuration system and a
> Makefile based framework to document how an embedded Linux was created.
> The archive is small and downloads all necessary source archives from
> the original web sites with wget.
>
> The release can be found on the PTXdist homepage:
>
> http://www.pengutronix.de/software/ptxdist_en.html
>
> Robert Schwebel
> --
>  Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
>  Pengutronix - Linux Solutions for Science and Industry
>    Handelsregister:  Amtsgericht Hildesheim, HRA 2686
>      Hornemannstraße 12,  31137 Hildesheim, Germany
>     Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4
>
> ------------------------------
>
> Message: 3
> Date: Wed, 17 Sep 2003 14:13:05 -0500
> From: "David Douglas" <ddouglas at Crossroads.com>
> Subject: RE: [BusyBox] WORKS! - but still and issue -- 1.00-pre2/pre3
> -shell/ash.c Internal compilererror
> To: <andersen at codepoet.org>, "Gad" <bugchong at tpg.com.au>
> Cc: busybox at busybox.net
> Message-ID:
>
<CFD808D1D39ACB47ABFF586D484CC52E015060A0 at hqmailnode1.commstor.crossroads.co
m>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Eric,
>
> I still can't get the console to come up on my embedded system...
>
> I've tried using both ttyS0 and tty1.
>
> I'm pretty sure that init is getting called from the kernel because it
> never comes back.  I have instrumented the kernel up to that point and
> it calls /sbin/init.
>
> Whatever it is, my kernel and console still works with the old 0.60
> busybox.  It MUST be something with my configuration.
>
> In my inittab I've tried
> ttys0:respawn:-/bin/ash
> And
> tty1:respawn:-/bin/ash
>
> any suggestions?
>
> Thanks,
> David
>
>
> -----Original Message-----
> From: Erik Andersen [mailto:andersen at codepoet.org]
> Sent: Tuesday, September 16, 2003 12:42 AM
> To: Gad
> Cc: David Douglas; busybox at busybox.net
> Subject: Re: [BusyBox] WORKS! - but still and issue -- 1.00-pre2/pre3
> -shell/ash.c Internal compilererror
>
> On Tue Sep 16, 2003 at 02:58:12PM +1000, Gad wrote:
> > David Douglas wrote:
> > >Ok,
> > >
> > >So now it builds, but I'm having another problem.  The shell does not
> > >seem to be responding properly when I use this busybox.  With the
> 0.60.5
> > >busybox the shell works OK and I can access the ramdisk.  However,
> with
> > >the pre3 busybox, nothing echo's back when I type a command...  It
> just
> > >acts like nothing is there.
> > >
> > Could your problem be related to (or the same as) mine?
> > After booting 1.00-pre3, I get "can't access tty: job control turned
> > off" and a few other things and can't type anything:
> >
> > http://www.busybox.net/lists/busybox/2003-September/009293.html
>
> Quoting the uClibc 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?
>
>     This isn't really a uClibc question, but I'll answer it here
>     anyways.  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 REALLY 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...
>
>  -Erik
>
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
>
> ------------------------------
>
> Message: 4
> Date: Wed, 17 Sep 2003 16:53:32 -0400
> From: Rob Landley <rob at landley.net>
> Subject: Re: [BusyBox] WORKS! - but still and issue -- 1.00-pre2/pre3
> -shell/ash.c Internal compilererror
> To: "David Douglas" <ddouglas at Crossroads.com>,
> <andersen at codepoet.org>, "Gad" <bugchong at tpg.com.au>
> Cc: busybox at busybox.net
> Message-ID: <200309171653.32214.rob at landley.net>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> On Wednesday 17 September 2003 15:13, David Douglas wrote:
> > Eric,
> >
> > I still can't get the console to come up on my embedded system...
> >
> > I've tried using both ttyS0 and tty1.
> >
> > I'm pretty sure that init is getting called from the kernel because it
> > never comes back.  I have instrumented the kernel up to that point and
> > it calls /sbin/init.
> >
> > Whatever it is, my kernel and console still works with the old 0.60
> > busybox.  It MUST be something with my configuration.
> >
> > In my inittab I've tried
> > ttys0:respawn:-/bin/ash
> > And
> > tty1:respawn:-/bin/ash
> >
> > any suggestions?
>
> You're sure you've correctly created and set the permissions on the
> appropriate /dev entries?
>
> Rob
>
> (It's an "any suggestion". :)
>
> There's also (and this is disgusting), "init=ptrace init 2> /dev/ttyS0" or
> some similar monstrosity that almost certainly won't actually work in that
> form, but you get the idea...
>
> You can also stick printfs in the busybox source.  Yes, even if it's not
> printing anything to the console.  Open up the busybox source, stick
fprintf
> calls in the bits you're trying to examine, and have them write to
/dev/ttyS0
> (which you manually opened and stuck the filehandle into a global variable
> "debug" or some such to make it easy to use the fprintfs with.)  If
busybox
> init is trying to find tty1, this shouldn't interfere with that...
>
> You can also play with pauses and beeps if you can't get that to work.
(look
> at play_beep in http://www.johnath.com/beep/beep.c).  It just mans there
> would be a lot more recompile/reboot steps because a beep doesn't say as
much
> as a string.  But you can get a yes/no out of it, plus long/short and
> high/low...
>
> (I have a black belt is sick evil cheesy debugging techniques that make
you go
> "ew".  Let me know if you need more... :)
>
> ------------------------------
>
> Message: 5
> Date: Wed, 17 Sep 2003 14:11:43 -0700
> From: Junio C Hamano <junkio at cox.net>
> Subject: Re: [BusyBox] WORKS! - but still and issue -- 1.00-pre2/pre3
> -shell/ash.c Internal compilererror
> To: "David Douglas" <ddouglas at Crossroads.com>
> Cc: busybox at busybox.net, andersen at codepoet.org
> Message-ID: <7vd6dzf7cg.fsf at assigned-by-dhcp.cox.net>
> Content-Type: text/plain; charset=us-ascii
>
> >>>>> "DD" == David Douglas <ddouglas at Crossroads.com> writes:
> DD> Whatever it is, my kernel and console still works with the old 0.60
> DD> busybox.  It MUST be something with my configuration.
>
> DD> In my inittab I've tried
> DD> ttys0:respawn:-/bin/ash
> DD> And
> DD> tty1:respawn:-/bin/ash
>
> DD> any suggestions?
>
> How about spelling ttyS0 with a capital S?
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 17 Sep 2003 16:14:29 -0500
> From: "David Douglas" <ddouglas at Crossroads.com>
> Subject: RE: [BusyBox] WORKS! - but still and issue --
> 1.00-pre2/pre3-shell/ash.c Internal compilererror
> To: "Junio C Hamano" <junkio at cox.net>
> Cc: busybox at busybox.net, andersen at codepoet.org
> Message-ID:
>
<CFD808D1D39ACB47ABFF586D484CC52E016A05FB at hqmailnode1.commstor.crossroads.co
m>
>
> Content-Type: text/plain; charset="us-ascii"
>
> I typed it in wrong into the email.... it really is S0 :) !
>
> Thanks,
> David
>
>
> -----Original Message-----
> From: Junio C Hamano [mailto:junkio at cox.net]
> Sent: Wednesday, September 17, 2003 4:12 PM
> To: David Douglas
> Cc: andersen at codepoet.org; Gad; busybox at busybox.net
> Subject: Re: [BusyBox] WORKS! - but still and issue --
> 1.00-pre2/pre3-shell/ash.c Internal compilererror
>
> >>>>> "DD" == David Douglas <ddouglas at Crossroads.com> writes:
> DD> Whatever it is, my kernel and console still works with the old 0.60
> DD> busybox.  It MUST be something with my configuration.
>
> DD> In my inittab I've tried
> DD> ttys0:respawn:-/bin/ash
> DD> And
> DD> tty1:respawn:-/bin/ash
>
> DD> any suggestions?
>
> How about spelling ttyS0 with a capital S?
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 18 Sep 2003 03:07:38 +0200
> From: Fernando Pena L?pez <ferix_98 at mundo-r.com>
> Subject: [BusyBox] Authentication problem (newbie question)
> To: busybox at busybox.net
> Message-ID: <001001c37d81$413d3790$0601a8c0 at win>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi all...
>
> I'm setting up my own distro based on busybox and uclibc,
> but I'm having some problems with It...
> Now, I resolved a lot of them, and my distro just boot up very
> fine... but I get the following error when I try to 'su' to another user
or
> root:
>
> ~ $ su
> su: /etc/shadow: Permission denied
>
> The same '/etc/shadow: Permission denied' message apears when I try to
> conect to the system by ftp (linux-ftpd-017 compiled with latest uclibc).
> It seems to be all ok to me...
>
> Any idea?
>
> Thanks in advance.
>
> Fernando Pena López.
>
>
> ------------------------------
>
> Message: 8
> Date: Thu, 18 Sep 2003 10:18:21 +0200
> From: Bruno Randolf <bruno.randolf at 4g-systems.biz>
> Subject: Re: [BusyBox] Authentication problem (newbie question)
> To: Fernando Pena L?pez <ferix_98 at mundo-r.com>
> Cc: busybox at busybox.net
> Message-ID: <200309181018.25888.bruno.randolf at 4g-systems.biz>
> Content-Type: Text/Plain;  charset="iso-8859-1"
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi!
>
> i'm not sure, but the reason might be that busybox is not owned by root
and
> (or?) does not have the setuid bit set.
> so try chmod a+s /bin/busybox
>
> hope this helps,
> bruno
>
> On Thursday 18 September 2003 03:07, Fernando Pena López wrote:
> > Hi all...
> >
> > I'm setting up my own distro based on busybox and uclibc,
> > but I'm having some problems with It...
> > Now, I resolved a lot of them, and my distro just boot up very
> > fine... but I get the following error when I try to 'su' to another user
or
> > root:
> >
> > ~ $ su
> > su: /etc/shadow: Permission denied
> >
> > The same '/etc/shadow: Permission denied' message apears when I try to
> > conect to the system by ftp (linux-ftpd-017 compiled with latest
uclibc).
> > It seems to be all ok to me...
> >
> > Any idea?
> >
> > Thanks in advance.
> >
> > Fernando Pena López.
> >
> > _______________________________________________
> > busybox mailing list
> > busybox at mail.busybox.net
> > http://busybox.net/mailman/listinfo/busybox
>
> - --
> 4G Systeme GmbH
> Am Sandtorkai 71
> 20457 Hamburg
> fon: +49 (0)40 / 48 40 33 28
> fax: +49 (0)40 / 48 40 33 30
> mail: bruno.randolf at 4g-systems.biz
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
>
> iD8DBQE/aWpRfg2jtUL97G4RAqOxAJ0ZiGd/GsVD8pFLzfWiN0VY4DyRWQCeLZ7M
> exWravqS05QjM+ihbXhQqk0=
> =NhY6
> -----END PGP SIGNATURE-----
>
>
> ------------------------------
>
> Message: 9
> Date: Thu, 18 Sep 2003 11:13:03 +0200
> From: Fernando Pena L?pez <ferix_98 at mundo-r.com>
> Subject: Re: [BusyBox] Authentication problem (newbie question)
> To: Bruno Randolf <bruno.randolf at 4g-systems.biz>
> Cc: busybox at busybox.net
> Message-ID: <001901c37dc5$11e5ad80$0601a8c0 at win>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> "Bruno Randolf" <bruno.randolf at 4g-systems.biz> wrote:
>
> >hi!
> >
> >i'm not sure, but the reason might be that busybox is not owned by root
and
> >(or?) does not have the setuid bit set.
> >so try chmod a+s /bin/busybox
> >
> Yes, you are right
>
> >hope this helps,
> >bruno
> Now It work fine, thanks :)
>
> >On Thursday 18 September 2003 03:07, Fernando Pena López wrote:
> >> Hi all...
> >>
> >> I'm setting up my own distro based on busybox and uclibc,
> >> but I'm having some problems with It...
> >> Now, I resolved a lot of them, and my distro just boot up very
> >> fine... but I get the following error when I try to 'su' to another
user
> or
> >> root:
> >>
> >> ~ $ su
> >> su: /etc/shadow: Permission denied
> >>
> >> The same '/etc/shadow: Permission denied' message apears when I try to
> >> conect to the system by ftp (linux-ftpd-017 compiled with latest
uclibc).
> >> It seems to be all ok to me...
> >>
> >> Any idea?
> >>
> >> Thanks in advance.
> >>
> >> Fernando Pena López.
> >>
>
> Fernando Pena López
>
>
> ------------------------------
>
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
>
> End of busybox Digest, Vol 7, Issue 43
> **************************************
>



More information about the busybox mailing list