Build environment help

Posted by: kday

Build environment help - 05/01/2002 20:12

Hello -

I just got my empeg last week and, of course, I love the damned thing already. I want to start hacking it. I have a fair amount of Linux and embedded ARM (SA110) development experience, but I've never needed both for the same machine before... this ought to be interesting.
To get my feet wet, I want to write a mileage computer. You know, just type in the odometer reading and fuel amout at every fill-up (hooking it up to the fuel computer for real time fuel consumption comes later ). I've been playing around with Hijack and it seems perfect for what I want to do.

However, I can't get a kernel to build. I've tried a few different ARM toolchains from the net, as well as a freshly-built binutils 2.11.92. This happens with a clean kernel from empeg... anybody know what's going on?


/usr/local/arm/bin/arm-linux-gcc -D__KERNEL__ -I/usr/src/empeg/kernel/include -D__ASSEMBLY__ -mno-fpu -mapcs-32 -marmv4 -c -o entry-armv.o entry-armv.S
entry-armv.S: Assembler messages:
entry-armv.S:456: Warning: Rn and Rd must be different in LDRT
entry-armv.S:500: Warning: rest of line ignored; first ignored character is `0'
entry-armv.S:542: Warning: rest of line ignored; first ignored character is `0'
entry-common.S:27: Warning: rest of line ignored; first ignored character is `0'
entry-armv.S:729: Warning: rest of line ignored; first ignored character is `0'
entry-armv.S:769: Warning: rest of line ignored; first ignored character is `0'
entry-armv.S:810: Warning: rest of line ignored; first ignored character is `0'
entry-armv.S:837: Warning: rest of line ignored; first ignored character is `0'
entry-common.S:86: Error: Internal_relocation (type 230) not fixed up (IMMEDIATE)
make[1]: *** [entry-armv.o] Error 1
make[1]: Leaving directory `/u6/empeg/kernel/arch/arm/kernel'

Posted by: mlord

Re: Build environment help - 05/01/2002 21:12

Try the pre-built (Redhat-7.0 or later, including Mandrake) toolchain from my site -- I updated it earlier this week for better distribution compatibility:

http://empeg-hijack.sourceforge.net/

Just untar it as root under / (it will end up under /usr/local/armtools-empeg/

and then pre-pend "/usr/local/armtools-empeg/bin" to your PATH before using make. This is exactly what I use to build the Hijack kernels I distribute.

export PATH="/usr/local/armtools-empeg/bin:$PATH"

Cheers.

-ml
Posted by: Fastrack

Re: Build environment help - 05/01/2002 21:23

Hey, that sounds like a cool little hack. Keep us updated, it would be handy!