AMiLDA FORUM

You are not logged in.

Announcement

### Our Homepage is down at the moment...work in progress !! ###

#1 2006-10-13 00:01:29

B&Y
Member
Registered: 2006-02-18
Last visit: 2006-10-29
Posts: 11

sources of toolchain for mipsel

Hi,

Does someone know which versions or patches i need to compile a toolchain for adm5120? (Until now I use the Edimax toolchain which works fine, but i need to define a way to build your own (that works) for a document I'm writing)

Binutils compiles allright, but when i try to compile a gcc i get: (tried various versions 2.95.2 / 2.95.3 / 3.0 because these are close to 2.96 used in the Edimax chain)

gcc -c -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.96-20000731/gcc -I../../gcc-2.96-20000731/gcc/config -I../../gcc-2.96-20000731/gcc/../include ../../gcc-2.96-20000731/gcc/reorg.c
../../gcc-2.96-20000731/gcc/reorg.c: In function ‘find_end_label’:
../../gcc-2.96-20000731/gcc/reorg.c:391: error: invalid lvalue in increment
../../gcc-2.96-20000731/gcc/reorg.c: In function ‘delete_from_delay_slot’:
../../gcc-2.96-20000731/gcc/reorg.c:590: error: invalid lvalue in increment
../../gcc-2.96-20000731/gcc/reorg.c: In function ‘make_return_insns’:
../../gcc-2.96-20000731/gcc/reorg.c:3477: error: invalid lvalue in increment
../../gcc-2.96-20000731/gcc/reorg.c: In function ‘dbr_schedule’:
../../gcc-2.96-20000731/gcc/reorg.c:3557: error: invalid lvalue in increment

I know 2.96 is a heavily patched version and not a standard gcc version. But if it works it's alright with me smile I can't seem to find 2.96 though. Or any patches for mipsel...

Someone willing to give me some advise?

Thanks!!!

Benny

Offline

 

#2 2006-10-13 15:12:32

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: sources of toolchain for mipsel

Hi

You can use BuildRoot to generate a toolchain for many embedded architectures besides mipsel. It gan generate many other things too.

Hope this helps you...

Sergio

Offline

 

#3 2006-10-13 17:32:14

B&Y
Member
Registered: 2006-02-18
Last visit: 2006-10-29
Posts: 11

Re: sources of toolchain for mipsel

Thanx,

I know about buildroot... But i'm trying to show how to build a complete custom toochain, but more importantly i'm trying to show wat a toolchain consists of. Buildroot is great, but it makes the job to easy for my purpose wink

I can try and look wat buildroot will does when i tell it to build a chain for mipsel. What patches it applies and that kind of stuff.

I just hoped someone would know what gcc and patch to use for mipsel.

Offline

 

#4 2006-10-13 19:07:07

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: sources of toolchain for mipsel

Nope, i've not been able to compile a toolchain by myself. I guess i'm also missing something.... Anyway that's very difficult stuff to compile... Probably reading the linux-from-scratch project will help (as they build a toolchain via command line).


Sergio

Offline

 

#5 2006-10-13 20:03:52

B&Y
Member
Registered: 2006-02-18
Last visit: 2006-10-29
Posts: 11

Re: sources of toolchain for mipsel

I'm following the "Building embedded linux systems" book from Oreilly. Great book which provides a step by step guide on how to build a toolchain. Allthough it provides some examples on how to do this for various architectures (ppc, arm, mips, etc...), it cannot address problems like these for each target  hmm

Offline

 

#6 2006-10-17 19:46:34

B&Y
Member
Registered: 2006-02-18
Last visit: 2006-10-29
Posts: 11

Re: sources of toolchain for mipsel

OK,

I've built a toolchain with buildroot. (which i haven't tested yet) and now I'm taking the versions of software packages which buildroot uses, and then compile them myself. So far so good. linux headers, binutils and bootstrap gcc have succeded through trying some options... What they mean??? I really do'nt know... sad (for gcc: --disable-threads --disable-multilib --disable-shared)

I'll see if i can post the script i'm writing in case anyone is interested. But if you're not interested in building a toolchain from scratch, I'd recommend buildroot smile

Offline

 

#7 2006-11-20 18:52:04

Tom
New member
Registered: 2006-11-15
Last visit: 2006-11-20
Posts: 4

Re: sources of toolchain for mipsel

If you are interested in the toolchain itself i can recommend the work of "Dan Kegel". He wrote several scripts that build just the toolchain [1]. So far i did not had a look at pure buildroot, but OpenWRT also uses buildroot for its development branch whiterussion. And they have ported many applications for mipsel. At least it is worth to have a look at those efforts just to get to know which software is suitable for an embedded device.

Cheers,
Tom

[1] http://www.kegel.com/crosstool/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB