Linux crashes during memory mapping

2005-03-31 Thread Atit_Shah
: C01500D0 
00178284: 53503a20 46464646 46434330 20524547SP: FCC0 REG
00178294: 533a2063 30313530 30303020 54524150S: c015 TRAP
001782a4: 3a203130 33322020 20204e6f 74207461: 1032Not ta
001782b4: 696e7465 640a3c34 3e4d5352 3a20inted.4MSR: ff
001782c4:  2045 453a2031 2050523aff EE: 1 PR:
001782d4: 20312046 503a2031 204d453a 20312049 1 FP: 1 ME: 1 I
001782e4: 522f4452 3a203131 0a3c343e 5441534bR/DR: 11.4TASK
001782f4: 203d2063 30313466 3437305b 305d2027 = c014f470[0] '
00178304: 73772720 4c617374 20737973 63616c6csw' Last syscall
00178314: 3a202d31 30373337 31383034 30200a3c: -1073718040 .
00178324: 343e6c61 7374206d 61746820 303030304last math 
00178334: 30303030 206c6173 7420616c 74697665 last altive
00178344: 63203030 30303030 30300a3c 343ec .4..
00178354: c015 02c0c015 0200 

4. Below is our register values:

HRCW0x0c42020a
IMMR0xF000
SYPCR   0x0681
SCCR0x0001
RMR 0x  
BCR 0x0010 
HID00xcc88 /*Initial*/
HID00x8008 /*Final*/

# Flash - CS0 
BR0 0xFe001801
OR0 0xFe000880 

# SDRAM - CS1 
OR1 0xFE002EC0 
BR1 0x0041 


PSRT0x27 
MPTPR   0x2500

# cbr refresh
PSDMR   0xC24A24A2 
SIUMCR  0x01230200  

MSR 0xB942

Awaiting prompt reply, 
Atit

-Original Message-
From: Steven Blakeslee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 6:23 PM
To: Atit_Shah; linuxppc-embedded at ozlabs.org
Subject: RE: Linux crashes during memory mapping

   I do not have any problem with the functioning of U-Boot but
Linux crashes after   
 printing Uncompressing Kernel ... OK and then it seems that nothing
is happening.

Do you have the SYPCR(serial watch dog timer) disabled?




   3. The memory map of the VPN Board (MY BOARD) is as folllows: 

= 
   Memory RegionSize
Address Range 

== 
   SDRAM32MByte  _
-- 01FF_  
   Flash32MByte  FF00_
-- _   

Have you done a full test to make sure your RAM is correctly mapped?

  

   This is what the console log buffer has shown: 

= 
   md 0x00177e34 

   00177e34: 3c363e6d 73746172 743d303c 363e6d73
6mstart=06ms 
   00177e44: 697a653d 303c363e 66737461 72743d30
ize=06fstart=0 
   00177e54: 3c363e66 73697a65 3d303c36 3e696d6d
6fsize=06imm 
   00177e64: 723d303c 363e626f 74666c61 673d303c
r=06botflag=0 
   00177e74: 363e6970 6164643d 303c363e 65616464
6ipadd=06eadd 
   00177e84: 3d633031 35303032 383c363e 65737065
=c01500286espe 
   00177e94: 643d303c 363e696e 6974663d 303c363e
d=06initf=06 
   00177ea4: 62757366 3d303c36 3e63706d 663d303c
busf=06cpmf=0 
   00177eb4: 363e6272 67663d30 3c363e73 6363663d
6brgf=06sccf= 
   00177ec4: 303c363e 76636f3d 303c363e 62617564
06vco=06baud 
   00177ed4: 3d304f6f 70733a20 6b65726e 656c2061=0Oops: kernel
a 

These values do not look correct.  Everything is zero.
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050331/cdedc379/attachment.htm
 


Linux crashes during memory mapping

2005-03-31 Thread Atit_Shah
Hi All,
  
 I am trying to port the EP8248 Linux image (which works perfectly on the
EP8248 board) on the VPN board (In house board) which is mpc8248 based
board. 

I do not have any problem with the functioning of U-Boot but Linux crashes
after printing Uncompressing Kernel ... OK and then it seems that nothing
is happening.

It would be great if u could help me resolve the issue. The following is how
i have configured my board:
 

1. The value of the IMMR in HCRW is configured to 0xF000 (which is same
as in the ep8248 image). The value of IMAP_ADDR in
linux/arch/ppc/platforms/ep8248.h and u-boot/include/configs/ep8248.h is
0xF000

 

2. The memory map of EP8248 board (REFERENCE BOARD) is :
=
Memory RegionSize  Address Range

=
SDRAM16MByte  _ -- 07FF_

Flash8MByte   FF80_ -- _




3. The memory map of the VPN Board (MY BOARD) is as folllows:
=
Memory RegionSize  Address Range

==
SDRAM32MByte  _ -- 01FF_

Flash32MByte  FF00_ -- _

 

From the u-boot the parameters passed to the kernel (pointer to a function
which actually starts loading the kernel image) are :

(*kernel) (kbd, initrd_start, initrd_end, cmd_start, cmd_end);

   kbd(ptr to board info strcture), 
   initrd_start   (=0, as in our case we dont have any ramdisk),

   initrd_end (=0), 
   cmd_start  (Start of command line string), 
   cmd_end  (End of command line string)

 
4. Board Info Structure defined in u-boot (/include/asm-ppc/u-boot.h) and
Linux (include/asm-ppc/ep8248.h) are the same and is passed correctly from
u-boot to Linux. 
 

By putting some Printk's I had cheacked that control is reaching to the
function mapin_ram(void) in file arch/ppc/mm/pgtable.c

Here it is supposed to map the 32 MB of virtual memory to the Physical
memory.

The control does not leave the for loop in which the memory mapping takes
place.


This is what the console log buffer has shown:
=
md 0x00177e34 

00177e34: 3c363e6d 73746172 743d303c 363e6d736mstart=06ms
00177e44: 697a653d 303c363e 66737461 72743d30ize=06fstart=0
00177e54: 3c363e66 73697a65 3d303c36 3e696d6d6fsize=06imm
00177e64: 723d303c 363e626f 74666c61 673d303cr=06botflag=0
00177e74: 363e6970 6164643d 303c363e 656164646ipadd=06eadd
00177e84: 3d633031 35303032 383c363e 65737065=c01500286espe
00177e94: 643d303c 363e696e 6974663d 303c363ed=06initf=06
00177ea4: 62757366 3d303c36 3e63706d 663d303cbusf=06cpmf=0
00177eb4: 363e6272 67663d30 3c363e73 6363663d6brgf=06sccf=
00177ec4: 303c363e 76636f3d 303c363e 6261756406vco=06baud
00177ed4: 3d304f6f 70733a20 6b65726e 656c2061=0Oops: kernel a
00177ee4: 63636573 73206f66 20626164 20617265ccess of bad are
00177ef4: 612c2073 69673a20 31310a3c 343e4e49a, sig: 11.4NI
00177f04: 503a2030 30303030 30303020 5845523aP:  XER:
00177f14: 20303030 30303030 30204c52 3a203030  LR: 00
00177f24: 30303030 30302053 503a2030 3030303000 SP: 0
00177f34: 30303020 52454753 3a206330 31353030000 REGS: c01500
00177f44: 30302054 5241503a 20303030 3020202000 TRAP:    
00177f54: 204e6f74 20746169 6e746564 0a3c343e Not tainted.4
00177f64: 4d53523a 20303030 30303030 30204545MSR:  EE
00177f74: 3a203020 50523a20 30204650 3a203020: 0 PR: 0 FP: 0 
00177f84: 4d453a20 30204952 2f44523a 2030300aME: 0 IR/DR: 00.
00177f94: 3c343e54 41534b20 3d206330 313466344TASK = c014f4
00177fa4: 37305b30 5d202773 77617070 6572272070[0] 'swapper' 
00177fb4: 4c617374 20737973 63616c6c 3a203020Last syscall: 0 
00177fc4: 0a3c343e 6c617374 206d6174 68203030.4last math 00
00177fd4: 30303030 3030206c 61737420 616c746900 last alti
00177fe4: 76656320 30303030 30303030 0a3c343evec .4
00177ff4: 43616c6c 20626163 6b747261 63653a20Call backtrace: 
00178004: 30303030 30303034 200a3c34 3e4f6f700004 .4Oop
00178014: 733a206b 65726e65 6c206163 63657373s: kernel access
00178024: 206f6620 62616420 61726561 2c207369 of bad area, si
00178034: 673a2031 310a3c34 3e4e4950 3a204330g: 11.4NIP: C0
00178044: 31353030 43302058 45523a20 433031351500C0 XER: C015
00178054: 30304138 204c523a 20303330 3030304300A8 LR: 03C
00178064: 30205350 3a203030 30333030 303120520 SP: 00030001 R
00178074: 4547533a 20633031 35303030 30205452

Linux crashes during memory mapping

2005-03-31 Thread Steven Blakeslee
   I do not have any problem with the functioning of U-Boot but
Linux crashes after   
 printing Uncompressing Kernel ... OK and then it seems that nothing
is happening.

Do you have the SYPCR(serial watch dog timer) disabled?




   3. The memory map of the VPN Board (MY BOARD) is as folllows: 

= 
   Memory RegionSize
Address Range 

== 
   SDRAM32MByte  _
-- 01FF_  
   Flash32MByte  FF00_
-- _   

Have you done a full test to make sure your RAM is correctly mapped?

  

   This is what the console log buffer has shown: 

= 
   md 0x00177e34 

   00177e34: 3c363e6d 73746172 743d303c 363e6d73
6mstart=06ms 
   00177e44: 697a653d 303c363e 66737461 72743d30
ize=06fstart=0 
   00177e54: 3c363e66 73697a65 3d303c36 3e696d6d
6fsize=06imm 
   00177e64: 723d303c 363e626f 74666c61 673d303c
r=06botflag=0 
   00177e74: 363e6970 6164643d 303c363e 65616464
6ipadd=06eadd 
   00177e84: 3d633031 35303032 383c363e 65737065
=c01500286espe 
   00177e94: 643d303c 363e696e 6974663d 303c363e
d=06initf=06 
   00177ea4: 62757366 3d303c36 3e63706d 663d303c
busf=06cpmf=0 
   00177eb4: 363e6272 67663d30 3c363e73 6363663d
6brgf=06sccf= 
   00177ec4: 303c363e 76636f3d 303c363e 62617564
06vco=06baud 
   00177ed4: 3d304f6f 70733a20 6b65726e 656c2061=0Oops: kernel
a 

These values do not look correct.  Everything is zero.