Skip to contentSkip to conversation

Questions about compliing ppcboot-0.6.2

DISCUSSION xuelong wang 2 participants 2 messages Jan 19, 2001

lore
Share & tools
lore
#0 lore raw

Dear sir,
I have a target board with a flash on it, and I¡¯d like to put ppcboot-0.6.2 into it by a writer. But when I compile ppcboot-0.6.2 under the environment of RedHat Linux 6.2 and with the help of ppc_8xx-gcc which is a compiling utility included by CDK1.2, the following problems appeared.

1. A file can not be complied, the error message is:

Quoted 1 line

/usr/local/src/ppcboot/ppcboot->0.6.2/include/ppc_asm.tmpl:232:

Error:Rest of line >ignored. First >ignored character is ¡®\¡¯.

Quoted 3 lines

¡­
¡­ /usr/local/src/ppcboot/ppcboot->0.6.2/include/ppc_asm.tmpl:242:

Error:Rest of line >ignored. First >ignored character is ¡®\¡¯.

Quoted 1 line

/usr/local/src/ppcboot/ppcboot->0.6.2/include/ppc_asm.tmpl:243:

Error:Rest of line >ignored. First >ignored character is ¡®\¡¯.

These lines located in ppcboot-0.6.2/include/ppc_asm. tmpl can be writed as follows:

Quoted 10 lines
#define STD_EXCEPTION(n, label, hdlr)	\
	. = n;				\
label:					\
	EXCEPTION_PROLOG;			\
	lwz	r3,GOT(transfer_to_handler);\
	mtlr	r3;		          \
	addi	r3,r1,STACK_FRAME_OVERHEAD; \
	li	r20,MSR_KERNEL;		 \
	rlwimi	r20,r23,0,25,25;		 \
	blrl	; 			 \

.>L_ ## label : \

Quoted 2 lines

.long hdlr - _start + EXC_OFF_SYS_RESET;\
.long int_return - _start + EXC_OFF_SYS_RESET

Can you give me a hint to explain what happened.

2. When I read the Makefile of ppcboot-0.6.2/ (i.e. ppcboot-0.6.2/Makefile), I find 4 lines like this:

Quoted 5 lines

subdirs:
@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir ||
exit 1 ; done
depend dep:
@for dir in $(SUBDIRS) ; do $(MAKE) -C >$$dir

.depend ; done

but I can not find the definition of ¡°MAKE¡± in this file or the other files included by this package. Can you tell me what ¡°MAKE ¡± is and where the definition locates?

3. If you think that I use the wrong versions of
RedHat Linux, or that I use the wrong CDK , or that the way I compile ppcboot-0.6.2 is absolutely stupid, please don't hesitate giving me a message.

Thanks in advance.
Best Regards
Yours sincerely Xuelong Wang

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I have a target board with a flash on it, and I¡¯d like to put ppcboot-0.6.2 into it by a writer. But

I just replied to that. Don't waste your time (and ours!!!) with old versions, use a current version of PPCBoot instead.

AND PLEASE SEND PPCBoot RELATED QUESTIONS TO THE PPCBoot MAILING LIST!

AND PLEASE SEND PPCBoot RELATED QUESTIONS TO THE PPCBoot MAILING LIST!

AND PLEASE SEND PPCBoot RELATED QUESTIONS TO THE PPCBoot MAILING LIST!

Quoted 1 line

when I compile ppcboot-0.6.2 under the environment of

Please get ppcboot-0.7.3 or the latest CVS snapshot.

Quoted 5 lines

1. A file can not be complied, the error message is:

Quoted 1 line

/usr/local/src/ppcboot/ppcboot->0.6.2/include/ppc_asm.tmpl:232:

Error:Rest of line >ignored. First >ignored character is ¡®\¡¯.

This is most certainly NOT the error message as you read it. With all these funny characters it's hard to guess where it complained.

Quoted 1 line

Can you give me a hint to explain what happened.

Your file got corrupted. Please unpack it from the original tarball. Make sure to use "binary" mode when copying the file to other filesystem types.

Quoted 4 lines

but I can not find the definition of ¡°MAKE¡± in this file or the other files included by this package. Can you tell me what ¡°MAKE ¡± is and where the definition locates?

Please see the man page for the make command.

Quoted 2 lines

3. If you think that I use the wrong versions of
RedHat Linux, or that I use the wrong CDK , or that

Well, RH-6.2 is a bit old, too, but it works for me; and the HHL CDK works here, too.

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Time is a drug. Too much of it kills you.
- Terry Pratchett, _Small Gods_

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/