From: Andrew Randrianasulu <randrianasulu@gmail.com>
To: balaton@eik.bme.hu, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PMON2000 compilation and kernel question
Date: Thu, 7 Mar 2019 00:21:35 +0300 [thread overview]
Message-ID: <201903070021.35672.randrianasulu@gmail.com> (raw)
> What do you mean by DIMM size not detected?
Sorry, I mean "No DIMM in slot 1" message.
PMON2000 MIPS Initializing. Standby...
ERRORPC=00000000 CONFIG=00030932
PRID=00006302
DIMM read
read memory type
read number of rows
read blocks per ddrram
read number of sides
read width
00000002
No DIMM in slot 1
DIMM SIZE=10000000
sdcfg=2d5043df
msize=10000000
Init SDRAM Done!
Sizing caches...
Init caches...
godson2 caches found
Init caches done, cfg = 00030932
Copy PMON to execute location...
start = 0x81000000
s0 = 0x3ec00000
a1050000
copy text section done.
Copy PMON to execute location done.
sp=80ffc000Uncompressing Bios........................OK,Booting Bios
[...]
with binary I got:
PMON2000 MIPS Initializing. Standby...
ERRORPC=00000000 CONFIG=00030932
PRID=00006302
DIMM read
00000080
read memory type
read number of rows
read memory size per side
read blocks per ddrram
read number of sides
read width
DIMM SIZE=10000000
sdcfg=3d5043df
msize=10000000
Init SDRAM Done!
Sizing caches...
Init caches...
godson2 caches found
Init caches done, cfg = 00030932
Copy PMON to execute location...
start = 0x85000000
s0 = 0x3ac00000
a5040000
copy text section done.
Copy PMON to execute location done.
sp=84ffc000Uncompressing Bios........................OK,Booting Bios
As far as I understand those values come from
Targets/Bonito2edev/Bonito/start.S
#include "i2c.S"
beqz msize,.nodimm
nop
b 2f
nop
.nodimm:
move dbg,a0
PRINTSTR ("\r\nNo DIMM in all slots,use default configure\r\n")
li msize,0x10000000
li sdCfg,0x055043df /* zgj-8-7-14-13 */
2:
PRINTSTR("DIMM SIZE=")
move a0,msize
bal hexserial
nop
PRINTSTR("\r\n")
li t0, 0xbff00008
sd sdCfg, 0(t0)
#### gx 2006-03-17: mode ####
#li t1,0x20
li t1,0x28
li t0, 0xbff00000
sw t1,0(t0)
nop
li t1,0x0
li t0, 0xbff00000
sw t1,0x30(t0)
nop
and in turn i2c.S has this:
Targets/Bonito2edev/Bonito/i2c.S
#define i2cread newi2cread
li msize,0
PRINTSTR("DIMM read\r\n")
/* only one memory slot, slave address is 1010000b */
li sdCfg,0x04000000 /*bit 26Н»·ўКЅ¶БРґК±µДїйДЪЛіРт*/
li a1, 0x0
li a0,0xa1
bal i2cread
nop
beq v0,0xff,1f
nop
beq v0,0x80,1f
nop
move a0,v0
bal hexserial
nop
PRINTSTR ("\r\nNo DIMM in slot 0 \r\n");
b 2f
nop
1:
or sdCfg, 0x1<<29
nop
li a0,0xa1
bal ii2c_cfg
nop
2:
li a1, 0x0
li a0,0xa3
bal i2cread
nop
li a1,0x0
beq v0,0xff,1f
nop
beq v0,0x80,1f
nop
move a0,v0
bal hexserial
nop
PRINTSTR ("\r\nNo DIMM in slot 1 \r\n");
b 2f
nop
1:
li a0,0xa3
bal ii2c_cfg
nop
b 2f
nop
2:
b 211f
nop
==================
Ah, it talks about SLOT _1_ ! So, slot _0_ apparently read correctly ....
but config info still not printed.... by pmon
Sorry, I misread output!
next reply other threads:[~2019-03-06 21:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-06 21:21 Andrew Randrianasulu [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-03-07 4:01 [Qemu-devel] PMON2000 compilation and kernel question Andrew Randrianasulu
2019-03-07 14:07 ` BALATON Zoltan
2019-03-06 22:31 Andrew Randrianasulu
2019-03-07 1:00 ` BALATON Zoltan
2019-03-06 16:01 Andrew Randrianasulu
2019-03-06 17:08 ` BALATON Zoltan
2019-03-06 15:39 Andrew Randrianasulu
2019-03-06 20:29 ` BALATON Zoltan
2019-03-06 10:21 Andrew Randrianasulu
2019-03-06 11:25 ` Philippe Mathieu-Daudé
2019-03-06 13:29 ` BALATON Zoltan
2019-03-06 13:22 ` BALATON Zoltan
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=201903070021.35672.randrianasulu@gmail.com \
--to=randrianasulu@gmail.com \
--cc=balaton@eik.bme.hu \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.