AW: MPC8270 on Microsys PM827 Kernel 2.6 Oops: kernel access of bad area, sig: 11 [#1]

2006-06-01 Thread Wolfgang Denk
In message CC692F5386B0AA47A62B7484A7CA2B6D02C4CFCC at frmx1.litef.de you 
wrote:
 Thanks for answer me. 
 I want to install Xenomai on this mpc8270. Therefor I need 2.6.14
 ,because I need the adeos patch. 

You should be able to use a more recent kenrel tree as well.

Looking closer at your problem, it seems obvious  where  the  problem
is:

...
 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 
 NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
 Oops: kernel access of bad area, sig: 11 [#1]
 NIP: C0107A14 LR: C0106660 SP: C036FE30 REGS: c036fd80 TRAP: 0300Not
 tainted
...

That's when the kernel attempts to access the flash devices  on  your
board.

Please use a later kernel. I just verified  that  the  2.6.15  kernel
(git tag DENX-v2.6.15 in our repo) works fine:


Linux version 2.6.15-gref: ref (wd at pollux.denx.de) (gcc version 4.0.0 (DENX 
ELDK 4.0 4.0.0)) #1 Thu Jun 1 02:55:30 MEST 2006
Microsys PM82x PowerPC port
arch/ppc/syslib/m82xx_pci.c: The PCI bus is 3750 Mhz.
Waiting 0.5 seconds after deasserting RST...
Built 1 zonelists
Kernel command line: root=/dev/nfs rw 
nfsroot=192.168.1.1:/opt/eldk-4.0-2006-02-19/ppc_6xx 
ip=192.168.200.5:192.168.1.1::255.255.0.0:pm827:eth0:off panic=1 
console=ttyCPM1,9600
PID hash table entries: 1024 (order: 10, 16384 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 127616k available (1592k kernel code, 412k data, 124k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 0 of device :00:00.0
PCI: Cannot allocate resource region 1 of device :00:00.0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xf0011a80 (irq = 4) is a CPM UART
ttyCPM1 at MMIO 0xf0011a90 (irq = 5) is a CPM UART
ttyCPM2 at MMIO 0xf0011a00 (irq = 40) is a CPM UART
ttyCPM3 at MMIO 0xf0011a20 (irq = 41) is a CPM UART
ttyCPM4 at MMIO 0xf0011a40 (irq = 42) is a CPM UART
ttyCPM5 at MMIO 0xf0011a60 (irq = 43) is a CPM UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
Found: Intel 28F640C3B
PM82x-0: Found 4 x16 devices at 0x0 in 64-bit bank
PM82x flash bank 0: Using static image partition definition
Creating 4 MTD partitions on PM82x-0:
0x-0x0004 : U-Boot
0x0004-0x0010 : kernel
0x0010-0x0040 : ramdisk
0x0040-0x0200 : user
No valid DiskOnChip devices found
eth0: FCC ENET Version 0.3, 00:40:42:81:27:0d
mii_reg: 608e78e2
eth0: Phy @ 0x1, type LXT971 (0x001378e2)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: config: auto-negotiation on, 100HDX, 10HDX.
IP-Config: Complete:
  device=eth0, addr=192.168.200.5, mask=255.255.0.0, gw=255.255.255.255,
 host=pm827, domain=, nis-domain=(none),
 bootserver=192.168.1.1, rootserver=192.168.1.1, rootpath=
Looking up port of RPC 13/2 on 192.168.1.1
Looking up port of RPC 15/1 on 192.168.1.1
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 124k init
...


Also, the current  top-of-tree  version  (Linux-2.6.17-rc5-g1d475c9f)
works fine.

Please use current code.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
We are Microsoft. Unix is irrelevant. Openness is futile.  Prepare to
be assimilated.



AW: MPC8270 on Microsys PM827 Kernel 2.6 Oops: kernel access of bad area, sig: 11 [#1]

2006-05-31 Thread Behre, Frederik - LT
Thanks for answer me. 
I want to install Xenomai on this mpc8270. Therefor I need 2.6.14 ,because I 
need the adeos patch. 

Thanks for helping me

Freddy



-Urspr?ngliche Nachricht-
Von: wd at denx.de [mailto:wd at denx.de] 
Gesendet: Dienstag, 30. Mai 2006 22:44
An: Behre, Frederik - LT
Cc: linuxppc-embedded at ozlabs.org
Betreff: Re: MPC8270 on Microsys PM827 Kernel 2.6 Oops: kernel access of bad 
area, sig: 11 [#1]

In message CC692F5386B0AA47A62B7484A7CA2B6D02B52CB0 at frmx1.litef.de you 
wrote:
 
 I compile my kernel with
 pm82x_deconfig and PCI disabled.
...
 MPC8260 Reset Status: External Soft, External Hard

Why do you use pm82x_deconfig with a MPC8260  processor?  You  should use 
pm826_deconfig instead.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de That's 
the thing about people who think  they  hate  computers.  What they really hate 
is lousy programmers.
- Larry Niven and Jerry Pournelle in Oath of Fealty





MPC8270 on Microsys PM827 Kernel 2.6 Oops: kernel access of bad area, sig: 11 [#1]

2006-05-30 Thread Behre, Frederik - LT
Hello 

I compile my kernel with 
pm82x_deconfig and PCI disabled.

Did I forgot something ??

After error Oops: kernel access of bad area, sig: 11 [#1] the Board
restarts.

Thanks for Helping

Freddy


U-Boot 1.1.4 (May 15 2006 - 09:13:13)

MPC8260 Reset Status: External Soft, External Hard

MPC8260 Clock Configuration
 - Bus-to-Core Mult 2.5x, VCO Div 4, 60x Bus Freq  20-60 , Core Freq
50-120
 - dfbrg 0, corecnf 0x11, busdf 3, cpmdf 1, plldf 0, pllmf 3, pcidf 3
 - vco_out  4, scc_clk  1, brg_clk  1
 - cpu_clk  25000, cpm_clk  2, bus_clk  1

CPU:   MPC8260 (HiP7 Rev 13, Mask 0.1 1K49M) at 250 MHz
Board: PM828
I2C:   ready
DRAM:  (60x:9COL) 128 MB
FLASH: 32 MB
In:serial
Out:   serial
Err:   serial
DOC:   No DiskOnChip found
Net:   FCC1 ETHERNET, FCC2 ETHERNET
BEDBUG:ready
Hit any key to stop autoboot:  0
Using FCC1 ETHERNET device
TFTP from server 192.168.0.1; our IP address is 192.168.0.2
Filename 'uImage-2.6'.
Load address: 0x40
Loading:
#
 
#
 ###
done
Bytes transferred = 945041 (e6b91 hex)
## Booting image at 0040 ...
   Image Name:   Linux-2.6.14
   Created:  2006-05-30   7:59:00 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:944977 Bytes = 922.8 kB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.6.14 (root at c3415) (gcc version 4.0.0 (DENX ELDK 4.0
4.0.0)) #1 Tue May 30 09:58:59 CEST 2006 
Microsys PM82x PowerPC port 
Built 1 zonelists Kernel command line: root=/dev/nfs rw
nfsroot=192.168.0.1:/lop/eldk400/ppc_6xx/ console=ttyCPM1
ip=192.168.0.2:192.168.0.1:192.168.0.1:255.255.255.0:ppc_82xx::off
panic=1
PID hash table entries: 1024 (order: 10, 16384 bytes) 
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) 
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 127744k available (1556k kernel code, 384k data, 100k init, 0k
highmem)
Mount-cache hash table entries: 512
softlockup thread 0 started up.
NET: Registered protocol family 16
Generic RTC Driver v1.07
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xf0011a80 (irq = 4) is a CPM UART
ttyCPM1 at MMIO 0xf0011a90 (irq = 5) is a CPM UART
ttyCPM2 at MMIO 0xf0011a00 (irq = 40) is a CPM UART
ttyCPM3 at MMIO 0xf0011a20 (irq = 41) is a CPM UART
ttyCPM4 at MMIO 0xf0011a40 (irq = 42) is a CPM UART
ttyCPM5 at MMIO 0xf0011a60 (irq = 43) is a CPM UART 
io scheduler noop registered 
io scheduler anticipatory registered 
io scheduler deadline registered 
io scheduler cfq registered 
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 
NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
Oops: kernel access of bad area, sig: 11 [#1]
NIP: C0107A14 LR: C0106660 SP: C036FE30 REGS: c036fd80 TRAP: 0300Not
tainted
MSR: 3032 EE: 0 PR: 0 FP: 1 ME: 1 IR/DR: 11
DAR: , DSISR: 2000
TASK = c0349ae0[1] 'swapper' THREAD: c036e000 Last syscall: 120
GPR00: C036FE38 C036FE30 C0349AE0 C7CD5EE0 C036FE68 2AA8 C9002AA8
00AA00AA
GPR08: 00AA00AA C036FE40 9032 1032 00AA00AA FFFDFFB7 07FFC000
0001
GPR16: 0080 07FFF7BC C018  07FF9484  07FAE1C0
0001
GPR24: C036FE58  C7CD5EE0 C01F C7CD5EE0 C01C4BF4 C036FF18
C036FE68
Call trace: [000d]  [c0106104]  [c010637c]  [c01011ec]  [c01e1ed4]
[c00039e8]  [c0006b84] Kernel panic - not syncing: Attempted to kill
init!
 0Rebooting in 1 seconds.. 



MPC8270 on Microsys PM827 Kernel 2.6 Oops: kernel access of bad area, sig: 11 [#1]

2006-05-30 Thread Wolfgang Denk
In message CC692F5386B0AA47A62B7484A7CA2B6D02B52CB0 at frmx1.litef.de you 
wrote:
 
 I compile my kernel with 
 pm82x_deconfig and PCI disabled.
...
 MPC8260 Reset Status: External Soft, External Hard

Why do you use pm82x_deconfig with a MPC8260  processor?  You  should
use pm826_deconfig instead.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
That's the thing about people who think  they  hate  computers.  What
they really hate is lousy programmers.
- Larry Niven and Jerry Pournelle in Oath of Fealty