Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#220651 - 20/01/2002 11:29 Problems compiling kernel
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
I am trying to port voladj and probably some stuff from HiJack across from empeg to the Receiver. My first step is to get a stock kernel built.

I have successfully compiled an empeg kernel, so I know my cross compiler is working. When I try to compile the Rio Receiver, I get the following error, does anyone know what is going wrong:
------------------------------------------------------------
make[1]: Entering directory `/usr/local/src/rioreceiver-v1.03/mercury-kernel/arch/arm/kernel'
arm-empeg-linux-gcc -D__KERNEL__ -I/usr/local/src/rioreceiver-v1.03/mercury-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:495: Error: only flag field of psr can be set with immediate value
entry-armv.S:537: Error: only flag field of psr can be set with immediate value
entry-armv.S:570: Error: only flag field of psr can be set with immediate value
entry-armv.S:617: Error: only flag field of psr can be set with immediate value
entry-armv.S:631: Error: only flag field of psr can be set with immediate value
entry-common.S:27: Error: only flag field of psr can be set with immediate value
entry-armv.S:694: Error: only flag field of psr can be set with immediate value
entry-armv.S:734: Error: only flag field of psr can be set with immediate value
entry-armv.S:775: Error: only flag field of psr can be set with immediate value
entry-armv.S:802: Error: only flag field of psr can be set with immediate value
make[1]: *** [entry-armv.o] Error 1
make[1]: Leaving directory `/usr/local/src/rioreceiver-v1.03/mercury-kernel/arch/arm/kernel'
make: *** [_dir_arch/arm/kernel] Error 2
----------------------------------------------------------

Line 495 reads:

msr cpsr_c, #I_BIT | MODE_SVC

Line 537 reads:

msr cpsr_c, #I_BIT | MODE_SVC
_________________________
Remind me to change my signature to something more interesting someday

Top
#220652 - 20/01/2002 12:48 Re: Problems compiling kernel [Re: andy]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
I managed to resolve the problem. I was using the pre-built cross compiler that Mark provides for the empeg at http://empeg-hijack.sourceforge.net/ which wasn't working. I have switched to use the cross compiler that Jeff Mock provides at http://www.mock.com/receiver/tools/ for the Receiver which is working fine.

As far as I can see Mark's tool chain should work, there are no Receiver specific steps detailed in Jeff's instructions of how to build your own tool chain, so I don't know why Mark's didn't work on the Receiver kernel. I even checked the versions, both are based on gcc 2.95.2
_________________________
Remind me to change my signature to something more interesting someday

Top