Skip to contentSkip to conversation

Kernel booting issues on a MPC8270 board

DISCUSSION annamaya 2 participants 5 messages Jan 20, 2005 – Jan 21, 2005

lore
Share & tools
lore

annamaya

author
#0 lore raw

I am trying to boot a mvista Linux Kernel ver. 2.4.20 on a MPC8270 board. I am using the embed_config() in zImage to pass the board info since the bootloader is not ppcboot. After the message, "Now booting the kernel", the board just reboots, as if someone yanked the reset line. I have BDI hooked up but it doesn't seem to catch the reset point in the code. And I am unable to trace this to anything in the code. Any suggestions? Thanks in advance.

__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

author
#1 lore raw

I debugged this problem a little more and realized 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 that was dealing with pipeline depth issues on the 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 of the debug since my BDI fails to catch the reset when it happens. Can someone point me to the cause of this situation? Thanks in advance.

Quoted 16 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() in
zImage to pass the board info since the bootloader is
not ppcboot. After the message, "Now booting the kernel", the board just reboots, as if someone yanked
the reset line. I have BDI hooked up but it doesn't seem to catch the reset point in the code. And I am unable to trace this to anything in the code. Any suggestions? Thanks in advance.

Quoted 9 lines

__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
_______________________________________________
Linuxppc-embedded mailing list [email protected]

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

Quoted 1 line

__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

author
#3 lore raw
In reply to Randy Vinson

Thanks for the input Randy. I thought of this too early on and verified that the Software Watchdog timer was disabled. And as I pointed it, it first happened on the very first instruction even when I was single stepping on the debugger.

Quoted 29 lines · --- Randy Vinson
Quoted 5 lines · annamaya

I debugged this problem a little more and realized 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 4 lines

that was dealing with pipeline depth issues on the 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

of

Quoted 1 line

the debug since my BDI fails to catch the reset

when

Quoted 1 line

it happens. Can someone point me to the cause of

this

Quoted 1 line

situation? Thanks in advance.

I'm not familiar with the 8260, but this sounds very much like a
hardware watchdog is expiring somewhere. Check to see if the hardware
has an on-board watchdog (most likely in the timer section of the 8260)
and see if the firmware has armed it. If so, you'll need to add a
snippet of code to disable the watchdog to allow boot-up to complete.

Quoted 2 lines

Randy Vinson

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

author
#4 lore raw
In reply to annamaya

I am sorry but I dont believe the "mfpvr" instruction has anything to do with it. I thought removing it was getting rid of the problem but I was wrong. The board still gets reset when the very first instruction is executed. I am stumped.

Quoted 27 lines · --- annamaya

I debugged this problem a little more and realized 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 that was dealing with pipeline depth issues on the 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 of
the debug since my BDI fails to catch the reset when it happens. Can someone point me to the cause of this
situation? Thanks in advance.

Quoted 10 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() in
zImage to pass the board info since the bootloader is
not ppcboot. After the message, "Now booting the kernel", the board just reboots, as if someone yanked
the reset line. I have BDI hooked up but it

Quoted 18 lines

doesn't

Quoted 1 line

seem to catch the reset point in the code. And I

am

Quoted 14 lines

unable to trace this to anything in the code. Any
suggestions? Thanks in advance.

__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn
more.
http://info.mail.yahoo.com/mail_250
_______________________________________________
Linuxppc-embedded mailing list
[email protected]

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

Quoted 11 lines
Quoted 1 line

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

http://promotions.yahoo.com/new_mail

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

#2 lore raw
In reply to annamaya
Quoted 4 lines · annamaya

I debugged this problem a little more and realized that the reset was happenning right after the execution of the first kernel instruction at 0x0000000c. The instruction at this location was

Quoted 8 lines

"mfpvr r28". I traced this back to a snippet of code that was dealing with pipeline depth issues on the 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 of the debug since my BDI fails to catch the reset when it happens. Can someone point me to the cause of this situation? Thanks in advance.

I'm not familiar with the 8260, but this sounds very much like a hardware watchdog is expiring somewhere. Check to see if the hardware has an on-board watchdog (most likely in the timer section of the 8260) and see if the firmware has armed it. If so, you'll need to add a snippet of code to disable the watchdog to allow boot-up to complete.

Randy Vinson