Discussion:
[BusyBox] Probably a dumb question - but is there a c compiler with Busybox - or how to install?
Angus Comber
2005-08-17 16:24:52 UTC
Permalink
Hello

Forgive my ignorance but I need to recompile some program on a busybox - I
have a busybox up and running. Do I need a cross compiler? Or can I just
download a C compiler for busybox? From where?

Angus
Allan Clark
2005-08-17 16:49:09 UTC
Permalink
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox
- I have a busybox up and running. Do I need a cross compiler? Or
can I just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different
architecture than your machine that you can compile on? This answers
your question of whether you need a cross-compiler. For example, I have
a pxa270 (ie arm5te, or armv5te?) handset, and I compile on an x86 linux
SuSE-9.3 host, so I need a cross-compiler. My imaginary associate,
let's call him "Luther" (and he owes me money from the last Seahawks
game, that lying cheat, but I digress) , Luther's building for a
nano-itx, so it's just an i386, and he's got the same glibc there as his
host, so he just compiles with the host (ie non-cross) toolchain on his
Redhat-9.0 system.

2) When you say "I need to recompile some program on busybox", do you mean:
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox

Generally, gcc builds busybox, but you don't say you've got a linux,
unix, or Cygwin platform.

Allan
Angus Comber
2005-08-17 17:21:26 UTC
Permalink
Something I noticed was that I needed to run lspci on my busybox. I just
copied lspci from my Suse Pro 9.3 box and then when I tried to run it got a
segmentation fault. I assumed this was because I needed to compile on the
busybox machine? Am I wrong?

Angus

----- Original Message -----
From: "Allan Clark" <***@chickenandporn.com>
To: "Angus Comber" <***@iteloffice.com>
Cc: <***@codepoet.org>
Sent: Wednesday, August 17, 2005 6:40 PM
Subject: Re: [BusyBox] Probably a dumb question - but is there a c compiler
with Busybox - or how to install?
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox -
I have a busybox up and running. Do I need a cross compiler? Or can I
just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different architecture
than your machine that you can compile on? This answers your question of
whether you need a cross-compiler. For example, I have a pxa270 (ie
arm5te, or armv5te?) handset, and I compile on an x86 linux SuSE-9.3 host,
so I need a cross-compiler. My imaginary associate, let's call him
"Luther" (and he owes me money from the last Seahawks game, that lying
cheat, but I digress) , Luther's building for a nano-itx, so it's just an
i386, and he's got the same glibc there as his host, so he just compiles
with the host (ie non-cross) toolchain on his Redhat-9.0 system.
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox
Generally, gcc builds busybox, but you don't say you've got a linux, unix,
or Cygwin platform.
Allan
Angus Comber
2005-08-17 17:24:55 UTC
Permalink
----- Original Message -----
From: "Allan Clark" <***@chickenandporn.com>
To: "Angus Comber" <***@iteloffice.com>
Cc: <***@codepoet.org>
Sent: Wednesday, August 17, 2005 6:40 PM
Subject: Re: [BusyBox] Probably a dumb question - but is there a c compiler
with Busybox - or how to install?
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox -
I have a busybox up and running. Do I need a cross compiler? Or can I
just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different architecture
than your machine that you can compile on? This answers your question of
whether you need a cross-compiler. For example, I have a pxa270 (ie
arm5te, or armv5te?) handset, and I compile on an x86 linux SuSE-9.3 host,
so I need a cross-compiler. My imaginary associate, let's call him
"Luther" (and he owes me money from the last Seahawks game, that lying
cheat, but I digress) , Luther's building for a nano-itx, so it's just an
i386, and he's got the same glibc there as his host, so he just compiles
with the host (ie non-cross) toolchain on his Redhat-9.0 system.
I could do this I suppose as use a Suse 9.3 machine which may become my
Linux dev machine. But I am running on a VIA Epia M series embedded
motherboard. But I can attach a largish hard drive and compile on the box -
or compile on my Suse box - what do you think would be easiest?
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox
* Basically I have source code for some drivers and just need to compile
them to run on my busybox.
Generally, gcc builds busybox, but you don't say you've got a linux, unix,
or Cygwin platform.
Running busybox on a VIA EPIA M10000 motherboard. I loaded busybox on a IDE
flash disk which is mounted read only - but also can connect a hard drive on
2ns IDE channel. So I could compile with hard drive and then remove? Or
possibly more convenient to cross compile on Suse? How do I go about cross
compiling eg from Suse to the Via?

Sorry but I am a Windows programmer! Gradually learning Linux stuff.

Angus
Allan
Jason Schoon
2005-08-17 17:38:59 UTC
Permalink
Busybox is really irrelevant to the equation here, it is just providing
basic system utilities. It has nothing do with your build environment per
se.

I would check out the crosstool site (http://kegel.com/crosstool/) and
documentation for help, since you are running on a different target that
your host platform. There is a wealth of good tools and information there to
bring you up to speed. I'm sure there are others as well, but Busybox is not
really where you need to investigate.
Post by Angus Comber
----- Original Message -----
Sent: Wednesday, August 17, 2005 6:40 PM
Subject: Re: [BusyBox] Probably a dumb question - but is there a c compiler
with Busybox - or how to install?
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox
-
Post by Angus Comber
I have a busybox up and running. Do I need a cross compiler? Or can I
just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different
architecture
than your machine that you can compile on? This answers your question of
whether you need a cross-compiler. For example, I have a pxa270 (ie
arm5te, or armv5te?) handset, and I compile on an x86 linux SuSE-9.3host,
so I need a cross-compiler. My imaginary associate, let's call him
"Luther" (and he owes me money from the last Seahawks game, that lying
cheat, but I digress) , Luther's building for a nano-itx, so it's just
an
i386, and he's got the same glibc there as his host, so he just compiles
with the host (ie non-cross) toolchain on his Redhat-9.0 system.
I could do this I suppose as use a Suse 9.3 machine which may become my
Linux dev machine. But I am running on a VIA Epia M series embedded
motherboard. But I can attach a largish hard drive and compile on the box
-
or compile on my Suse box - what do you think would be easiest?
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox
* Basically I have source code for some drivers and just need to compile
them to run on my busybox.
Generally, gcc builds busybox, but you don't say you've got a linux,
unix,
or Cygwin platform.
Running busybox on a VIA EPIA M10000 motherboard. I loaded busybox on a
IDE
flash disk which is mounted read only - but also can connect a hard drive on
2ns IDE channel. So I could compile with hard drive and then remove? Or
possibly more convenient to cross compile on Suse? How do I go about cross
compiling eg from Suse to the Via?
Sorry but I am a Windows programmer! Gradually learning Linux stuff.
Angus
Allan
_______________________________________________
busybox mailing list
http://busybox.net/mailman/listinfo/busybox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20050817/dcde43e3/attachment.html
Jason Schoon
2005-08-17 18:38:43 UTC
Permalink
Busybox is really irrelevant to the equation here, it is just providing
basic system utilities. It has nothing do with your build environment per
se.

I would check out the crosstool site (http://kegel.com/crosstool/) and
documentation for help, since you are running on a different target that
your host platform. There is a wealth of good tools and information there to
bring you up to speed. I'm sure there are others as well, but Busybox is not
really where you need to investigate.
Post by Angus Comber
----- Original Message -----
From: "Allan Clark" <allanc at chickenandporn.com>
To: "Angus Comber" <angus at iteloffice.com>
Cc: <busybox at codepoet.org>
Sent: Wednesday, August 17, 2005 6:40 PM
Subject: Re: [BusyBox] Probably a dumb question - but is there a c compiler
with Busybox - or how to install?
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox
-
Post by Angus Comber
I have a busybox up and running. Do I need a cross compiler? Or can I
just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different
architecture
than your machine that you can compile on? This answers your question of
whether you need a cross-compiler. For example, I have a pxa270 (ie
arm5te, or armv5te?) handset, and I compile on an x86 linux SuSE-9.3host,
so I need a cross-compiler. My imaginary associate, let's call him
"Luther" (and he owes me money from the last Seahawks game, that lying
cheat, but I digress) , Luther's building for a nano-itx, so it's just
an
i386, and he's got the same glibc there as his host, so he just compiles
with the host (ie non-cross) toolchain on his Redhat-9.0 system.
I could do this I suppose as use a Suse 9.3 machine which may become my
Linux dev machine. But I am running on a VIA Epia M series embedded
motherboard. But I can attach a largish hard drive and compile on the box
-
or compile on my Suse box - what do you think would be easiest?
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox
* Basically I have source code for some drivers and just need to compile
them to run on my busybox.
Generally, gcc builds busybox, but you don't say you've got a linux,
unix,
or Cygwin platform.
Running busybox on a VIA EPIA M10000 motherboard. I loaded busybox on a
IDE
flash disk which is mounted read only - but also can connect a hard drive on
2ns IDE channel. So I could compile with hard drive and then remove? Or
possibly more convenient to cross compile on Suse? How do I go about cross
compiling eg from Suse to the Via?
Sorry but I am a Windows programmer! Gradually learning Linux stuff.
Angus
Allan
_______________________________________________
busybox mailing list
busybox at mail.busybox.net
http://busybox.net/mailman/listinfo/busybox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20050817/dcde43e3/attachment.htm
Angus Comber
2005-08-17 18:21:19 UTC
Permalink
Something I noticed was that I needed to run lspci on my busybox. I just
copied lspci from my Suse Pro 9.3 box and then when I tried to run it got a
segmentation fault. I assumed this was because I needed to compile on the
busybox machine? Am I wrong?

Angus

----- Original Message -----
From: "Allan Clark" <allanc at chickenandporn.com>
To: "Angus Comber" <angus at iteloffice.com>
Cc: <busybox at codepoet.org>
Sent: Wednesday, August 17, 2005 6:40 PM
Subject: Re: [BusyBox] Probably a dumb question - but is there a c compiler
with Busybox - or how to install?
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox -
I have a busybox up and running. Do I need a cross compiler? Or can I
just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different architecture
than your machine that you can compile on? This answers your question of
whether you need a cross-compiler. For example, I have a pxa270 (ie
arm5te, or armv5te?) handset, and I compile on an x86 linux SuSE-9.3 host,
so I need a cross-compiler. My imaginary associate, let's call him
"Luther" (and he owes me money from the last Seahawks game, that lying
cheat, but I digress) , Luther's building for a nano-itx, so it's just an
i386, and he's got the same glibc there as his host, so he just compiles
with the host (ie non-cross) toolchain on his Redhat-9.0 system.
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox
Generally, gcc builds busybox, but you don't say you've got a linux, unix,
or Cygwin platform.
Allan
Angus Comber
2005-08-17 17:59:20 UTC
Permalink
----- Original Message -----
From: "Allan Clark" <allanc at chickenandporn.com>
To: "Angus Comber" <angus at iteloffice.com>
Cc: <busybox at codepoet.org>
Sent: Wednesday, August 17, 2005 6:40 PM
Subject: Re: [BusyBox] Probably a dumb question - but is there a c compiler
with Busybox - or how to install?
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox -
I have a busybox up and running. Do I need a cross compiler? Or can I
just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different architecture
than your machine that you can compile on? This answers your question of
whether you need a cross-compiler. For example, I have a pxa270 (ie
arm5te, or armv5te?) handset, and I compile on an x86 linux SuSE-9.3 host,
so I need a cross-compiler. My imaginary associate, let's call him
"Luther" (and he owes me money from the last Seahawks game, that lying
cheat, but I digress) , Luther's building for a nano-itx, so it's just an
i386, and he's got the same glibc there as his host, so he just compiles
with the host (ie non-cross) toolchain on his Redhat-9.0 system.
I could do this I suppose as use a Suse 9.3 machine which may become my
Linux dev machine. But I am running on a VIA Epia M series embedded
motherboard. But I can attach a largish hard drive and compile on the box -
or compile on my Suse box - what do you think would be easiest?
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox
* Basically I have source code for some drivers and just need to compile
them to run on my busybox.
Generally, gcc builds busybox, but you don't say you've got a linux, unix,
or Cygwin platform.
Running busybox on a VIA EPIA M10000 motherboard. I loaded busybox on a IDE
flash disk which is mounted read only - but also can connect a hard drive on
2ns IDE channel. So I could compile with hard drive and then remove? Or
possibly more convenient to cross compile on Suse? How do I go about cross
compiling eg from Suse to the Via?

Sorry but I am a Windows programmer! Gradually learning Linux stuff.

Angus
Allan
Rob Landley
2005-08-17 17:39:44 UTC
Permalink
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox - I
have a busybox up and running. Do I need a cross compiler? Or can I just
download a C compiler for busybox? From where?
Angus
This is rather like saying you need to recompile a program on a coreutils.
Busybox is a software package, not a distribution. It's a multi-function
software package, but saying you need a compiler for busybox is like saying
you need to download a compiler for ssh.

Rob
Angus Comber
2005-08-17 17:09:26 UTC
Permalink
Hello

Forgive my ignorance but I need to recompile some program on a busybox - I
have a busybox up and running. Do I need a cross compiler? Or can I just
download a C compiler for busybox? From where?

Angus
Allan Clark
2005-08-17 17:40:50 UTC
Permalink
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox
- I have a busybox up and running. Do I need a cross compiler? Or
can I just download a C compiler for busybox? From where?
1) What hardware is your busybox running on? Is it different
architecture than your machine that you can compile on? This answers
your question of whether you need a cross-compiler. For example, I have
a pxa270 (ie arm5te, or armv5te?) handset, and I compile on an x86 linux
SuSE-9.3 host, so I need a cross-compiler. My imaginary associate,
let's call him "Luther" (and he owes me money from the last Seahawks
game, that lying cheat, but I digress) , Luther's building for a
nano-itx, so it's just an i386, and he's got the same glibc there as his
host, so he just compiles with the host (ie non-cross) toolchain on his
Redhat-9.0 system.

2) When you say "I need to recompile some program on busybox", do you mean:
2.1) I need to change the way busybox's mount command works; or
2.2) I need to add my company's xyz-dongle-setup-tool to be an applet
inside busybox

Generally, gcc builds busybox, but you don't say you've got a linux,
unix, or Cygwin platform.

Allan
Rob Landley
2005-08-17 18:39:31 UTC
Permalink
Post by Angus Comber
Hello
Forgive my ignorance but I need to recompile some program on a busybox - I
have a busybox up and running. Do I need a cross compiler? Or can I just
download a C compiler for busybox? From where?
Angus
This is rather like saying you need to recompile a program on a coreutils.
Busybox is a software package, not a distribution. It's a multi-function
software package, but saying you need a compiler for busybox is like saying
you need to download a compiler for ssh.

Rob

Loading...