MPC5200b MMC over SPI into PSC6

2008-05-05 Thread Fabio Tosetto
Hello, I have an embedded system with an on-board processor powerpc MPC5200B and Linux kernel 2.6.22, I must turn over to MMC SPI on the PSC6. First, I have enabled PSC6: in ../arch/ppc/platforms/lite5200.c added PSC6 in SPI mode struct mpc52xx_psc_func mpc52xx_psc_functions[] = { { .id

Re: MPC5200b MMC over SPI into PSC6

2008-05-06 Thread Grant Likely
On Mon, May 5, 2008 at 12:12 PM, Fabio Tosetto <[EMAIL PROTECTED]> wrote: > Hello, I have an embedded system with an on-board processor powerpc MPC5200B > and Linux kernel 2.6.22, > I must turn over to MMC SPI on the PSC6. > > First, I > have enabled PSC6: > > in ../arch/ppc/platforms/lite5200

Re: MPC5200b MMC over SPI into PSC6

2008-05-07 Thread Fabio Tosetto
I've tried to port my exesting configurations to the powerpc tree but some configurations files are missing. I need to set PSC3 - PSC4 in uart mode: before in file *arch/ppc/platforms/lite5200.c* I added struct mpc52xx_psc_func mpc52xx_psc_functions[] = { { .id = 3,

Re: MPC5200b MMC over SPI into PSC6

2008-05-07 Thread Grant Likely
On Wed, May 7, 2008 at 6:49 AM, Fabio Tosetto <[EMAIL PROTECTED]> wrote: > > I've tried to port my exesting configurations to the powerpc tree but some > configurations files are missing. First, create a new .dts file for your board in arch/powerpc/boot/dts. (just copy the lite5200.dts file). Mo

Re: MPC5200b MMC over SPI into PSC6

2008-05-08 Thread Fabio Tosetto
Ok, maybe it's better to start from the beginning. Now I'm using a Lite5200b board, just to avoid problems with my hardware, and I'm trying to have a bootable kernel. With kernel version 2.6.24.6 I do the following commands $ make ARCH=powerpc lite5200_defconfig $ make ARCH=powerpc CROSS_COMPI

Re: MPC5200b MMC over SPI into PSC6

2008-05-08 Thread Grant Likely
On Thu, May 8, 2008 at 9:10 AM, Fabio Tosetto <[EMAIL PROTECTED]> wrote: > Ok, maybe it's better to start from the beginning. > Now I'm using a Lite5200b board, just to avoid problems with my hardware, > and I'm trying to have a bootable kernel. > > With kernel version 2.6.24.6 I do the following

Re: MPC5200b MMC over SPI into PSC6

2008-05-09 Thread Grant Likely
See if this patch makes any difference for you: diff --git a/arch/powerpc/boot/dts/lite5200b.dts b/arch/powerpc/boot/dts/lite520 index 8505e97..70d9a8e 100644 --- a/arch/powerpc/boot/dts/lite5200b.dts +++ b/arch/powerpc/boot/dts/lite5200b.dts @@ -342,4 +342,8 @@ 0x020

Re: MPC5200b MMC over SPI into PSC6

2008-05-09 Thread Fabri
Hello! I've seen you guys are playing with a Lite5200b board, so I've decided to do another attempt with mine. On Thu, May 8, 2008 at 5:32 PM, Grant Likely <[EMAIL PROTECTED]> wrote: > For example, use "make ARCH=powerpc cuImage.lite5200b" to build an > image for the lite5200b board. The build sc

Re: MPC5200b MMC over SPI into PSC6

2008-05-09 Thread Fabri
Errage corrige: Excuse me, bad cut and paste :) This is the right output of the first try ## Booting image at 0300 ... Image Name: Linux-2.6.25.2 Created: 2008-05-09 12:46:22 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:1518744 Bytes = 1.4 M

Re: MPC5200b MMC over SPI into PSC6

2008-05-09 Thread Fabri
Thanks for the patches, now some more rows are printed after RamDisk loading: Verifying Checksum ... OK Loading Ramdisk to 0fe68000, end 0ff49bf2 ... OK Memory <- <0x0 0x1000> (256MB) CPU clock-frequency <- 0xbcd3d80 (198MHz) CPU timebase-frequency <- 0x1f78a40 (33MHz) CPU bus-frequency

Re: MPC5200b MMC over SPI into PSC6

2008-05-09 Thread Grant Likely
On Fri, May 9, 2008 at 9:02 AM, Fabri <[EMAIL PROTECTED]> wrote: > Thanks for the patches, now some more rows are printed after RamDisk loading: > > Verifying Checksum ... OK > Loading Ramdisk to 0fe68000, end 0ff49bf2 ... OK > Memory <- <0x0 0x1000> (256MB) > CPU clock-frequency <- 0xbcd3d

Re: MPC5200b MMC over SPI into PSC6

2008-05-09 Thread Fabri
Nice to hear that, next week I'll try and let you know. Thank you again for your support, Fabrizio On Fri, May 9, 2008 at 5:20 PM, Grant Likely <[EMAIL PROTECTED]> wrote: > On Fri, May 9, 2008 at 9:02 AM, Fabri <[EMAIL PROTECTED]> wrote: >> Thanks for the patches, now some more rows are printed a

Re: MPC5200b MMC over SPI into PSC6

2008-05-12 Thread Fabio Tosetto
Hello, in uboot i have setting the bootargs variable: => bootargs debug console=ttyPSC0,115200 root=/dev/ram => saveenv If I'm not wrong, the right sequence of commands should be the following: $ make ARCH=powerpc mpc5200_defconfig $ make ARCH=powerpc menuconfig .. [customizations]... $ make A

Re: MPC5200b MMC over SPI into PSC6

2008-05-22 Thread Fabri
> Doesn't look like you are passing a kernel parameters line. The > kernel probably is booting, but doesn't know where to output the > console. Try adding "console=ttyPSC0,115200". Hi Grant, I've tried to add that with this commands => bootargs debug console=ttyPSC0,115200 root=/dev/ram => save