Skip to contentSkip to conversation

Kernel booting issues on a MPC8270 board

DISCUSSION annamaya 1 participant 2 messages Jan 24, 2005 1 message not in the archive

lore
Share & tools
lore

annamaya

author
#1 lore raw
In reply to a message not in the archive

As someone who has worked on the 8xx processors before, I went looking for the DER for the 8270 but was unable to find such a register. If someone can point me to such a register on the 8270, I would really appreciate it.

It looks like single-stepping doesn't work till later in the Kernel. Anyways, I found out after much debugging that it wasn't the first instruction that the break was occuring but the code made it all the way to the "cacheable_memzero" routine and fails in the "dcbz" instruction. The cpu gets reset as soon as I try to single-step this instruction. Any ideas as to why this is happening?

Quoted 76 lines · --- Mark Chambers

I'm not familiar with the 8270 per se, but on the 8xx you've got this Debug
Enable Register (DER) where you set different bits for things you want the
processor to jump into debug mode when they happen. You might need to play
with that to get the BDI to catch whatever is happening. It's probably set
in the BDI config file somewhere.

----- Original Message -----
From: "annamaya" <[email protected]>
To: "annamaya" <[email protected]>;
<[email protected]>
Sent: Friday, January 21, 2005 4:20 PM
Subject: Re: Kernel booting issues on a MPC8270
board

Quoted 1 line

I am sorry but I dont believe the "mfpvr"

instruction

Quoted 1 line

has anything to do with it. I thought removing it

was

Quoted 1 line

getting rid of the problem but I was wrong. The

board

Quoted 1 line

still gets reset when the very first instruction

is

Quoted 5 lines

executed. I am stumped.

Quoted 1 line · --- annamaya

I debugged this problem a little more and

realized

Quoted 4 lines
Quoted 4 lines

that the reset was happenning right after the execution of the first kernel instruction at 0x0000000c. The instruction at this location was "mfpvr r28". I traced this back to a snippet of

code

Quoted 1 line
Quoted 1 line

that was dealing with pipeline depth issues on

the

Quoted 3 lines
Quoted 3 lines

MPC8260. Once I commented this code out, more instructions were issued but the reboot happens elsewhere. I am not able to pin-point the

location

Quoted 2 lines
Quoted 2 lines

of
the debug since my BDI fails to catch the reset

when

Quoted 9 lines
Quoted 9 lines

it happens. Can someone point me to the cause of this
situation? Thanks in advance.

Quoted 3 lines · --- annamaya

I am trying to boot a mvista Linux Kernel ver.
2.4.20
on a MPC8270 board. I am using the

embed_config()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in
zImage to pass the board info since the

bootloader

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is
not ppcboot. After the message, "Now booting

the

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

kernel", the board just reboots, as if someone
yanked
the reset line. I have BDI hooked up but it

doesn't

Quoted 1 line

seem to catch the reset point in the code. And

I

Quoted 2 lines
Quoted 2 lines

am

Quoted 1 line

unable to trace this to anything in the code.

Any

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

suggestions? Thanks in advance.

Quoted 14 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage.

Learn

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

more.
http://info.mail.yahoo.com/mail_250

_______________________________________________

Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

Linuxppc-embedded mailing list
[email protected]

https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail

SpamGuard.

Quoted 1 line
Quoted 1 line
Quoted 14 lines
Quoted 7 lines
Quoted 2 lines

http://promotions.yahoo.com/new_mail

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam

protection around

Quoted 5 lines

http://mail.yahoo.com
_______________________________________________
Linuxppc-embedded mailing list
[email protected]

https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 2 lines

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

author
#2 lore raw

I finally figured out my problem had to do with the fact that my MPC8270 processor was not supported in the cpu table. I was able to find the definition for 82xx, HiP7 603e entry for CPU table in the 2.4.24 from denx and copied that table into the cpu table of the MVista kernel. Otherwise, the cpu_spec[] structure was defaulting to some entry that set the CPU_FTR_HPTE_TABLE option in the cpu_spec which resulted in execution of some code in cacheable_memzero() routine that resulted in resetting my CPU and my board.

Sorry for all the noise but I thought I should share my debug experience here since someone else might go through this trying to run MVista kernel on a HiP7 82xx processor.

And for the record, the kernel from denx works great. I was just trying to figure out why the MVista one wasn't working.

Thanks for everyone's input on this.

Quoted 95 lines · --- annamaya

As someone who has worked on the 8xx processors before, I went looking for the DER for the 8270 but was unable to find such a register. If someone can point me to such a register on the 8270, I would really appreciate it.

It looks like single-stepping doesn't work till later
in the Kernel. Anyways, I found out after much debugging that it wasn't the first instruction that the break was occuring but the code made it all the way to the "cacheable_memzero" routine and fails in the "dcbz" instruction. The cpu gets reset as soon as
I try to single-step this instruction. Any ideas as to
why this is happening?

Quoted 5 lines · --- Mark Chambers

I'm not familiar with the 8270 per se, but on the 8xx you've got this Debug
Enable Register (DER) where you set different bits for things you want the
processor to jump into debug mode when they

happen.

Quoted 14 lines

You might need to play
with that to get the BDI to catch whatever is
happening. It's probably set
in the BDI config file somewhere.

----- Original Message -----
From: "annamaya" <[email protected]>
To: "annamaya" <[email protected]>;
<[email protected]>
Sent: Friday, January 21, 2005 4:20 PM
Subject: Re: Kernel booting issues on a MPC8270
board

Quoted 3 lines
Quoted 1 line

I am sorry but I dont believe the "mfpvr"

instruction

Quoted 1 line

has anything to do with it. I thought removing

it

Quoted 14 lines

was

Quoted 1 line

getting rid of the problem but I was wrong. The

board

Quoted 1 line

still gets reset when the very first instruction

is

Quoted 5 lines

executed. I am stumped.

Quoted 1 line · --- annamaya

I debugged this problem a little more and

realized

Quoted 3 lines
Quoted 3 lines

that the reset was happenning right after the execution of the first kernel instruction at 0x0000000c. The instruction at this location

was

Quoted 1 line
Quoted 1 line
Quoted 1 line

"mfpvr r28". I traced this back to a snippet

of

Quoted 5 lines

code

Quoted 1 line
Quoted 1 line

that was dealing with pipeline depth issues on

the

Quoted 2 lines
Quoted 2 lines

MPC8260. Once I commented this code out, more instructions were issued but the reboot

happens

Quoted 4 lines
Quoted 1 line
Quoted 1 line

elsewhere. I am not able to pin-point the

location

Quoted 2 lines
Quoted 2 lines

of
the debug since my BDI fails to catch the

reset

Quoted 2 lines

when

Quoted 1 line
Quoted 1 line

it happens. Can someone point me to the cause

of

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

this
situation? Thanks in advance.

Quoted 1 line · --- annamaya

I am trying to boot a mvista Linux Kernel

ver.

Quoted 10 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

2.4.20
on a MPC8270 board. I am using the

embed_config()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in
zImage to pass the board info since the

bootloader

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is
not ppcboot. After the message, "Now booting

the

Quoted 1 line
Quoted 1 line
Quoted 1 line

kernel", the board just reboots, as if

someone

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

yanked
the reset line. I have BDI hooked up but it

Quoted 27 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

doesn't

Quoted 1 line

seem to catch the reset point in the code.

And

Quoted 3 lines

I

Quoted 2 lines
Quoted 2 lines

am

Quoted 1 line

unable to trace this to anything in the

code.

Quoted 19 lines

Any

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

suggestions? Thanks in advance.

__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage.

Learn

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

more.
http://info.mail.yahoo.com/mail_250

_______________________________________________

Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

Linuxppc-embedded mailing list
[email protected]

https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail

Quoted 18 lines
Quoted 7 lines

SpamGuard.

Quoted 6 lines
Quoted 3 lines

http://promotions.yahoo.com/new_mail

__________________________________________________

Quoted 9 lines
Quoted 2 lines

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam

protection around

Quoted 5 lines

http://mail.yahoo.com
_______________________________________________
Linuxppc-embedded mailing list
[email protected]

https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 4 lines
Quoted 2 lines
Quoted 9 lines

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Linuxppc-embedded mailing list [email protected]

https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 1 line

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com