Re: mpc744x, Marvell mv6446x kernel guidance please

2008-07-28 Thread Mark A. Greer
On Thu, Jul 10, 2008 at 10:46:49PM -0500, Stephen Horton wrote:
 Hello folks,
 
 In a current work project, I have inherited a compactPCI board that has
 an mpc7447/7448 powerpc processor as well as a Marvell system
 controller, model mv64462 (stripped down mv64460). The board has a
 somewhat working Gentoo Linux port running on it from long ago and a
 company far far away (kernel version 2.6.9 built using arch/ppc). To
 prepare for an upcoming deployment, I would like to bring the OS
 up-to-date on this board with a newer kernel (targeting Gentoo 2008),
 but I am unsure of the approach to take. I am a software developer, but
 normally do not work on kernel porting / board integration. I have
 researched the arch/ppc to arch/powerpc migration, but I'm a bit
 intimidated by the 'new' device tree symantics and other changes to the
 stream. Here are some questions:
 
 1.Is it possible with the 2.6.24 (Gentoo 2008) kernel to still use
 arch/ppc for this platform architecture?  I've tried to get this to
 compile, but am having trouble with files from arch/powerpc getting
 pulled in; then I read some comments (from I believe this forum) that
 indicated that arch/ppc is not longer supposed to compile

arch/ppc is gone now.  You should spend you effort working in
arch/powerpc.

 2.Does anyone have example code for this platform architecture?
 Any freebees I could use for creating my device tree?

You can use prpmc2800 as an example.

 3.Any advice of any kind?

Its not as bad as it looks.  Just dig into it and don't give up.

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


No output from SMC1 console with the 2.6.26 kernel (PQ2FADS based board)

2008-07-28 Thread Matvejchikov Ilya
Hi all,

I'm working with PQ2FADS based board. When I started to use new 2.6.26
kernel my SMC1 console stopped working. I know that the cpm_uart
driver has been changed and the DTS file needs updating. Unfortunately
I failed to get it running. Could somebody help me solve this problem?


The cpm node of the DTS file:
.
[EMAIL PROTECTED] {
#address-cells = 1;
#size-cells = 1;
#interrupt-cells = 2;
compatible = fsl,mpc8280-cpm, fsl,cpm2;
reg = 119c0 30;
ranges;

muram {
#address-cells = 1;
#size-cells = 1;
ranges = 0 0 1;

[EMAIL PROTECTED] {
compatible = fsl,cpm-muram-data;
reg = 0 2000 9800 800;
};
};

[EMAIL PROTECTED] {
compatible = fsl,cpm-brg, fsl,cpm2-brg;
reg = 119f0 10 115f0 10;
};

smc1: [EMAIL PROTECTED] {
device_type = serial;
compatible = fsl,cpm2-smc-uart;
reg = 11a80 20 87fc 2;
interrupts = 4 8;
interrupt-parent = PIC;
fsl,cpm-brg = 7;
fsl,cpm-command = 1d00;
};

};
.
chosen {
linux,stdout-path = smc1;
bootargs = console=ttyCPM0;
};
.

The early debuging output:
Xid mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit
Using Electronic Devices SPC826 (M82) machine description
Linux version 2.6.26 ([EMAIL PROTECTED]) (gcc version 4.1.2) #83 Thu Jul 24
14:45:07 MSD 2008
console [udbg0] enabled
Entering add_active_range(0, 0, 4096) 0 entries of 256 used
setup_arch: bootmem
spc826_setup_arch()
spc826_setup_arch(), finish
arch: exit
Top of RAM: 0x100, Total RAM: 0x100
Memory hole size: 0MB
Zone PFN ranges:
  DMA 0 - 4096
  Normal   4096 - 4096
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0:0 - 4096
On node 0 totalpages: 4096
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyCPM0
PID hash table entries: 64 (order: 6, 256 bytes)
time_init: decrementer frequency = 16.50 MHz
time_init: processor frequency   = 264.00 MHz
clocksource: timebase mult[f26c9b2] shift[22] registered
clockevent: decrementer mult[439] shift[16] cpu[0]
Console: colour dummy device 80x25


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


Re: No output from SMC1 console with the 2.6.26 kernel (PQ2FADS based board)

2008-07-28 Thread Scott Wood

Matvejchikov Ilya wrote:

[EMAIL PROTECTED] {
#address-cells = 1;
#size-cells = 1;
#interrupt-cells = 2;
compatible = fsl,mpc8280-cpm, fsl,cpm2;


Add simple-bus to this compatible list.

Other than that, and that you should be using dts-v1, the tree looks 
fine.  If adding simple-bus doesn't fix it, check your pin setup; 
pq2fads doesn't have an SMC serial port, so its platform file doesn't 
set up those pins.


-Scott

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


Writing to CPLD mapped to EBC Port of AMCC440EP

2008-07-28 Thread Henry Bausley

I am attempting to write to a CPLD mapped to the EBC port of a AMCC 440EP.  
When I attempt to write using an unsigned variable
ie. unsigned *pbase = (unsigned char *)ioremap64(0x8F00,0x100);
I get a kernel access of bad area, sig: 11 fault.  However, if I change to an 
unsigned char ie. unsigned char *pbase = (unsigned char *)ioremap64(0x8F00,
0x100); The system doesn't crash.  I need to write using an unsigned.  Does 
any one have any ideas what I am doing wrong?

I am using 2.6.24 Xenomai Denx. 4.2.  I am porting a working 2.6.14 project 
that was developed with FSM Labs RT Linux (now owned by WindRiver).




//---
// initialize module -- this what is called when you do insmod ./ubus.ko
//---
static int __init ubus_init_module (void) 
{
  int i;
  unsigned ofs[20] =
{0x40,0x400100,0x50,0x500100,0x60,0x600100,0x70,0x700100,

0x608000,0x608100,0x708000,0x708100,0x61,0x610100,0x71,0x710100,
0x618000,0x618100,0x718000,0x718100};
  unsigned *pbase = (unsigned *)ioremap64(0x8F00,
0x100);
  unsigned *p;
  for( i = 0; i  20;i++)
  {
p = pbase + ofs[i] + 0x34;
*p = 0x25500;
printk(KERN_ALERT p = %X\r\n,p);
  }
  iounmap(pbase);
  PRINTK(initializing module ubus\n);
  i = register_chrdev (UBUS_MAJOR, UBUS_NAME, ubus_fops);
  if (i != 0) return - EIO;

  return 0;
}


-bash-3.2# insmod
ubus.ko 
   
Oops: kernel access of bad area, sig: 11
[#1]
NIP: d1068054 LR: d1068038 CTR:

 
REGS: cf489d70 TRAP: 0300   Not tainted
(2.6.24.2)  
MSR: 00029000 EE,ME  CR: 08004022  XER:
0004   
DEAR: d61000d0, ESR:
0080

TASK = cf45c410[309] 'insmod' THREAD:
cf488000   
GPR00: d1068038 cf489e20 cf45c410 d510 d610  
cf4467f8   
GPR08: 07f8 d106 8000  28004028 1004950c 
d509c1e4   
GPR16: cffe1ce0 d5093a04  0036 0036 d5093310 c003cb00
d5081000   
GPR24: 0026 0026 d5093464 cf489e28 d1


0664c4 00025500 0026 d1066a60   
NIP [d1068054] ubus_init_module+0x54/0x190
[ubus]
LR [d1068038] ubus_init_module+0x38/0x190
[ubus] 
Call
Trace:  

[cf489e20] [d1068038] ubus_init_module+0x38/0x190 [ubus]
(unreliable)
[cf489e90] [c003df74] sys_init_module
+0x174/0x15e0   
[cf489f40] [c0001ac4] ret_from_syscall
+0x0/0x3c  
Instruction
dump:   
 
48cd 3c808f00 3ca00100 3860 48cd 80810008 3fa2
5484103a  
7c841a14 3d20d106 63bd5500 3b8964c4 93a400d0 7c7e1b78 388400d0
7f83e378
Segmentation fault   


-bash-3.2# insmod
ubus.ko 
   
p = D5500034
 
p = D5500134
 
p = D5600034
 
p = D5600134
 
p = D5700034
 
p = D5700134
 
p = D5800034
 
p = D5800134
 
p = D5708034 

Corey J Ashford is out of the office.

2008-07-28 Thread Corey J Ashford

I will be out of the office starting  07/28/2008 and will not return until
08/01/2008.

I will respond to your message when I return.___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Re: Corey J Ashford is out of the office.

2008-07-28 Thread Steve Iribarne (GMail)
HAHAHAHAHAH.

This is funny.

Sorry rough night.  Bad bugs today.

Glad I got this.  Made me laugh.



On Mon, Jul 28, 2008 at 7:04 PM, Corey J Ashford [EMAIL PROTECTED]wrote:

 I will be out of the office starting 07/28/2008 and will not return until
 08/01/2008.

 I will respond to your message when I return.

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




-- 
/*
* Steve Iribarne
* Software Engineer
* (aka Grunt)
*/
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded