From: Tadas <tpt@pupa.da.ru>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] ppc405gp cpu problems
Date: Sun, 12 Sep 2004 05:09:18 +0300 [thread overview]
Message-ID: <008d01c4986d$8293fb90$030aa8c0@t> (raw)
In-Reply-To: 002b01c49709$87c9ddb0$0212000a@PCSTEFAN
Hello,
I still have lots of problems with my board.
ppc405gp board. 8mb ram, 1mb flash, 1 pci , ethernet.
Mostly with linux, but also with bootloader.
first problem with bootloader:
(this is default code for all ppc405 boards )
----------------------------------
_start:
addi r4,r0,0x0000 // second command executed after reset
mtspr sgr,r4
mtspr dcwr,r4
mtesr r4 /* clear Exception Syndrome Reg */
mttcr r4 /* clear Timer Control Reg */
mtxer r4 /* clear Fixed-Point Exception Reg */
mtevpr r4 /* clear Exception Vector Prefix Reg */
addi r4,r0,0x1000 /* set ME bit (Machine Exceptions) */
oris r4,r4,0x0002 /* set CE bit (Critical Exceptions) */
// mtmsr r4 /* change MSR */ this command creates exception 0x200
(machine check exception) so I need to comment it out,
anyway it still works without it.
addi r4,r0,(0xFFFF-0x10000) /* set r4 to 0xFFFFFFFF (status in the */
/* dbsr is cleared by setting bits to 1) */
mtdbsr r4 /* clear/reset the dbsr */
........---------------------------------------
how that can happen?
Seems everybody else is executing this code without problems
***
Another problem is with MMU on linux.
cpu crashes almost immediately at start.
when linux atempts to initialize MMU
.text:C0000018 turn_on_mmu:
.text:C0000018 lis r0, 2 # 0x21232
.text:C000001C ori r0, r0, 0x1232 # 0x21232
.text:C0000020 mtsrr1 r0
.text:C0000024 lis r0, (start_here >> 16) # 0xC0002250
.text:C0000028 ori r0, r0, (start_here & 0xFFFF)
.text:C000002C mtsrr0 r0
.text:C0000030 rfi
then it should jump to start_here function
text:C0002250 start_here:
.text:C0002250 lis rtoc, (init_task >> 16) # 0xC00D7150
.text:000000200 .......
and and here it crashes, "Machine check exception" hapens.
looks like mmu is initialized incorectly, or it attempts to execute from
nonexsisting memory,
I can view that virtual memory until first command execution, and then it
disaperars. seems cpu goes into r
I cant understand this, seems no board dependent code is even executed,
averything happerns very early in first attempt to initilaize MMU
(but if mmu is initialized from exeption handler code it works.)
everybody else is also runnig that code without problems,
because it is same on all linux kernels.
I have tested 2 boards and all behave in same way.
What can cause such behavior? Or these cpu have some defect?
next prev parent reply other threads:[~2004-09-12 2:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-09 15:06 [U-Boot-Users] MPC8540 FEC/TSEC -Issues while enabling both controllers Sudhakar
2004-09-10 1:30 ` [U-Boot-Users] What is the most simple ppc405gp board Tadas
2004-09-10 7:10 ` Wolfgang Denk
2004-09-10 7:41 ` Stefan Roese
2004-09-10 12:36 ` Tadas
2004-09-10 15:34 ` Stefan Roese
2004-09-12 2:09 ` Tadas [this message]
2004-09-12 16:41 ` [U-Boot-Users] ppc405gp cpu problems Wolfgang Denk
2004-09-16 21:13 ` Tadas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='008d01c4986d$8293fb90$030aa8c0@t' \
--to=tpt@pupa.da.ru \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox