[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] Problems building statically linked busybox for powerpc
From:       Mikko Alutoin <mikko.alutoin () vtt ! fi>
Date:       2002-01-25 2:31:04
[Download RAW message or body]

Hello folks!

I have some problems with ash and msh shells while trying to build a 
statically linked busybox version 0.60.2.
Namely, they won't run in my custom board with powerpc processor (mpc8260).
This it what happens:

****************************************************************************
bash-2.03# busybox echo Moi!
Moi!
bash-2.03# busybox ash
Illegal instruction
bash-2.03# busybox msh


BusyBox v0.60.2 (2002.01.25-08:55+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

Illegal instruction
bash-2.03# busybox lash


BusyBox v0.60.2 (2002.01.25-08:55+0000) Built-in shell (lash)
Enter 'help' for a list of built-in commands.

/ #
****************************************************************************

As you can see, for example echo and lash work just fine.
I am using uClibc-0.9.8 and debian cross-development tools.

Can anybody tell me what I'm doing wrong?

Cheers,
Mikko

P.S. Here is some additional information that I got using strace:

**************************************************************************** 
***********************
bash-2.03# strace busybox ash
execve("/bin/busybox", ["busybox", "ash"], [/* 17 vars */]) = 0
ioctl(1, 0x402c7413, 0x7ffffd28)        = 0
sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 0) = 0
--- SIGILL (Illegal instruction) ---
+++ killed by SIGILL +++
bash-2.03# strace busybox msh
execve("/bin/busybox", ["busybox", "msh"], [/* 17 vars */]) = 0
ioctl(1, 0x402c7413, 0x7ffffd28)        = 0
mmap(0x19000000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_ANONYMOU
S, 0, 0) = 0x19000000
mmap(0x18000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) =
0x18000000
close(10)                               = -1 EBADF (Bad file descriptor)
close(11)                               = -1 EBADF (Bad file descriptor)
close(12)                               = -1 EBADF (Bad file descriptor)
close(13)                               = -1 EBADF (Bad file descriptor)
close(14)                               = -1 EBADF (Bad file descriptor)
close(15)                               = -1 EBADF (Bad file descriptor)
close(16)                               = -1 EBADF (Bad file descriptor)
close(17)                               = -1 EBADF (Bad file descriptor)
close(18)                               = -1 EBADF (Bad file descriptor)
close(19)                               = -1 EBADF (Bad file descriptor)
getpid()                                = 19
geteuid()                               = 0
ioctl(0, 0x402c7413, 0x7ffffc68)        = 0
ioctl(0, 0x402c7413, 0x7ffffc88)        = 0
ioctl(1, 0x402c7413, 0x7ffffc88)        = 0
write(1, "\n", 1
)                       = 1
write(1, "\n", 1
)                       = 1
write(1, "BusyBox v0.60.2 (2002.01.25-08:5"..., 61BusyBox v0.60.2 
(2002.01.25-08
:55+0000) Built-in shell (msh)
) = 61
write(1, "Enter \'help\' for a list of built"..., 46Enter 'help' for a list 
of b
uilt-in commands.
) = 46
write(1, "\n", 1
)                       = 1
sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 0) = 0
sigaction(SIGTERM, {0x100253e8, [], 0}, {SIG_DFL}, 0) = 0
sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 0) = 0
sigaction(SIGINT, {0x100251e8, [], 0}, {SIG_IGN}, 0) = 0
--- SIGILL (Illegal instruction) ---
+++ killed by SIGILL +++
bash-2.03#
**************************************************************************** 
***********************



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic