Re: Reboot Command Makes kernel to hang (MPC8560)

2007-08-02 Thread Ansari
Hi Koller  Kumar

Thanks for ur reply.

Is there a way to reset the full chip (MPC8560)  whenever core reset occurs 
(using hardware or software) ??

Regards
Haroun Ansari M A





- Original Message - 
From: Kumar Gala [EMAIL PROTECTED]
To: Clemens Koller [EMAIL PROTECTED]
Cc: Ansari [EMAIL PROTECTED]; linuxppc-embedded@ozlabs.org
Sent: Tuesday, July 31, 2007 7:41 PM
Subject: Re: Reboot Command Makes kernel to hang (MPC8560)



On Jul 31, 2007, at 6:44 AM, Clemens Koller wrote:

 Hi, Ansari!

 Ansari schrieb:
 Hi Kumar,
 First of all thanks for ur reply .
 Even i went through the linux source . And i have observe that the 
 reboot command used to hard reset the core . I have few doubts can  u 
 please clarify me.
 1. Is there any way to reset the full chip with out using any  external 
 signal (MPC8560) ? (like any register that can be used  for reseting the 
 processor)

 I RTFM:
 It should be the bits RST[1:0] in the Debug Control Register 0  (DBCR0).

This only resets the core on the 8560.

 I didn't find details how the external signals are affected:  HRESET_REQ# 
 and friends.
 The HRESET_REQ# is usually fed back to the CPU's HRESET#.
 So if the HRESET_REQ# gets asserted by writing to above registers  it 
 should really bring
 down the CPU, it's internal as well as it's external components,  which 
 are usually
 connected to a replication of that signal.

This is roughly correct.  The only way on 8560 to generate
HRESET_REQ# is to cause a core watchdog timeout.

 However the existence of cpm2_reset() and a qe_reset() (QuiccEngine?)
 in the code tells me that the above expectations could be wrong.

 Would be nice to have that verified by some hardware guys from 
 freescale...

cpm2_reset/qe_reset are more related to SW than any HW reset.


 2. Even same reboot command works fine for MPC8540 Processor ?.

 ...because it doesn't have a cpm ?

That's more luck than anything else.

 3. what are the factors that makes ramdisk hangs . When its 
 uncompressing ?

 Well, side effects ?

 Regards,
 -- 
 Clemens Koller
 __
 RD Imaging Devices
 Anagramm GmbH
 Rupert-Mayer-Straße 45/1
 Linhof Werksgelände
 D-81379 München
 Tel.089-741518-50
 Fax 089-741518-19
 http://www.anagramm-technology.com
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Reboot Command Makes kernel to hang (MPC8560)

2007-07-31 Thread Ansari
Hi Kumar,

First of all thanks for ur reply .

Even i went through the linux source . And i have observe that the reboot 
command used to hard reset the core . I have few doubts can u please clarify 
me.

1. Is there any way to reset the full chip with out using any external 
signal (MPC8560) ? (like any register that can be used for reseting the 
processor)
2. Even same reboot command works fine for MPC8540 Processor ?.
3. what are the factors that makes ramdisk hangs . When its uncompressing ?

Regards
Haroun Ansari


- Original Message - 
From: Kumar Gala [EMAIL PROTECTED]
To: Ansari [EMAIL PROTECTED]
Cc: linuxppc-embedded@ozlabs.org
Sent: Friday, July 27, 2007 1:21 AM
Subject: Re: Reboot Command Makes kernel to hang (MPC8560)



 On Jul 26, 2007, at 1:55 AM, Ansari wrote:

 Hi all,

 Processor (MPC8560)

 Whenever reboot command is given in the linux console. The  processor 
 gets reset and it loads bootloader , kernel and when  uncompressing the 
 ramdisk it gets hang. The sample log is given  below. Any u please tell 
 me what are the factors that can makes  this to happen.

 This is very board dependant.  The MPC8560 doesn't have a clean way  to 
 request reset, and odds are you're only getting the core reset and  not 
 the full chip.

 - k
 
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Reboot Command Makes kernel to hang (MPC8560)

2007-07-26 Thread Ansari
 ...
   Image Name:   070500 Linux-cscpp
   Created:  2007-05-30  14:49:24 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:938254 Bytes = 916.3 kB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at ff00 ...
   Image Name:   070500 cscpp-REL_7_5
   Created:  2007-05-30  14:51:09 UTC
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:3543240 Bytes =  3.4 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Loading Ramdisk to 0fc4e000, end 0ffaf0c8 ... OK
Memory CAM mapping: CAM0=256Mb, CAM1=0Mb, CAM2=0Mb residual: 0Mb
Linux version 2.4.20_mvlcge31-cscpp-7.5 ([EMAIL PROTECTED]) (gcc version 3.3.1 
(MontaVista 3.3.1-3.0.10.0300532 2003-12-24)) #1 Wed May 30 20:14:43 IST 2007
max_pfn = 8192
On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram rw console=ttyS0,115200 ip=off
OpenPIC Version 1.2 (1 CPUs and 44 IRQ sources) at fdf8
time_init: decrementer frequency = 41.25 MHz
hr_time_init: arch_to_nsec = 50840048, nsec_to_arch = 177167400
Calibrating delay loop... 658.63 BogoMIPS
Memory: 253056k available (1696k kernel code, 760k data, 68k init, 0k highmem)
RMON - kernel resource monitoring
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
LSP Revision 14
ikconfig 0.5 with /proc/ikconfig
Starting kswapd
Journalled Block Device driver loaded
JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
JFFS2 version 2.1. (C) 2001, 2002 Red Hat, Inc., designed by Axis 
Communications AB.
CPM UART driver version 0.01
ttyS0 on SCC1 at 0x8000, BRG1
pty: 256 Unix98 ptys configured
eth0: FCC ENET Version 0.3, 02:e0:0c:80:31:03
eth0: RMON initialized
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
eth1: Gianfar Ethernet Controller Version 1.0, 02:e0:0c:00:31:03 
eth1: Running with NAPI disabled
eth1: 64/64 RX/TX BD ring size
eth1: RMON initialized
eth2: Gianfar Ethernet Controller Version 1.0, 02:e0:0c:00:31:02 
eth2: Running with NAPI disabled
eth2: 64/64 RX/TX BD ring size
eth2: RMON initialized
network device driver for LKCD registered
Crash dump driver initialized.
CSC flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Creating 7 MTD partitions on CSC flash:
0x00f8-0x0100 : uboot
0x00d0-0x00e0 : kernel0
0x00e0-0x00f0 : kernel1
0x0070-0x00d0 : app
0x-0x0038 : root0
0x0038-0x0070 : root1
0x00f0-0x00f8 : env
Creating 2 MTD partitions on CSC NVRAM:
0x-0x0001 : applog
0x0001-0x0002 : kernellog
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Unknown NAND 256MiB 3,3V 
16-bit)
Scanning device for bad blocks
Bad eraseblock 1780 at 0x0de8
Creating 1 MTD partitions on NAND 256MiB 3,3V 16-bit:
0x-0x1000 : NAND Partition
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
ip_conntrack version 2.1 (2048 buckets, 16384 max) - 296 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Event Broker Driver (C) 2001,2002 MontaVista Software ([EMAIL PROTECTED])
Done starting sysfs
RAMDISK: Compressed image found at block 0
Hangs 
Here


Thanks in advance

Haroun Ansari M A

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

MPC8540 DMA transfer

2007-07-04 Thread Ansari
Hello Koller,

Is there any support for dma transter in linux 2.4.x kernel . Whether u have 
any source code for tht ?. I think u have attached a dma driver code for 
2.6.x kernel . But i need it for 2.4 kernel. ( Processor : MPC8540 / MPC8560 )

Regards
Ansari ___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded