Help to setup non-zero PPC_MEMSTART on PPC440

2008-05-21 Thread jie han
Hi 
I have a custom embedded system with a 440GP derived CPU that places the
memory starting at 0x1000 which requires a non-zero PPC_MEMSTART.
I use denx linux kernel version is 2.6.24-rc8.build ARCH=powerpc. 
I set PPC_MEMSTART = 0x1000(include/asm-powerpc/page_32.h)
I get boot linux message as follow:
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 128k init
init has generated signal 4 but has no handler for it
kernel panic - no syncing: Attempted to kill init!
Rebooting in 180 seconds..

How do I fix it?Do I miss anything?Thanks for your help ahead.

Sincerely,

Jie



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

issue about CONFIG_PPC_MMU and CONFIG_SMP define

2008-03-10 Thread jie han
Hi guys,

I want to simulate compile mutli-core using sequoia(IBM/AMCC 44x processor) 
source code under kernel arch/powerpc directory.I want to define CONFIG_SMP, I 
sould define CONFIG_STD_MMU at first,but AMCC 44x don't need to config 
CONFIG_STD_MMU.Is CONFIG_STD_MMU just for freescale chip? How can I do next? 
Thanks ahead for your help,


Best regards

Jie Han

   
-
Never miss a thing.   Make Yahoo your homepage.___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Help: I will port amcc yucca board to denx kernel ARCH=powepc directory.How to config dts file?

2008-01-29 Thread jie han
Hi all,
I want to port amcc yucca board denx linux kernel from ARCH=ppc to 
ARCH=powerpc. I used sequoia.dts for yucca baord demo device tree file.
I set uart0 as follow:
UART0: [EMAIL PROTECTED] {
   device_type = serial;
   compatible = ns16550;
   reg = f200 8;
   virtual-reg = f200;
   clock-frequency = 0; /* Filled in by zImage */
   current-speed = 1c200;
   interrupt-parent = UIC0;
   interrupts = 0 4;
   };

chosen {
linux,stdout-path = /plb/opb/[EMAIL PROTECTED];
bootargs = console=ttyS0,115200;
};

the other parts of dts file is same as sequoia.dts.
When I run kernel.the tlb entry setup is wrong,the physical addres should be 
4f200,but kernel calcuate is 1f200.I know yucca dts file isn't 
right.how can I fix it?Give me some advices,Thanks ahead,

Sincerely,

Jie



   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

How to config linux kernel(ARCH=powerpc)?

2008-01-07 Thread jie han
Hi everyone:

I downloaded linux kernel 2.6 from www.denx.de and unzip the kernel source 
code.My operation is make mrproper at first and  then make pasemi_defconfig,it 
didn't work,the show message as follow:

linux-2.6-denx-make mrproper

linux-2.6-denx-make pasemi_defconfig
kernel/power/Kconfig:68:warning: 'select' used by config symbol 'PM_SLEEP_SMP' 
refers to undefined symbol 'HOTPLUG_CPU'
***
*** Can't find default configuration arch/ppc/configs/pasemi_defconfig!
***
make[1]: *** [pasemi_defconfig] Error 1
make: *** [pasemi_defconfig] Error 2

 I make the other default config file under arch/powperpc/configs directory,it 
show the same wrong message.How can I do fix it ?Thanks ahead,

Sincerely,

Jie


   
-
Never miss a thing.   Make Yahoo your homepage.___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

help about cann't find smc devcies under kernel 2.6.19

2007-02-28 Thread jie han
Hi all,
I port my mpc8270 board from kernel-2.4.24 to kernel-2.6.19(based on 
www.denx.de),I setup smc1 as console port.The kernel .config as follow
#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
# CONFIG_SERIAL_CPM_SMC2 is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

When I boot it,I cannot get any message dispaly from smc1.I check __log_buf 
under u-boot environment,the buffer show as follow

001e4844: 363e5365 7269616c 3a204350 4d2064726Serial: CPM dr
001e4854: 69766572 20245265 76697369 6f6e3a20iver $Revision: 
001e4864: 302e3032 20240a3c 363e6370 6d5f75610.02 $.6cpm_ua
001e4874: 72743a20 5741524e 494e473a 206e6f20rt: WARNING: no 
001e4884: 55415254 20646576 69636573 20666f75UART devices fou
001e4894: 6e64206f 6e20706c 6174666f 726d2062nd on platform b
001e48a4: 7573210a 3c363e63 706d5f75 6172743aus!.6cpm_uart:
001e48b4: 20746865 20647269 76657220 77696c6c the driver will
001e48c4: 20677565 73732063 6f6e6669 67757261 guess configura
001e48d4: 74696f6e 2c206275 74207468 6973206dtion, but this m
001e48e4: 6f646520 6973206e 6f206c6f 6e676572ode is no longer
001e48f4: 20737570 706f7274 65642e0a 3c363e74 supported..6t
001e4904: 74794350 4d302061 74204d4d 494f2030tyCPM0 at MMIO 0
001e4914: 78663030 31316138 30202869 7271203dxf0011a80 (irq =
001e4924: 20342920 69732061 2043504d 20554152 4) is a CPM UAR
001e4934: 540a3c34 3e52414d 4449534b 20647269T.4RAMDISK dri

It mean system cannot find smc1 under bus when kernel call function 
cpm_uart_init(),how can i fix this  issue?thanks advance,

By the way,I also create my mpc8270 board support file at /arch/ppc/platform 
directory,it's like file tqm8260_setup.c.The initialize process as follw,
static int scc8270_platform_notify(struct device *dev)
{
static const struct platform_notify_dev_map dev_map[] = {
{
.bus_id = fsl-cpm-smc:uart,
.rtn = scc8270_fixup_uart_pdata,
},
{
.bus_id = fsl-cpm-fcc,
.rtn = scc8270_fixup_enet_pdata,
},
{
.bus_id = fsl-bb-mdio,
.rtn = scc8270_fixup_mdio_pdata,
},
{
.bus_id = NULL
}
};
platform_notify_map(dev_map,dev);

return 0;

}

int __init scc8270_init(void)
{
printk(KERN_NOTICE scc8270: Init\n);

platform_notify = scc8270_platform_notify;

ppc_sys_device_initfunc();

ppc_sys_device_disable_all();

ppc_sys_device_enable(MPC82xx_MDIO_BB);

ppc_sys_device_setfunc(MPC82xx_CPM_SMC1, PPC_SYS_FUNC_UART);

ppc_sys_device_enable(MPC82xx_CPM_SMC1);

ppc_sys_device_enable(MPC82xx_CPM_FCC1);

ppc_sys_device_enable(MPC82xx_CPM_FCC2);

return 0;
}



Sincerely,

Jie


 
-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

help about configuring and initializing serial console under kernel 2.6.18-rc2

2006-08-23 Thread jie han
 am trying to take a working embedded linux system
from kernel 2.4.24 to 
2.6.18. The hardware is a custom board using a MPC8270
processor.
The working system uses u-boot 1.1.4 with linux kernel
2.4.24.

I am using the same u-boot and I am trying to port
linux kernel 2.6.18 
to our platform. Tthe kernel seems to hang after being
uncompressed. Here is what I see after running bootm
from u-boot:

## Booting image at 0040 ...
   Image Name:   Linux-2.6.18/Ocean BoradBand Ltd
   Image Type:   PowerPC Linux Kernel Image (gzip
compressed)
   Data Size:995213 Bytes = 971.9 kB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Current stack ends at 0x0FB73C38 = set upper limit
to 0x0080
## cmdline at 0x007FFF00 ... 0x007FFF3D
bd address  = 0x0FB73FB4
memstart= 0x
memsize = 0x1000
flashstart  = 0xFE00
flashsize   = 0x0200
flashoffset = 0x
sramstart   = 0x
sramsize= 0x
immr_base   = 0xF000
bootflags   = 0x0001
vco =264 MHz
sccfreq = 66 MHz
brgfreq = 16.500 MHz
intfreq =198 MHz
cpmfreq =132 MHz
busfreq = 66 MHz
ethaddr = 00:13:09:00:01:04
IP addr = 192.168.2.46
baudrate=  19200 bps
No initrd
## Transferring control to Linux (at address )
...

I check the __log_buf buffer and found message as
follow
020c634: 20736368 6564756c 65722063 66712072
scheduler cfq r
0020c644: 65676973 74657265 64202864 65666175   
egistered (defau
0020c654: 6c74290a 3c363e53 65726961 6c3a2043   
lt).6Serial: C
0020c664: 504d2064 72697665 72202452 65766973PM
driver $Revis
0020c674: 696f6e3a 20302e30 3220240a 3c363e63ion:
0.02 $.6c
0020c684: 706d5f75 6172743a 20574152 4e494e47   
pm_uart: WARNING
0020c694: 3a206e6f 20554152 54206465 76696365: no
UART device
0020c6a4: 7320666f 756e6420 6f6e2070 6c617466s
found on platf
0020c6b4: 6f726d20 62757321 0a3c363e 63706d5form
bus!.6cpm_
0020c6c4: 75617274 3a207468 65206472 69766572uart:
the driver
0020c6d4: 2077696c 6c206775 65737320 636f6e66 will
guess conf
0020c6e4: 69677572 6174696f 6e2c2062 75742074   
iguration, but t
0020c6f4: 68697320 6d6f6465 20697320 6e6f206chis
mode is no l
0020c704: 6f6e6765 72207375 70706f72 7465642eonger
supported.

I got a  result,I failed to initialize smc1 port,the
function is 
static int cpm_uart_init(void) ---dev =
bus_find_device(platform_bus_type, NULL, 0,
match_is_uart),I always got dev == NULL,
how can I define struct platform_bus_type

My kernel config file about serial drivers as follow
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
# CONFIG_SERIAL_CPM_SMC2 is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

define cpm parallel port D as follow
_/* PD9  */ {   0,   1,   0,   1,   0,   0   },
_/* SMC1 TXD */
_/* PD8  */ {   0,   1,   0,   0,   0,   0   },
_/* SMC1 RXD */

Any ideas would be appreciated.

Regards,

Jie


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



what is difference between cpm_uart_cpm1.c and cpm_uart_cpm2.c

2006-08-23 Thread jie han
I am new about kernel 2.6.18.I just want to know
what's difference bwtween cpm_uart_cpm1.c and
cpm_uart_cpm2.c?and how to initialize cmp module?
thanks advance, 

Jie


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



boot kernel 2.6.18 is hang???

2006-08-16 Thread jie han

I am trying to take a working embedded linux system from kernel 2.4 to 
2.6. The hardware is a custom board using a mpc8270vr processor.
The working system uses u-boot 1.1.4 with linux kernel 2.4.24.

I am using the same u-boot and I am trying to port linux kernel 2.6.18. 
I believe I have done everything required to get the kernel booting. However, 
the kernel 
seems to hang after being uncompressed. Here is what I see after running 
bootm from u-boot:

OLT= tftp 50 uImage
Using FCC1 ETHERNET device
TFTP from server 192.168.2.45; our IP address is 192.168.2.109
Filename 'uImage'.
Load address: 0x50
Loading: #
 #
 #
done
Bytes transferred = 995314 (f2ff2 hex)
OLT= bootm 50
## Booting image at 0050 ...
   Image Name:   Linux-2.6.18/Ocean BoradBand Ltd
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:995250 Bytes = 971.9 kB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

log_buf context is
OLT= md 1b9d60 100
001b9d60: c020c0a4 4000  .  at .
001b9d70: 0001 c01b9d74 c01b9d74 0001...t...t
001b9d80: c01b9d80 c01b9d80  61637175acqu
001b9d90: 6972655f 636f6e73 6f6c655f 73656d00ire_console_sem.
001b9da0: 63616c6c 5f636f6e 736f6c65 5f647269call_console_dri
001b9db0: 76657273   0001vers
001b9dc0: 1388   c001571c..W.
001b9dd0:  c001589c  ..X.
001b9de0:    
001b9df0:    
001b9e00:    
001b9e10:    
001b9e20:    
001b9e30:   0001 65786974exit
001b9e40: 5f6d6d00 5f5f6578 69745f73 69676e61_mm.__exit_signa
001b9e50: 6c00 72656c65 6173655f 7461736bl...release_task
001b9e60:  63686f6f 73655f6e 65775f70choose_new_p
001b9e70: 6172656e 7400 666f7267 65745f6farent...forget_o
001b9e80: 72696769 6e616c5f 70617265 6e74riginal_parent..
001b9e90: 65786974 5f6e6f74 69667900 646f5f65exit_notify.do_e
001b9ea0: 78697400 646f5f67 726f7570 5f657869xit.do_group_exi
001b9eb0: 7400 77616974 5f746173 6b5f636ft...wait_task_co
001b9ec0: 6e74696e 75656400 77616974 5f746173ntinued.wait_tas
001b9ed0: 6b5f7a6f 6d626965  77616974k_zombiewait
001b9ee0: 5f746173 6b5f7374 6f707065 6400_task_stopped...
001b9ef0: 646f5f77 61697400 000a 0001do_wait.
001b9f00: c0019b50   6370755f...Pcpu_
001b9f10: 63616c6c 6261636b  0001callback
001b9f20: 0001 5f5f6c6f 63616c5f 62685f65__local_bh_e
001b9f30: 6e61626c 6500 0001 0001nable...
001b9f40: 5f6c6f63 616c5f62 685f656e 61626c65_local_bh_enable
001b9f50:  7461736b 6c65745f 61637469tasklet_acti
001b9f60: 6f6e 7461736b 6c65745f 68695f61on..tasklet_hi_a
001b9f70: 6374696f 6e00 0001 0001ction...
001b9f80: 6c6f6361 6c5f6268 5f656e61 626c6500local_bh_enable.
001b9f90: 0001 6c6f6361 6c5f6268 5f656e61local_bh_ena
001b9fa0: 626c655f 6970 0001 5f5f6c6fble_ip..__lo
001b9fb0: 63616c5f 62685f64 69736162 6c65cal_bh_disable..
001b9fc0:   c018a9b0 0200
001b9fd0:    
001b9fe0:  c018a9b8 0100 
001b9ff0:    c0075590..U.
001ba000: c0075878   ..Xx
001ba010:    
001ba020:   c001a53c ...
001ba030: c0075014   ..P.
001ba040:    
001ba050:    
001ba060:    
001ba070: c0075590 c0075878  ..U...Xx


Any ideas would be appreciated.

Regards,

Jie






-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060816/42cfd099/attachment.htm
 


hoe to define CPM_MAP_ADDR ?

2006-08-15 Thread jie han

I am trying to take a working embedded linux system from kernel 2.4 to 
2.6. The hardware is a custom board using a MPC8270 processor.
The working system uses u-boot 1.1.1 with linux kernel 2.4.24.
I am using the same u-boot and I am trying to port linux kernel 2.6.15 
to our platform. I just wonder hwo to define CPM_MAP_ADDR to my config file
at /arch/ppc/platforms/olt8270.h,thsi show file context as follow

#ifndef __OLT8270_PLATFORM
#define __OLT8270_PLATFORM

//#define CPM_MAP_ADDR  ((uint)0xf000)
#define IMAP_ADDR  ((uint)0xf000)

#define BOOTROM_RESTART_ADDR ((uint)0xfff00100)

/* For our show_cpuinfo hooks. */
#define CPUINFO_VENDOR  Ocean Broadband Ltd
#define CPUINFO_MACHINE  OLT8270 PowerPC

/* A Board Information structure that is given to a program when
 * prom starts it up.
 */
typedef struct bd_info {
 unsigned long bi_memstart; /* Memory start address */
 unsigned long bi_memsize; /* Memory (end) size in bytes */
 unsigned long bi_flashstart; /* start of FLASH memory */
 unsigned long bi_flashsize; /* size  of FLASH memory */
 unsigned long bi_flashoffset; /* reserved area for startup monitor */
unsigned long   bi_sramstart;   /* start of SRAM memory */
unsigned long   bi_sramsize;/* size of SRAM memory */

 unsigned long bi_immr; /* IMMR when called from boot rom */

 unsigned long   bi_bootflags;   /* boot flag (for Lynx OS) */

 unsigned long   bi_ip_addr; /* IP Address */
 unsigned char   bi_enetaddr[6]; /* Ethernet address */
 unsigned short  bi_ethspeed;/* Ethernet speed in Mbps */

 unsigned long bi_intfreq; /* Internal Freq, in Hz */
 unsigned long bi_busfreq; /* Bus Freq, in MHz */
 unsigned long bi_cpmfreq; /* CPM Freq, in MHz */
 unsigned long bi_brgfreq; /* BRG Freq, in MHz */
 unsigned long bi_sccfreq; /* SCC Freq, in MHz */
 unsigned long bi_vco;  /* VCO Out from PLL */
 unsigned long bi_baudrate; /* Default console baud rate */
} bd_t;

extern bd_t m8xx_board_info;

#endif  /* __OLT8270_PLATFORM */



Sincerely,


Jie



-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1?/min.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060815/7d77ca3a/attachment.htm