[Scratchbox-users] problem with scratchbox

2007-06-03 Thread sfora dim

hello,

My target is OMAP2430. I already have a working 3rd party pre compiled
toolchain for it.

In addition, I already have a working target filesystem, which were compiled
with my 3rd party toolchain. It is bootable and has libc inside.

I only want to use scratchbox to add small additions, like dbus.

If I use a scratchbox toolchain, like scratchbox-toolchain-arm-linux-2006q3-27,
and tell sb-menu to copy libc files to the target, I manage to compile
everything
cleanly. on top of this I copied some files from my precompiled filesystem
(like busybox and kernel modules). I kept the scratchbox /lib files
and not taken
the /lib from my precompiled filesystem.
But when I try to boot from this filesystem (with a kernel I compile using my
3rd party toolchain),
I get "Kernel panic - not syncing: Attempted to kill init!".

So I tried to tell sb-menu not to copy the libc files to the target.
Instead I just
copied the whole bunch from my precompiled filesystem, including the /lib and
everything. But now when I run "./configure" from within scratchbox, the
./configure script schouts the following:
"checking whether the C compiler works... configure: error: cannot run
C compiled
programs. If you want to cross compile, use '--host'.".

Do you have any idea what I should do ?

Do I have to to setup my 3rd party toolchain as a foreign scratchbox toolchain ?

thank you,
sfora
___
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users


Re: [Scratchbox-users] problem with scratchbox

2007-06-03 Thread Veli Kaksonen

Hi,

You are probably using Qemu which is not able (for reason or another) to
run your binaries. You could try another Qemu or sbrsh.

If this does not help please provide your config.log from the build directory
and {target}.config from /targets/ so we can see better what is happening.
Please use pastebin etc. for the log and config.


- Veli


On 03/06, sfora dim wrote:
> hello,
> 
> My target is OMAP2430. I already have a working 3rd party pre compiled
> toolchain for it.
> 
> In addition, I already have a working target filesystem, which were compiled
> with my 3rd party toolchain. It is bootable and has libc inside.
> 
> I only want to use scratchbox to add small additions, like dbus.
> 
> If I use a scratchbox toolchain, like 
> scratchbox-toolchain-arm-linux-2006q3-27,
> and tell sb-menu to copy libc files to the target, I manage to compile
> everything
> cleanly. on top of this I copied some files from my precompiled filesystem
> (like busybox and kernel modules). I kept the scratchbox /lib files
> and not taken
> the /lib from my precompiled filesystem.
> But when I try to boot from this filesystem (with a kernel I compile using 
> my
> 3rd party toolchain),
> I get "Kernel panic - not syncing: Attempted to kill init!".
> 
> So I tried to tell sb-menu not to copy the libc files to the target.
> Instead I just
> copied the whole bunch from my precompiled filesystem, including the /lib 
> and
> everything. But now when I run "./configure" from within scratchbox, the
> ./configure script schouts the following:
> "checking whether the C compiler works... configure: error: cannot run
> C compiled
> programs. If you want to cross compile, use '--host'.".
> 
> Do you have any idea what I should do ?
> 
> Do I have to to setup my 3rd party toolchain as a foreign scratchbox 
> toolchain ?
> 
> thank you,
> sfora
> ___
> Scratchbox-users mailing list
> Scratchbox-users@lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

-- 
Veli Kaksonen - CTO - Movial Creative Technologies Inc
Porkkalankatu 13 J, FI-00180 Helsinki
Mobile +358 40 549 0437, Tel +358 9 8567 6400
Fax +358 9 8567 6401
www.movial.fi

___
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users


Re: [Scratchbox-users] problem with scratchbox

2007-06-03 Thread sfora dim

Hi Veli,

On 6/3/07, Veli Kaksonen <[EMAIL PROTECTED]> wrote:

You are probably using Qemu which is not able (for reason or another) to
run your binaries. You could try another Qemu or sbrsh.


I have tried all possible arm-based Qemu, but they all failed.
To make sure it is Qemu problem, I have sent an a.out file to the target,
and there it indeed ran ok.
So I am trying sbrsh now, but when I try to execute ./a.out (simple hello world)
I get on the host:

[sbox-2430-orig-fs: ~] > ./a.out
sbrsh: Can't get user information about uid 1000

and on the target:

# cat /tmp/sbrshd-1202.log
01-01-1970 00:22:24.364   941  DAEMON Debugging enabled
01-01-1970 00:22:24.364   941  DAEMON sbrshd version 7.4
01-01-1970 00:22:24.364   941  DAEMON Port: 1202
01-01-1970 00:22:24.364   941  DAEMON Local only: no
01-01-1970 00:22:24.364   941  DAEMON Sandbox: yes
01-01-1970 00:22:24.364   941  DAEMON Ident: no
01-01-1970 00:22:24.364   941  DAEMON Allow root: no
01-01-1970 00:22:24.364   941  DAEMON Mount expiration: 900 seconds
01-01-1970 00:22:24.364   941  DAEMON Checking for expired mounts
01-01-1970 00:22:24.364   941  DAEMON Waiting for connection
01-01-1970 00:22:30.906   941  DAEMON New connection
01-01-1970 00:22:30.906   941  DAEMON Client IP address is 10.0.0.11
01-01-1970 00:22:30.906   941  DAEMON Sending VERSION packet
01-01-1970 00:22:30.907   941  DAEMON Reading client's VERSION packet
01-01-1970 00:22:30.907   941  DAEMON Reading USER packet
01-01-1970 00:22:30.909   941  DAEMON Error: Received packet has
unexpected type (No data available)
01-01-1970 00:22:30.909   941  DAEMON Sending RC packet: 32767
01-01-1970 00:22:30.910   941  DAEMON Checking for expired mounts
01-01-1970 00:22:30.910   941  DAEMON Waiting for connection

Do you have any idea why my sbrsh doesn't work (I'm using uid 1000 on my sb
host btw) ?

thank you
sfora



If this does not help please provide your config.log from the build directory
and {target}.config from /targets/ so we can see better what is happening.
Please use pastebin etc. for the log and config.


- Veli


On 03/06, sfora dim wrote:
> hello,
>
> My target is OMAP2430. I already have a working 3rd party pre compiled
> toolchain for it.
>
> In addition, I already have a working target filesystem, which were compiled
> with my 3rd party toolchain. It is bootable and has libc inside.
>
> I only want to use scratchbox to add small additions, like dbus.
>
> If I use a scratchbox toolchain, like
> scratchbox-toolchain-arm-linux-2006q3-27,
> and tell sb-menu to copy libc files to the target, I manage to compile
> everything
> cleanly. on top of this I copied some files from my precompiled filesystem
> (like busybox and kernel modules). I kept the scratchbox /lib files
> and not taken
> the /lib from my precompiled filesystem.
> But when I try to boot from this filesystem (with a kernel I compile using
> my
> 3rd party toolchain),
> I get "Kernel panic - not syncing: Attempted to kill init!".
>
> So I tried to tell sb-menu not to copy the libc files to the target.
> Instead I just
> copied the whole bunch from my precompiled filesystem, including the /lib
> and
> everything. But now when I run "./configure" from within scratchbox, the
> ./configure script schouts the following:
> "checking whether the C compiler works... configure: error: cannot run
> C compiled
> programs. If you want to cross compile, use '--host'.".
>
> Do you have any idea what I should do ?
>
> Do I have to to setup my 3rd party toolchain as a foreign scratchbox
> toolchain ?
>
> thank you,
> sfora
> ___
> Scratchbox-users mailing list
> Scratchbox-users@lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

--
Veli Kaksonen - CTO - Movial Creative Technologies Inc
Porkkalankatu 13 J, FI-00180 Helsinki
Mobile +358 40 549 0437, Tel +358 9 8567 6400
Fax +358 9 8567 6401
www.movial.fi

___
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users


___
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users


[Scratchbox-users] problem with sbrsh

2007-06-03 Thread sfora dim

Hello,

I am trying sbrsh, but when I try to execute ./a.out (simple hello world)
I get on the host:

[sbox-2430-orig-fs: ~] > ./a.out
sbrsh: Can't get user information about uid 1000

and on the target:

# cat /tmp/sbrshd-1202.log
01-01-1970 00:22:24.364   941  DAEMON Debugging enabled
01-01-1970 00:22:24.364   941  DAEMON sbrshd version 7.4
01-01-1970 00:22:24.364   941  DAEMON Port: 1202
01-01-1970 00:22:24.364   941  DAEMON Local only: no
01-01-1970 00:22:24.364   941  DAEMON Sandbox: yes
01-01-1970 00:22:24.364   941  DAEMON Ident: no
01-01-1970 00:22:24.364   941  DAEMON Allow root: no
01-01-1970 00:22:24.364   941  DAEMON Mount expiration: 900 seconds
01-01-1970 00:22:24.364   941  DAEMON Checking for expired mounts
01-01-1970 00:22:24.364   941  DAEMON Waiting for connection
01-01-1970 00:22:30.906   941  DAEMON New connection
01-01-1970 00:22:30.906   941  DAEMON Client IP address is 10.0.0.11
01-01-1970 00:22:30.906   941  DAEMON Sending VERSION packet
01-01-1970 00:22:30.907   941  DAEMON Reading client's VERSION packet
01-01-1970 00:22:30.907   941  DAEMON Reading USER packet
01-01-1970 00:22:30.909   941  DAEMON Error: Received packet has
unexpected type (No data available)
01-01-1970 00:22:30.909   941  DAEMON Sending RC packet: 32767
01-01-1970 00:22:30.910   941  DAEMON Checking for expired mounts
01-01-1970 00:22:30.910   941  DAEMON Waiting for connection

Do you have any idea why my sbrsh doesn't work (I'm using uid 1000 on my sb
host btw) ?

thank you
sfora
___
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users