kaimi | 2 Apr 2007 05:08
Picon

Re: login success only once



On 3/31/07, Denis Vlasenko <vda.linux <at> googlemail.com> wrote:
On Friday 30 March 2007 04:44, kaimi wrote:
> hi, all
>      in my inittab, "tts/0::respawn:/bin/login" works well at the startup,
> but in the shell, if run login manually, there's promption for user name,
> after input the user name, there's no promption for password, the system is
> zombie, the inittab is followed, any ideas? thanks
>
> tts/0::respawn:/bin/login

hmm... works for me:

shadow:~# login root
Password:
Linux 2.6.18.1_64smp_ipv6.
<*> Executing /etc/profile from '-bash'. Command line: ''
* PATH=/bin:/usr/bin
* Setting umask: 022
* Setting some environment variables
* Setting default shell prompts
<*> Finished /etc/profile
<*> Executing ~/.profile from '-bash'. Command line: ''
* PATH='/root/bin:/bin:/usr/bin'
* Locale: russian koi8r
<*> Finished ~/.profile
shadow:~# exit
logout
shadow:~#

Also works:

shadow:~# login
shadow login: root
Password:
Linux 2.6.18.1_64smp_ipv6.
<*> Executing /etc/profile from '-bash'. Command line: ''
...same...

Can you dig a bit deeper? Where exactly it fails for you?
--
vda

my /etc/profile followed:
export LD_LIBRARY_PATH=/lib:/usr/lib
echo "export PATH in /etc/profile"
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

the startup messages followed:
ARM login: root
Password:
export PATH in /etc/profile
[root <at> ARM ~]# logout
ARM login: root
Password:
export PATH in /etc/profile
[root <at> ARM ~]# login
ARM login: root

you can see, at startup, login works, it works after logout as well, but it's failed if login on shell prompts. how to trace the exact point? thanks
--
_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
Levend Sayar | 2 Apr 2007 11:05
Picon
Favicon

Where is my shell ?

Hi, all
I am trying to port Linux 2.4.32 to 386ex based embedded board. This is my
very first attempt. I am using 4MB initrd image as root fs. Everything goes
fine. I compiled busybox as a static image and install to my initrd image. I
want to get a shell but nothing written to my console from busybox. AFAIK,
/sbin/init is loaded by the kernel successfully, since I added some printk
messages to trace what's going on. I deleted that lines from the log below
for clearity. But somehow I couldn't get a user space app to write anything
to the console.

gcc 3.3.3
Busybox 1.1.0
glibc 2.4

etc/inittab content :
::sysinit:/etc/init.d/rcS
::respawn:-/bin/sh

etc/init.d/rcS content :
#!/bin/sh
/bin/mount -t proc proc /proc

console output :

Uncompressing Linux... Ok, booting the kernel.
Linux version 2.4.32 (root <at> ds300)(gcc version 3.3.3 (SuSE Linux)) #35 Wed
Mar 28 15:13:39 EEST 2007
BIOS-provided physical RAM map:
 BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e801: 0000000000100000 - 0000000000a00000 (usable)
10MB LOWMEM available.
On node 0 totalpages: 2560
zone(0): 2560 pages.
zone(1): 0 pages.
zone(2): 0 pages.
DMI not present.
Kernel command line: root=/dev/ram rw
Initializing CPU#0
Calibrating delay loop... 4.04 BogoMIPS
Memory: 4832k/10240k available (507k kernel code, 5020k reserved, 93k data,
40k
init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... No.
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
CPU: 386
Checking 'hlt' instruction... disabled
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16450
ttyS01 at 0x02f8 (irq = 3) is a 16450
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 4096k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 40k freed

--Nothing written anymore from this point ...

_lvnd_
 (^_^)

-----------------------------------------------------------------------
Bu mesaj Karel MailScanner ile tehlikeli icerik ve virus kontrolunden gecirilmistir.
KAREL A.S. - Bilgi Teknolojileri Bolumu
This message has been scanned for viruses and dangerous content by Karel MailScanner, and is believed to be clean.
KAREL A.S. - Information Technologies Department
James Simmons | 2 Apr 2007 22:00
Favicon

Re: busybox lockups.


> On Thursday 29 March 2007 22:23, James Simmons wrote:
> >     I'm compiling busy box 1.4.2 with glibc 2.3.6 on a cramfs image. I can 
> > run the commands but once the command is done executing it just locks 
> > up before exiting the application. This is a on a ARM TS 7200 board. Any 
> > ideas why?
> 
> Can you give more info - like, what shell do you use?
> Does busybox with same .config work on i386? etc...
> 
> If all else fails, add debug prints into simplest attlet
> (like sleep) and find out where it stops.

Sorry about the delayed response. The shell I'm using is ash. 
Yes it does with 1.4.2 on i386. Busybox will work with uClibc as well with 
no problem. The issue is only ARM with glibc 2.3.6 and busybox 1.4.2. I 
also back pedel to busybox 1.00 and it worked with glibc 2.3.6.
Natanael Copa | 3 Apr 2007 11:31
Picon
Gravatar

[PATCH] Support for find -group

Hi!

Attatched is a patch for support of find -group.

One patch is against release 1.5.0 and the other is against current svn.

While I was there, I changed the uid type from int to uid_t and fixed
the compiler warning below (just declare the func as static fixed it).

findutils/find.c: In function `parse_params':
findutils/find.c:417: warning: no previous prototype for 'alloc_action'

Natanael Copa

_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
Mats Erik Andersson | 3 Apr 2007 20:43
Picon

[REWRITE] hexdump.c rewritten to use getopt32

Fellow code workers,

let me post a recoding of hexdump.c that now uses
the functionality of getopt32. Since the difference
file is slightly larger than the rewritten code,
I post the full source.

Using bloat-o-meter, a decrease of 47 bytes is calculated.
However, due to the inherent construction of getopt32,
which scrambles any order of option flags, this version
of hexdump will only allow one hard coded ordering for
output: at present -b -c -d -o -x, one row after the other.
Is this really a serious shortcoming? For the moment I
offer the code as a starting point for further discussion.

Mats E Andersson
Attachment (hexdump.c): text/x-csrc, 2816 bytes
_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
Natanael Copa | 4 Apr 2007 10:50
Picon
Gravatar

[PATCH] find -group (update) -depth

Hi,

The attatched patch contains a minor update to the previous find -group
patch I posted:
http://www.busybox.net/lists/busybox/2007-April/026976.html

The change is that it now uses 

  if (parm == PARM_group)

instead of 

  if (strcmp(arg, "-group") == 0)

I didn't notice that change in the svn before. Sorry.

This patch also adds the -depth option to process contens in dirs before
processing the dir itself (useful when deleting stuff)

I intend to look at -delete and -path/-wholename but i dont know if I
should post incremental patches or one big with all additions?

Or should I wait until this patch have been commited?

Natanael Copa
Attachment (find-group-depth.patch): text/x-patch, 3643 bytes
_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
Markus Wigge | 4 Apr 2007 13:53
Favicon

add FreeWRT to Pruducts list

Hi,

I just had a look at your products list and found OpenWRT mentioned there.
As FreeWRT is a fork of it maybe someone can place a link to it too.
(www.freewrt.org)

bye,
 Markus
Geerts Steven | 4 Apr 2007 14:41

adding applications

All

 

I would like to know how I can add dependencies when building extra packages.

 

For example I need to build an appilication, but before building this application I need to have a certain library.  Is this been taking care of by buildroot or do I need to specify this.

 

Is the following possible to be sure that the libxxx is build before building the test application?

ifeq ($(strip $(BR2_PACKAGE_TEST)),y)

TARGETS+= libxxx test

Endif

 

Or is this specified in the Config.in?

 

Best regards

 

steven

_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
Strong Qu | 4 Apr 2007 16:07
Picon
Favicon

mount permission denied though server side already authenticated the request

I'm new of using busybox. Detail as follow:

ARM V6 platform Linux 2.6.10, Busybox 1.01, ash shell, server side is Ubuntu 6.10, nfs exports *(rw, all_squash)

On target platform run:

# mount -o nolock 192.168.1.2:/home/user_1/share /mnt/shannon

Root has read/write/exec right in /mnt/pool. 192.168.1.2 is IP of shannon, the nfs server.

I got error as:

mount: permission denied. (are you root?)

On the server side I run:

# tail -f /var/log/syslog

It shows:

Mar 30 11:01:13 shannon mounted[4330]: authenticated mount from 192.168.1.3 for /home/user_1/share (/home/user_1/share)

And on other x86/linux I can mount the nfs without any trouble.

I did not find nfsmount on the target board. Is it a must for nfs mount?

Thanks.

-Strong

_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
Kai Schwenzfeier | 4 Apr 2007 19:15
Picon

[PATCH] un-desktopize find

15:45 <kasc> hi there
15:52 <kasc> i've got a problem with building busybox from within a busybox environment. the Makefiles use
-prune option with
             find, but the busybox find implementation doesnt seem to understand -prune
15:52 <kasc> any ideas? ^^
15:56 <blindvt`> kasc, USE_DESKTOP(            ACTS(prune))
15:56 <blindvt`> kasc, do away with this silly CONFIG_DESKTOP thing for find and instead add an option for
the args of find
                 that are currently hidden with DESKTOP
16:07 <blindvt`> kasc, the same for all other args of find that are hidden below DESKTOP
16:08 <blindvt`> kasc, then, after cursory testing, send the patch to the mailing-list, please

so here is the patch ;)
(applies to 1.5.0 release, tested to works-for-me-and-fixed-my-problem status)

greetings,
Kai

Gmane