PhatHack

The Hacking Hoedown => PhatBox Hacking => Topic started by: sbingner on June 21, 2005, 09:08:47 AM

Title: Fully working compile environment
Post by: sbingner on June 21, 2005, 09:08:47 AM
I got busybox compiled and running using the compile environment for a similar chip from http://www.opto22.com/products/linux/SNAPOEMIOLinuxREADME.aspx#Installation

Thx no more segfault....

Sam
Title: Re: Fully working compile environment
Post by: bushing on June 21, 2005, 11:46:18 AM
QuoteI got busybox compiled and running using the compile environment for a similar chip from http://www.opto22.com/products/linux/SNAPOEMIOLinuxREADME.aspx#Installation

Thx no more segfault....

Sam


Congrats!  It looks like there's something wonky about glibc that causes segfaults -- I see that they're using uClibc.  I had good luck with diet libc.

See also http://wiki.phathack.com/Compile_for_the_PhatBox

-b
Title: Re: Fully working compile environment
Post by: sbingner on June 21, 2005, 08:39:23 PM
Actually, there are 2 buildroots there... uclibc and glibc, both work fine... but the glibc version generates larger files so I compiled busybox as uclibc...  I tried both tho
Title: Re: Fully working compile environment
Post by: Oaf on June 21, 2005, 10:42:11 PM
Yes, I can confirm that the diet libc and crosstool combo detailed on the wiki page works well. :-)
Title: Re: Fully working compile environment
Post by: sbingner on June 21, 2005, 11:25:58 PM
QuoteYes, I can confirm that the diet libc and crosstool combo detailed on the wiki page works well. :-)

it works for some things, but it won't compile any larger programs such as busybox
Title: Re: Fully working compile environment
Post by: bushing on June 21, 2005, 11:44:28 PM
Quote

it works for some things, but it won't compile any larger programs such as busybox

Hmmm... why not?

-b
Title: Re: Fully working compile environment
Post by: sbingner on June 22, 2005, 03:14:06 AM
busybox compile blows up with diet, some functions not allowed or something... and if you compile w/o diet it segfaults...

with the ones I listed, it works fine as glibc or uclibc... and I've got a recompile of the crosstool for different settings running, hopefully that will give me a working cross-compile environment also
Title: Re: Fully working compile environment
Post by: Oaf on June 22, 2005, 08:53:27 AM
Can you update the wiki page with your findings? I'd be interested to see a bit more detail on this and it would probably be useful for others too.
Thanks
Oaf
Title: Re: Fully working compile environment
Post by: sbingner on June 22, 2005, 09:59:13 AM
I plan on it, soon as I'm done testing crosstool with a few different opts
Title: Re: Fully working compile environment
Post by: sbingner on June 22, 2005, 10:20:16 AM
Wiki updated with how to build a crosstool that doesn't segfault... I don't want to link to the precompiled one because I don't really know how they compiled it etc.

Anybody who knows how to build uclibc for it, please update the wiki ;)

Sam